From b9300ec4ff5dd127a67671d6f028f62d40f48867 Mon Sep 17 00:00:00 2001 From: ueno Date: Thu, 30 May 2024 18:37:19 +0900 Subject: [PATCH] first commit --- .idea/vcs.xml | 7 + .idea/workspace.xml | 40 + LICENSE | 202 + README.md | 125 + intdash/.github/workflows/maven.yml | 30 + intdash/.gitignore | 21 + intdash/.idea/compiler.xml | 6 + intdash/.idea/gradle.xml | 18 + intdash/.idea/jarRepositories.xml | 20 + intdash/.idea/misc.xml | 10 + intdash/.idea/vcs.xml | 6 + intdash/.idea/workspace.xml | 312 + intdash/.openapi-generator-ignore | 23 + intdash/.openapi-generator/FILES | 678 + intdash/.openapi-generator/VERSION | 1 + intdash/.travis.yml | 22 + intdash/README.md | 701 + intdash/api/openapi.yaml | 20220 ++++++++++++++++ intdash/build.gradle | 169 + intdash/build.sbt | 29 + intdash/docs/APITokenIntrospectionRequest.md | 13 + intdash/docs/APITokenIntrospectionResponse.md | 18 + intdash/docs/AddGroupMemberRequest.md | 15 + intdash/docs/AddProjectEdgeRequest.md | 14 + intdash/docs/AddProjectMemberRequest.md | 15 + intdash/docs/AllowedEndpoint.md | 14 + intdash/docs/AllowedISCPMessage.md | 13 + intdash/docs/AssignOwnerRequest.md | 13 + intdash/docs/AuthAuthorizationApi.md | 164 + intdash/docs/AuthClientsApi.md | 815 + intdash/docs/AuthEdgesApi.md | 1549 ++ intdash/docs/AuthGroupMembersApi.md | 597 + intdash/docs/AuthGroupsApi.md | 668 + intdash/docs/AuthMeApi.md | 1127 + intdash/docs/AuthOAuth2Api.md | 356 + intdash/docs/AuthPage.md | 18 + intdash/docs/AuthProjectEdgesApi.md | 428 + intdash/docs/AuthProjectMembersApi.md | 597 + intdash/docs/AuthProjectsApi.md | 591 + intdash/docs/AuthRolesApi.md | 175 + intdash/docs/AuthScopesApi.md | 175 + intdash/docs/AuthUsersApi.md | 1827 ++ intdash/docs/BrokerEdgeConnectionsApi.md | 348 + intdash/docs/BrokerIScpApi.md | 313 + intdash/docs/BrokerStreamApi.md | 162 + intdash/docs/ChangePasswordRequest.md | 15 + intdash/docs/CheckAuthorizationResponse.md | 13 + intdash/docs/CheckHTTPAuthorizationRequest.md | 29 + .../docs/CheckMeHTTPAuthorizationRequest.md | 27 + intdash/docs/CheckPasswordRequest.md | 13 + intdash/docs/CheckPasswordResult.md | 14 + .../docs/CheckPasswordResultErrorsInner.md | 31 + intdash/docs/CreateEdgeRequest.md | 15 + intdash/docs/CreateEmailRequest.md | 13 + intdash/docs/CreateGroupRequest.md | 13 + intdash/docs/CreateJobRequest.md | 14 + intdash/docs/CreateJpegRequest.md | 17 + intdash/docs/CreateMP4Request.md | 15 + intdash/docs/CreateMeasurementChunksResult.md | 15 + ...CreateMeasurementChunksResultItemsInner.md | 23 + intdash/docs/CreateMyOAuth2ClientRequest.md | 35 + ...ateOAuth2ClientAuthorizationCodeRequest.md | 35 + ...uth2ClientAuthorizationCodeRequestAllOf.md | 26 + ...ateOAuth2ClientClientCredentialsRequest.md | 34 + intdash/docs/CreateProjectRequest.md | 13 + intdash/docs/CreateSignalRequest.md | 20 + intdash/docs/CreateUserAPITokenRequest.md | 14 + intdash/docs/CreateUserRequest.md | 17 + intdash/docs/DataID.md | 16 + intdash/docs/DataIDs.md | 13 + intdash/docs/DataPoint.md | 18 + intdash/docs/DataPointDataError.md | 15 + intdash/docs/DataPointDataErrorData.md | 24 + intdash/docs/DataPointDataID.md | 15 + intdash/docs/DataPointDataIDs.md | 13 + intdash/docs/DataPointError.md | 18 + intdash/docs/DataPointErrorAllOf.md | 14 + intdash/docs/DataPointNormal.md | 19 + intdash/docs/DataPointTime.md | 12 + intdash/docs/DeniedEndpoint.md | 14 + intdash/docs/Edge.md | 20 + intdash/docs/EdgeConnection.md | 19 + intdash/docs/EdgeConnectionAllOf.md | 14 + intdash/docs/EdgeConnectionDownstream.md | 19 + intdash/docs/EdgeConnectionEdge.md | 33 + intdash/docs/EdgeConnectionItem.md | 17 + intdash/docs/EdgeConnectionList.md | 14 + intdash/docs/EdgeConnectionListPage.md | 17 + intdash/docs/EdgeConnectionUpstream.md | 21 + intdash/docs/EdgeOwner.md | 13 + intdash/docs/Edges.md | 14 + intdash/docs/ErrorConverted.md | 24 + intdash/docs/ErrorConvertedAllOf.md | 13 + intdash/docs/ErrorConvertedAllOfErrorExtra.md | 17 + intdash/docs/ErrorExtraEmpty.md | 23 + intdash/docs/ErrorProblem.md | 31 + intdash/docs/ErrorProblemMedia.md | 27 + intdash/docs/GetVersion200Response.md | 13 + intdash/docs/Group.md | 17 + intdash/docs/Groups.md | 14 + intdash/docs/HLS.md | 20 + intdash/docs/HLSList.md | 13 + intdash/docs/ISCPMessageType.md | 21 + intdash/docs/ISCPTicket.md | 15 + intdash/docs/IssueToken200Response.md | 18 + intdash/docs/JSONWebKey.md | 33 + intdash/docs/Job.md | 19 + intdash/docs/JobList.md | 14 + intdash/docs/JobStatus.md | 17 + intdash/docs/JobType.md | 15 + intdash/docs/Jpeg.md | 21 + intdash/docs/JpegQuality.md | 15 + intdash/docs/JpegStatus.md | 19 + intdash/docs/Jpegs.md | 14 + intdash/docs/MP4.md | 20 + intdash/docs/MP4Status.md | 19 + intdash/docs/MP4s.md | 14 + intdash/docs/MeasBaseTime.md | 16 + intdash/docs/MeasBaseTimePut.md | 13 + intdash/docs/MeasBaseTimes.md | 13 + intdash/docs/MeasCreate.md | 18 + intdash/docs/MeasDataPointIdsApi.md | 178 + intdash/docs/MeasDataPointsApi.md | 704 + intdash/docs/MeasMeasurementJobsApi.md | 668 + intdash/docs/MeasMeasurementMarkersApi.md | 1682 ++ intdash/docs/MeasMeasurementsApi.md | 3430 +++ intdash/docs/MeasReplace.md | 16 + intdash/docs/MeasSignalsApi.md | 836 + intdash/docs/MeasTrashedMeasurementsApi.md | 494 + intdash/docs/MeasUploadingMeasurementsApi.md | 546 + intdash/docs/Measurement.md | 39 + intdash/docs/MeasurementBaseTimeType.md | 23 + intdash/docs/MeasurementJob.md | 20 + intdash/docs/MeasurementJobStatus.md | 19 + intdash/docs/MeasurementJobs.md | 14 + intdash/docs/MeasurementMarker.md | 31 + intdash/docs/MeasurementMarkerBase.md | 30 + intdash/docs/MeasurementMarkerDetailPoint.md | 13 + intdash/docs/MeasurementMarkerDetailRange.md | 14 + intdash/docs/MeasurementMarkerPoint.md | 31 + intdash/docs/MeasurementMarkerPointAllOf.md | 13 + intdash/docs/MeasurementMarkerPostRequest.md | 26 + .../docs/MeasurementMarkerPostRequestPoint.md | 26 + .../docs/MeasurementMarkerPostRequestRange.md | 26 + intdash/docs/MeasurementMarkerPutRequest.md | 26 + .../docs/MeasurementMarkerPutRequestBase.md | 25 + .../docs/MeasurementMarkerPutRequestPoint.md | 26 + .../docs/MeasurementMarkerPutRequestRange.md | 26 + intdash/docs/MeasurementMarkerRange.md | 31 + intdash/docs/MeasurementMarkerRangeAllOf.md | 13 + intdash/docs/MeasurementMarkers.md | 14 + intdash/docs/MeasurementMarkersWithoutPage.md | 13 + intdash/docs/MeasurementSectionGetResponse.md | 16 + .../docs/MeasurementSectionsGetResponse.md | 14 + intdash/docs/MeasurementSequenceGroup.md | 17 + .../docs/MeasurementSequenceGroupReplace.md | 14 + intdash/docs/MeasurementSequenceGroups.md | 14 + intdash/docs/MeasurementSequencesSummary.md | 28 + intdash/docs/MeasurementUploadPostResponse.md | 15 + .../MeasurementUploadStatusGetResponse.md | 31 + .../MeasurementUploadStatusesGetResponse.md | 14 + intdash/docs/Measurements.md | 14 + intdash/docs/MediaHlsApi.md | 522 + intdash/docs/MediaJobsApi.md | 366 + intdash/docs/MediaLiveApi.md | 172 + intdash/docs/MediaMeasurement.md | 36 + intdash/docs/MediaMeasurementBaseTimeType.md | 23 + intdash/docs/MediaVideosApi.md | 2180 ++ intdash/docs/Member.md | 20 + intdash/docs/Members.md | 14 + intdash/docs/OAuth2Client.md | 32 + intdash/docs/OAuth2ClientGrantType.md | 15 + intdash/docs/OAuth2ClientResponseType.md | 11 + intdash/docs/OAuth2ClientWithSecret.md | 22 + intdash/docs/OAuth2ClientWithSecretAllOf.md | 22 + intdash/docs/OAuth2Clients.md | 14 + intdash/docs/OAuth2JWKs.md | 13 + intdash/docs/Page.md | 13 + intdash/docs/PageDetail.md | 17 + intdash/docs/PageV2.md | 13 + intdash/docs/PatchEdgeRequest.md | 15 + intdash/docs/PatchEmailRequest.md | 13 + intdash/docs/PatchUserRequest.md | 15 + intdash/docs/Playlist.md | 14 + intdash/docs/Project.md | 17 + intdash/docs/ProjectEdge.md | 17 + intdash/docs/ProjectEdges.md | 14 + intdash/docs/Projects.md | 14 + intdash/docs/Role.md | 17 + intdash/docs/Roles.md | 14 + intdash/docs/Scope.md | 19 + intdash/docs/Scopes.md | 14 + intdash/docs/SequenceSummary.md | 13 + intdash/docs/Signal.md | 23 + intdash/docs/SignalConversion.md | 14 + intdash/docs/SignalConversionCSV.md | 14 + intdash/docs/SignalConversionJSON.md | 14 + intdash/docs/SignalConversionNumFixedPoint.md | 14 + .../docs/SignalConversionNumFloatingPoint.md | 14 + intdash/docs/SignalConversionOptionCSV.md | 24 + intdash/docs/SignalConversionOptionJSON.md | 23 + .../SignalConversionOptionNumFixedPoint.md | 36 + .../SignalConversionOptionNumFloatingPoint.md | 33 + .../docs/SignalConversionOptionSubBytes.md | 14 + .../docs/SignalConversionOptionSubString.md | 14 + intdash/docs/SignalConversionOptionType.md | 23 + intdash/docs/SignalConversionSubBytes.md | 14 + intdash/docs/SignalConversionSubString.md | 14 + intdash/docs/SignalDisplay.md | 16 + intdash/docs/Signals.md | 14 + intdash/docs/TrashedMeasurements.md | 14 + intdash/docs/UpdateEmailVerifiedRequest.md | 13 + intdash/docs/UpdateGroupMemberRequest.md | 13 + intdash/docs/UpdateGroupRequest.md | 13 + intdash/docs/UpdateOAuth2ClientRequest.md | 14 + intdash/docs/UpdateProjectEdgeRequest.md | 13 + intdash/docs/UpdateProjectMemberRequest.md | 13 + intdash/docs/UpdateProjectRequest.md | 13 + intdash/docs/UpdateSignalRequest.md | 19 + intdash/docs/UpdateUserAPITokenRequest.md | 13 + intdash/docs/User.md | 24 + intdash/docs/UserAPIToken.md | 20 + intdash/docs/UserAPITokens.md | 14 + intdash/docs/UserEmail.md | 17 + intdash/docs/UserEmailVerification.md | 16 + intdash/docs/UserPassword.md | 19 + intdash/docs/Users.md | 14 + intdash/docs/VersionsVersionApi.md | 84 + intdash/docs/Video.md | 30 + intdash/docs/VideoCodecs.md | 13 + intdash/docs/VideoSourceDataType.md | 15 + intdash/docs/VideoStatus.md | 19 + intdash/docs/Videos.md | 14 + intdash/git_push.sh | 57 + intdash/gradle.properties | 6 + intdash/gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 59536 bytes .../gradle/wrapper/gradle-wrapper.properties | 5 + intdash/gradlew | 234 + intdash/gradlew.bat | 89 + intdash/local.properties | 8 + intdash/pom.xml | 358 + intdash/settings.gradle | 1 + intdash/src/main/AndroidManifest.xml | 3 + .../src/main/java/com/aptpod/ApiCallback.java | 62 + .../src/main/java/com/aptpod/ApiClient.java | 1647 ++ .../main/java/com/aptpod/ApiException.java | 166 + .../src/main/java/com/aptpod/ApiResponse.java | 76 + .../main/java/com/aptpod/Configuration.java | 41 + .../com/aptpod/GzipRequestInterceptor.java | 85 + intdash/src/main/java/com/aptpod/JSON.java | 571 + intdash/src/main/java/com/aptpod/Pair.java | 57 + .../java/com/aptpod/ProgressRequestBody.java | 73 + .../java/com/aptpod/ProgressResponseBody.java | 70 + .../java/com/aptpod/ServerConfiguration.java | 58 + .../main/java/com/aptpod/ServerVariable.java | 23 + .../src/main/java/com/aptpod/StringUtil.java | 83 + .../main/java/com/aptpod/auth/ApiKeyAuth.java | 80 + .../java/com/aptpod/auth/Authentication.java | 36 + .../java/com/aptpod/auth/HttpBasicAuth.java | 57 + .../java/com/aptpod/auth/HttpBearerAuth.java | 63 + .../src/main/java/com/aptpod/auth/OAuth.java | 42 + .../main/java/com/aptpod/auth/OAuthFlow.java | 25 + .../com/aptpod/auth/OAuthOkHttpClient.java | 69 + .../java/com/aptpod/auth/RetryingOAuth.java | 210 + .../aptpod/intdash/AuthAuthorizationApi.java | 314 + .../com/aptpod/intdash/AuthClientsApi.java | 1329 + .../java/com/aptpod/intdash/AuthEdgesApi.java | 2487 ++ .../aptpod/intdash/AuthGroupMembersApi.java | 1061 + .../com/aptpod/intdash/AuthGroupsApi.java | 1128 + .../java/com/aptpod/intdash/AuthMeApi.java | 1792 ++ .../com/aptpod/intdash/AuthOAuth2Api.java | 706 + .../aptpod/intdash/AuthProjectEdgesApi.java | 774 + .../aptpod/intdash/AuthProjectMembersApi.java | 1061 + .../com/aptpod/intdash/AuthProjectsApi.java | 1024 + .../java/com/aptpod/intdash/AuthRolesApi.java | 350 + .../com/aptpod/intdash/AuthScopesApi.java | 350 + .../java/com/aptpod/intdash/AuthUsersApi.java | 3019 +++ .../intdash/BrokerEdgeConnectionsApi.java | 667 + .../com/aptpod/intdash/BrokerIScpApi.java | 532 + .../com/aptpod/intdash/BrokerStreamApi.java | 310 + .../aptpod/intdash/MeasDataPointIdsApi.java | 379 + .../com/aptpod/intdash/MeasDataPointsApi.java | 1323 + .../intdash/MeasMeasurementJobsApi.java | 1177 + .../intdash/MeasMeasurementMarkersApi.java | 2948 +++ .../aptpod/intdash/MeasMeasurementsApi.java | 5891 +++++ .../com/aptpod/intdash/MeasSignalsApi.java | 1454 ++ .../intdash/MeasTrashedMeasurementsApi.java | 863 + .../intdash/MeasUploadingMeasurementsApi.java | 1109 + .../java/com/aptpod/intdash/MediaHlsApi.java | 1015 + .../java/com/aptpod/intdash/MediaJobsApi.java | 734 + .../java/com/aptpod/intdash/MediaLiveApi.java | 359 + .../com/aptpod/intdash/MediaVideosApi.java | 3802 +++ .../aptpod/intdash/VersionsVersionApi.java | 189 + .../model/APITokenIntrospectionRequest.java | 291 + .../model/APITokenIntrospectionResponse.java | 457 + .../client/model/AbstractOpenApiSchema.java | 149 + .../client/model/AddGroupMemberRequest.java | 366 + .../client/model/AddProjectEdgeRequest.java | 323 + .../client/model/AddProjectMemberRequest.java | 366 + .../client/model/AllowedEndpoint.java | 323 + .../client/model/AllowedISCPMessage.java | 289 + .../client/model/AssignOwnerRequest.java | 291 + .../openapitools/client/model/AuthPage.java | 431 + .../client/model/ChangePasswordRequest.java | 353 + .../model/CheckAuthorizationResponse.java | 288 + .../model/CheckHTTPAuthorizationRequest.java | 452 + .../CheckMeHTTPAuthorizationRequest.java | 376 + .../client/model/CheckPasswordRequest.java | 291 + .../client/model/CheckPasswordResult.java | 341 + .../model/CheckPasswordResultErrorsInner.java | 415 + .../client/model/CreateEdgeRequest.java | 353 + .../client/model/CreateEmailRequest.java | 291 + .../client/model/CreateGroupRequest.java | 291 + .../client/model/CreateJobRequest.java | 321 + .../client/model/CreateJpegRequest.java | 393 + .../client/model/CreateMP4Request.java | 336 + .../model/CreateMeasurementChunksResult.java | 338 + ...eateMeasurementChunksResultItemsInner.java | 367 + .../model/CreateMyOAuth2ClientRequest.java | 286 + ...eOAuth2ClientAuthorizationCodeRequest.java | 525 + ...h2ClientAuthorizationCodeRequestAllOf.java | 475 + ...eOAuth2ClientClientCredentialsRequest.java | 480 + .../client/model/CreateProjectRequest.java | 291 + .../client/model/CreateSignalRequest.java | 498 + .../model/CreateUserAPITokenRequest.java | 320 + .../client/model/CreateUserRequest.java | 429 + .../org/openapitools/client/model/DataID.java | 349 + .../openapitools/client/model/DataIDs.java | 309 + .../openapitools/client/model/DataPoint.java | 286 + .../client/model/DataPointDataError.java | 323 + .../client/model/DataPointDataErrorData.java | 285 + .../client/model/DataPointDataID.java | 323 + .../client/model/DataPointDataIDs.java | 309 + .../client/model/DataPointError.java | 451 + .../client/model/DataPointErrorAllOf.java | 316 + .../client/model/DataPointNormal.java | 448 + .../client/model/DataPointTime.java | 276 + .../client/model/DeniedEndpoint.java | 323 + .../org/openapitools/client/model/Edge.java | 510 + .../client/model/EdgeConnection.java | 517 + .../client/model/EdgeConnectionAllOf.java | 357 + .../model/EdgeConnectionDownstream.java | 477 + .../client/model/EdgeConnectionEdge.java | 681 + .../client/model/EdgeConnectionItem.java | 419 + .../client/model/EdgeConnectionList.java | 341 + .../client/model/EdgeConnectionListPage.java | 410 + .../client/model/EdgeConnectionUpstream.java | 535 + .../openapitools/client/model/EdgeOwner.java | 291 + .../org/openapitools/client/model/Edges.java | 341 + .../client/model/ErrorConverted.java | 402 + .../client/model/ErrorConvertedAllOf.java | 291 + .../model/ErrorConvertedAllOfErrorExtra.java | 381 + .../client/model/ErrorExtraEmpty.java | 370 + .../client/model/ErrorProblem.java | 412 + .../client/model/ErrorProblemMedia.java | 404 + .../client/model/GetVersion200Response.java | 291 + .../org/openapitools/client/model/Group.java | 414 + .../org/openapitools/client/model/Groups.java | 342 + .../org/openapitools/client/model/HLS.java | 506 + .../openapitools/client/model/HLSList.java | 309 + .../client/model/ISCPMessageType.java | 81 + .../openapitools/client/model/ISCPTicket.java | 350 + .../client/model/IssueToken200Response.java | 432 + .../openapitools/client/model/JSONWebKey.java | 850 + .../org/openapitools/client/model/Job.java | 474 + .../openapitools/client/model/JobList.java | 339 + .../openapitools/client/model/JobStatus.java | 77 + .../openapitools/client/model/JobType.java | 75 + .../org/openapitools/client/model/Jpeg.java | 527 + .../client/model/JpegQuality.java | 75 + .../openapitools/client/model/JpegStatus.java | 79 + .../org/openapitools/client/model/Jpegs.java | 341 + .../org/openapitools/client/model/MP4.java | 499 + .../openapitools/client/model/MP4Status.java | 79 + .../org/openapitools/client/model/MP4s.java | 341 + .../client/model/MeasBaseTime.java | 385 + .../client/model/MeasBaseTimePut.java | 283 + .../client/model/MeasBaseTimes.java | 309 + .../openapitools/client/model/MeasCreate.java | 447 + .../client/model/MeasReplace.java | 372 + .../client/model/Measurement.java | 872 + .../client/model/MeasurementBaseTimeType.java | 83 + .../client/model/MeasurementJob.java | 518 + .../client/model/MeasurementJobStatus.java | 79 + .../client/model/MeasurementJobs.java | 341 + .../client/model/MeasurementMarker.java | 285 + .../client/model/MeasurementMarkerBase.java | 591 + .../model/MeasurementMarkerDetailPoint.java | 280 + .../model/MeasurementMarkerDetailRange.java | 308 + .../client/model/MeasurementMarkerPoint.java | 623 + .../model/MeasurementMarkerPointAllOf.java | 285 + .../model/MeasurementMarkerPostRequest.java | 285 + .../MeasurementMarkerPostRequestPoint.java | 460 + .../MeasurementMarkerPostRequestRange.java | 460 + .../model/MeasurementMarkerPutRequest.java | 285 + .../MeasurementMarkerPutRequestBase.java | 420 + .../MeasurementMarkerPutRequestPoint.java | 453 + .../MeasurementMarkerPutRequestRange.java | 453 + .../client/model/MeasurementMarkerRange.java | 623 + .../model/MeasurementMarkerRangeAllOf.java | 285 + .../client/model/MeasurementMarkers.java | 341 + .../model/MeasurementMarkersWithoutPage.java | 309 + .../model/MeasurementSectionGetResponse.java | 384 + .../model/MeasurementSectionsGetResponse.java | 338 + .../model/MeasurementSequenceGroup.java | 410 + .../MeasurementSequenceGroupReplace.java | 312 + .../model/MeasurementSequenceGroups.java | 341 + .../model/MeasurementSequencesSummary.java | 427 + .../model/MeasurementUploadPostResponse.java | 359 + .../MeasurementUploadStatusGetResponse.java | 536 + .../MeasurementUploadStatusesGetResponse.java | 341 + .../client/model/Measurements.java | 341 + .../client/model/MediaMeasurement.java | 754 + .../model/MediaMeasurementBaseTimeType.java | 83 + .../org/openapitools/client/model/Member.java | 547 + .../openapitools/client/model/Members.java | 341 + .../client/model/OAuth2Client.java | 657 + .../client/model/OAuth2ClientGrantType.java | 75 + .../model/OAuth2ClientResponseType.java | 71 + .../client/model/OAuth2ClientWithSecret.java | 635 + .../model/OAuth2ClientWithSecretAllOf.java | 609 + .../client/model/OAuth2Clients.java | 341 + .../openapitools/client/model/OAuth2JWKs.java | 305 + .../org/openapitools/client/model/Page.java | 288 + .../openapitools/client/model/PageDetail.java | 410 + .../org/openapitools/client/model/PageV2.java | 288 + .../client/model/PatchEdgeRequest.java | 345 + .../client/model/PatchEmailRequest.java | 291 + .../client/model/PatchUserRequest.java | 345 + .../openapitools/client/model/Playlist.java | 323 + .../openapitools/client/model/Project.java | 413 + .../client/model/ProjectEdge.java | 414 + .../client/model/ProjectEdges.java | 341 + .../openapitools/client/model/Projects.java | 342 + .../org/openapitools/client/model/Role.java | 432 + .../org/openapitools/client/model/Roles.java | 341 + .../org/openapitools/client/model/Scope.java | 528 + .../org/openapitools/client/model/Scopes.java | 341 + .../client/model/SequenceSummary.java | 291 + .../org/openapitools/client/model/Signal.java | 605 + .../client/model/SignalConversion.java | 498 + .../client/model/SignalConversionCSV.java | 321 + .../client/model/SignalConversionJSON.java | 321 + .../model/SignalConversionNumFixedPoint.java | 321 + .../SignalConversionNumFloatingPoint.java | 321 + .../model/SignalConversionOptionCSV.java | 412 + .../model/SignalConversionOptionJSON.java | 370 + .../SignalConversionOptionNumFixedPoint.java | 534 + ...ignalConversionOptionNumFloatingPoint.java | 443 + .../model/SignalConversionOptionSubBytes.java | 317 + .../SignalConversionOptionSubString.java | 317 + .../model/SignalConversionOptionType.java | 83 + .../model/SignalConversionSubBytes.java | 321 + .../model/SignalConversionSubString.java | 321 + .../client/model/SignalDisplay.java | 381 + .../openapitools/client/model/Signals.java | 341 + .../client/model/TrashedMeasurements.java | 333 + .../model/UpdateEmailVerifiedRequest.java | 291 + .../model/UpdateGroupMemberRequest.java | 294 + .../client/model/UpdateGroupRequest.java | 283 + .../model/UpdateOAuth2ClientRequest.java | 325 + .../model/UpdateProjectEdgeRequest.java | 283 + .../model/UpdateProjectMemberRequest.java | 294 + .../client/model/UpdateProjectRequest.java | 291 + .../client/model/UpdateSignalRequest.java | 467 + .../model/UpdateUserAPITokenRequest.java | 291 + .../org/openapitools/client/model/User.java | 658 + .../client/model/UserAPIToken.java | 518 + .../client/model/UserAPITokens.java | 341 + .../openapitools/client/model/UserEmail.java | 408 + .../client/model/UserEmailVerification.java | 376 + .../client/model/UserPassword.java | 464 + .../org/openapitools/client/model/Users.java | 341 + .../org/openapitools/client/model/Video.java | 844 + .../client/model/VideoCodecs.java | 73 + .../client/model/VideoSourceDataType.java | 75 + .../client/model/VideoStatus.java | 79 + .../org/openapitools/client/model/Videos.java | 341 + .../intdash/AuthAuthorizationApiTest.java | 60 + .../aptpod/intdash/AuthClientsApiTest.java | 183 + .../com/aptpod/intdash/AuthEdgesApiTest.java | 320 + .../intdash/AuthGroupMembersApiTest.java | 148 + .../com/aptpod/intdash/AuthGroupsApiTest.java | 159 + .../com/aptpod/intdash/AuthMeApiTest.java | 246 + .../com/aptpod/intdash/AuthOAuth2ApiTest.java | 107 + .../intdash/AuthProjectEdgesApiTest.java | 117 + .../intdash/AuthProjectMembersApiTest.java | 148 + .../aptpod/intdash/AuthProjectsApiTest.java | 147 + .../com/aptpod/intdash/AuthRolesApiTest.java | 67 + .../com/aptpod/intdash/AuthScopesApiTest.java | 67 + .../com/aptpod/intdash/AuthUsersApiTest.java | 386 + .../intdash/BrokerEdgeConnectionsApiTest.java | 101 + .../com/aptpod/intdash/BrokerIScpApiTest.java | 87 + .../aptpod/intdash/BrokerStreamApiTest.java | 60 + .../intdash/MeasDataPointIdsApiTest.java | 67 + .../aptpod/intdash/MeasDataPointsApiTest.java | 175 + .../intdash/MeasMeasurementJobsApiTest.java | 159 + .../MeasMeasurementMarkersApiTest.java | 358 + .../intdash/MeasMeasurementsApiTest.java | 697 + .../aptpod/intdash/MeasSignalsApiTest.java | 192 + .../MeasTrashedMeasurementsApiTest.java | 123 + .../MeasUploadingMeasurementsApiTest.java | 151 + .../com/aptpod/intdash/MediaHlsApiTest.java | 136 + .../com/aptpod/intdash/MediaJobsApiTest.java | 112 + .../com/aptpod/intdash/MediaLiveApiTest.java | 64 + .../aptpod/intdash/MediaVideosApiTest.java | 450 + .../intdash/VersionsVersionApiTest.java | 47 + .../APITokenIntrospectionRequestTest.java | 48 + .../APITokenIntrospectionResponseTest.java | 92 + .../model/AddGroupMemberRequestTest.java | 66 + .../model/AddProjectEdgeRequestTest.java | 56 + .../model/AddProjectMemberRequestTest.java | 66 + .../client/model/AllowedEndpointTest.java | 56 + .../client/model/AllowedISCPMessageTest.java | 49 + .../client/model/AssignOwnerRequestTest.java | 48 + .../client/model/AuthPageTest.java | 88 + .../model/ChangePasswordRequestTest.java | 64 + .../model/CheckAuthorizationResponseTest.java | 48 + .../CheckHTTPAuthorizationRequestTest.java | 74 + .../CheckMeHTTPAuthorizationRequestTest.java | 56 + .../model/CheckPasswordRequestTest.java | 48 + .../CheckPasswordResultErrorsInnerTest.java | 64 + .../client/model/CheckPasswordResultTest.java | 59 + .../client/model/CreateEdgeRequestTest.java | 64 + .../client/model/CreateEmailRequestTest.java | 48 + .../client/model/CreateGroupRequestTest.java | 48 + .../client/model/CreateJobRequestTest.java | 57 + .../client/model/CreateJpegRequestTest.java | 81 + .../client/model/CreateMP4RequestTest.java | 64 + ...MeasurementChunksResultItemsInnerTest.java | 56 + .../CreateMeasurementChunksResultTest.java | 59 + .../CreateMyOAuth2ClientRequestTest.java | 84 + ...ientAuthorizationCodeRequestAllOfTest.java | 82 + ...th2ClientAuthorizationCodeRequestTest.java | 82 + ...th2ClientClientCredentialsRequestTest.java | 72 + .../model/CreateProjectRequestTest.java | 48 + .../client/model/CreateSignalRequestTest.java | 106 + .../model/CreateUserAPITokenRequestTest.java | 57 + .../client/model/CreateUserRequestTest.java | 82 + .../openapitools/client/model/DataIDTest.java | 64 + .../client/model/DataIDsTest.java | 51 + .../model/DataPointDataErrorDataTest.java | 67 + .../client/model/DataPointDataErrorTest.java | 57 + .../client/model/DataPointDataIDTest.java | 56 + .../client/model/DataPointDataIDsTest.java | 51 + .../client/model/DataPointErrorAllOfTest.java | 57 + .../client/model/DataPointErrorTest.java | 90 + .../client/model/DataPointNormalTest.java | 89 + .../client/model/DataPointTest.java | 92 + .../client/model/DataPointTimeTest.java | 34 + .../client/model/DeniedEndpointTest.java | 56 + .../client/model/EdgeConnectionAllOfTest.java | 60 + .../model/EdgeConnectionDownstreamTest.java | 96 + .../client/model/EdgeConnectionEdgeTest.java | 136 + .../client/model/EdgeConnectionItemTest.java | 81 + .../model/EdgeConnectionListPageTest.java | 80 + .../client/model/EdgeConnectionListTest.java | 60 + .../client/model/EdgeConnectionTest.java | 101 + .../model/EdgeConnectionUpstreamTest.java | 112 + .../client/model/EdgeOwnerTest.java | 48 + .../openapitools/client/model/EdgeTest.java | 106 + .../openapitools/client/model/EdgesTest.java | 60 + .../ErrorConvertedAllOfErrorExtraTest.java | 72 + .../client/model/ErrorConvertedAllOfTest.java | 49 + .../client/model/ErrorConvertedTest.java | 65 + .../client/model/ErrorExtraEmptyTest.java | 56 + .../client/model/ErrorProblemMediaTest.java | 64 + .../client/model/ErrorProblemTest.java | 64 + .../model/GetVersion200ResponseTest.java | 48 + .../openapitools/client/model/GroupTest.java | 81 + .../openapitools/client/model/GroupsTest.java | 60 + .../client/model/HLSListTest.java | 51 + .../openapitools/client/model/HLSTest.java | 104 + .../client/model/ISCPMessageTypeTest.java | 33 + .../client/model/ISCPTicketTest.java | 65 + .../model/IssueToken200ResponseTest.java | 88 + .../client/model/JSONWebKeyTest.java | 202 + .../client/model/JobListTest.java | 60 + .../client/model/JobStatusTest.java | 33 + .../openapitools/client/model/JobTest.java | 99 + .../client/model/JobTypeTest.java | 33 + .../client/model/JpegQualityTest.java | 33 + .../client/model/JpegStatusTest.java | 33 + .../openapitools/client/model/JpegTest.java | 116 + .../openapitools/client/model/JpegsTest.java | 60 + .../client/model/MP4StatusTest.java | 33 + .../openapitools/client/model/MP4Test.java | 107 + .../openapitools/client/model/MP4sTest.java | 60 + .../client/model/MeasBaseTimePutTest.java | 48 + .../client/model/MeasBaseTimeTest.java | 73 + .../client/model/MeasBaseTimesTest.java | 51 + .../client/model/MeasCreateTest.java | 90 + .../client/model/MeasReplaceTest.java | 74 + .../model/MeasurementBaseTimeTypeTest.java | 33 + .../model/MeasurementJobStatusTest.java | 33 + .../client/model/MeasurementJobTest.java | 106 + .../client/model/MeasurementJobsTest.java | 60 + .../model/MeasurementMarkerBaseTest.java | 112 + .../MeasurementMarkerDetailPointTest.java | 48 + .../MeasurementMarkerDetailRangeTest.java | 56 + .../MeasurementMarkerPointAllOfTest.java | 49 + .../model/MeasurementMarkerPointTest.java | 121 + ...MeasurementMarkerPostRequestPointTest.java | 81 + ...MeasurementMarkerPostRequestRangeTest.java | 81 + .../MeasurementMarkerPostRequestTest.java | 83 + .../MeasurementMarkerPutRequestBaseTest.java | 72 + .../MeasurementMarkerPutRequestPointTest.java | 81 + .../MeasurementMarkerPutRequestRangeTest.java | 81 + .../MeasurementMarkerPutRequestTest.java | 83 + .../MeasurementMarkerRangeAllOfTest.java | 49 + .../model/MeasurementMarkerRangeTest.java | 121 + .../client/model/MeasurementMarkerTest.java | 123 + .../client/model/MeasurementMarkersTest.java | 60 + .../MeasurementMarkersWithoutPageTest.java | 51 + .../MeasurementSectionGetResponseTest.java | 72 + .../MeasurementSectionsGetResponseTest.java | 59 + .../MeasurementSequenceGroupReplaceTest.java | 56 + .../model/MeasurementSequenceGroupTest.java | 81 + .../model/MeasurementSequenceGroupsTest.java | 60 + .../MeasurementSequencesSummaryTest.java | 73 + .../client/model/MeasurementTest.java | 183 + .../MeasurementUploadPostResponseTest.java | 64 + ...easurementUploadStatusGetResponseTest.java | 96 + ...surementUploadStatusesGetResponseTest.java | 60 + .../client/model/MeasurementsTest.java | 60 + .../MediaMeasurementBaseTimeTypeTest.java | 33 + .../client/model/MediaMeasurementTest.java | 155 + .../openapitools/client/model/MemberTest.java | 108 + .../client/model/MembersTest.java | 60 + .../model/OAuth2ClientGrantTypeTest.java | 33 + .../model/OAuth2ClientResponseTypeTest.java | 33 + .../client/model/OAuth2ClientTest.java | 116 + .../OAuth2ClientWithSecretAllOfTest.java | 122 + .../model/OAuth2ClientWithSecretTest.java | 122 + .../client/model/OAuth2ClientsTest.java | 60 + .../client/model/OAuth2JWKsTest.java | 51 + .../client/model/PageDetailTest.java | 80 + .../openapitools/client/model/PageTest.java | 48 + .../openapitools/client/model/PageV2Test.java | 48 + .../client/model/PatchEdgeRequestTest.java | 64 + .../client/model/PatchEmailRequestTest.java | 48 + .../client/model/PatchUserRequestTest.java | 64 + .../client/model/PlaylistTest.java | 56 + .../client/model/ProjectEdgeTest.java | 81 + .../client/model/ProjectEdgesTest.java | 60 + .../client/model/ProjectTest.java | 81 + .../client/model/ProjectsTest.java | 60 + .../openapitools/client/model/RoleTest.java | 84 + .../openapitools/client/model/RolesTest.java | 60 + .../openapitools/client/model/ScopeTest.java | 102 + .../openapitools/client/model/ScopesTest.java | 60 + .../client/model/SequenceSummaryTest.java | 48 + .../client/model/SignalConversionCSVTest.java | 58 + .../model/SignalConversionJSONTest.java | 58 + .../SignalConversionNumFixedPointTest.java | 58 + .../SignalConversionNumFloatingPointTest.java | 58 + .../model/SignalConversionOptionCSVTest.java | 66 + .../model/SignalConversionOptionJSONTest.java | 56 + ...gnalConversionOptionNumFixedPointTest.java | 89 + ...lConversionOptionNumFloatingPointTest.java | 64 + .../SignalConversionOptionSubBytesTest.java | 56 + .../SignalConversionOptionSubStringTest.java | 56 + .../model/SignalConversionOptionTypeTest.java | 33 + .../model/SignalConversionSubBytesTest.java | 58 + .../model/SignalConversionSubStringTest.java | 58 + .../client/model/SignalConversionTest.java | 64 + .../client/model/SignalDisplayTest.java | 72 + .../openapitools/client/model/SignalTest.java | 130 + .../client/model/SignalsTest.java | 60 + .../client/model/TrashedMeasurementsTest.java | 59 + .../model/UpdateEmailVerifiedRequestTest.java | 48 + .../model/UpdateGroupMemberRequestTest.java | 50 + .../client/model/UpdateGroupRequestTest.java | 48 + .../model/UpdateOAuth2ClientRequestTest.java | 58 + .../model/UpdateProjectEdgeRequestTest.java | 48 + .../model/UpdateProjectMemberRequestTest.java | 50 + .../model/UpdateProjectRequestTest.java | 48 + .../client/model/UpdateSignalRequestTest.java | 98 + .../model/UpdateUserAPITokenRequestTest.java | 48 + .../client/model/UserAPITokenTest.java | 108 + .../client/model/UserAPITokensTest.java | 60 + .../client/model/UserEmailTest.java | 81 + .../model/UserEmailVerificationTest.java | 73 + .../client/model/UserPasswordTest.java | 97 + .../openapitools/client/model/UserTest.java | 141 + .../openapitools/client/model/UsersTest.java | 60 + .../client/model/VideoCodecsTest.java | 33 + .../client/model/VideoSourceDataTypeTest.java | 33 + .../client/model/VideoStatusTest.java | 33 + .../openapitools/client/model/VideoTest.java | 196 + .../openapitools/client/model/VideosTest.java | 60 + iscp_plugin_settings.json | 20 + openapi_public.yaml | 14247 +++++++++++ theta-iscp-plugin.apk | Bin 0 -> 5622639 bytes theta-iscp-plugin/.gitignore | 23 + theta-iscp-plugin/.idea/.gitignore | 3 + theta-iscp-plugin/.idea/compiler.xml | 6 + theta-iscp-plugin/.idea/gradle.xml | 21 + theta-iscp-plugin/.idea/jarRepositories.xml | 50 + theta-iscp-plugin/.project | 17 + theta-iscp-plugin/app/.classpath | 6 + theta-iscp-plugin/app/.gitignore | 1 + theta-iscp-plugin/app/.project | 23 + theta-iscp-plugin/app/build.gradle | 47 + .../libs/intdash-v2.4.0-next-4a4316946.jar | Bin 0 -> 1771490 bytes .../app/libs/javax.ws.rs-api-2.1.1.jar | Bin 0 -> 126898 bytes theta-iscp-plugin/app/proguard-rules.pro | 21 + .../ExampleInstrumentedTest.java | 26 + .../plugin/iscpstreaming/RealtimeApiTest.kt | 83 + .../app/src/main/AndroidManifest.xml | 44 + .../app/src/main/assets/licenses.html | 25 + .../iscpstreaming/MainActivity+Audio.kt | 17 + .../plugin/iscpstreaming/MainActivity+LED.kt | 87 + .../iscpstreaming/MainActivity+Video.kt | 175 + .../plugin/iscpstreaming/MainActivity+iSCP.kt | 16 + .../plugin/iscpstreaming/MainActivity.kt | 211 + .../plugin/iscpstreaming/gles/Drawable2d.java | 215 + .../plugin/iscpstreaming/gles/EglCore.java | 372 + .../iscpstreaming/gles/EglSurfaceBase.java | 197 + .../iscpstreaming/gles/FullFrameRect.java | 58 + .../plugin/iscpstreaming/gles/GlUtil.java | 195 + .../iscpstreaming/gles/Texture2dProgram.java | 314 + .../iscpstreaming/gles/WindowSurface.java | 90 + .../helpers/ApplicationSettings.kt | 146 + .../iscpstreaming/helpers/MySystemClock.kt | 62 + .../plugin/iscpstreaming/iscp/H264Payload.kt | 8 + .../iscpstreaming/iscp/IscpConnection.kt | 514 + .../plugin/iscpstreaming/iscp/PCMPayload.kt | 39 + .../iscpstreaming/media/H264UnitParser.kt | 212 + .../media/SurfaceViewRenderer.java | 184 + .../media/TextureMovieEncoder.java | 461 + .../iscpstreaming/media/VideoEncoderCore.java | 181 + .../drawable-v24/ic_launcher_foreground.xml | 34 + .../res/drawable/ic_launcher_background.xml | 170 + .../app/src/main/res/layout/activity_main.xml | 36 + .../res/mipmap-anydpi-v26/ic_launcher.xml | 5 + .../mipmap-anydpi-v26/ic_launcher_round.xml | 5 + .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 3056 bytes .../res/mipmap-hdpi/ic_launcher_round.png | Bin 0 -> 5024 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 2096 bytes .../res/mipmap-mdpi/ic_launcher_round.png | Bin 0 -> 2858 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 4569 bytes .../res/mipmap-xhdpi/ic_launcher_round.png | Bin 0 -> 7098 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 6464 bytes .../res/mipmap-xxhdpi/ic_launcher_round.png | Bin 0 -> 10676 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 9250 bytes .../res/mipmap-xxxhdpi/ic_launcher_round.png | Bin 0 -> 15523 bytes .../app/src/main/res/values/colors.xml | 6 + .../app/src/main/res/values/strings.xml | 3 + .../app/src/main/res/values/styles.xml | 11 + .../plugin/iscpstreaming/ExampleUnitTest.java | 17 + theta-iscp-plugin/build.gradle | 30 + theta-iscp-plugin/gradle.properties | 17 + .../gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 53636 bytes .../gradle/wrapper/gradle-wrapper.properties | 6 + theta-iscp-plugin/gradlew | 160 + theta-iscp-plugin/gradlew.bat | 90 + theta-iscp-plugin/settings.gradle | 1 + 758 files changed, 194970 insertions(+) create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml create mode 100644 LICENSE create mode 100644 README.md create mode 100644 intdash/.github/workflows/maven.yml create mode 100644 intdash/.gitignore create mode 100644 intdash/.idea/compiler.xml create mode 100644 intdash/.idea/gradle.xml create mode 100644 intdash/.idea/jarRepositories.xml create mode 100644 intdash/.idea/misc.xml create mode 100644 intdash/.idea/vcs.xml create mode 100644 intdash/.idea/workspace.xml create mode 100644 intdash/.openapi-generator-ignore create mode 100644 intdash/.openapi-generator/FILES create mode 100644 intdash/.openapi-generator/VERSION create mode 100644 intdash/.travis.yml create mode 100644 intdash/README.md create mode 100644 intdash/api/openapi.yaml create mode 100644 intdash/build.gradle create mode 100644 intdash/build.sbt create mode 100644 intdash/docs/APITokenIntrospectionRequest.md create mode 100644 intdash/docs/APITokenIntrospectionResponse.md create mode 100644 intdash/docs/AddGroupMemberRequest.md create mode 100644 intdash/docs/AddProjectEdgeRequest.md create mode 100644 intdash/docs/AddProjectMemberRequest.md create mode 100644 intdash/docs/AllowedEndpoint.md create mode 100644 intdash/docs/AllowedISCPMessage.md create mode 100644 intdash/docs/AssignOwnerRequest.md create mode 100644 intdash/docs/AuthAuthorizationApi.md create mode 100644 intdash/docs/AuthClientsApi.md create mode 100644 intdash/docs/AuthEdgesApi.md create mode 100644 intdash/docs/AuthGroupMembersApi.md create mode 100644 intdash/docs/AuthGroupsApi.md create mode 100644 intdash/docs/AuthMeApi.md create mode 100644 intdash/docs/AuthOAuth2Api.md create mode 100644 intdash/docs/AuthPage.md create mode 100644 intdash/docs/AuthProjectEdgesApi.md create mode 100644 intdash/docs/AuthProjectMembersApi.md create mode 100644 intdash/docs/AuthProjectsApi.md create mode 100644 intdash/docs/AuthRolesApi.md create mode 100644 intdash/docs/AuthScopesApi.md create mode 100644 intdash/docs/AuthUsersApi.md create mode 100644 intdash/docs/BrokerEdgeConnectionsApi.md create mode 100644 intdash/docs/BrokerIScpApi.md create mode 100644 intdash/docs/BrokerStreamApi.md create mode 100644 intdash/docs/ChangePasswordRequest.md create mode 100644 intdash/docs/CheckAuthorizationResponse.md create mode 100644 intdash/docs/CheckHTTPAuthorizationRequest.md create mode 100644 intdash/docs/CheckMeHTTPAuthorizationRequest.md create mode 100644 intdash/docs/CheckPasswordRequest.md create mode 100644 intdash/docs/CheckPasswordResult.md create mode 100644 intdash/docs/CheckPasswordResultErrorsInner.md create mode 100644 intdash/docs/CreateEdgeRequest.md create mode 100644 intdash/docs/CreateEmailRequest.md create mode 100644 intdash/docs/CreateGroupRequest.md create mode 100644 intdash/docs/CreateJobRequest.md create mode 100644 intdash/docs/CreateJpegRequest.md create mode 100644 intdash/docs/CreateMP4Request.md create mode 100644 intdash/docs/CreateMeasurementChunksResult.md create mode 100644 intdash/docs/CreateMeasurementChunksResultItemsInner.md create mode 100644 intdash/docs/CreateMyOAuth2ClientRequest.md create mode 100644 intdash/docs/CreateOAuth2ClientAuthorizationCodeRequest.md create mode 100644 intdash/docs/CreateOAuth2ClientAuthorizationCodeRequestAllOf.md create mode 100644 intdash/docs/CreateOAuth2ClientClientCredentialsRequest.md create mode 100644 intdash/docs/CreateProjectRequest.md create mode 100644 intdash/docs/CreateSignalRequest.md create mode 100644 intdash/docs/CreateUserAPITokenRequest.md create mode 100644 intdash/docs/CreateUserRequest.md create mode 100644 intdash/docs/DataID.md create mode 100644 intdash/docs/DataIDs.md create mode 100644 intdash/docs/DataPoint.md create mode 100644 intdash/docs/DataPointDataError.md create mode 100644 intdash/docs/DataPointDataErrorData.md create mode 100644 intdash/docs/DataPointDataID.md create mode 100644 intdash/docs/DataPointDataIDs.md create mode 100644 intdash/docs/DataPointError.md create mode 100644 intdash/docs/DataPointErrorAllOf.md create mode 100644 intdash/docs/DataPointNormal.md create mode 100644 intdash/docs/DataPointTime.md create mode 100644 intdash/docs/DeniedEndpoint.md create mode 100644 intdash/docs/Edge.md create mode 100644 intdash/docs/EdgeConnection.md create mode 100644 intdash/docs/EdgeConnectionAllOf.md create mode 100644 intdash/docs/EdgeConnectionDownstream.md create mode 100644 intdash/docs/EdgeConnectionEdge.md create mode 100644 intdash/docs/EdgeConnectionItem.md create mode 100644 intdash/docs/EdgeConnectionList.md create mode 100644 intdash/docs/EdgeConnectionListPage.md create mode 100644 intdash/docs/EdgeConnectionUpstream.md create mode 100644 intdash/docs/EdgeOwner.md create mode 100644 intdash/docs/Edges.md create mode 100644 intdash/docs/ErrorConverted.md create mode 100644 intdash/docs/ErrorConvertedAllOf.md create mode 100644 intdash/docs/ErrorConvertedAllOfErrorExtra.md create mode 100644 intdash/docs/ErrorExtraEmpty.md create mode 100644 intdash/docs/ErrorProblem.md create mode 100644 intdash/docs/ErrorProblemMedia.md create mode 100644 intdash/docs/GetVersion200Response.md create mode 100644 intdash/docs/Group.md create mode 100644 intdash/docs/Groups.md create mode 100644 intdash/docs/HLS.md create mode 100644 intdash/docs/HLSList.md create mode 100644 intdash/docs/ISCPMessageType.md create mode 100644 intdash/docs/ISCPTicket.md create mode 100644 intdash/docs/IssueToken200Response.md create mode 100644 intdash/docs/JSONWebKey.md create mode 100644 intdash/docs/Job.md create mode 100644 intdash/docs/JobList.md create mode 100644 intdash/docs/JobStatus.md create mode 100644 intdash/docs/JobType.md create mode 100644 intdash/docs/Jpeg.md create mode 100644 intdash/docs/JpegQuality.md create mode 100644 intdash/docs/JpegStatus.md create mode 100644 intdash/docs/Jpegs.md create mode 100644 intdash/docs/MP4.md create mode 100644 intdash/docs/MP4Status.md create mode 100644 intdash/docs/MP4s.md create mode 100644 intdash/docs/MeasBaseTime.md create mode 100644 intdash/docs/MeasBaseTimePut.md create mode 100644 intdash/docs/MeasBaseTimes.md create mode 100644 intdash/docs/MeasCreate.md create mode 100644 intdash/docs/MeasDataPointIdsApi.md create mode 100644 intdash/docs/MeasDataPointsApi.md create mode 100644 intdash/docs/MeasMeasurementJobsApi.md create mode 100644 intdash/docs/MeasMeasurementMarkersApi.md create mode 100644 intdash/docs/MeasMeasurementsApi.md create mode 100644 intdash/docs/MeasReplace.md create mode 100644 intdash/docs/MeasSignalsApi.md create mode 100644 intdash/docs/MeasTrashedMeasurementsApi.md create mode 100644 intdash/docs/MeasUploadingMeasurementsApi.md create mode 100644 intdash/docs/Measurement.md create mode 100644 intdash/docs/MeasurementBaseTimeType.md create mode 100644 intdash/docs/MeasurementJob.md create mode 100644 intdash/docs/MeasurementJobStatus.md create mode 100644 intdash/docs/MeasurementJobs.md create mode 100644 intdash/docs/MeasurementMarker.md create mode 100644 intdash/docs/MeasurementMarkerBase.md create mode 100644 intdash/docs/MeasurementMarkerDetailPoint.md create mode 100644 intdash/docs/MeasurementMarkerDetailRange.md create mode 100644 intdash/docs/MeasurementMarkerPoint.md create mode 100644 intdash/docs/MeasurementMarkerPointAllOf.md create mode 100644 intdash/docs/MeasurementMarkerPostRequest.md create mode 100644 intdash/docs/MeasurementMarkerPostRequestPoint.md create mode 100644 intdash/docs/MeasurementMarkerPostRequestRange.md create mode 100644 intdash/docs/MeasurementMarkerPutRequest.md create mode 100644 intdash/docs/MeasurementMarkerPutRequestBase.md create mode 100644 intdash/docs/MeasurementMarkerPutRequestPoint.md create mode 100644 intdash/docs/MeasurementMarkerPutRequestRange.md create mode 100644 intdash/docs/MeasurementMarkerRange.md create mode 100644 intdash/docs/MeasurementMarkerRangeAllOf.md create mode 100644 intdash/docs/MeasurementMarkers.md create mode 100644 intdash/docs/MeasurementMarkersWithoutPage.md create mode 100644 intdash/docs/MeasurementSectionGetResponse.md create mode 100644 intdash/docs/MeasurementSectionsGetResponse.md create mode 100644 intdash/docs/MeasurementSequenceGroup.md create mode 100644 intdash/docs/MeasurementSequenceGroupReplace.md create mode 100644 intdash/docs/MeasurementSequenceGroups.md create mode 100644 intdash/docs/MeasurementSequencesSummary.md create mode 100644 intdash/docs/MeasurementUploadPostResponse.md create mode 100644 intdash/docs/MeasurementUploadStatusGetResponse.md create mode 100644 intdash/docs/MeasurementUploadStatusesGetResponse.md create mode 100644 intdash/docs/Measurements.md create mode 100644 intdash/docs/MediaHlsApi.md create mode 100644 intdash/docs/MediaJobsApi.md create mode 100644 intdash/docs/MediaLiveApi.md create mode 100644 intdash/docs/MediaMeasurement.md create mode 100644 intdash/docs/MediaMeasurementBaseTimeType.md create mode 100644 intdash/docs/MediaVideosApi.md create mode 100644 intdash/docs/Member.md create mode 100644 intdash/docs/Members.md create mode 100644 intdash/docs/OAuth2Client.md create mode 100644 intdash/docs/OAuth2ClientGrantType.md create mode 100644 intdash/docs/OAuth2ClientResponseType.md create mode 100644 intdash/docs/OAuth2ClientWithSecret.md create mode 100644 intdash/docs/OAuth2ClientWithSecretAllOf.md create mode 100644 intdash/docs/OAuth2Clients.md create mode 100644 intdash/docs/OAuth2JWKs.md create mode 100644 intdash/docs/Page.md create mode 100644 intdash/docs/PageDetail.md create mode 100644 intdash/docs/PageV2.md create mode 100644 intdash/docs/PatchEdgeRequest.md create mode 100644 intdash/docs/PatchEmailRequest.md create mode 100644 intdash/docs/PatchUserRequest.md create mode 100644 intdash/docs/Playlist.md create mode 100644 intdash/docs/Project.md create mode 100644 intdash/docs/ProjectEdge.md create mode 100644 intdash/docs/ProjectEdges.md create mode 100644 intdash/docs/Projects.md create mode 100644 intdash/docs/Role.md create mode 100644 intdash/docs/Roles.md create mode 100644 intdash/docs/Scope.md create mode 100644 intdash/docs/Scopes.md create mode 100644 intdash/docs/SequenceSummary.md create mode 100644 intdash/docs/Signal.md create mode 100644 intdash/docs/SignalConversion.md create mode 100644 intdash/docs/SignalConversionCSV.md create mode 100644 intdash/docs/SignalConversionJSON.md create mode 100644 intdash/docs/SignalConversionNumFixedPoint.md create mode 100644 intdash/docs/SignalConversionNumFloatingPoint.md create mode 100644 intdash/docs/SignalConversionOptionCSV.md create mode 100644 intdash/docs/SignalConversionOptionJSON.md create mode 100644 intdash/docs/SignalConversionOptionNumFixedPoint.md create mode 100644 intdash/docs/SignalConversionOptionNumFloatingPoint.md create mode 100644 intdash/docs/SignalConversionOptionSubBytes.md create mode 100644 intdash/docs/SignalConversionOptionSubString.md create mode 100644 intdash/docs/SignalConversionOptionType.md create mode 100644 intdash/docs/SignalConversionSubBytes.md create mode 100644 intdash/docs/SignalConversionSubString.md create mode 100644 intdash/docs/SignalDisplay.md create mode 100644 intdash/docs/Signals.md create mode 100644 intdash/docs/TrashedMeasurements.md create mode 100644 intdash/docs/UpdateEmailVerifiedRequest.md create mode 100644 intdash/docs/UpdateGroupMemberRequest.md create mode 100644 intdash/docs/UpdateGroupRequest.md create mode 100644 intdash/docs/UpdateOAuth2ClientRequest.md create mode 100644 intdash/docs/UpdateProjectEdgeRequest.md create mode 100644 intdash/docs/UpdateProjectMemberRequest.md create mode 100644 intdash/docs/UpdateProjectRequest.md create mode 100644 intdash/docs/UpdateSignalRequest.md create mode 100644 intdash/docs/UpdateUserAPITokenRequest.md create mode 100644 intdash/docs/User.md create mode 100644 intdash/docs/UserAPIToken.md create mode 100644 intdash/docs/UserAPITokens.md create mode 100644 intdash/docs/UserEmail.md create mode 100644 intdash/docs/UserEmailVerification.md create mode 100644 intdash/docs/UserPassword.md create mode 100644 intdash/docs/Users.md create mode 100644 intdash/docs/VersionsVersionApi.md create mode 100644 intdash/docs/Video.md create mode 100644 intdash/docs/VideoCodecs.md create mode 100644 intdash/docs/VideoSourceDataType.md create mode 100644 intdash/docs/VideoStatus.md create mode 100644 intdash/docs/Videos.md create mode 100644 intdash/git_push.sh create mode 100644 intdash/gradle.properties create mode 100644 intdash/gradle/wrapper/gradle-wrapper.jar create mode 100644 intdash/gradle/wrapper/gradle-wrapper.properties create mode 100644 intdash/gradlew create mode 100644 intdash/gradlew.bat create mode 100644 intdash/local.properties create mode 100644 intdash/pom.xml create mode 100644 intdash/settings.gradle create mode 100644 intdash/src/main/AndroidManifest.xml create mode 100644 intdash/src/main/java/com/aptpod/ApiCallback.java create mode 100644 intdash/src/main/java/com/aptpod/ApiClient.java create mode 100644 intdash/src/main/java/com/aptpod/ApiException.java create mode 100644 intdash/src/main/java/com/aptpod/ApiResponse.java create mode 100644 intdash/src/main/java/com/aptpod/Configuration.java create mode 100644 intdash/src/main/java/com/aptpod/GzipRequestInterceptor.java create mode 100644 intdash/src/main/java/com/aptpod/JSON.java create mode 100644 intdash/src/main/java/com/aptpod/Pair.java create mode 100644 intdash/src/main/java/com/aptpod/ProgressRequestBody.java create mode 100644 intdash/src/main/java/com/aptpod/ProgressResponseBody.java create mode 100644 intdash/src/main/java/com/aptpod/ServerConfiguration.java create mode 100644 intdash/src/main/java/com/aptpod/ServerVariable.java create mode 100644 intdash/src/main/java/com/aptpod/StringUtil.java create mode 100644 intdash/src/main/java/com/aptpod/auth/ApiKeyAuth.java create mode 100644 intdash/src/main/java/com/aptpod/auth/Authentication.java create mode 100644 intdash/src/main/java/com/aptpod/auth/HttpBasicAuth.java create mode 100644 intdash/src/main/java/com/aptpod/auth/HttpBearerAuth.java create mode 100644 intdash/src/main/java/com/aptpod/auth/OAuth.java create mode 100644 intdash/src/main/java/com/aptpod/auth/OAuthFlow.java create mode 100644 intdash/src/main/java/com/aptpod/auth/OAuthOkHttpClient.java create mode 100644 intdash/src/main/java/com/aptpod/auth/RetryingOAuth.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/AuthAuthorizationApi.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/AuthClientsApi.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/AuthEdgesApi.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/AuthGroupMembersApi.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/AuthGroupsApi.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/AuthMeApi.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/AuthOAuth2Api.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/AuthProjectEdgesApi.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/AuthProjectMembersApi.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/AuthProjectsApi.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/AuthRolesApi.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/AuthScopesApi.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/AuthUsersApi.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/BrokerEdgeConnectionsApi.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/BrokerIScpApi.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/BrokerStreamApi.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/MeasDataPointIdsApi.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/MeasDataPointsApi.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/MeasMeasurementJobsApi.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/MeasMeasurementMarkersApi.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/MeasMeasurementsApi.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/MeasSignalsApi.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/MeasTrashedMeasurementsApi.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/MeasUploadingMeasurementsApi.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/MediaHlsApi.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/MediaJobsApi.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/MediaLiveApi.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/MediaVideosApi.java create mode 100644 intdash/src/main/java/com/aptpod/intdash/VersionsVersionApi.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/APITokenIntrospectionRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/APITokenIntrospectionResponse.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/AddGroupMemberRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/AddProjectEdgeRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/AddProjectMemberRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/AllowedEndpoint.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/AllowedISCPMessage.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/AssignOwnerRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/AuthPage.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/ChangePasswordRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/CheckAuthorizationResponse.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/CheckHTTPAuthorizationRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/CheckMeHTTPAuthorizationRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/CheckPasswordRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/CheckPasswordResult.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/CheckPasswordResultErrorsInner.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/CreateEdgeRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/CreateEmailRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/CreateGroupRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/CreateJobRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/CreateJpegRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/CreateMP4Request.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/CreateMeasurementChunksResult.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/CreateMeasurementChunksResultItemsInner.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/CreateMyOAuth2ClientRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/CreateOAuth2ClientAuthorizationCodeRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/CreateOAuth2ClientAuthorizationCodeRequestAllOf.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/CreateOAuth2ClientClientCredentialsRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/CreateProjectRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/CreateSignalRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/CreateUserAPITokenRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/CreateUserRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/DataID.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/DataIDs.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/DataPoint.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/DataPointDataError.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/DataPointDataErrorData.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/DataPointDataID.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/DataPointDataIDs.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/DataPointError.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/DataPointErrorAllOf.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/DataPointNormal.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/DataPointTime.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/DeniedEndpoint.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/Edge.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/EdgeConnection.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/EdgeConnectionAllOf.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/EdgeConnectionDownstream.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/EdgeConnectionEdge.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/EdgeConnectionItem.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/EdgeConnectionList.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/EdgeConnectionListPage.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/EdgeConnectionUpstream.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/EdgeOwner.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/Edges.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/ErrorConverted.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/ErrorConvertedAllOf.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/ErrorConvertedAllOfErrorExtra.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/ErrorExtraEmpty.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/ErrorProblem.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/ErrorProblemMedia.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/GetVersion200Response.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/Group.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/Groups.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/HLS.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/HLSList.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/ISCPMessageType.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/ISCPTicket.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/IssueToken200Response.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/JSONWebKey.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/Job.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/JobList.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/JobStatus.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/JobType.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/Jpeg.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/JpegQuality.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/JpegStatus.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/Jpegs.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MP4.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MP4Status.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MP4s.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasBaseTime.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasBaseTimePut.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasBaseTimes.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasCreate.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasReplace.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/Measurement.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementBaseTimeType.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementJob.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementJobStatus.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementJobs.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementMarker.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementMarkerBase.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementMarkerDetailPoint.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementMarkerDetailRange.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementMarkerPoint.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementMarkerPointAllOf.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementMarkerPostRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementMarkerPostRequestPoint.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementMarkerPostRequestRange.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementMarkerPutRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementMarkerPutRequestBase.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementMarkerPutRequestPoint.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementMarkerPutRequestRange.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementMarkerRange.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementMarkerRangeAllOf.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementMarkers.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementMarkersWithoutPage.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementSectionGetResponse.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementSectionsGetResponse.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementSequenceGroup.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementSequenceGroupReplace.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementSequenceGroups.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementSequencesSummary.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementUploadPostResponse.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementUploadStatusGetResponse.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MeasurementUploadStatusesGetResponse.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/Measurements.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MediaMeasurement.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/MediaMeasurementBaseTimeType.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/Member.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/Members.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/OAuth2Client.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/OAuth2ClientGrantType.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/OAuth2ClientResponseType.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/OAuth2ClientWithSecret.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/OAuth2ClientWithSecretAllOf.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/OAuth2Clients.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/OAuth2JWKs.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/Page.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/PageDetail.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/PageV2.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/PatchEdgeRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/PatchEmailRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/PatchUserRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/Playlist.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/Project.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/ProjectEdge.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/ProjectEdges.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/Projects.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/Role.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/Roles.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/Scope.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/Scopes.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/SequenceSummary.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/Signal.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/SignalConversion.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/SignalConversionCSV.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/SignalConversionJSON.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/SignalConversionNumFixedPoint.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/SignalConversionNumFloatingPoint.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/SignalConversionOptionCSV.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/SignalConversionOptionJSON.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/SignalConversionOptionNumFixedPoint.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/SignalConversionOptionNumFloatingPoint.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/SignalConversionOptionSubBytes.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/SignalConversionOptionSubString.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/SignalConversionOptionType.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/SignalConversionSubBytes.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/SignalConversionSubString.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/SignalDisplay.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/Signals.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/TrashedMeasurements.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/UpdateEmailVerifiedRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/UpdateGroupMemberRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/UpdateGroupRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/UpdateOAuth2ClientRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/UpdateProjectEdgeRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/UpdateProjectMemberRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/UpdateProjectRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/UpdateSignalRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/UpdateUserAPITokenRequest.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/User.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/UserAPIToken.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/UserAPITokens.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/UserEmail.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/UserEmailVerification.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/UserPassword.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/Users.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/Video.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/VideoCodecs.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/VideoSourceDataType.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/VideoStatus.java create mode 100644 intdash/src/main/java/org/openapitools/client/model/Videos.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/AuthAuthorizationApiTest.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/AuthClientsApiTest.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/AuthEdgesApiTest.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/AuthGroupMembersApiTest.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/AuthGroupsApiTest.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/AuthMeApiTest.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/AuthOAuth2ApiTest.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/AuthProjectEdgesApiTest.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/AuthProjectMembersApiTest.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/AuthProjectsApiTest.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/AuthRolesApiTest.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/AuthScopesApiTest.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/AuthUsersApiTest.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/BrokerEdgeConnectionsApiTest.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/BrokerIScpApiTest.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/BrokerStreamApiTest.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/MeasDataPointIdsApiTest.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/MeasDataPointsApiTest.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/MeasMeasurementJobsApiTest.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/MeasMeasurementMarkersApiTest.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/MeasMeasurementsApiTest.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/MeasSignalsApiTest.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/MeasTrashedMeasurementsApiTest.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/MeasUploadingMeasurementsApiTest.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/MediaHlsApiTest.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/MediaJobsApiTest.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/MediaLiveApiTest.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/MediaVideosApiTest.java create mode 100644 intdash/src/test/java/com/aptpod/intdash/VersionsVersionApiTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/APITokenIntrospectionRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/APITokenIntrospectionResponseTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/AddGroupMemberRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/AddProjectEdgeRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/AddProjectMemberRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/AllowedEndpointTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/AllowedISCPMessageTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/AssignOwnerRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/AuthPageTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/ChangePasswordRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/CheckAuthorizationResponseTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/CheckHTTPAuthorizationRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/CheckMeHTTPAuthorizationRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/CheckPasswordRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/CheckPasswordResultErrorsInnerTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/CheckPasswordResultTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/CreateEdgeRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/CreateEmailRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/CreateGroupRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/CreateJobRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/CreateJpegRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/CreateMP4RequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/CreateMeasurementChunksResultItemsInnerTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/CreateMeasurementChunksResultTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/CreateMyOAuth2ClientRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/CreateOAuth2ClientAuthorizationCodeRequestAllOfTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/CreateOAuth2ClientAuthorizationCodeRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/CreateOAuth2ClientClientCredentialsRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/CreateProjectRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/CreateSignalRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/CreateUserAPITokenRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/CreateUserRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/DataIDTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/DataIDsTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/DataPointDataErrorDataTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/DataPointDataErrorTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/DataPointDataIDTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/DataPointDataIDsTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/DataPointErrorAllOfTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/DataPointErrorTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/DataPointNormalTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/DataPointTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/DataPointTimeTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/DeniedEndpointTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/EdgeConnectionAllOfTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/EdgeConnectionDownstreamTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/EdgeConnectionEdgeTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/EdgeConnectionItemTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/EdgeConnectionListPageTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/EdgeConnectionListTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/EdgeConnectionTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/EdgeConnectionUpstreamTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/EdgeOwnerTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/EdgeTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/EdgesTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/ErrorConvertedAllOfErrorExtraTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/ErrorConvertedAllOfTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/ErrorConvertedTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/ErrorExtraEmptyTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/ErrorProblemMediaTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/ErrorProblemTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/GetVersion200ResponseTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/GroupTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/GroupsTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/HLSListTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/HLSTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/ISCPMessageTypeTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/ISCPTicketTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/IssueToken200ResponseTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/JSONWebKeyTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/JobListTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/JobStatusTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/JobTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/JobTypeTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/JpegQualityTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/JpegStatusTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/JpegTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/JpegsTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MP4StatusTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MP4Test.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MP4sTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasBaseTimePutTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasBaseTimeTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasBaseTimesTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasCreateTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasReplaceTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementBaseTimeTypeTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementJobStatusTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementJobTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementJobsTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementMarkerBaseTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementMarkerDetailPointTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementMarkerDetailRangeTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementMarkerPointAllOfTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementMarkerPointTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementMarkerPostRequestPointTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementMarkerPostRequestRangeTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementMarkerPostRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementMarkerPutRequestBaseTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementMarkerPutRequestPointTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementMarkerPutRequestRangeTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementMarkerPutRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementMarkerRangeAllOfTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementMarkerRangeTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementMarkerTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementMarkersTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementMarkersWithoutPageTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementSectionGetResponseTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementSectionsGetResponseTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementSequenceGroupReplaceTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementSequenceGroupTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementSequenceGroupsTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementSequencesSummaryTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementUploadPostResponseTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementUploadStatusGetResponseTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementUploadStatusesGetResponseTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MeasurementsTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MediaMeasurementBaseTimeTypeTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MediaMeasurementTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MemberTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/MembersTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/OAuth2ClientGrantTypeTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/OAuth2ClientResponseTypeTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/OAuth2ClientTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/OAuth2ClientWithSecretAllOfTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/OAuth2ClientWithSecretTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/OAuth2ClientsTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/OAuth2JWKsTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/PageDetailTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/PageTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/PageV2Test.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/PatchEdgeRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/PatchEmailRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/PatchUserRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/PlaylistTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/ProjectEdgeTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/ProjectEdgesTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/ProjectTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/ProjectsTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/RoleTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/RolesTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/ScopeTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/ScopesTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/SequenceSummaryTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/SignalConversionCSVTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/SignalConversionJSONTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/SignalConversionNumFixedPointTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/SignalConversionNumFloatingPointTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/SignalConversionOptionCSVTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/SignalConversionOptionJSONTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/SignalConversionOptionNumFixedPointTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/SignalConversionOptionNumFloatingPointTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/SignalConversionOptionSubBytesTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/SignalConversionOptionSubStringTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/SignalConversionOptionTypeTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/SignalConversionSubBytesTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/SignalConversionSubStringTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/SignalConversionTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/SignalDisplayTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/SignalTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/SignalsTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/TrashedMeasurementsTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/UpdateEmailVerifiedRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/UpdateGroupMemberRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/UpdateGroupRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/UpdateOAuth2ClientRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/UpdateProjectEdgeRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/UpdateProjectMemberRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/UpdateProjectRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/UpdateSignalRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/UpdateUserAPITokenRequestTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/UserAPITokenTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/UserAPITokensTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/UserEmailTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/UserEmailVerificationTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/UserPasswordTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/UserTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/UsersTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/VideoCodecsTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/VideoSourceDataTypeTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/VideoStatusTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/VideoTest.java create mode 100644 intdash/src/test/java/org/openapitools/client/model/VideosTest.java create mode 100644 iscp_plugin_settings.json create mode 100644 openapi_public.yaml create mode 100644 theta-iscp-plugin.apk create mode 100644 theta-iscp-plugin/.gitignore create mode 100644 theta-iscp-plugin/.idea/.gitignore create mode 100644 theta-iscp-plugin/.idea/compiler.xml create mode 100644 theta-iscp-plugin/.idea/gradle.xml create mode 100644 theta-iscp-plugin/.idea/jarRepositories.xml create mode 100644 theta-iscp-plugin/.project create mode 100644 theta-iscp-plugin/app/.classpath create mode 100644 theta-iscp-plugin/app/.gitignore create mode 100644 theta-iscp-plugin/app/.project create mode 100644 theta-iscp-plugin/app/build.gradle create mode 100644 theta-iscp-plugin/app/libs/intdash-v2.4.0-next-4a4316946.jar create mode 100644 theta-iscp-plugin/app/libs/javax.ws.rs-api-2.1.1.jar create mode 100644 theta-iscp-plugin/app/proguard-rules.pro create mode 100644 theta-iscp-plugin/app/src/androidTest/java/com/aptpod/theta/plugin/iscpstreaming/ExampleInstrumentedTest.java create mode 100644 theta-iscp-plugin/app/src/androidTest/java/com/aptpod/theta/plugin/iscpstreaming/RealtimeApiTest.kt create mode 100644 theta-iscp-plugin/app/src/main/AndroidManifest.xml create mode 100644 theta-iscp-plugin/app/src/main/assets/licenses.html create mode 100644 theta-iscp-plugin/app/src/main/java/com/aptpod/theta/plugin/iscpstreaming/MainActivity+Audio.kt create mode 100644 theta-iscp-plugin/app/src/main/java/com/aptpod/theta/plugin/iscpstreaming/MainActivity+LED.kt create mode 100644 theta-iscp-plugin/app/src/main/java/com/aptpod/theta/plugin/iscpstreaming/MainActivity+Video.kt create mode 100644 theta-iscp-plugin/app/src/main/java/com/aptpod/theta/plugin/iscpstreaming/MainActivity+iSCP.kt create mode 100644 theta-iscp-plugin/app/src/main/java/com/aptpod/theta/plugin/iscpstreaming/MainActivity.kt create mode 100644 theta-iscp-plugin/app/src/main/java/com/aptpod/theta/plugin/iscpstreaming/gles/Drawable2d.java create mode 100644 theta-iscp-plugin/app/src/main/java/com/aptpod/theta/plugin/iscpstreaming/gles/EglCore.java create mode 100644 theta-iscp-plugin/app/src/main/java/com/aptpod/theta/plugin/iscpstreaming/gles/EglSurfaceBase.java create mode 100644 theta-iscp-plugin/app/src/main/java/com/aptpod/theta/plugin/iscpstreaming/gles/FullFrameRect.java create mode 100644 theta-iscp-plugin/app/src/main/java/com/aptpod/theta/plugin/iscpstreaming/gles/GlUtil.java create mode 100644 theta-iscp-plugin/app/src/main/java/com/aptpod/theta/plugin/iscpstreaming/gles/Texture2dProgram.java create mode 100644 theta-iscp-plugin/app/src/main/java/com/aptpod/theta/plugin/iscpstreaming/gles/WindowSurface.java create mode 100644 theta-iscp-plugin/app/src/main/java/com/aptpod/theta/plugin/iscpstreaming/helpers/ApplicationSettings.kt create mode 100644 theta-iscp-plugin/app/src/main/java/com/aptpod/theta/plugin/iscpstreaming/helpers/MySystemClock.kt create mode 100644 theta-iscp-plugin/app/src/main/java/com/aptpod/theta/plugin/iscpstreaming/iscp/H264Payload.kt create mode 100644 theta-iscp-plugin/app/src/main/java/com/aptpod/theta/plugin/iscpstreaming/iscp/IscpConnection.kt create mode 100644 theta-iscp-plugin/app/src/main/java/com/aptpod/theta/plugin/iscpstreaming/iscp/PCMPayload.kt create mode 100644 theta-iscp-plugin/app/src/main/java/com/aptpod/theta/plugin/iscpstreaming/media/H264UnitParser.kt create mode 100644 theta-iscp-plugin/app/src/main/java/com/aptpod/theta/plugin/iscpstreaming/media/SurfaceViewRenderer.java create mode 100644 theta-iscp-plugin/app/src/main/java/com/aptpod/theta/plugin/iscpstreaming/media/TextureMovieEncoder.java create mode 100644 theta-iscp-plugin/app/src/main/java/com/aptpod/theta/plugin/iscpstreaming/media/VideoEncoderCore.java create mode 100644 theta-iscp-plugin/app/src/main/res/drawable-v24/ic_launcher_foreground.xml create mode 100644 theta-iscp-plugin/app/src/main/res/drawable/ic_launcher_background.xml create mode 100644 theta-iscp-plugin/app/src/main/res/layout/activity_main.xml create mode 100644 theta-iscp-plugin/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml create mode 100644 theta-iscp-plugin/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml create mode 100644 theta-iscp-plugin/app/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 theta-iscp-plugin/app/src/main/res/mipmap-hdpi/ic_launcher_round.png create mode 100644 theta-iscp-plugin/app/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 theta-iscp-plugin/app/src/main/res/mipmap-mdpi/ic_launcher_round.png create mode 100644 theta-iscp-plugin/app/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 theta-iscp-plugin/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png create mode 100644 theta-iscp-plugin/app/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 theta-iscp-plugin/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png create mode 100644 theta-iscp-plugin/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 theta-iscp-plugin/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png create mode 100644 theta-iscp-plugin/app/src/main/res/values/colors.xml create mode 100644 theta-iscp-plugin/app/src/main/res/values/strings.xml create mode 100644 theta-iscp-plugin/app/src/main/res/values/styles.xml create mode 100644 theta-iscp-plugin/app/src/test/java/com/aptpod/theta/plugin/iscpstreaming/ExampleUnitTest.java create mode 100644 theta-iscp-plugin/build.gradle create mode 100644 theta-iscp-plugin/gradle.properties create mode 100644 theta-iscp-plugin/gradle/wrapper/gradle-wrapper.jar create mode 100644 theta-iscp-plugin/gradle/wrapper/gradle-wrapper.properties create mode 100644 theta-iscp-plugin/gradlew create mode 100644 theta-iscp-plugin/gradlew.bat create mode 100644 theta-iscp-plugin/settings.gradle diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..6bccbdb --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..75dbf44 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + 1695722270888 + + + + \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e2c198f --- /dev/null +++ b/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2023 aptpod,Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/README.md b/README.md new file mode 100644 index 0000000..740d72c --- /dev/null +++ b/README.md @@ -0,0 +1,125 @@ +# THETA iSCP Plugin + +[RICHO THETA](https://www.ricoh360.com/ja/theta/) で [intdash](https://www.aptpod.co.jp/products/software/intdash/) サーバーへ360°画像データをストリーミング可能なプラグインです。 + + +THETAのOSはAndroidOSとなっており、[iscp-kt](https://github.com/aptpod/iscp-kt)を利用してデータ伝送を行うことが可能です。 + +※ご利用には intdash との契約が必要です。 + +※動作確認済みのTEHTAは THETA V (3.82.1) のみです。他の機種でも動く可能性もありますが動作未検証です。 + + +## セットアップ + +ご利用にはいくつかの作業が必要です。 + +#### 1\. THETAを開発者モードにする。 + +プラグインの利用にはプラグインを動かすTHETAを開発者モードにする必要があります。 + +また、開発者モードにするには [RICOH THETA プラグイン パートナープログラム](https://jp.ricoh.com/release/2018/0628_1) に登録する必要があります。 + +パートナープログラムへの登録は [こちら](https://www8.webcas.net/db/pub/ricoh/thetaplugin/create/input) より行いました。 + +参考記事: https://qiita.com/mShiiina/items/55d98f366e650ca42251 + +#### 2\. アプリのインストール + +開発者モードにすることができたら、[adb](https://developer.android.com/studio/command-line/adb?hl=ja) コマンドを利用してプラグインをTHETAへインストールします。 + +``` +adb install theta-iscp-plugin.apk +``` + +#### 3\. アプリへのパーミッション付与。 + +THETA Vへプラグインをインストールする場合、端末に画面が無いためOSを直接操作できません。 +その為、[scrcpy](https://github.com/Genymobile/scrcpy) 等を用いてAndroidOSの画面ミラーリングします。 + +ミラーリングができたら `Settings` -> `Apps` -> `THETA iSCP Streaming` -> `Permissions` を選択し + +- Camera +- Microphone +- Storage + +の権限を付与してください。 + +※ミラーリングした段階でホーム画面以外が表示されていた場合は `ALTキー+Hキー` でホーム画面を表示してください。 + +#### 4\. THETAをクライアントモードにしインターネットと接続 + +THETA Vを利用する場合は [こちら](https://support.theta360.com/ja/manual/v/content/prepare/prepare_08.html) を参考にインターネットに繋がる様にしてください。 + +#### 5\. ストリーム設定 + +アクセス情報や、ストリーム設定は [iscp_plugin_settings.json](iscp_plugin_settings.json) を利用します。 + +```json +{ + "intdash" : { + "server_url" : "https://example.com", + "server_path" : "/api", + "node_client_id" : "00000000-0000-0000-0000-000000000000", + "node_client_secret" : "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", + "save_to_server" : false + }, + "video" : { + "enabled" : true, + "resolution" : { // THETA V supported resolutions: [ 3840x1920, 1920x960, 1024x512, 640x320 ] + "width" : 1920, + "height" : 960 + }, + "sample_rate" : 29.97, // THETA V's frame rate is fixed at 29.97 fps. + "encode_rate" : 15, // Frame rate to be encoded and transmitted. + "bit_rate" : 2000000, + "i_frame_interval" : 2 + } +} +``` + +`node_client_id` と `node_client_secret` には intdashサービスのエッジを作成時に発行されるIDとシークレット情報を設定してください。 + +上記を修正後、adbコマンドで設定ファイルをTHETA内に設置します。 + +``` +adb push iscp_plugin_settings.json /storage/self/primary/ +``` + +#### 6\. プラグインアプリ設定 + +[こちら](https://support.theta360.com/ja/download/pcmac/) よりRICHO THETAアプリをインストールし、アプリ上部の `プラグイン` -> `プラグイン管理...` より起動するプラグインを `THETA iSCP Streaming` に設定してください。 + +## 利用方法 + +THETAがクライアントモードでかつ、WiFiに接続している事を確認します。 + +プラグインアプリ設定まで行えた場合は、THETAのモードボタンを長押しして、プラグインアプリを起動できます。 + +計測開始・停止は端末中央のシャッターボタンを押すことで行えます。 + +## 開発者向け情報 + +以下は、開発者向けの情報になります。 + +### 開発環境 + +- Android™ Studio Chipmunk | 2021.2.1 Patch 2 +- Android Gradle Plugin Version 7.2.2 +- Gradle Version 7.3.3 +- Kotlin Gradle Plugin Version 1.8.20 +- compileSdk 26 +- minSdk 25 +- targetSdk 33 + +### intdash API Client + +intdash APIと連携には[OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator)より自動生成されたクライアントを利用します。 + +クライアントの生成に利用したコマンドは下記を利用しました。 + +``` +openapi-generator-cli generate -i openapi_public.yaml -g java -o intdash --additional-properties=library=okhttp-gson,apiPackage=com.aptpod.intdash,groupId=com.aptpod,artifactId=intdash,sourceFolder=src/main/java,disallowAdditionalPropertiesIfNotPresent=false,dateLibrary=legacy +``` + +その他の intdash API Client の設定方法は [こちら](https://docs.intdash.jp/manual/api-sdk-docs-site/latest/ja/rest/rest-client-examples.html) を参照してください。 \ No newline at end of file diff --git a/intdash/.github/workflows/maven.yml b/intdash/.github/workflows/maven.yml new file mode 100644 index 0000000..625119a --- /dev/null +++ b/intdash/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build intdash API specification + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/intdash/.gitignore b/intdash/.gitignore new file mode 100644 index 0000000..a530464 --- /dev/null +++ b/intdash/.gitignore @@ -0,0 +1,21 @@ +*.class + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.ear + +# exclude jar for gradle wrapper +!gradle/wrapper/*.jar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* + +# build files +**/target +target +.gradle +build diff --git a/intdash/.idea/compiler.xml b/intdash/.idea/compiler.xml new file mode 100644 index 0000000..61a9130 --- /dev/null +++ b/intdash/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/intdash/.idea/gradle.xml b/intdash/.idea/gradle.xml new file mode 100644 index 0000000..38d33d6 --- /dev/null +++ b/intdash/.idea/gradle.xml @@ -0,0 +1,18 @@ + + + + + + \ No newline at end of file diff --git a/intdash/.idea/jarRepositories.xml b/intdash/.idea/jarRepositories.xml new file mode 100644 index 0000000..fdc392f --- /dev/null +++ b/intdash/.idea/jarRepositories.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/intdash/.idea/misc.xml b/intdash/.idea/misc.xml new file mode 100644 index 0000000..0ad17cb --- /dev/null +++ b/intdash/.idea/misc.xml @@ -0,0 +1,10 @@ + + + + + + + + + \ No newline at end of file diff --git a/intdash/.idea/vcs.xml b/intdash/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/intdash/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/intdash/.idea/workspace.xml b/intdash/.idea/workspace.xml new file mode 100644 index 0000000..3eb54da --- /dev/null +++ b/intdash/.idea/workspace.xml @@ -0,0 +1,312 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1695113890937 + + + + + + + \ No newline at end of file diff --git a/intdash/.openapi-generator-ignore b/intdash/.openapi-generator-ignore new file mode 100644 index 0000000..7484ee5 --- /dev/null +++ b/intdash/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/intdash/.openapi-generator/FILES b/intdash/.openapi-generator/FILES new file mode 100644 index 0000000..17df565 --- /dev/null +++ b/intdash/.openapi-generator/FILES @@ -0,0 +1,678 @@ +.github/workflows/maven.yml +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +build.gradle +build.sbt +docs/APITokenIntrospectionRequest.md +docs/APITokenIntrospectionResponse.md +docs/AddGroupMemberRequest.md +docs/AddProjectEdgeRequest.md +docs/AddProjectMemberRequest.md +docs/AllowedEndpoint.md +docs/AllowedISCPMessage.md +docs/AssignOwnerRequest.md +docs/AuthAuthorizationApi.md +docs/AuthClientsApi.md +docs/AuthEdgesApi.md +docs/AuthGroupMembersApi.md +docs/AuthGroupsApi.md +docs/AuthMeApi.md +docs/AuthOAuth2Api.md +docs/AuthPage.md +docs/AuthProjectEdgesApi.md +docs/AuthProjectMembersApi.md +docs/AuthProjectsApi.md +docs/AuthRolesApi.md +docs/AuthScopesApi.md +docs/AuthUsersApi.md +docs/BrokerEdgeConnectionsApi.md +docs/BrokerIScpApi.md +docs/BrokerStreamApi.md +docs/ChangePasswordRequest.md +docs/CheckAuthorizationResponse.md +docs/CheckHTTPAuthorizationRequest.md +docs/CheckMeHTTPAuthorizationRequest.md +docs/CheckPasswordRequest.md +docs/CheckPasswordResult.md +docs/CheckPasswordResultErrorsInner.md +docs/CreateEdgeRequest.md +docs/CreateEmailRequest.md +docs/CreateGroupRequest.md +docs/CreateJobRequest.md +docs/CreateJpegRequest.md +docs/CreateMP4Request.md +docs/CreateMeasurementChunksResult.md +docs/CreateMeasurementChunksResultItemsInner.md +docs/CreateMyOAuth2ClientRequest.md +docs/CreateOAuth2ClientAuthorizationCodeRequest.md +docs/CreateOAuth2ClientAuthorizationCodeRequestAllOf.md +docs/CreateOAuth2ClientClientCredentialsRequest.md +docs/CreateProjectRequest.md +docs/CreateSignalRequest.md +docs/CreateUserAPITokenRequest.md +docs/CreateUserRequest.md +docs/DataID.md +docs/DataIDs.md +docs/DataPoint.md +docs/DataPointDataError.md +docs/DataPointDataErrorData.md +docs/DataPointDataID.md +docs/DataPointDataIDs.md +docs/DataPointError.md +docs/DataPointErrorAllOf.md +docs/DataPointNormal.md +docs/DataPointTime.md +docs/DeniedEndpoint.md +docs/Edge.md +docs/EdgeConnection.md +docs/EdgeConnectionAllOf.md +docs/EdgeConnectionDownstream.md +docs/EdgeConnectionEdge.md +docs/EdgeConnectionItem.md +docs/EdgeConnectionList.md +docs/EdgeConnectionListPage.md +docs/EdgeConnectionUpstream.md +docs/EdgeOwner.md +docs/Edges.md +docs/ErrorConverted.md +docs/ErrorConvertedAllOf.md +docs/ErrorConvertedAllOfErrorExtra.md +docs/ErrorExtraEmpty.md +docs/ErrorProblem.md +docs/ErrorProblemMedia.md +docs/GetVersion200Response.md +docs/Group.md +docs/Groups.md +docs/HLS.md +docs/HLSList.md +docs/ISCPMessageType.md +docs/ISCPTicket.md +docs/IssueToken200Response.md +docs/JSONWebKey.md +docs/Job.md +docs/JobList.md +docs/JobStatus.md +docs/JobType.md +docs/Jpeg.md +docs/JpegQuality.md +docs/JpegStatus.md +docs/Jpegs.md +docs/MP4.md +docs/MP4Status.md +docs/MP4s.md +docs/MeasBaseTime.md +docs/MeasBaseTimePut.md +docs/MeasBaseTimes.md +docs/MeasCreate.md +docs/MeasDataPointIdsApi.md +docs/MeasDataPointsApi.md +docs/MeasMeasurementJobsApi.md +docs/MeasMeasurementMarkersApi.md +docs/MeasMeasurementsApi.md +docs/MeasReplace.md +docs/MeasSignalsApi.md +docs/MeasTrashedMeasurementsApi.md +docs/MeasUploadingMeasurementsApi.md +docs/Measurement.md +docs/MeasurementBaseTimeType.md +docs/MeasurementJob.md +docs/MeasurementJobStatus.md +docs/MeasurementJobs.md +docs/MeasurementMarker.md +docs/MeasurementMarkerBase.md +docs/MeasurementMarkerDetailPoint.md +docs/MeasurementMarkerDetailRange.md +docs/MeasurementMarkerPoint.md +docs/MeasurementMarkerPointAllOf.md +docs/MeasurementMarkerPostRequest.md +docs/MeasurementMarkerPostRequestPoint.md +docs/MeasurementMarkerPostRequestRange.md +docs/MeasurementMarkerPutRequest.md +docs/MeasurementMarkerPutRequestBase.md +docs/MeasurementMarkerPutRequestPoint.md +docs/MeasurementMarkerPutRequestRange.md +docs/MeasurementMarkerRange.md +docs/MeasurementMarkerRangeAllOf.md +docs/MeasurementMarkers.md +docs/MeasurementMarkersWithoutPage.md +docs/MeasurementSectionGetResponse.md +docs/MeasurementSectionsGetResponse.md +docs/MeasurementSequenceGroup.md +docs/MeasurementSequenceGroupReplace.md +docs/MeasurementSequenceGroups.md +docs/MeasurementSequencesSummary.md +docs/MeasurementUploadPostResponse.md +docs/MeasurementUploadStatusGetResponse.md +docs/MeasurementUploadStatusesGetResponse.md +docs/Measurements.md +docs/MediaHlsApi.md +docs/MediaJobsApi.md +docs/MediaLiveApi.md +docs/MediaMeasurement.md +docs/MediaMeasurementBaseTimeType.md +docs/MediaVideosApi.md +docs/Member.md +docs/Members.md +docs/OAuth2Client.md +docs/OAuth2ClientGrantType.md +docs/OAuth2ClientResponseType.md +docs/OAuth2ClientWithSecret.md +docs/OAuth2ClientWithSecretAllOf.md +docs/OAuth2Clients.md +docs/OAuth2JWKs.md +docs/Page.md +docs/PageDetail.md +docs/PageV2.md +docs/PatchEdgeRequest.md +docs/PatchEmailRequest.md +docs/PatchUserRequest.md +docs/Playlist.md +docs/Project.md +docs/ProjectEdge.md +docs/ProjectEdges.md +docs/Projects.md +docs/Role.md +docs/Roles.md +docs/Scope.md +docs/Scopes.md +docs/SequenceSummary.md +docs/Signal.md +docs/SignalConversion.md +docs/SignalConversionCSV.md +docs/SignalConversionJSON.md +docs/SignalConversionNumFixedPoint.md +docs/SignalConversionNumFloatingPoint.md +docs/SignalConversionOptionCSV.md +docs/SignalConversionOptionJSON.md +docs/SignalConversionOptionNumFixedPoint.md +docs/SignalConversionOptionNumFloatingPoint.md +docs/SignalConversionOptionSubBytes.md +docs/SignalConversionOptionSubString.md +docs/SignalConversionOptionType.md +docs/SignalConversionSubBytes.md +docs/SignalConversionSubString.md +docs/SignalDisplay.md +docs/Signals.md +docs/TrashedMeasurements.md +docs/UpdateEmailVerifiedRequest.md +docs/UpdateGroupMemberRequest.md +docs/UpdateGroupRequest.md +docs/UpdateOAuth2ClientRequest.md +docs/UpdateProjectEdgeRequest.md +docs/UpdateProjectMemberRequest.md +docs/UpdateProjectRequest.md +docs/UpdateSignalRequest.md +docs/UpdateUserAPITokenRequest.md +docs/User.md +docs/UserAPIToken.md +docs/UserAPITokens.md +docs/UserEmail.md +docs/UserEmailVerification.md +docs/UserPassword.md +docs/Users.md +docs/VersionsVersionApi.md +docs/Video.md +docs/VideoCodecs.md +docs/VideoSourceDataType.md +docs/VideoStatus.md +docs/Videos.md +git_push.sh +gradle.properties +gradle/wrapper/gradle-wrapper.jar +gradle/wrapper/gradle-wrapper.properties +gradlew +gradlew.bat +pom.xml +settings.gradle +src/main/AndroidManifest.xml +src/main/java/com/aptpod/ApiCallback.java +src/main/java/com/aptpod/ApiClient.java +src/main/java/com/aptpod/ApiException.java +src/main/java/com/aptpod/ApiResponse.java +src/main/java/com/aptpod/Configuration.java +src/main/java/com/aptpod/GzipRequestInterceptor.java +src/main/java/com/aptpod/JSON.java +src/main/java/com/aptpod/Pair.java +src/main/java/com/aptpod/ProgressRequestBody.java +src/main/java/com/aptpod/ProgressResponseBody.java +src/main/java/com/aptpod/ServerConfiguration.java +src/main/java/com/aptpod/ServerVariable.java +src/main/java/com/aptpod/StringUtil.java +src/main/java/com/aptpod/auth/ApiKeyAuth.java +src/main/java/com/aptpod/auth/Authentication.java +src/main/java/com/aptpod/auth/HttpBasicAuth.java +src/main/java/com/aptpod/auth/HttpBearerAuth.java +src/main/java/com/aptpod/auth/OAuth.java +src/main/java/com/aptpod/auth/OAuthFlow.java +src/main/java/com/aptpod/auth/OAuthOkHttpClient.java +src/main/java/com/aptpod/auth/RetryingOAuth.java +src/main/java/com/aptpod/intdash/AuthAuthorizationApi.java +src/main/java/com/aptpod/intdash/AuthClientsApi.java +src/main/java/com/aptpod/intdash/AuthEdgesApi.java +src/main/java/com/aptpod/intdash/AuthGroupMembersApi.java +src/main/java/com/aptpod/intdash/AuthGroupsApi.java +src/main/java/com/aptpod/intdash/AuthMeApi.java +src/main/java/com/aptpod/intdash/AuthOAuth2Api.java +src/main/java/com/aptpod/intdash/AuthProjectEdgesApi.java +src/main/java/com/aptpod/intdash/AuthProjectMembersApi.java +src/main/java/com/aptpod/intdash/AuthProjectsApi.java +src/main/java/com/aptpod/intdash/AuthRolesApi.java +src/main/java/com/aptpod/intdash/AuthScopesApi.java +src/main/java/com/aptpod/intdash/AuthUsersApi.java +src/main/java/com/aptpod/intdash/BrokerEdgeConnectionsApi.java +src/main/java/com/aptpod/intdash/BrokerIScpApi.java +src/main/java/com/aptpod/intdash/BrokerStreamApi.java +src/main/java/com/aptpod/intdash/MeasDataPointIdsApi.java +src/main/java/com/aptpod/intdash/MeasDataPointsApi.java +src/main/java/com/aptpod/intdash/MeasMeasurementJobsApi.java +src/main/java/com/aptpod/intdash/MeasMeasurementMarkersApi.java +src/main/java/com/aptpod/intdash/MeasMeasurementsApi.java +src/main/java/com/aptpod/intdash/MeasSignalsApi.java +src/main/java/com/aptpod/intdash/MeasTrashedMeasurementsApi.java +src/main/java/com/aptpod/intdash/MeasUploadingMeasurementsApi.java +src/main/java/com/aptpod/intdash/MediaHlsApi.java +src/main/java/com/aptpod/intdash/MediaJobsApi.java +src/main/java/com/aptpod/intdash/MediaLiveApi.java +src/main/java/com/aptpod/intdash/MediaVideosApi.java +src/main/java/com/aptpod/intdash/VersionsVersionApi.java +src/main/java/org/openapitools/client/model/APITokenIntrospectionRequest.java +src/main/java/org/openapitools/client/model/APITokenIntrospectionResponse.java +src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +src/main/java/org/openapitools/client/model/AddGroupMemberRequest.java +src/main/java/org/openapitools/client/model/AddProjectEdgeRequest.java +src/main/java/org/openapitools/client/model/AddProjectMemberRequest.java +src/main/java/org/openapitools/client/model/AllowedEndpoint.java +src/main/java/org/openapitools/client/model/AllowedISCPMessage.java +src/main/java/org/openapitools/client/model/AssignOwnerRequest.java +src/main/java/org/openapitools/client/model/AuthPage.java +src/main/java/org/openapitools/client/model/ChangePasswordRequest.java +src/main/java/org/openapitools/client/model/CheckAuthorizationResponse.java +src/main/java/org/openapitools/client/model/CheckHTTPAuthorizationRequest.java +src/main/java/org/openapitools/client/model/CheckMeHTTPAuthorizationRequest.java +src/main/java/org/openapitools/client/model/CheckPasswordRequest.java +src/main/java/org/openapitools/client/model/CheckPasswordResult.java +src/main/java/org/openapitools/client/model/CheckPasswordResultErrorsInner.java +src/main/java/org/openapitools/client/model/CreateEdgeRequest.java +src/main/java/org/openapitools/client/model/CreateEmailRequest.java +src/main/java/org/openapitools/client/model/CreateGroupRequest.java +src/main/java/org/openapitools/client/model/CreateJobRequest.java +src/main/java/org/openapitools/client/model/CreateJpegRequest.java +src/main/java/org/openapitools/client/model/CreateMP4Request.java +src/main/java/org/openapitools/client/model/CreateMeasurementChunksResult.java +src/main/java/org/openapitools/client/model/CreateMeasurementChunksResultItemsInner.java +src/main/java/org/openapitools/client/model/CreateMyOAuth2ClientRequest.java +src/main/java/org/openapitools/client/model/CreateOAuth2ClientAuthorizationCodeRequest.java +src/main/java/org/openapitools/client/model/CreateOAuth2ClientAuthorizationCodeRequestAllOf.java +src/main/java/org/openapitools/client/model/CreateOAuth2ClientClientCredentialsRequest.java +src/main/java/org/openapitools/client/model/CreateProjectRequest.java +src/main/java/org/openapitools/client/model/CreateSignalRequest.java +src/main/java/org/openapitools/client/model/CreateUserAPITokenRequest.java +src/main/java/org/openapitools/client/model/CreateUserRequest.java +src/main/java/org/openapitools/client/model/DataID.java +src/main/java/org/openapitools/client/model/DataIDs.java +src/main/java/org/openapitools/client/model/DataPoint.java +src/main/java/org/openapitools/client/model/DataPointDataError.java +src/main/java/org/openapitools/client/model/DataPointDataErrorData.java +src/main/java/org/openapitools/client/model/DataPointDataID.java +src/main/java/org/openapitools/client/model/DataPointDataIDs.java +src/main/java/org/openapitools/client/model/DataPointError.java +src/main/java/org/openapitools/client/model/DataPointErrorAllOf.java +src/main/java/org/openapitools/client/model/DataPointNormal.java +src/main/java/org/openapitools/client/model/DataPointTime.java +src/main/java/org/openapitools/client/model/DeniedEndpoint.java +src/main/java/org/openapitools/client/model/Edge.java +src/main/java/org/openapitools/client/model/EdgeConnection.java +src/main/java/org/openapitools/client/model/EdgeConnectionAllOf.java +src/main/java/org/openapitools/client/model/EdgeConnectionDownstream.java +src/main/java/org/openapitools/client/model/EdgeConnectionEdge.java +src/main/java/org/openapitools/client/model/EdgeConnectionItem.java +src/main/java/org/openapitools/client/model/EdgeConnectionList.java +src/main/java/org/openapitools/client/model/EdgeConnectionListPage.java +src/main/java/org/openapitools/client/model/EdgeConnectionUpstream.java +src/main/java/org/openapitools/client/model/EdgeOwner.java +src/main/java/org/openapitools/client/model/Edges.java +src/main/java/org/openapitools/client/model/ErrorConverted.java +src/main/java/org/openapitools/client/model/ErrorConvertedAllOf.java +src/main/java/org/openapitools/client/model/ErrorConvertedAllOfErrorExtra.java +src/main/java/org/openapitools/client/model/ErrorExtraEmpty.java +src/main/java/org/openapitools/client/model/ErrorProblem.java +src/main/java/org/openapitools/client/model/ErrorProblemMedia.java +src/main/java/org/openapitools/client/model/GetVersion200Response.java +src/main/java/org/openapitools/client/model/Group.java +src/main/java/org/openapitools/client/model/Groups.java +src/main/java/org/openapitools/client/model/HLS.java +src/main/java/org/openapitools/client/model/HLSList.java +src/main/java/org/openapitools/client/model/ISCPMessageType.java +src/main/java/org/openapitools/client/model/ISCPTicket.java +src/main/java/org/openapitools/client/model/IssueToken200Response.java +src/main/java/org/openapitools/client/model/JSONWebKey.java +src/main/java/org/openapitools/client/model/Job.java +src/main/java/org/openapitools/client/model/JobList.java +src/main/java/org/openapitools/client/model/JobStatus.java +src/main/java/org/openapitools/client/model/JobType.java +src/main/java/org/openapitools/client/model/Jpeg.java +src/main/java/org/openapitools/client/model/JpegQuality.java +src/main/java/org/openapitools/client/model/JpegStatus.java +src/main/java/org/openapitools/client/model/Jpegs.java +src/main/java/org/openapitools/client/model/MP4.java +src/main/java/org/openapitools/client/model/MP4Status.java +src/main/java/org/openapitools/client/model/MP4s.java +src/main/java/org/openapitools/client/model/MeasBaseTime.java +src/main/java/org/openapitools/client/model/MeasBaseTimePut.java +src/main/java/org/openapitools/client/model/MeasBaseTimes.java +src/main/java/org/openapitools/client/model/MeasCreate.java +src/main/java/org/openapitools/client/model/MeasReplace.java +src/main/java/org/openapitools/client/model/Measurement.java +src/main/java/org/openapitools/client/model/MeasurementBaseTimeType.java +src/main/java/org/openapitools/client/model/MeasurementJob.java +src/main/java/org/openapitools/client/model/MeasurementJobStatus.java +src/main/java/org/openapitools/client/model/MeasurementJobs.java +src/main/java/org/openapitools/client/model/MeasurementMarker.java +src/main/java/org/openapitools/client/model/MeasurementMarkerBase.java +src/main/java/org/openapitools/client/model/MeasurementMarkerDetailPoint.java +src/main/java/org/openapitools/client/model/MeasurementMarkerDetailRange.java +src/main/java/org/openapitools/client/model/MeasurementMarkerPoint.java +src/main/java/org/openapitools/client/model/MeasurementMarkerPointAllOf.java +src/main/java/org/openapitools/client/model/MeasurementMarkerPostRequest.java +src/main/java/org/openapitools/client/model/MeasurementMarkerPostRequestPoint.java +src/main/java/org/openapitools/client/model/MeasurementMarkerPostRequestRange.java +src/main/java/org/openapitools/client/model/MeasurementMarkerPutRequest.java +src/main/java/org/openapitools/client/model/MeasurementMarkerPutRequestBase.java +src/main/java/org/openapitools/client/model/MeasurementMarkerPutRequestPoint.java +src/main/java/org/openapitools/client/model/MeasurementMarkerPutRequestRange.java +src/main/java/org/openapitools/client/model/MeasurementMarkerRange.java +src/main/java/org/openapitools/client/model/MeasurementMarkerRangeAllOf.java +src/main/java/org/openapitools/client/model/MeasurementMarkers.java +src/main/java/org/openapitools/client/model/MeasurementMarkersWithoutPage.java +src/main/java/org/openapitools/client/model/MeasurementSectionGetResponse.java +src/main/java/org/openapitools/client/model/MeasurementSectionsGetResponse.java +src/main/java/org/openapitools/client/model/MeasurementSequenceGroup.java +src/main/java/org/openapitools/client/model/MeasurementSequenceGroupReplace.java +src/main/java/org/openapitools/client/model/MeasurementSequenceGroups.java +src/main/java/org/openapitools/client/model/MeasurementSequencesSummary.java +src/main/java/org/openapitools/client/model/MeasurementUploadPostResponse.java +src/main/java/org/openapitools/client/model/MeasurementUploadStatusGetResponse.java +src/main/java/org/openapitools/client/model/MeasurementUploadStatusesGetResponse.java +src/main/java/org/openapitools/client/model/Measurements.java +src/main/java/org/openapitools/client/model/MediaMeasurement.java +src/main/java/org/openapitools/client/model/MediaMeasurementBaseTimeType.java +src/main/java/org/openapitools/client/model/Member.java +src/main/java/org/openapitools/client/model/Members.java +src/main/java/org/openapitools/client/model/OAuth2Client.java +src/main/java/org/openapitools/client/model/OAuth2ClientGrantType.java +src/main/java/org/openapitools/client/model/OAuth2ClientResponseType.java +src/main/java/org/openapitools/client/model/OAuth2ClientWithSecret.java +src/main/java/org/openapitools/client/model/OAuth2ClientWithSecretAllOf.java +src/main/java/org/openapitools/client/model/OAuth2Clients.java +src/main/java/org/openapitools/client/model/OAuth2JWKs.java +src/main/java/org/openapitools/client/model/Page.java +src/main/java/org/openapitools/client/model/PageDetail.java +src/main/java/org/openapitools/client/model/PageV2.java +src/main/java/org/openapitools/client/model/PatchEdgeRequest.java +src/main/java/org/openapitools/client/model/PatchEmailRequest.java +src/main/java/org/openapitools/client/model/PatchUserRequest.java +src/main/java/org/openapitools/client/model/Playlist.java +src/main/java/org/openapitools/client/model/Project.java +src/main/java/org/openapitools/client/model/ProjectEdge.java +src/main/java/org/openapitools/client/model/ProjectEdges.java +src/main/java/org/openapitools/client/model/Projects.java +src/main/java/org/openapitools/client/model/Role.java +src/main/java/org/openapitools/client/model/Roles.java +src/main/java/org/openapitools/client/model/Scope.java +src/main/java/org/openapitools/client/model/Scopes.java +src/main/java/org/openapitools/client/model/SequenceSummary.java +src/main/java/org/openapitools/client/model/Signal.java +src/main/java/org/openapitools/client/model/SignalConversion.java +src/main/java/org/openapitools/client/model/SignalConversionCSV.java +src/main/java/org/openapitools/client/model/SignalConversionJSON.java +src/main/java/org/openapitools/client/model/SignalConversionNumFixedPoint.java +src/main/java/org/openapitools/client/model/SignalConversionNumFloatingPoint.java +src/main/java/org/openapitools/client/model/SignalConversionOptionCSV.java +src/main/java/org/openapitools/client/model/SignalConversionOptionJSON.java +src/main/java/org/openapitools/client/model/SignalConversionOptionNumFixedPoint.java +src/main/java/org/openapitools/client/model/SignalConversionOptionNumFloatingPoint.java +src/main/java/org/openapitools/client/model/SignalConversionOptionSubBytes.java +src/main/java/org/openapitools/client/model/SignalConversionOptionSubString.java +src/main/java/org/openapitools/client/model/SignalConversionOptionType.java +src/main/java/org/openapitools/client/model/SignalConversionSubBytes.java +src/main/java/org/openapitools/client/model/SignalConversionSubString.java +src/main/java/org/openapitools/client/model/SignalDisplay.java +src/main/java/org/openapitools/client/model/Signals.java +src/main/java/org/openapitools/client/model/TrashedMeasurements.java +src/main/java/org/openapitools/client/model/UpdateEmailVerifiedRequest.java +src/main/java/org/openapitools/client/model/UpdateGroupMemberRequest.java +src/main/java/org/openapitools/client/model/UpdateGroupRequest.java +src/main/java/org/openapitools/client/model/UpdateOAuth2ClientRequest.java +src/main/java/org/openapitools/client/model/UpdateProjectEdgeRequest.java +src/main/java/org/openapitools/client/model/UpdateProjectMemberRequest.java +src/main/java/org/openapitools/client/model/UpdateProjectRequest.java +src/main/java/org/openapitools/client/model/UpdateSignalRequest.java +src/main/java/org/openapitools/client/model/UpdateUserAPITokenRequest.java +src/main/java/org/openapitools/client/model/User.java +src/main/java/org/openapitools/client/model/UserAPIToken.java +src/main/java/org/openapitools/client/model/UserAPITokens.java +src/main/java/org/openapitools/client/model/UserEmail.java +src/main/java/org/openapitools/client/model/UserEmailVerification.java +src/main/java/org/openapitools/client/model/UserPassword.java +src/main/java/org/openapitools/client/model/Users.java +src/main/java/org/openapitools/client/model/Video.java +src/main/java/org/openapitools/client/model/VideoCodecs.java +src/main/java/org/openapitools/client/model/VideoSourceDataType.java +src/main/java/org/openapitools/client/model/VideoStatus.java +src/main/java/org/openapitools/client/model/Videos.java +src/test/java/com/aptpod/intdash/AuthAuthorizationApiTest.java +src/test/java/com/aptpod/intdash/AuthClientsApiTest.java +src/test/java/com/aptpod/intdash/AuthEdgesApiTest.java +src/test/java/com/aptpod/intdash/AuthGroupMembersApiTest.java +src/test/java/com/aptpod/intdash/AuthGroupsApiTest.java +src/test/java/com/aptpod/intdash/AuthMeApiTest.java +src/test/java/com/aptpod/intdash/AuthOAuth2ApiTest.java +src/test/java/com/aptpod/intdash/AuthProjectEdgesApiTest.java +src/test/java/com/aptpod/intdash/AuthProjectMembersApiTest.java +src/test/java/com/aptpod/intdash/AuthProjectsApiTest.java +src/test/java/com/aptpod/intdash/AuthRolesApiTest.java +src/test/java/com/aptpod/intdash/AuthScopesApiTest.java +src/test/java/com/aptpod/intdash/AuthUsersApiTest.java +src/test/java/com/aptpod/intdash/BrokerEdgeConnectionsApiTest.java +src/test/java/com/aptpod/intdash/BrokerIScpApiTest.java +src/test/java/com/aptpod/intdash/BrokerStreamApiTest.java +src/test/java/com/aptpod/intdash/MeasDataPointIdsApiTest.java +src/test/java/com/aptpod/intdash/MeasDataPointsApiTest.java +src/test/java/com/aptpod/intdash/MeasMeasurementJobsApiTest.java +src/test/java/com/aptpod/intdash/MeasMeasurementMarkersApiTest.java +src/test/java/com/aptpod/intdash/MeasMeasurementsApiTest.java +src/test/java/com/aptpod/intdash/MeasSignalsApiTest.java +src/test/java/com/aptpod/intdash/MeasTrashedMeasurementsApiTest.java +src/test/java/com/aptpod/intdash/MeasUploadingMeasurementsApiTest.java +src/test/java/com/aptpod/intdash/MediaHlsApiTest.java +src/test/java/com/aptpod/intdash/MediaJobsApiTest.java +src/test/java/com/aptpod/intdash/MediaLiveApiTest.java +src/test/java/com/aptpod/intdash/MediaVideosApiTest.java +src/test/java/com/aptpod/intdash/VersionsVersionApiTest.java +src/test/java/org/openapitools/client/model/APITokenIntrospectionRequestTest.java +src/test/java/org/openapitools/client/model/APITokenIntrospectionResponseTest.java +src/test/java/org/openapitools/client/model/AddGroupMemberRequestTest.java +src/test/java/org/openapitools/client/model/AddProjectEdgeRequestTest.java +src/test/java/org/openapitools/client/model/AddProjectMemberRequestTest.java +src/test/java/org/openapitools/client/model/AllowedEndpointTest.java +src/test/java/org/openapitools/client/model/AllowedISCPMessageTest.java +src/test/java/org/openapitools/client/model/AssignOwnerRequestTest.java +src/test/java/org/openapitools/client/model/AuthPageTest.java +src/test/java/org/openapitools/client/model/ChangePasswordRequestTest.java +src/test/java/org/openapitools/client/model/CheckAuthorizationResponseTest.java +src/test/java/org/openapitools/client/model/CheckHTTPAuthorizationRequestTest.java +src/test/java/org/openapitools/client/model/CheckMeHTTPAuthorizationRequestTest.java +src/test/java/org/openapitools/client/model/CheckPasswordRequestTest.java +src/test/java/org/openapitools/client/model/CheckPasswordResultErrorsInnerTest.java +src/test/java/org/openapitools/client/model/CheckPasswordResultTest.java +src/test/java/org/openapitools/client/model/CreateEdgeRequestTest.java +src/test/java/org/openapitools/client/model/CreateEmailRequestTest.java +src/test/java/org/openapitools/client/model/CreateGroupRequestTest.java +src/test/java/org/openapitools/client/model/CreateJobRequestTest.java +src/test/java/org/openapitools/client/model/CreateJpegRequestTest.java +src/test/java/org/openapitools/client/model/CreateMP4RequestTest.java +src/test/java/org/openapitools/client/model/CreateMeasurementChunksResultItemsInnerTest.java +src/test/java/org/openapitools/client/model/CreateMeasurementChunksResultTest.java +src/test/java/org/openapitools/client/model/CreateMyOAuth2ClientRequestTest.java +src/test/java/org/openapitools/client/model/CreateOAuth2ClientAuthorizationCodeRequestAllOfTest.java +src/test/java/org/openapitools/client/model/CreateOAuth2ClientAuthorizationCodeRequestTest.java +src/test/java/org/openapitools/client/model/CreateOAuth2ClientClientCredentialsRequestTest.java +src/test/java/org/openapitools/client/model/CreateProjectRequestTest.java +src/test/java/org/openapitools/client/model/CreateSignalRequestTest.java +src/test/java/org/openapitools/client/model/CreateUserAPITokenRequestTest.java +src/test/java/org/openapitools/client/model/CreateUserRequestTest.java +src/test/java/org/openapitools/client/model/DataIDTest.java +src/test/java/org/openapitools/client/model/DataIDsTest.java +src/test/java/org/openapitools/client/model/DataPointDataErrorDataTest.java +src/test/java/org/openapitools/client/model/DataPointDataErrorTest.java +src/test/java/org/openapitools/client/model/DataPointDataIDTest.java +src/test/java/org/openapitools/client/model/DataPointDataIDsTest.java +src/test/java/org/openapitools/client/model/DataPointErrorAllOfTest.java +src/test/java/org/openapitools/client/model/DataPointErrorTest.java +src/test/java/org/openapitools/client/model/DataPointNormalTest.java +src/test/java/org/openapitools/client/model/DataPointTest.java +src/test/java/org/openapitools/client/model/DataPointTimeTest.java +src/test/java/org/openapitools/client/model/DeniedEndpointTest.java +src/test/java/org/openapitools/client/model/EdgeConnectionAllOfTest.java +src/test/java/org/openapitools/client/model/EdgeConnectionDownstreamTest.java +src/test/java/org/openapitools/client/model/EdgeConnectionEdgeTest.java +src/test/java/org/openapitools/client/model/EdgeConnectionItemTest.java +src/test/java/org/openapitools/client/model/EdgeConnectionListPageTest.java +src/test/java/org/openapitools/client/model/EdgeConnectionListTest.java +src/test/java/org/openapitools/client/model/EdgeConnectionTest.java +src/test/java/org/openapitools/client/model/EdgeConnectionUpstreamTest.java +src/test/java/org/openapitools/client/model/EdgeOwnerTest.java +src/test/java/org/openapitools/client/model/EdgeTest.java +src/test/java/org/openapitools/client/model/EdgesTest.java +src/test/java/org/openapitools/client/model/ErrorConvertedAllOfErrorExtraTest.java +src/test/java/org/openapitools/client/model/ErrorConvertedAllOfTest.java +src/test/java/org/openapitools/client/model/ErrorConvertedTest.java +src/test/java/org/openapitools/client/model/ErrorExtraEmptyTest.java +src/test/java/org/openapitools/client/model/ErrorProblemMediaTest.java +src/test/java/org/openapitools/client/model/ErrorProblemTest.java +src/test/java/org/openapitools/client/model/GetVersion200ResponseTest.java +src/test/java/org/openapitools/client/model/GroupTest.java +src/test/java/org/openapitools/client/model/GroupsTest.java +src/test/java/org/openapitools/client/model/HLSListTest.java +src/test/java/org/openapitools/client/model/HLSTest.java +src/test/java/org/openapitools/client/model/ISCPMessageTypeTest.java +src/test/java/org/openapitools/client/model/ISCPTicketTest.java +src/test/java/org/openapitools/client/model/IssueToken200ResponseTest.java +src/test/java/org/openapitools/client/model/JSONWebKeyTest.java +src/test/java/org/openapitools/client/model/JobListTest.java +src/test/java/org/openapitools/client/model/JobStatusTest.java +src/test/java/org/openapitools/client/model/JobTest.java +src/test/java/org/openapitools/client/model/JobTypeTest.java +src/test/java/org/openapitools/client/model/JpegQualityTest.java +src/test/java/org/openapitools/client/model/JpegStatusTest.java +src/test/java/org/openapitools/client/model/JpegTest.java +src/test/java/org/openapitools/client/model/JpegsTest.java +src/test/java/org/openapitools/client/model/MP4StatusTest.java +src/test/java/org/openapitools/client/model/MP4Test.java +src/test/java/org/openapitools/client/model/MP4sTest.java +src/test/java/org/openapitools/client/model/MeasBaseTimePutTest.java +src/test/java/org/openapitools/client/model/MeasBaseTimeTest.java +src/test/java/org/openapitools/client/model/MeasBaseTimesTest.java +src/test/java/org/openapitools/client/model/MeasCreateTest.java +src/test/java/org/openapitools/client/model/MeasReplaceTest.java +src/test/java/org/openapitools/client/model/MeasurementBaseTimeTypeTest.java +src/test/java/org/openapitools/client/model/MeasurementJobStatusTest.java +src/test/java/org/openapitools/client/model/MeasurementJobTest.java +src/test/java/org/openapitools/client/model/MeasurementJobsTest.java +src/test/java/org/openapitools/client/model/MeasurementMarkerBaseTest.java +src/test/java/org/openapitools/client/model/MeasurementMarkerDetailPointTest.java +src/test/java/org/openapitools/client/model/MeasurementMarkerDetailRangeTest.java +src/test/java/org/openapitools/client/model/MeasurementMarkerPointAllOfTest.java +src/test/java/org/openapitools/client/model/MeasurementMarkerPointTest.java +src/test/java/org/openapitools/client/model/MeasurementMarkerPostRequestPointTest.java +src/test/java/org/openapitools/client/model/MeasurementMarkerPostRequestRangeTest.java +src/test/java/org/openapitools/client/model/MeasurementMarkerPostRequestTest.java +src/test/java/org/openapitools/client/model/MeasurementMarkerPutRequestBaseTest.java +src/test/java/org/openapitools/client/model/MeasurementMarkerPutRequestPointTest.java +src/test/java/org/openapitools/client/model/MeasurementMarkerPutRequestRangeTest.java +src/test/java/org/openapitools/client/model/MeasurementMarkerPutRequestTest.java +src/test/java/org/openapitools/client/model/MeasurementMarkerRangeAllOfTest.java +src/test/java/org/openapitools/client/model/MeasurementMarkerRangeTest.java +src/test/java/org/openapitools/client/model/MeasurementMarkerTest.java +src/test/java/org/openapitools/client/model/MeasurementMarkersTest.java +src/test/java/org/openapitools/client/model/MeasurementMarkersWithoutPageTest.java +src/test/java/org/openapitools/client/model/MeasurementSectionGetResponseTest.java +src/test/java/org/openapitools/client/model/MeasurementSectionsGetResponseTest.java +src/test/java/org/openapitools/client/model/MeasurementSequenceGroupReplaceTest.java +src/test/java/org/openapitools/client/model/MeasurementSequenceGroupTest.java +src/test/java/org/openapitools/client/model/MeasurementSequenceGroupsTest.java +src/test/java/org/openapitools/client/model/MeasurementSequencesSummaryTest.java +src/test/java/org/openapitools/client/model/MeasurementTest.java +src/test/java/org/openapitools/client/model/MeasurementUploadPostResponseTest.java +src/test/java/org/openapitools/client/model/MeasurementUploadStatusGetResponseTest.java +src/test/java/org/openapitools/client/model/MeasurementUploadStatusesGetResponseTest.java +src/test/java/org/openapitools/client/model/MeasurementsTest.java +src/test/java/org/openapitools/client/model/MediaMeasurementBaseTimeTypeTest.java +src/test/java/org/openapitools/client/model/MediaMeasurementTest.java +src/test/java/org/openapitools/client/model/MemberTest.java +src/test/java/org/openapitools/client/model/MembersTest.java +src/test/java/org/openapitools/client/model/OAuth2ClientGrantTypeTest.java +src/test/java/org/openapitools/client/model/OAuth2ClientResponseTypeTest.java +src/test/java/org/openapitools/client/model/OAuth2ClientTest.java +src/test/java/org/openapitools/client/model/OAuth2ClientWithSecretAllOfTest.java +src/test/java/org/openapitools/client/model/OAuth2ClientWithSecretTest.java +src/test/java/org/openapitools/client/model/OAuth2ClientsTest.java +src/test/java/org/openapitools/client/model/OAuth2JWKsTest.java +src/test/java/org/openapitools/client/model/PageDetailTest.java +src/test/java/org/openapitools/client/model/PageTest.java +src/test/java/org/openapitools/client/model/PageV2Test.java +src/test/java/org/openapitools/client/model/PatchEdgeRequestTest.java +src/test/java/org/openapitools/client/model/PatchEmailRequestTest.java +src/test/java/org/openapitools/client/model/PatchUserRequestTest.java +src/test/java/org/openapitools/client/model/PlaylistTest.java +src/test/java/org/openapitools/client/model/ProjectEdgeTest.java +src/test/java/org/openapitools/client/model/ProjectEdgesTest.java +src/test/java/org/openapitools/client/model/ProjectTest.java +src/test/java/org/openapitools/client/model/ProjectsTest.java +src/test/java/org/openapitools/client/model/RoleTest.java +src/test/java/org/openapitools/client/model/RolesTest.java +src/test/java/org/openapitools/client/model/ScopeTest.java +src/test/java/org/openapitools/client/model/ScopesTest.java +src/test/java/org/openapitools/client/model/SequenceSummaryTest.java +src/test/java/org/openapitools/client/model/SignalConversionCSVTest.java +src/test/java/org/openapitools/client/model/SignalConversionJSONTest.java +src/test/java/org/openapitools/client/model/SignalConversionNumFixedPointTest.java +src/test/java/org/openapitools/client/model/SignalConversionNumFloatingPointTest.java +src/test/java/org/openapitools/client/model/SignalConversionOptionCSVTest.java +src/test/java/org/openapitools/client/model/SignalConversionOptionJSONTest.java +src/test/java/org/openapitools/client/model/SignalConversionOptionNumFixedPointTest.java +src/test/java/org/openapitools/client/model/SignalConversionOptionNumFloatingPointTest.java +src/test/java/org/openapitools/client/model/SignalConversionOptionSubBytesTest.java +src/test/java/org/openapitools/client/model/SignalConversionOptionSubStringTest.java +src/test/java/org/openapitools/client/model/SignalConversionOptionTypeTest.java +src/test/java/org/openapitools/client/model/SignalConversionSubBytesTest.java +src/test/java/org/openapitools/client/model/SignalConversionSubStringTest.java +src/test/java/org/openapitools/client/model/SignalConversionTest.java +src/test/java/org/openapitools/client/model/SignalDisplayTest.java +src/test/java/org/openapitools/client/model/SignalTest.java +src/test/java/org/openapitools/client/model/SignalsTest.java +src/test/java/org/openapitools/client/model/TrashedMeasurementsTest.java +src/test/java/org/openapitools/client/model/UpdateEmailVerifiedRequestTest.java +src/test/java/org/openapitools/client/model/UpdateGroupMemberRequestTest.java +src/test/java/org/openapitools/client/model/UpdateGroupRequestTest.java +src/test/java/org/openapitools/client/model/UpdateOAuth2ClientRequestTest.java +src/test/java/org/openapitools/client/model/UpdateProjectEdgeRequestTest.java +src/test/java/org/openapitools/client/model/UpdateProjectMemberRequestTest.java +src/test/java/org/openapitools/client/model/UpdateProjectRequestTest.java +src/test/java/org/openapitools/client/model/UpdateSignalRequestTest.java +src/test/java/org/openapitools/client/model/UpdateUserAPITokenRequestTest.java +src/test/java/org/openapitools/client/model/UserAPITokenTest.java +src/test/java/org/openapitools/client/model/UserAPITokensTest.java +src/test/java/org/openapitools/client/model/UserEmailTest.java +src/test/java/org/openapitools/client/model/UserEmailVerificationTest.java +src/test/java/org/openapitools/client/model/UserPasswordTest.java +src/test/java/org/openapitools/client/model/UserTest.java +src/test/java/org/openapitools/client/model/UsersTest.java +src/test/java/org/openapitools/client/model/VideoCodecsTest.java +src/test/java/org/openapitools/client/model/VideoSourceDataTypeTest.java +src/test/java/org/openapitools/client/model/VideoStatusTest.java +src/test/java/org/openapitools/client/model/VideoTest.java +src/test/java/org/openapitools/client/model/VideosTest.java diff --git a/intdash/.openapi-generator/VERSION b/intdash/.openapi-generator/VERSION new file mode 100644 index 0000000..cd802a1 --- /dev/null +++ b/intdash/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/intdash/.travis.yml b/intdash/.travis.yml new file mode 100644 index 0000000..1b6741c --- /dev/null +++ b/intdash/.travis.yml @@ -0,0 +1,22 @@ +# +# Generated by OpenAPI Generator: https://openapi-generator.tech +# +# Ref: https://docs.travis-ci.com/user/languages/java/ +# +language: java +jdk: + - openjdk12 + - openjdk11 + - openjdk10 + - openjdk9 + - openjdk8 +before_install: + # ensure gradlew has proper permission + - chmod a+x ./gradlew +script: + # test using maven + #- mvn test + # test using gradle + - gradle test + # test using sbt + # - sbt test diff --git a/intdash/README.md b/intdash/README.md new file mode 100644 index 0000000..11c0d1a --- /dev/null +++ b/intdash/README.md @@ -0,0 +1,701 @@ +# intdash + +intdash API specification +- API version: v2.4.0-next-4a4316946 + - Build date: 2023-09-19T17:57:54.384855300+09:00[GMT+09:00] + +## ベースURL + +ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 + +``` +https:///api +``` +エンドポイント例: +``` +https://example.intdash.jp/api/v1/measurements +https://example.intdash.jp/api/media/videos +``` + +## レスポンスのステータスコード + +サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 + + +| コード | 説明 | +|:--------------------------|:----------------------------------------------------------------------| +| 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | +| 200 OK | リクエストは成功しました。 | +| 201 Created | 新しいリソースが作成されました。 | +| 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | +| 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | +| 401 Unauthorized | リクエストには認証が必要です。 | +| 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | +| 404 Not Found | APIまたはリソースが見つかりません。 | +| 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | +| 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | +| 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | + + +## 注意 +リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 + +``` + +{ + \"username\" : \"username\", + \"password\" : \"password\" +} + +``` + + +``` + +{ + \"Username\" : \"username\", + \"Password\" : \"password\" +} + +``` + + For more information, please visit [https://www.aptpod.co.jp/](https://www.aptpod.co.jp/) + +*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)* + + +## Requirements + +Building the API client library requires: +1. Java 1.8+ +2. Maven (3.8.3+)/Gradle (7.2+) + +## Installation + +To install the API client library to your local Maven repository, simply execute: + +```shell +mvn clean install +``` + +To deploy it to a remote Maven repository instead, configure the settings of the repository and execute: + +```shell +mvn clean deploy +``` + +Refer to the [OSSRH Guide](http://central.sonatype.org/pages/ossrh-guide.html) for more information. + +### Maven users + +Add this dependency to your project's POM: + +```xml + + com.aptpod + intdash + v2.4.0-next-4a4316946 + compile + +``` + +### Gradle users + +Add this dependency to your project's build file: + +```groovy + repositories { + mavenCentral() // Needed if the 'intdash' jar has been published to maven central. + mavenLocal() // Needed if the 'intdash' jar has been published to the local maven repo. + } + + dependencies { + implementation "com.aptpod:intdash:v2.4.0-next-4a4316946" + } +``` + +### Others + +At first generate the JAR by executing: + +```shell +mvn clean package +``` + +Then manually install the following JARs: + +* `target/intdash-v2.4.0-next-4a4316946.jar` +* `target/lib/*.jar` + +## Getting Started + +Please follow the [installation](#installation) instruction and execute the following Java code: + +```java + +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthAuthorizationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthAuthorizationApi apiInstance = new AuthAuthorizationApi(defaultClient); + CheckHTTPAuthorizationRequest checkHTTPAuthorizationRequest = new CheckHTTPAuthorizationRequest(); // CheckHTTPAuthorizationRequest | + try { + CheckAuthorizationResponse result = apiInstance.checkHTTPAuthorization(checkHTTPAuthorizationRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthAuthorizationApi#checkHTTPAuthorization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} + +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://example.intdash.jp/api* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AuthAuthorizationApi* | [**checkHTTPAuthorization**](docs/AuthAuthorizationApi.md#checkHTTPAuthorization) | **POST** /auth/authorize/http | Check HTTP Authorization +*AuthAuthorizationApi* | [**checkMeHTTPAuthorization**](docs/AuthAuthorizationApi.md#checkMeHTTPAuthorization) | **POST** /auth/users/me/authorize/http | Check Me HTTP Authorization +*AuthClientsApi* | [**createMyOAuth2Clients**](docs/AuthClientsApi.md#createMyOAuth2Clients) | **POST** /auth/users/me/clients | Create My OAuth2Client +*AuthClientsApi* | [**deleteMyOAuth2Client**](docs/AuthClientsApi.md#deleteMyOAuth2Client) | **DELETE** /auth/users/me/clients/{client_id} | Delete My OAuth2Client +*AuthClientsApi* | [**deleteOAuth2Client**](docs/AuthClientsApi.md#deleteOAuth2Client) | **DELETE** /auth/clients/{client_id} | Delete OAuth2Client +*AuthClientsApi* | [**getMyOAuth2Client**](docs/AuthClientsApi.md#getMyOAuth2Client) | **GET** /auth/users/me/clients/{client_id} | Get My OAuth2Client +*AuthClientsApi* | [**getOAuth2Client**](docs/AuthClientsApi.md#getOAuth2Client) | **GET** /auth/clients/{client_id} | Get OAuth2Client +*AuthClientsApi* | [**listMyOAuth2Clients**](docs/AuthClientsApi.md#listMyOAuth2Clients) | **GET** /auth/users/me/clients | List My OAuth2Clients +*AuthClientsApi* | [**listOAuth2Clients**](docs/AuthClientsApi.md#listOAuth2Clients) | **GET** /auth/clients | List OAuth2Clients +*AuthClientsApi* | [**listUsersOAuth2Clients**](docs/AuthClientsApi.md#listUsersOAuth2Clients) | **GET** /auth/users/{user_uuid}/clients | List User's OAuth2Clients +*AuthClientsApi* | [**updateMyOAuth2Client**](docs/AuthClientsApi.md#updateMyOAuth2Client) | **PATCH** /auth/users/me/clients/{client_id} | Update My OAuth2Client +*AuthClientsApi* | [**updateOAuth2Client**](docs/AuthClientsApi.md#updateOAuth2Client) | **PATCH** /auth/clients/{client_id} | Update OAuth2Client +*AuthEdgesApi* | [**assignOwner**](docs/AuthEdgesApi.md#assignOwner) | **POST** /auth/edges/{edge_uuid}/owner | Assign Owner +*AuthEdgesApi* | [**createEdge**](docs/AuthEdgesApi.md#createEdge) | **POST** /auth/edges | Create Edge +*AuthEdgesApi* | [**createMyEdge**](docs/AuthEdgesApi.md#createMyEdge) | **POST** /auth/users/me/edges | Create My Edge +*AuthEdgesApi* | [**createMyEdgeWithUUID**](docs/AuthEdgesApi.md#createMyEdgeWithUUID) | **PUT** /auth/users/me/edges/{edge_uuid} | Create My Edge With UUID +*AuthEdgesApi* | [**createUsersEdge**](docs/AuthEdgesApi.md#createUsersEdge) | **POST** /auth/users/{user_uuid}/edges | Create User's Edge +*AuthEdgesApi* | [**deleteEdge**](docs/AuthEdgesApi.md#deleteEdge) | **DELETE** /auth/edges/{edge_uuid} | Delete Edge +*AuthEdgesApi* | [**deleteMyEdge**](docs/AuthEdgesApi.md#deleteMyEdge) | **DELETE** /auth/users/me/edges/{edge_uuid} | Delete My Edge +*AuthEdgesApi* | [**deleteUsersEdge**](docs/AuthEdgesApi.md#deleteUsersEdge) | **DELETE** /auth/users/{user_uuid}/edges/{edge_uuid} | Delete User's Edge +*AuthEdgesApi* | [**getEdge**](docs/AuthEdgesApi.md#getEdge) | **GET** /auth/edges/{edge_uuid} | Get Edge +*AuthEdgesApi* | [**getMeAsEdge**](docs/AuthEdgesApi.md#getMeAsEdge) | **GET** /auth/edges/me | Get Edge having the same UUID as Me +*AuthEdgesApi* | [**getMyEdge**](docs/AuthEdgesApi.md#getMyEdge) | **GET** /auth/users/me/edges/{edge_uuid} | Get My Edge +*AuthEdgesApi* | [**getUsersEdge**](docs/AuthEdgesApi.md#getUsersEdge) | **GET** /auth/users/{user_uuid}/edges/{edge_uuid} | Get User's Edge +*AuthEdgesApi* | [**listEdges**](docs/AuthEdgesApi.md#listEdges) | **GET** /auth/edges | List Edges +*AuthEdgesApi* | [**listMyEdges**](docs/AuthEdgesApi.md#listMyEdges) | **GET** /auth/users/me/edges | List My Edges +*AuthEdgesApi* | [**listUsersEdges**](docs/AuthEdgesApi.md#listUsersEdges) | **GET** /auth/users/{user_uuid}/edges | List User's Edges +*AuthEdgesApi* | [**removeOwner**](docs/AuthEdgesApi.md#removeOwner) | **DELETE** /auth/edges/{edge_uuid}/owner | Unassign Owner +*AuthEdgesApi* | [**updateEdge**](docs/AuthEdgesApi.md#updateEdge) | **PATCH** /auth/edges/{edge_uuid} | Update Edge +*AuthEdgesApi* | [**updateMyEdge**](docs/AuthEdgesApi.md#updateMyEdge) | **PATCH** /auth/users/me/edges/{edge_uuid} | Update My Edge +*AuthEdgesApi* | [**updateUsersEdge**](docs/AuthEdgesApi.md#updateUsersEdge) | **PATCH** /auth/users/{user_uuid}/edges/{edge_uuid} | Update User's Edge +*AuthGroupMembersApi* | [**addGroupMember**](docs/AuthGroupMembersApi.md#addGroupMember) | **POST** /auth/groups/{group_uuid}/members | Add Group Member +*AuthGroupMembersApi* | [**addGroupOwnerAttribute**](docs/AuthGroupMembersApi.md#addGroupOwnerAttribute) | **PUT** /auth/groups/{group_uuid}/members/{user_uuid}/owner | Add Group Owner Attribute +*AuthGroupMembersApi* | [**getGroupMember**](docs/AuthGroupMembersApi.md#getGroupMember) | **GET** /auth/groups/{group_uuid}/members/{user_uuid} | Get Group Member +*AuthGroupMembersApi* | [**listGroupMembers**](docs/AuthGroupMembersApi.md#listGroupMembers) | **GET** /auth/groups/{group_uuid}/members | List Group Members +*AuthGroupMembersApi* | [**removeGroupMember**](docs/AuthGroupMembersApi.md#removeGroupMember) | **DELETE** /auth/groups/{group_uuid}/members/{user_uuid} | Remove Group Member +*AuthGroupMembersApi* | [**removeGroupOwnerAttribute**](docs/AuthGroupMembersApi.md#removeGroupOwnerAttribute) | **DELETE** /auth/groups/{group_uuid}/members/{user_uuid}/owner | Remove Group Owner Attribute +*AuthGroupMembersApi* | [**updateGroupMember**](docs/AuthGroupMembersApi.md#updateGroupMember) | **PATCH** /auth/groups/{group_uuid}/members/{user_uuid} | Update Group Member +*AuthGroupsApi* | [**createGroup**](docs/AuthGroupsApi.md#createGroup) | **POST** /auth/groups | Create Group +*AuthGroupsApi* | [**createSubGroup**](docs/AuthGroupsApi.md#createSubGroup) | **POST** /auth/groups/{group_uuid}/groups | Create Sub Group +*AuthGroupsApi* | [**deleteGroup**](docs/AuthGroupsApi.md#deleteGroup) | **DELETE** /auth/groups/{group_uuid} | Delete Group +*AuthGroupsApi* | [**getGroup**](docs/AuthGroupsApi.md#getGroup) | **GET** /auth/groups/{group_uuid} | Get Group +*AuthGroupsApi* | [**listGroups**](docs/AuthGroupsApi.md#listGroups) | **GET** /auth/groups | List Groups +*AuthGroupsApi* | [**listMyGroups**](docs/AuthGroupsApi.md#listMyGroups) | **GET** /auth/users/me/groups | List My Groups +*AuthGroupsApi* | [**listSubGroup**](docs/AuthGroupsApi.md#listSubGroup) | **GET** /auth/groups/{group_uuid}/groups | List Sub Groups +*AuthGroupsApi* | [**updateGroup**](docs/AuthGroupsApi.md#updateGroup) | **PATCH** /auth/groups/{group_uuid} | Update Group +*AuthMeApi* | [**changePassword**](docs/AuthMeApi.md#changePassword) | **PUT** /auth/users/me/password | Change Password +*AuthMeApi* | [**checkPassword**](docs/AuthMeApi.md#checkPassword) | **POST** /auth/users/me/password/check | Check Password +*AuthMeApi* | [**createMyAPIToken**](docs/AuthMeApi.md#createMyAPIToken) | **POST** /auth/users/me/tokens | Create My API Token +*AuthMeApi* | [**createMyEmail**](docs/AuthMeApi.md#createMyEmail) | **POST** /auth/users/me/emails | Create My Email +*AuthMeApi* | [**deleteMyAPIToken**](docs/AuthMeApi.md#deleteMyAPIToken) | **DELETE** /auth/users/me/tokens/{user_api_token_id} | Delete My API Token +*AuthMeApi* | [**deleteMyEmail**](docs/AuthMeApi.md#deleteMyEmail) | **DELETE** /auth/users/me/emails/{user_email_id} | Delete My Email +*AuthMeApi* | [**getMe**](docs/AuthMeApi.md#getMe) | **GET** /auth/users/me | Get Me +*AuthMeApi* | [**listMyAPITokens**](docs/AuthMeApi.md#listMyAPITokens) | **GET** /auth/users/me/tokens | List My API Tokens +*AuthMeApi* | [**listMyRoles**](docs/AuthMeApi.md#listMyRoles) | **GET** /auth/users/me/roles | List My Roles +*AuthMeApi* | [**sendVerificationEmailToMyAddress**](docs/AuthMeApi.md#sendVerificationEmailToMyAddress) | **PUT** /auth/users/me/emails/{user_email_id}/verification | Send Verification Email to Me +*AuthMeApi* | [**updateMe**](docs/AuthMeApi.md#updateMe) | **PATCH** /auth/users/me | Update Me +*AuthMeApi* | [**updateMyAPIToken**](docs/AuthMeApi.md#updateMyAPIToken) | **PATCH** /auth/users/me/tokens/{user_api_token_id} | Update My API Token +*AuthMeApi* | [**updateMyAddressToVerified**](docs/AuthMeApi.md#updateMyAddressToVerified) | **PUT** /auth/users/me/emails/{user_email_id}/verified | Set My Email as Verified +*AuthMeApi* | [**updateMyEmail**](docs/AuthMeApi.md#updateMyEmail) | **PATCH** /auth/users/me/emails/{user_email_id} | Update My Email +*AuthOAuth2Api* | [**authOauth2JwksGet**](docs/AuthOAuth2Api.md#authOauth2JwksGet) | **GET** /auth/oauth2/jwks | List JSON Web Keys +*AuthOAuth2Api* | [**issueToken**](docs/AuthOAuth2Api.md#issueToken) | **POST** /auth/oauth2/token | Token Endpoint +*AuthOAuth2Api* | [**oauth2Authorization**](docs/AuthOAuth2Api.md#oauth2Authorization) | **GET** /auth/oauth2/authorization | Authorization Endpoint +*AuthOAuth2Api* | [**reovokeToken**](docs/AuthOAuth2Api.md#reovokeToken) | **POST** /auth/oauth2/revocation | Revoke Token +*AuthProjectEdgesApi* | [**addProjectEdges**](docs/AuthProjectEdgesApi.md#addProjectEdges) | **POST** /auth/projects/{project_uuid}/edges | Add Project Edge +*AuthProjectEdgesApi* | [**getProjectEdge**](docs/AuthProjectEdgesApi.md#getProjectEdge) | **GET** /auth/projects/{project_uuid}/edges/{edge_uuid} | Get Project Edge +*AuthProjectEdgesApi* | [**listProjectEdges**](docs/AuthProjectEdgesApi.md#listProjectEdges) | **GET** /auth/projects/{project_uuid}/edges | List Project Edges +*AuthProjectEdgesApi* | [**removeProjectEdge**](docs/AuthProjectEdgesApi.md#removeProjectEdge) | **DELETE** /auth/projects/{project_uuid}/edges/{edge_uuid} | Remove Project Edge +*AuthProjectEdgesApi* | [**updateProjectEdge**](docs/AuthProjectEdgesApi.md#updateProjectEdge) | **PATCH** /auth/projects/{project_uuid}/edges/{edge_uuid} | Update Project Edge +*AuthProjectMembersApi* | [**addProjectMember**](docs/AuthProjectMembersApi.md#addProjectMember) | **POST** /auth/projects/{project_uuid}/members | Add Project Member +*AuthProjectMembersApi* | [**addProjectOwnerAttribute**](docs/AuthProjectMembersApi.md#addProjectOwnerAttribute) | **PUT** /auth/projects/{project_uuid}/members/{user_uuid}/owner | Add Project Owner Attribute +*AuthProjectMembersApi* | [**getProjectMember**](docs/AuthProjectMembersApi.md#getProjectMember) | **GET** /auth/projects/{project_uuid}/members/{user_uuid} | Get Project Member +*AuthProjectMembersApi* | [**listProjectMembers**](docs/AuthProjectMembersApi.md#listProjectMembers) | **GET** /auth/projects/{project_uuid}/members | List Project Members +*AuthProjectMembersApi* | [**removeProjectMember**](docs/AuthProjectMembersApi.md#removeProjectMember) | **DELETE** /auth/projects/{project_uuid}/members/{user_uuid} | Remove Project Member +*AuthProjectMembersApi* | [**removeProjectOwnerAttribute**](docs/AuthProjectMembersApi.md#removeProjectOwnerAttribute) | **DELETE** /auth/projects/{project_uuid}/members/{user_uuid}/owner | Remove Project Owner Attribute +*AuthProjectMembersApi* | [**updateProjectMember**](docs/AuthProjectMembersApi.md#updateProjectMember) | **PATCH** /auth/projects/{project_uuid}/members/{user_uuid} | Update Project Member +*AuthProjectsApi* | [**createProject**](docs/AuthProjectsApi.md#createProject) | **POST** /auth/groups/{group_uuid}/projects | Create Project +*AuthProjectsApi* | [**deleteProject**](docs/AuthProjectsApi.md#deleteProject) | **DELETE** /auth/projects/{project_uuid} | Delete Project +*AuthProjectsApi* | [**getProject**](docs/AuthProjectsApi.md#getProject) | **GET** /auth/projects/{project_uuid} | Get Project +*AuthProjectsApi* | [**listGroupProjects**](docs/AuthProjectsApi.md#listGroupProjects) | **GET** /auth/groups/{group_uuid}/projects | List Group Projects +*AuthProjectsApi* | [**listMyProjects**](docs/AuthProjectsApi.md#listMyProjects) | **GET** /auth/users/me/projects | List My Projects +*AuthProjectsApi* | [**listProjects**](docs/AuthProjectsApi.md#listProjects) | **GET** /auth/projects | List Projects +*AuthProjectsApi* | [**updateProject**](docs/AuthProjectsApi.md#updateProject) | **PATCH** /auth/projects/{project_uuid} | Update Project +*AuthRolesApi* | [**getRole**](docs/AuthRolesApi.md#getRole) | **GET** /auth/roles/{role_uuid} | Get Role +*AuthRolesApi* | [**listRoles**](docs/AuthRolesApi.md#listRoles) | **GET** /auth/roles | List Roles +*AuthScopesApi* | [**getScope**](docs/AuthScopesApi.md#getScope) | **GET** /auth/scopes/{scope_uuid} | Get Scope +*AuthScopesApi* | [**listScopes**](docs/AuthScopesApi.md#listScopes) | **GET** /auth/scopes | List Scopes +*AuthUsersApi* | [**assignRole**](docs/AuthUsersApi.md#assignRole) | **PUT** /auth/users/{user_uuid}/roles/{role_uuid} | Assign Role +*AuthUsersApi* | [**createAPIToken**](docs/AuthUsersApi.md#createAPIToken) | **POST** /auth/users/{user_uuid}/tokens | Create API Token +*AuthUsersApi* | [**createEmail**](docs/AuthUsersApi.md#createEmail) | **POST** /auth/users/{user_uuid}/emails | Create Email +*AuthUsersApi* | [**createTemporaryPassword**](docs/AuthUsersApi.md#createTemporaryPassword) | **PUT** /auth/users/{user_uuid}/password | Create Temporary Password +*AuthUsersApi* | [**createUser**](docs/AuthUsersApi.md#createUser) | **POST** /auth/users | Create User +*AuthUsersApi* | [**deleteAPIToken**](docs/AuthUsersApi.md#deleteAPIToken) | **DELETE** /auth/users/{user_uuid}/tokens/{user_api_token_id} | Delete API Token +*AuthUsersApi* | [**deleteEmail**](docs/AuthUsersApi.md#deleteEmail) | **DELETE** /auth/users/{user_uuid}/emails/{user_email_id} | Delete Email +*AuthUsersApi* | [**deleteUser**](docs/AuthUsersApi.md#deleteUser) | **DELETE** /auth/users/{user_uuid} | Delete User +*AuthUsersApi* | [**disableUser**](docs/AuthUsersApi.md#disableUser) | **PUT** /auth/users/{user_uuid}/disable | Disable User +*AuthUsersApi* | [**enableUser**](docs/AuthUsersApi.md#enableUser) | **PUT** /auth/users/{user_uuid}/enable | Enable User +*AuthUsersApi* | [**getUser**](docs/AuthUsersApi.md#getUser) | **GET** /auth/users/{user_uuid} | Get User +*AuthUsersApi* | [**introspectAPIToken**](docs/AuthUsersApi.md#introspectAPIToken) | **POST** /auth/users/tokens/introspection | Introspect API Token +*AuthUsersApi* | [**listAPITokens**](docs/AuthUsersApi.md#listAPITokens) | **GET** /auth/users/{user_uuid}/tokens | List API Tokens +*AuthUsersApi* | [**listUsers**](docs/AuthUsersApi.md#listUsers) | **GET** /auth/users | List Users +*AuthUsersApi* | [**listUsersRoles**](docs/AuthUsersApi.md#listUsersRoles) | **GET** /auth/users/{user_uuid}/roles | List User's Roles +*AuthUsersApi* | [**sendVerificationEmail**](docs/AuthUsersApi.md#sendVerificationEmail) | **PUT** /auth/users/{user_uuid}/emails/{user_email_id}/verification | Send Verification Email +*AuthUsersApi* | [**unassignRole**](docs/AuthUsersApi.md#unassignRole) | **DELETE** /auth/users/{user_uuid}/roles/{role_uuid} | Unassign Role +*AuthUsersApi* | [**unlockPassword**](docs/AuthUsersApi.md#unlockPassword) | **PUT** /auth/users/{user_uuid}/password/unlock | Unlock Password +*AuthUsersApi* | [**updateAPIToken**](docs/AuthUsersApi.md#updateAPIToken) | **PATCH** /auth/users/{user_uuid}/tokens/{user_api_token_id} | Update API Token +*AuthUsersApi* | [**updateEmail**](docs/AuthUsersApi.md#updateEmail) | **PATCH** /auth/users/{user_uuid}/emails/{user_email_id} | Update Email +*AuthUsersApi* | [**updateToVerified**](docs/AuthUsersApi.md#updateToVerified) | **PUT** /auth/users/{user_uuid}/emails/{user_email_id}/verified | Set Email as Verified +*AuthUsersApi* | [**updateUser**](docs/AuthUsersApi.md#updateUser) | **PATCH** /auth/users/{user_uuid} | Update User +*BrokerEdgeConnectionsApi* | [**getEdgeConnection**](docs/BrokerEdgeConnectionsApi.md#getEdgeConnection) | **GET** /v1/edge_connections/{edge_connection_uuid} | Get Edge Connection +*BrokerEdgeConnectionsApi* | [**getProjectEdgeConnection**](docs/BrokerEdgeConnectionsApi.md#getProjectEdgeConnection) | **GET** /v1/projects/{project_uuid}/edge_connections/{edge_connection_uuid} | Get Project Edge Connection +*BrokerEdgeConnectionsApi* | [**listEdgeConnections**](docs/BrokerEdgeConnectionsApi.md#listEdgeConnections) | **GET** /v1/edge_connections | List Edge Connections +*BrokerEdgeConnectionsApi* | [**listProjectEdgeConnections**](docs/BrokerEdgeConnectionsApi.md#listProjectEdgeConnections) | **GET** /v1/projects/{project_uuid}/edge_connections | List Project Edge Connections +*BrokerIScpApi* | [**connectISCPV1**](docs/BrokerIScpApi.md#connectISCPV1) | **GET** /v1/ws/measurements | Connect ISCPv1 +*BrokerIScpApi* | [**connectISCPV2**](docs/BrokerIScpApi.md#connectISCPV2) | **GET** /iscp/connect | Connect ISCPv2 +*BrokerIScpApi* | [**connectProjectISCPV1**](docs/BrokerIScpApi.md#connectProjectISCPV1) | **GET** /v1/projects/{project_uuid}/ws/measurements | Connect Project ISCPv1 +*BrokerIScpApi* | [**issueISCPTicket**](docs/BrokerIScpApi.md#issueISCPTicket) | **POST** /iscp/tickets | Issue ISCP Ticket +*BrokerStreamApi* | [**projectStream**](docs/BrokerStreamApi.md#projectStream) | **GET** /v1/projects/{project_uuid}/stream | Get Project Realtime Streaming Data +*BrokerStreamApi* | [**stream**](docs/BrokerStreamApi.md#stream) | **GET** /v1/stream | Get Realtime Streaming Data +*MeasDataPointIdsApi* | [**listDataPointDataIDs**](docs/MeasDataPointIdsApi.md#listDataPointDataIDs) | **GET** /v1/data_ids | List Data Point Data IDs +*MeasDataPointIdsApi* | [**listProjectDataPointDataIDs**](docs/MeasDataPointIdsApi.md#listProjectDataPointDataIDs) | **GET** /v1/projects/{project_uuid}/data_ids | List Project Data Point Data IDs +*MeasDataPointsApi* | [**createDataPoints**](docs/MeasDataPointsApi.md#createDataPoints) | **POST** /v1/measurements/data | Store Data Points +*MeasDataPointsApi* | [**createProjectDataPoints**](docs/MeasDataPointsApi.md#createProjectDataPoints) | **POST** /v1/projects/{project_uuid}/measurements/data | Store Project Data Points +*MeasDataPointsApi* | [**listDataIDs**](docs/MeasDataPointsApi.md#listDataIDs) | **GET** /v1/getids | List Edge's Data IDs +*MeasDataPointsApi* | [**listDataIDsWithMeasurementUUID**](docs/MeasDataPointsApi.md#listDataIDsWithMeasurementUUID) | **GET** /v1/measurements/{measurement_uuid}/getids | List Data IDs +*MeasDataPointsApi* | [**listDataPoints**](docs/MeasDataPointsApi.md#listDataPoints) | **GET** /v1/data | List Data Points +*MeasDataPointsApi* | [**listProjectDataIDs**](docs/MeasDataPointsApi.md#listProjectDataIDs) | **GET** /v1/projects/{project_uuid}/getids | List Project Edge's Data IDs +*MeasDataPointsApi* | [**listProjectDataIDsWithMeasurementUUID**](docs/MeasDataPointsApi.md#listProjectDataIDsWithMeasurementUUID) | **GET** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/getids | List Project Data IDs +*MeasDataPointsApi* | [**listProjectDataPoints**](docs/MeasDataPointsApi.md#listProjectDataPoints) | **GET** /v1/projects/{project_uuid}/data | List Project Data Points +*MeasMeasurementJobsApi* | [**cancelMeasurementJob**](docs/MeasMeasurementJobsApi.md#cancelMeasurementJob) | **PUT** /v1/measurements/jobs/{job_uuid}/cancel | Cancel Measurement Job +*MeasMeasurementJobsApi* | [**cancelProjectMeasurementJob**](docs/MeasMeasurementJobsApi.md#cancelProjectMeasurementJob) | **PUT** /v1/projects/{project_uuid}/measurements/jobs/{job_uuid}/cancel | Cancel Project Measurement Job +*MeasMeasurementJobsApi* | [**deleteMeasurementJob**](docs/MeasMeasurementJobsApi.md#deleteMeasurementJob) | **DELETE** /v1/measurements/jobs/{job_uuid} | Delete Measurement Job +*MeasMeasurementJobsApi* | [**deleteProjectMeasurementJob**](docs/MeasMeasurementJobsApi.md#deleteProjectMeasurementJob) | **DELETE** /v1/projects/{project_uuid}/measurements/jobs/{job_uuid} | Delete Project Measurement Job +*MeasMeasurementJobsApi* | [**getMeasurementJob**](docs/MeasMeasurementJobsApi.md#getMeasurementJob) | **GET** /v1/measurements/jobs/{job_uuid} | Get Measurement Job +*MeasMeasurementJobsApi* | [**getProjectMeasurementJob**](docs/MeasMeasurementJobsApi.md#getProjectMeasurementJob) | **GET** /v1/projects/{project_uuid}/measurements/jobs/{job_uuid} | Get Project Measurement Job +*MeasMeasurementJobsApi* | [**listMeasurementJobs**](docs/MeasMeasurementJobsApi.md#listMeasurementJobs) | **GET** /v1/measurements/jobs | List Measurement Jobs +*MeasMeasurementJobsApi* | [**listProjectMeasurementJobs**](docs/MeasMeasurementJobsApi.md#listProjectMeasurementJobs) | **GET** /v1/projects/{project_uuid}/measurements/jobs | List Project Measurement Jobs +*MeasMeasurementMarkersApi* | [**createMeasurementMarker**](docs/MeasMeasurementMarkersApi.md#createMeasurementMarker) | **POST** /v1/measurements/{measurement_uuid}/markers | Create Measurement Marker by Measurement UUID +*MeasMeasurementMarkersApi* | [**createProjectMeasurementMarker**](docs/MeasMeasurementMarkersApi.md#createProjectMeasurementMarker) | **POST** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/markers | Create Project Measurement Marker by Measurement UUID +*MeasMeasurementMarkersApi* | [**deleteMeasurementMarker**](docs/MeasMeasurementMarkersApi.md#deleteMeasurementMarker) | **DELETE** /v1/measurements/markers/{measurement_marker_uuid} | Delete Measurement Marker +*MeasMeasurementMarkersApi* | [**deleteMeasurementMarkerWithMeasurementUUIDAndMarkerUUID**](docs/MeasMeasurementMarkersApi.md#deleteMeasurementMarkerWithMeasurementUUIDAndMarkerUUID) | **DELETE** /v1/measurements/{measurement_uuid}/markers/{measurement_marker_uuid} | Delete Measurement Marker using Measurement UUID +*MeasMeasurementMarkersApi* | [**deleteMeasurementMarkers**](docs/MeasMeasurementMarkersApi.md#deleteMeasurementMarkers) | **DELETE** /v1/measurements/{measurement_uuid}/markers | Delete Measurement Markers by Measurement UUID +*MeasMeasurementMarkersApi* | [**deleteProjectMeasurementMarker**](docs/MeasMeasurementMarkersApi.md#deleteProjectMeasurementMarker) | **DELETE** /v1/projects/{project_uuid}/measurements/markers/{measurement_marker_uuid} | Delete Project Measurement Marker +*MeasMeasurementMarkersApi* | [**deleteProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID**](docs/MeasMeasurementMarkersApi.md#deleteProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID) | **DELETE** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/markers/{measurement_marker_uuid} | Delete Project Measurement Marker using Measurement UUID +*MeasMeasurementMarkersApi* | [**deleteProjectMeasurementMarkers**](docs/MeasMeasurementMarkersApi.md#deleteProjectMeasurementMarkers) | **DELETE** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/markers | Delete Project Measurement Markers by Measurement UUID +*MeasMeasurementMarkersApi* | [**getMeasurementMarker**](docs/MeasMeasurementMarkersApi.md#getMeasurementMarker) | **GET** /v1/measurements/markers/{measurement_marker_uuid} | Get Measurement Marker +*MeasMeasurementMarkersApi* | [**getMeasurementMarkerWithMeasurementUUIDAndMarkerUUID**](docs/MeasMeasurementMarkersApi.md#getMeasurementMarkerWithMeasurementUUIDAndMarkerUUID) | **GET** /v1/measurements/{measurement_uuid}/markers/{measurement_marker_uuid} | Get Measurement Marker using Measurement UUID +*MeasMeasurementMarkersApi* | [**getMeasurementMarkersWithMeasurementUUID**](docs/MeasMeasurementMarkersApi.md#getMeasurementMarkersWithMeasurementUUID) | **GET** /v1/measurements/{measurement_uuid}/markers | List Measurement Markers by Measurement UUID +*MeasMeasurementMarkersApi* | [**getProjectMeasurementMarker**](docs/MeasMeasurementMarkersApi.md#getProjectMeasurementMarker) | **GET** /v1/projects/{project_uuid}/measurements/markers/{measurement_marker_uuid} | Get Project Measurement Marker +*MeasMeasurementMarkersApi* | [**getProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID**](docs/MeasMeasurementMarkersApi.md#getProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID) | **GET** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/markers/{measurement_marker_uuid} | Get Project Measurement Marker using Measurement UUID +*MeasMeasurementMarkersApi* | [**getProjectMeasurementMarkersWithMeasurementUUID**](docs/MeasMeasurementMarkersApi.md#getProjectMeasurementMarkersWithMeasurementUUID) | **GET** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/markers | List Project Measurement Markers by Measurement UUID +*MeasMeasurementMarkersApi* | [**listMeasurementMarkers**](docs/MeasMeasurementMarkersApi.md#listMeasurementMarkers) | **GET** /v1/measurements/markers | List Measurement Markers +*MeasMeasurementMarkersApi* | [**listProjectMeasurementMarkers**](docs/MeasMeasurementMarkersApi.md#listProjectMeasurementMarkers) | **GET** /v1/projects/{project_uuid}/measurements/markers | List Project Measurement Markers +*MeasMeasurementMarkersApi* | [**updateMeasurementMarker**](docs/MeasMeasurementMarkersApi.md#updateMeasurementMarker) | **PUT** /v1/measurements/markers/{measurement_marker_uuid} | Update Measurement Marker +*MeasMeasurementMarkersApi* | [**updateMeasurementMarkerWithMeasurementUUIDAndMarkerUUID**](docs/MeasMeasurementMarkersApi.md#updateMeasurementMarkerWithMeasurementUUIDAndMarkerUUID) | **PUT** /v1/measurements/{measurement_uuid}/markers/{measurement_marker_uuid} | Replace Measurement Marker using Measurement UUID +*MeasMeasurementMarkersApi* | [**updateProjectMeasurementMarker**](docs/MeasMeasurementMarkersApi.md#updateProjectMeasurementMarker) | **PUT** /v1/projects/{project_uuid}/measurements/markers/{measurement_marker_uuid} | Update Project Measurement Marker +*MeasMeasurementMarkersApi* | [**updateProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID**](docs/MeasMeasurementMarkersApi.md#updateProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID) | **PUT** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/markers/{measurement_marker_uuid} | Replace Project Measurement Marker using Measurement UUID +*MeasMeasurementsApi* | [**completeMeasurement**](docs/MeasMeasurementsApi.md#completeMeasurement) | **PUT** /v1/measurements/{measurement_uuid}/complete | Complete Measurement +*MeasMeasurementsApi* | [**completeProjectMeasurement**](docs/MeasMeasurementsApi.md#completeProjectMeasurement) | **PUT** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/complete | Complete Project Measurement +*MeasMeasurementsApi* | [**createMeasurement**](docs/MeasMeasurementsApi.md#createMeasurement) | **POST** /v1/measurements | Create Measurement +*MeasMeasurementsApi* | [**createMeasurementSequenceChunks**](docs/MeasMeasurementsApi.md#createMeasurementSequenceChunks) | **POST** /v1/measurements/sequences/chunks | Create Measurement Sequence Chunk +*MeasMeasurementsApi* | [**createMeasurementWithUUID**](docs/MeasMeasurementsApi.md#createMeasurementWithUUID) | **POST** /v1/measurements/{measurement_uuid} | Create Measurement with UUID +*MeasMeasurementsApi* | [**createProjectMeasurement**](docs/MeasMeasurementsApi.md#createProjectMeasurement) | **POST** /v1/projects/{project_uuid}/measurements | Create Project Measurement +*MeasMeasurementsApi* | [**createProjectMeasurementSequenceChunks**](docs/MeasMeasurementsApi.md#createProjectMeasurementSequenceChunks) | **POST** /v1/projects/{project_uuid}/measurements/sequences/chunks | Create Project Measurement Sequence Chunk +*MeasMeasurementsApi* | [**createProjectMeasurementWithUUID**](docs/MeasMeasurementsApi.md#createProjectMeasurementWithUUID) | **POST** /v1/projects/{project_uuid}/measurements/{measurement_uuid} | Create Project Measurement with UUID +*MeasMeasurementsApi* | [**deleteMeasurement**](docs/MeasMeasurementsApi.md#deleteMeasurement) | **DELETE** /v1/measurements/{measurement_uuid} | Trash Measurement +*MeasMeasurementsApi* | [**deleteMeasurementBaseTime**](docs/MeasMeasurementsApi.md#deleteMeasurementBaseTime) | **DELETE** /v1/measurements/{measurement_uuid}/basetimes/{type} | Delete Measurement Base Time +*MeasMeasurementsApi* | [**deleteProjectMeasurement**](docs/MeasMeasurementsApi.md#deleteProjectMeasurement) | **DELETE** /v1/projects/{project_uuid}/measurements/{measurement_uuid} | Trash Project Measurement +*MeasMeasurementsApi* | [**deleteProjectMeasurementBaseTime**](docs/MeasMeasurementsApi.md#deleteProjectMeasurementBaseTime) | **DELETE** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/basetimes/{type} | Delete Project Measurement Base Time +*MeasMeasurementsApi* | [**endMeasurement**](docs/MeasMeasurementsApi.md#endMeasurement) | **PUT** /v1/measurements/{measurement_uuid}/end | End Measurement +*MeasMeasurementsApi* | [**endProjectMeasurement**](docs/MeasMeasurementsApi.md#endProjectMeasurement) | **PUT** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/end | End Project Measurement +*MeasMeasurementsApi* | [**getMeasurement**](docs/MeasMeasurementsApi.md#getMeasurement) | **GET** /v1/measurements/{measurement_uuid} | Get Measurement +*MeasMeasurementsApi* | [**getMeasurementBaseTime**](docs/MeasMeasurementsApi.md#getMeasurementBaseTime) | **GET** /v1/measurements/{measurement_uuid}/basetimes/{type} | Get Measurement Base Time +*MeasMeasurementsApi* | [**getMeasurementFromMeasurementMarker**](docs/MeasMeasurementsApi.md#getMeasurementFromMeasurementMarker) | **GET** /v1/measurements/markers/{measurement_marker_uuid}/measurement | Get Measurement from Marker +*MeasMeasurementsApi* | [**getMeasurementSections**](docs/MeasMeasurementsApi.md#getMeasurementSections) | **GET** /v1/measurements/{measurement_uuid}/sections | List Measurement Sections +*MeasMeasurementsApi* | [**getMeasurementSequence**](docs/MeasMeasurementsApi.md#getMeasurementSequence) | **GET** /v1/measurements/{measurement_uuid}/sequences/{sequences_uuid} | Get Measurement Sequence +*MeasMeasurementsApi* | [**getProjectMeasurement**](docs/MeasMeasurementsApi.md#getProjectMeasurement) | **GET** /v1/projects/{project_uuid}/measurements/{measurement_uuid} | Get Project Measurement +*MeasMeasurementsApi* | [**getProjectMeasurementBaseTime**](docs/MeasMeasurementsApi.md#getProjectMeasurementBaseTime) | **GET** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/basetimes/{type} | Get Project Measurement Base Time +*MeasMeasurementsApi* | [**getProjectMeasurementSections**](docs/MeasMeasurementsApi.md#getProjectMeasurementSections) | **GET** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/sections | List Project Measurement Sections +*MeasMeasurementsApi* | [**getProjectMeasurementSequence**](docs/MeasMeasurementsApi.md#getProjectMeasurementSequence) | **GET** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/sequences/{sequences_uuid} | Get Project Measurement Sequence +*MeasMeasurementsApi* | [**listMeasurementBaseTimes**](docs/MeasMeasurementsApi.md#listMeasurementBaseTimes) | **GET** /v1/measurements/{measurement_uuid}/basetimes | List Measurement Base Times +*MeasMeasurementsApi* | [**listMeasurementSequences**](docs/MeasMeasurementsApi.md#listMeasurementSequences) | **GET** /v1/measurements/{measurement_uuid}/sequences | List Measurement Sequences +*MeasMeasurementsApi* | [**listMeasurements**](docs/MeasMeasurementsApi.md#listMeasurements) | **GET** /v1/measurements | List Measurements +*MeasMeasurementsApi* | [**listProjectMeasurementBaseTimes**](docs/MeasMeasurementsApi.md#listProjectMeasurementBaseTimes) | **GET** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/basetimes | List Project Measurement Base Times +*MeasMeasurementsApi* | [**listProjectMeasurementSequences**](docs/MeasMeasurementsApi.md#listProjectMeasurementSequences) | **GET** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/sequences | List Project Measurement Sequences +*MeasMeasurementsApi* | [**listProjectMeasurements**](docs/MeasMeasurementsApi.md#listProjectMeasurements) | **GET** /v1/projects/{project_uuid}/measurements | List Project Measurements +*MeasMeasurementsApi* | [**protectMeasurement**](docs/MeasMeasurementsApi.md#protectMeasurement) | **PUT** /v1/measurements/{measurement_uuid}/protected | Protect Measurement +*MeasMeasurementsApi* | [**protectProjectMeasurement**](docs/MeasMeasurementsApi.md#protectProjectMeasurement) | **PUT** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/protected | Protect Project Measurement +*MeasMeasurementsApi* | [**replaceMeasurementSequence**](docs/MeasMeasurementsApi.md#replaceMeasurementSequence) | **PUT** /v1/measurements/{measurement_uuid}/sequences/{sequences_uuid} | Replace Measurement Sequence +*MeasMeasurementsApi* | [**replaceProjectMeasurementSequence**](docs/MeasMeasurementsApi.md#replaceProjectMeasurementSequence) | **PUT** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/sequences/{sequences_uuid} | Replace Project Measurement Sequence +*MeasMeasurementsApi* | [**unprotectMeasurement**](docs/MeasMeasurementsApi.md#unprotectMeasurement) | **DELETE** /v1/measurements/{measurement_uuid}/protected | Unprotect Measurement +*MeasMeasurementsApi* | [**unprotectProjectMeasurement**](docs/MeasMeasurementsApi.md#unprotectProjectMeasurement) | **DELETE** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/protected | Unprotect Project Measurement +*MeasMeasurementsApi* | [**updateMeasurement**](docs/MeasMeasurementsApi.md#updateMeasurement) | **PUT** /v1/measurements/{measurement_uuid} | Update Measurement +*MeasMeasurementsApi* | [**updateMeasurementBaseTime**](docs/MeasMeasurementsApi.md#updateMeasurementBaseTime) | **PUT** /v1/measurements/{measurement_uuid}/basetimes/{type} | Replace Measurement Base Time +*MeasMeasurementsApi* | [**updateMeasurementSequence**](docs/MeasMeasurementsApi.md#updateMeasurementSequence) | **PATCH** /v1/measurements/{measurement_uuid}/sequences/{sequences_uuid} | Update Measurement Sequence +*MeasMeasurementsApi* | [**updateProjectMeasurement**](docs/MeasMeasurementsApi.md#updateProjectMeasurement) | **PUT** /v1/projects/{project_uuid}/measurements/{measurement_uuid} | Update Project Measurement +*MeasMeasurementsApi* | [**updateProjectMeasurementBaseTime**](docs/MeasMeasurementsApi.md#updateProjectMeasurementBaseTime) | **PUT** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/basetimes/{type} | Replace Project Measurement Base Time +*MeasMeasurementsApi* | [**updateProjectMeasurementSequence**](docs/MeasMeasurementsApi.md#updateProjectMeasurementSequence) | **PATCH** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/sequences/{sequences_uuid} | Update Project Measurement Sequence +*MeasSignalsApi* | [**createProjectSignal**](docs/MeasSignalsApi.md#createProjectSignal) | **POST** /v1/projects/{project_uuid}/signals | Create Project Signal +*MeasSignalsApi* | [**createSignal**](docs/MeasSignalsApi.md#createSignal) | **POST** /v1/signals | Create Signal +*MeasSignalsApi* | [**deleteProjectSignal**](docs/MeasSignalsApi.md#deleteProjectSignal) | **DELETE** /v1/projects/{project_uuid}/signals/{signal_uuid} | Delete Project Signal +*MeasSignalsApi* | [**deleteSignal**](docs/MeasSignalsApi.md#deleteSignal) | **DELETE** /v1/signals/{signal_uuid} | Delete Signal +*MeasSignalsApi* | [**getProjectSignal**](docs/MeasSignalsApi.md#getProjectSignal) | **GET** /v1/projects/{project_uuid}/signals/{signal_uuid} | Get Project Signal +*MeasSignalsApi* | [**getSignal**](docs/MeasSignalsApi.md#getSignal) | **GET** /v1/signals/{signal_uuid} | Get Signal +*MeasSignalsApi* | [**listProjectSignals**](docs/MeasSignalsApi.md#listProjectSignals) | **GET** /v1/projects/{project_uuid}/signals | List Project Signals +*MeasSignalsApi* | [**listSignals**](docs/MeasSignalsApi.md#listSignals) | **GET** /v1/signals | List Signals +*MeasSignalsApi* | [**updateProjectSignal**](docs/MeasSignalsApi.md#updateProjectSignal) | **PUT** /v1/projects/{project_uuid}/signals/{signal_uuid} | Update Project Signal +*MeasSignalsApi* | [**updateSignal**](docs/MeasSignalsApi.md#updateSignal) | **PUT** /v1/signals/{signal_uuid} | Update Signal +*MeasTrashedMeasurementsApi* | [**deleteProjectTrashedMeasurement**](docs/MeasTrashedMeasurementsApi.md#deleteProjectTrashedMeasurement) | **DELETE** /v1/projects/{project_uuid}/trashed_measurements/{measurement_uuid} | Delete Project Trashed Measurement and Delete Data Points Immediately +*MeasTrashedMeasurementsApi* | [**deleteTrashedMeasurement**](docs/MeasTrashedMeasurementsApi.md#deleteTrashedMeasurement) | **DELETE** /v1/trashed_measurements/{measurement_uuid} | Delete Trashed Measurement and Delete Data Points Immediately +*MeasTrashedMeasurementsApi* | [**listProjectTrashedMeasurements**](docs/MeasTrashedMeasurementsApi.md#listProjectTrashedMeasurements) | **GET** /v1/projects/{project_uuid}/trashed_measurements | List Project Trashed Measurements +*MeasTrashedMeasurementsApi* | [**listTrashedMeasurements**](docs/MeasTrashedMeasurementsApi.md#listTrashedMeasurements) | **GET** /v1/trashed_measurements | List Trashed Measurements +*MeasTrashedMeasurementsApi* | [**restoreProjectTrashedMeasurement**](docs/MeasTrashedMeasurementsApi.md#restoreProjectTrashedMeasurement) | **DELETE** /v1/projects/{project_uuid}/trashed_measurements/{measurement_uuid}/restore | Restore Project Measurement +*MeasTrashedMeasurementsApi* | [**restoreTrashedMeasurement**](docs/MeasTrashedMeasurementsApi.md#restoreTrashedMeasurement) | **DELETE** /v1/trashed_measurements/{measurement_uuid}/restore | Restore Measurement +*MeasUploadingMeasurementsApi* | [**listMeasurementStatuses**](docs/MeasUploadingMeasurementsApi.md#listMeasurementStatuses) | **GET** /v1/measurements/upload | List Uploading Statuses of Measurements +*MeasUploadingMeasurementsApi* | [**listProjectMeasurementStatuses**](docs/MeasUploadingMeasurementsApi.md#listProjectMeasurementStatuses) | **GET** /v1/projects/{project_uuid}/measurements/upload | List Project Uploading Statuses of Measurements +*MeasUploadingMeasurementsApi* | [**uploadMeasurement**](docs/MeasUploadingMeasurementsApi.md#uploadMeasurement) | **POST** /v1/measurements/upload | Create Measurement from CSV File +*MeasUploadingMeasurementsApi* | [**uploadMeasurementIntoMeasurement**](docs/MeasUploadingMeasurementsApi.md#uploadMeasurementIntoMeasurement) | **POST** /v1/measurements/{measurement_uuid}/upload | Store Data Points by CSV File +*MeasUploadingMeasurementsApi* | [**uploadProjectMeasurement**](docs/MeasUploadingMeasurementsApi.md#uploadProjectMeasurement) | **POST** /v1/projects/{project_uuid}/measurements/upload | Create Project Measurement from CSV File +*MeasUploadingMeasurementsApi* | [**uploadProjectMeasurementIntoMeasurement**](docs/MeasUploadingMeasurementsApi.md#uploadProjectMeasurementIntoMeasurement) | **POST** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/upload | Store Project Data Points by CSV File +*MediaHlsApi* | [**getFMP4**](docs/MediaHlsApi.md#getFMP4) | **GET** /media/measurements/{meas_uuid}/channels/{channel}/mp4s/measurement.mp4 | Get HLS as FMP4 +*MediaHlsApi* | [**getHLSes**](docs/MediaHlsApi.md#getHLSes) | **GET** /media/hlses | List HLSes +*MediaHlsApi* | [**getPlaylist**](docs/MediaHlsApi.md#getPlaylist) | **GET** /media/measurements/{meas_uuid}/channels/{channel}/hlses/playlist.m3u8 | Get HLS Playlist +*MediaHlsApi* | [**getProjectFMP4**](docs/MediaHlsApi.md#getProjectFMP4) | **GET** /media/projects/{project_uuid}/measurements/{meas_uuid}/channels/{channel}/mp4s/measurement.mp4 | Get Project HLS as FMP4 +*MediaHlsApi* | [**getProjectHLSes**](docs/MediaHlsApi.md#getProjectHLSes) | **GET** /media/projects/{project_uuid}/hlses | List Project HLSes +*MediaHlsApi* | [**getProjectPlaylist**](docs/MediaHlsApi.md#getProjectPlaylist) | **GET** /media/projects/{project_uuid}/measurements/{meas_uuid}/channels/{channel}/hlses/playlist.m3u8 | Get Project HLS Playlist +*MediaJobsApi* | [**createJob**](docs/MediaJobsApi.md#createJob) | **POST** /media/jobs | Create Job +*MediaJobsApi* | [**createProjectJob**](docs/MediaJobsApi.md#createProjectJob) | **POST** /media/projects/{project_uuid}/jobs | Create Project Job +*MediaJobsApi* | [**getJobs**](docs/MediaJobsApi.md#getJobs) | **GET** /media/jobs | List Jobs +*MediaJobsApi* | [**getProjectJobs**](docs/MediaJobsApi.md#getProjectJobs) | **GET** /media/projects/{project_uuid}/jobs | List Project Jobs +*MediaLiveApi* | [**connectLive**](docs/MediaLiveApi.md#connectLive) | **GET** /media/ws/edges/{edge_uuid}/fmp4s/{channel} | Get realtime video stream +*MediaLiveApi* | [**connectProjectLive**](docs/MediaLiveApi.md#connectProjectLive) | **GET** /media/projects/{project_uuid}/ws/edges/{edge_uuid}/fmp4s/{channel} | Get Project realtime video stream +*MediaVideosApi* | [**cancelCreatingJpeg**](docs/MediaVideosApi.md#cancelCreatingJpeg) | **PUT** /media/videos/{video_uuid}/jpegs/{jpeg_uuid}/cancel_convert | Cancel Creating JPEG +*MediaVideosApi* | [**cancelCreatingMP4**](docs/MediaVideosApi.md#cancelCreatingMP4) | **PUT** /media/videos/{video_uuid}/mp4s/{mp4_uuid}/cancel_convert | Cancel Creating MP4 +*MediaVideosApi* | [**cancelCreatingProjectJpeg**](docs/MediaVideosApi.md#cancelCreatingProjectJpeg) | **PUT** /media/projects/{project_uuid}/videos/{video_uuid}/jpegs/{jpeg_uuid}/cancel_convert | Cancel Creating Project JPEG +*MediaVideosApi* | [**cancelCreatingProjectMP4**](docs/MediaVideosApi.md#cancelCreatingProjectMP4) | **PUT** /media/projects/{project_uuid}/videos/{video_uuid}/mp4s/{mp4_uuid}/cancel_convert | Cancel Creating Project MP4 +*MediaVideosApi* | [**createJpeg**](docs/MediaVideosApi.md#createJpeg) | **POST** /media/videos/{video_uuid}/jpegs | Create JPEG +*MediaVideosApi* | [**createMP4**](docs/MediaVideosApi.md#createMP4) | **POST** /media/videos/{video_uuid}/mp4s | Create MP4 +*MediaVideosApi* | [**createProjectJpeg**](docs/MediaVideosApi.md#createProjectJpeg) | **POST** /media/projects/{project_uuid}/videos/{video_uuid}/jpegs | Create Project JPEG +*MediaVideosApi* | [**createProjectMP4**](docs/MediaVideosApi.md#createProjectMP4) | **POST** /media/projects/{project_uuid}/videos/{video_uuid}/mp4s | Create Project MP4 +*MediaVideosApi* | [**deleteJpeg**](docs/MediaVideosApi.md#deleteJpeg) | **DELETE** /media/videos/{video_uuid}/jpegs/{jpeg_uuid} | Delete JPEG +*MediaVideosApi* | [**deleteMP4**](docs/MediaVideosApi.md#deleteMP4) | **DELETE** /media/videos/{video_uuid}/mp4s/{mp4_uuid} | Delete MP4 +*MediaVideosApi* | [**deleteProjectJpeg**](docs/MediaVideosApi.md#deleteProjectJpeg) | **DELETE** /media/projects/{project_uuid}/videos/{video_uuid}/jpegs/{jpeg_uuid} | Delete Project JPEG +*MediaVideosApi* | [**deleteProjectMP4**](docs/MediaVideosApi.md#deleteProjectMP4) | **DELETE** /media/projects/{project_uuid}/videos/{video_uuid}/mp4s/{mp4_uuid} | Delete Project MP4 +*MediaVideosApi* | [**getJpeg**](docs/MediaVideosApi.md#getJpeg) | **GET** /media/videos/{video_uuid}/jpegs/{jpeg_uuid} | Get JPEG +*MediaVideosApi* | [**getJpegAsZip**](docs/MediaVideosApi.md#getJpegAsZip) | **GET** /media/videos/{video_uuid}/jpegs/{jpeg_uuid}/images/selected.zip | Get JPEG as zip +*MediaVideosApi* | [**getJpegs**](docs/MediaVideosApi.md#getJpegs) | **GET** /media/videos/{video_uuid}/jpegs | List JPEGs +*MediaVideosApi* | [**getMP4**](docs/MediaVideosApi.md#getMP4) | **GET** /media/videos/{video_uuid}/mp4s/{mp4_uuid} | Get MP4 +*MediaVideosApi* | [**getMP4s**](docs/MediaVideosApi.md#getMP4s) | **GET** /media/videos/{video_uuid}/mp4s | List MP4s +*MediaVideosApi* | [**getProjectJpeg**](docs/MediaVideosApi.md#getProjectJpeg) | **GET** /media/projects/{project_uuid}/videos/{video_uuid}/jpegs/{jpeg_uuid} | Get Project JPEG +*MediaVideosApi* | [**getProjectJpegAsZip**](docs/MediaVideosApi.md#getProjectJpegAsZip) | **GET** /media/projects/{project_uuid}/videos/{video_uuid}/jpegs/{jpeg_uuid}/images/selected.zip | Get Project JPEG as zip +*MediaVideosApi* | [**getProjectJpegs**](docs/MediaVideosApi.md#getProjectJpegs) | **GET** /media/projects/{project_uuid}/videos/{video_uuid}/jpegs | List Project JPEGs +*MediaVideosApi* | [**getProjectMP4**](docs/MediaVideosApi.md#getProjectMP4) | **GET** /media/projects/{project_uuid}/videos/{video_uuid}/mp4s/{mp4_uuid} | Get Project MP4 +*MediaVideosApi* | [**getProjectMP4s**](docs/MediaVideosApi.md#getProjectMP4s) | **GET** /media/projects/{project_uuid}/videos/{video_uuid}/mp4s | List Project MP4s +*MediaVideosApi* | [**getProjectVideo**](docs/MediaVideosApi.md#getProjectVideo) | **GET** /media/projects/{project_uuid}/videos/{video_uuid} | Get Project Video +*MediaVideosApi* | [**getProjectVideos**](docs/MediaVideosApi.md#getProjectVideos) | **GET** /media/projects/{project_uuid}/videos | List Project Videos +*MediaVideosApi* | [**getVideo**](docs/MediaVideosApi.md#getVideo) | **GET** /media/videos/{video_uuid} | Get Video +*MediaVideosApi* | [**getVideos**](docs/MediaVideosApi.md#getVideos) | **GET** /media/videos | List Videos +*VersionsVersionApi* | [**getVersion**](docs/VersionsVersionApi.md#getVersion) | **GET** /v1/version | Get Version + + +## Documentation for Models + + - [APITokenIntrospectionRequest](docs/APITokenIntrospectionRequest.md) + - [APITokenIntrospectionResponse](docs/APITokenIntrospectionResponse.md) + - [AddGroupMemberRequest](docs/AddGroupMemberRequest.md) + - [AddProjectEdgeRequest](docs/AddProjectEdgeRequest.md) + - [AddProjectMemberRequest](docs/AddProjectMemberRequest.md) + - [AllowedEndpoint](docs/AllowedEndpoint.md) + - [AllowedISCPMessage](docs/AllowedISCPMessage.md) + - [AssignOwnerRequest](docs/AssignOwnerRequest.md) + - [AuthPage](docs/AuthPage.md) + - [ChangePasswordRequest](docs/ChangePasswordRequest.md) + - [CheckAuthorizationResponse](docs/CheckAuthorizationResponse.md) + - [CheckHTTPAuthorizationRequest](docs/CheckHTTPAuthorizationRequest.md) + - [CheckMeHTTPAuthorizationRequest](docs/CheckMeHTTPAuthorizationRequest.md) + - [CheckPasswordRequest](docs/CheckPasswordRequest.md) + - [CheckPasswordResult](docs/CheckPasswordResult.md) + - [CheckPasswordResultErrorsInner](docs/CheckPasswordResultErrorsInner.md) + - [CreateEdgeRequest](docs/CreateEdgeRequest.md) + - [CreateEmailRequest](docs/CreateEmailRequest.md) + - [CreateGroupRequest](docs/CreateGroupRequest.md) + - [CreateJobRequest](docs/CreateJobRequest.md) + - [CreateJpegRequest](docs/CreateJpegRequest.md) + - [CreateMP4Request](docs/CreateMP4Request.md) + - [CreateMeasurementChunksResult](docs/CreateMeasurementChunksResult.md) + - [CreateMeasurementChunksResultItemsInner](docs/CreateMeasurementChunksResultItemsInner.md) + - [CreateMyOAuth2ClientRequest](docs/CreateMyOAuth2ClientRequest.md) + - [CreateOAuth2ClientAuthorizationCodeRequest](docs/CreateOAuth2ClientAuthorizationCodeRequest.md) + - [CreateOAuth2ClientAuthorizationCodeRequestAllOf](docs/CreateOAuth2ClientAuthorizationCodeRequestAllOf.md) + - [CreateOAuth2ClientClientCredentialsRequest](docs/CreateOAuth2ClientClientCredentialsRequest.md) + - [CreateProjectRequest](docs/CreateProjectRequest.md) + - [CreateSignalRequest](docs/CreateSignalRequest.md) + - [CreateUserAPITokenRequest](docs/CreateUserAPITokenRequest.md) + - [CreateUserRequest](docs/CreateUserRequest.md) + - [DataID](docs/DataID.md) + - [DataIDs](docs/DataIDs.md) + - [DataPoint](docs/DataPoint.md) + - [DataPointDataError](docs/DataPointDataError.md) + - [DataPointDataErrorData](docs/DataPointDataErrorData.md) + - [DataPointDataID](docs/DataPointDataID.md) + - [DataPointDataIDs](docs/DataPointDataIDs.md) + - [DataPointError](docs/DataPointError.md) + - [DataPointErrorAllOf](docs/DataPointErrorAllOf.md) + - [DataPointNormal](docs/DataPointNormal.md) + - [DataPointTime](docs/DataPointTime.md) + - [DeniedEndpoint](docs/DeniedEndpoint.md) + - [Edge](docs/Edge.md) + - [EdgeConnection](docs/EdgeConnection.md) + - [EdgeConnectionAllOf](docs/EdgeConnectionAllOf.md) + - [EdgeConnectionDownstream](docs/EdgeConnectionDownstream.md) + - [EdgeConnectionEdge](docs/EdgeConnectionEdge.md) + - [EdgeConnectionItem](docs/EdgeConnectionItem.md) + - [EdgeConnectionList](docs/EdgeConnectionList.md) + - [EdgeConnectionListPage](docs/EdgeConnectionListPage.md) + - [EdgeConnectionUpstream](docs/EdgeConnectionUpstream.md) + - [EdgeOwner](docs/EdgeOwner.md) + - [Edges](docs/Edges.md) + - [ErrorConverted](docs/ErrorConverted.md) + - [ErrorConvertedAllOf](docs/ErrorConvertedAllOf.md) + - [ErrorConvertedAllOfErrorExtra](docs/ErrorConvertedAllOfErrorExtra.md) + - [ErrorExtraEmpty](docs/ErrorExtraEmpty.md) + - [ErrorProblem](docs/ErrorProblem.md) + - [ErrorProblemMedia](docs/ErrorProblemMedia.md) + - [GetVersion200Response](docs/GetVersion200Response.md) + - [Group](docs/Group.md) + - [Groups](docs/Groups.md) + - [HLS](docs/HLS.md) + - [HLSList](docs/HLSList.md) + - [ISCPMessageType](docs/ISCPMessageType.md) + - [ISCPTicket](docs/ISCPTicket.md) + - [IssueToken200Response](docs/IssueToken200Response.md) + - [JSONWebKey](docs/JSONWebKey.md) + - [Job](docs/Job.md) + - [JobList](docs/JobList.md) + - [JobStatus](docs/JobStatus.md) + - [JobType](docs/JobType.md) + - [Jpeg](docs/Jpeg.md) + - [JpegQuality](docs/JpegQuality.md) + - [JpegStatus](docs/JpegStatus.md) + - [Jpegs](docs/Jpegs.md) + - [MP4](docs/MP4.md) + - [MP4Status](docs/MP4Status.md) + - [MP4s](docs/MP4s.md) + - [MeasBaseTime](docs/MeasBaseTime.md) + - [MeasBaseTimePut](docs/MeasBaseTimePut.md) + - [MeasBaseTimes](docs/MeasBaseTimes.md) + - [MeasCreate](docs/MeasCreate.md) + - [MeasReplace](docs/MeasReplace.md) + - [Measurement](docs/Measurement.md) + - [MeasurementBaseTimeType](docs/MeasurementBaseTimeType.md) + - [MeasurementJob](docs/MeasurementJob.md) + - [MeasurementJobStatus](docs/MeasurementJobStatus.md) + - [MeasurementJobs](docs/MeasurementJobs.md) + - [MeasurementMarker](docs/MeasurementMarker.md) + - [MeasurementMarkerBase](docs/MeasurementMarkerBase.md) + - [MeasurementMarkerDetailPoint](docs/MeasurementMarkerDetailPoint.md) + - [MeasurementMarkerDetailRange](docs/MeasurementMarkerDetailRange.md) + - [MeasurementMarkerPoint](docs/MeasurementMarkerPoint.md) + - [MeasurementMarkerPointAllOf](docs/MeasurementMarkerPointAllOf.md) + - [MeasurementMarkerPostRequest](docs/MeasurementMarkerPostRequest.md) + - [MeasurementMarkerPostRequestPoint](docs/MeasurementMarkerPostRequestPoint.md) + - [MeasurementMarkerPostRequestRange](docs/MeasurementMarkerPostRequestRange.md) + - [MeasurementMarkerPutRequest](docs/MeasurementMarkerPutRequest.md) + - [MeasurementMarkerPutRequestBase](docs/MeasurementMarkerPutRequestBase.md) + - [MeasurementMarkerPutRequestPoint](docs/MeasurementMarkerPutRequestPoint.md) + - [MeasurementMarkerPutRequestRange](docs/MeasurementMarkerPutRequestRange.md) + - [MeasurementMarkerRange](docs/MeasurementMarkerRange.md) + - [MeasurementMarkerRangeAllOf](docs/MeasurementMarkerRangeAllOf.md) + - [MeasurementMarkers](docs/MeasurementMarkers.md) + - [MeasurementMarkersWithoutPage](docs/MeasurementMarkersWithoutPage.md) + - [MeasurementSectionGetResponse](docs/MeasurementSectionGetResponse.md) + - [MeasurementSectionsGetResponse](docs/MeasurementSectionsGetResponse.md) + - [MeasurementSequenceGroup](docs/MeasurementSequenceGroup.md) + - [MeasurementSequenceGroupReplace](docs/MeasurementSequenceGroupReplace.md) + - [MeasurementSequenceGroups](docs/MeasurementSequenceGroups.md) + - [MeasurementSequencesSummary](docs/MeasurementSequencesSummary.md) + - [MeasurementUploadPostResponse](docs/MeasurementUploadPostResponse.md) + - [MeasurementUploadStatusGetResponse](docs/MeasurementUploadStatusGetResponse.md) + - [MeasurementUploadStatusesGetResponse](docs/MeasurementUploadStatusesGetResponse.md) + - [Measurements](docs/Measurements.md) + - [MediaMeasurement](docs/MediaMeasurement.md) + - [MediaMeasurementBaseTimeType](docs/MediaMeasurementBaseTimeType.md) + - [Member](docs/Member.md) + - [Members](docs/Members.md) + - [OAuth2Client](docs/OAuth2Client.md) + - [OAuth2ClientGrantType](docs/OAuth2ClientGrantType.md) + - [OAuth2ClientResponseType](docs/OAuth2ClientResponseType.md) + - [OAuth2ClientWithSecret](docs/OAuth2ClientWithSecret.md) + - [OAuth2ClientWithSecretAllOf](docs/OAuth2ClientWithSecretAllOf.md) + - [OAuth2Clients](docs/OAuth2Clients.md) + - [OAuth2JWKs](docs/OAuth2JWKs.md) + - [Page](docs/Page.md) + - [PageDetail](docs/PageDetail.md) + - [PageV2](docs/PageV2.md) + - [PatchEdgeRequest](docs/PatchEdgeRequest.md) + - [PatchEmailRequest](docs/PatchEmailRequest.md) + - [PatchUserRequest](docs/PatchUserRequest.md) + - [Playlist](docs/Playlist.md) + - [Project](docs/Project.md) + - [ProjectEdge](docs/ProjectEdge.md) + - [ProjectEdges](docs/ProjectEdges.md) + - [Projects](docs/Projects.md) + - [Role](docs/Role.md) + - [Roles](docs/Roles.md) + - [Scope](docs/Scope.md) + - [Scopes](docs/Scopes.md) + - [SequenceSummary](docs/SequenceSummary.md) + - [Signal](docs/Signal.md) + - [SignalConversion](docs/SignalConversion.md) + - [SignalConversionCSV](docs/SignalConversionCSV.md) + - [SignalConversionJSON](docs/SignalConversionJSON.md) + - [SignalConversionNumFixedPoint](docs/SignalConversionNumFixedPoint.md) + - [SignalConversionNumFloatingPoint](docs/SignalConversionNumFloatingPoint.md) + - [SignalConversionOptionCSV](docs/SignalConversionOptionCSV.md) + - [SignalConversionOptionJSON](docs/SignalConversionOptionJSON.md) + - [SignalConversionOptionNumFixedPoint](docs/SignalConversionOptionNumFixedPoint.md) + - [SignalConversionOptionNumFloatingPoint](docs/SignalConversionOptionNumFloatingPoint.md) + - [SignalConversionOptionSubBytes](docs/SignalConversionOptionSubBytes.md) + - [SignalConversionOptionSubString](docs/SignalConversionOptionSubString.md) + - [SignalConversionOptionType](docs/SignalConversionOptionType.md) + - [SignalConversionSubBytes](docs/SignalConversionSubBytes.md) + - [SignalConversionSubString](docs/SignalConversionSubString.md) + - [SignalDisplay](docs/SignalDisplay.md) + - [Signals](docs/Signals.md) + - [TrashedMeasurements](docs/TrashedMeasurements.md) + - [UpdateEmailVerifiedRequest](docs/UpdateEmailVerifiedRequest.md) + - [UpdateGroupMemberRequest](docs/UpdateGroupMemberRequest.md) + - [UpdateGroupRequest](docs/UpdateGroupRequest.md) + - [UpdateOAuth2ClientRequest](docs/UpdateOAuth2ClientRequest.md) + - [UpdateProjectEdgeRequest](docs/UpdateProjectEdgeRequest.md) + - [UpdateProjectMemberRequest](docs/UpdateProjectMemberRequest.md) + - [UpdateProjectRequest](docs/UpdateProjectRequest.md) + - [UpdateSignalRequest](docs/UpdateSignalRequest.md) + - [UpdateUserAPITokenRequest](docs/UpdateUserAPITokenRequest.md) + - [User](docs/User.md) + - [UserAPIToken](docs/UserAPIToken.md) + - [UserAPITokens](docs/UserAPITokens.md) + - [UserEmail](docs/UserEmail.md) + - [UserEmailVerification](docs/UserEmailVerification.md) + - [UserPassword](docs/UserPassword.md) + - [Users](docs/Users.md) + - [Video](docs/Video.md) + - [VideoCodecs](docs/VideoCodecs.md) + - [VideoSourceDataType](docs/VideoSourceDataType.md) + - [VideoStatus](docs/VideoStatus.md) + - [Videos](docs/Videos.md) + + + +## Documentation for Authorization + + +Authentication schemes defined for the API: + +### BasicAuthForTenantAPI + +- **Type**: HTTP basic authentication + + +### IntdashToken + +- **Type**: API key +- **API key parameter name**: X-Intdash-Token +- **Location**: HTTP header + + +### OAuth2 + +- **Type**: OAuth +- **Flow**: password +- **Authorization URL**: +- **Scopes**: + - <scopes>: OAuth2のスコープ(権限を制御するために使用される、サーバーによって決められた文字列) + + +### OAuth2 + +- **Type**: OAuth +- **Flow**: application +- **Authorization URL**: +- **Scopes**: + - <scopes>: OAuth2のスコープ(権限を制御するために使用される、サーバーによって決められた文字列) + + +### OAuth2 + +- **Type**: OAuth +- **Flow**: accessCode +- **Authorization URL**: /api/auth/oauth2/authorization +- **Scopes**: + - <scopes>: OAuth2のスコープ(権限を制御するために使用される、サーバーによって決められた文字列) + + +### OAuth2TokenInHeader + +- **Type**: HTTP basic authentication + + +### OAuth2TokenInCookie + +- **Type**: API key +- **API key parameter name**: _bearer_token +- **Location**: + + +## Recommendation + +It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issues. + +## Author + +VM2M-support@aptpod.co.jp + diff --git a/intdash/api/openapi.yaml b/intdash/api/openapi.yaml new file mode 100644 index 0000000..0bf9042 --- /dev/null +++ b/intdash/api/openapi.yaml @@ -0,0 +1,20220 @@ +openapi: 3.0.3 +info: + contact: + email: VM2M-support@aptpod.co.jp + name: 株式会社アプトポッド + url: https://www.aptpod.co.jp/ + description: |- + ## ベースURL + + ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 + + ``` + https:///api + ``` + エンドポイント例: + ``` + https://example.intdash.jp/api/v1/measurements + https://example.intdash.jp/api/media/videos + ``` + + ## レスポンスのステータスコード + + サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 + + + | コード | 説明 | + |:--------------------------|:----------------------------------------------------------------------| + | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | + | 200 OK | リクエストは成功しました。 | + | 201 Created | 新しいリソースが作成されました。 | + | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | + | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | + | 401 Unauthorized | リクエストには認証が必要です。 | + | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | + | 404 Not Found | APIまたはリソースが見つかりません。 | + | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | + | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | + | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | + + + ## 注意 + リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 + + ``` + + { + "username" : "username", + "password" : "password" + } + + ``` + + + ``` + + { + "Username" : "username", + "Password" : "password" + } + + ``` + title: intdash API specification + version: v2.4.0-next-4a4316946 +servers: +- description: URLのサンプルです。 + url: https://example.intdash.jp/api +security: +- IntdashToken: [] +- OAuth2TokenInHeader: [] +- OAuth2TokenInCookie: [] +tags: +- name: auth_Clients + x-displayName: Clients +- name: auth_Authorization + x-displayName: Authorization +- name: auth_Edges + x-displayName: Edges +- name: auth_OAuth2 + x-displayName: OAuth2 +- name: auth_Me + x-displayName: Me +- name: auth_Users + x-displayName: Users +- name: auth_Projects + x-displayName: Projects +- name: auth_Groups + x-displayName: Groups +- name: auth_Group Members + x-displayName: Group Members +- name: auth_Project Edges + x-displayName: Project Edges +- name: auth_Project Members + x-displayName: Project Members +- name: auth_Roles + x-displayName: Roles +- name: auth_Scopes + x-displayName: Scopes +- name: broker_Edge Connections + x-displayName: Edge Connections +- name: broker_Stream + x-displayName: Stream +- name: broker_iSCP + x-displayName: iSCP +- description: | + + name: meas_data_model + x-displayName: DataPoint Model +- name: meas_DataPoints + x-displayName: DataPoints +- name: meas_DataPointIDs + x-displayName: DataPointIDs +- name: meas_Measurements + x-displayName: Measurements +- name: meas_Measurement Jobs + x-displayName: Measurement Jobs +- name: meas_Measurement Markers + x-displayName: Measurement Markers +- name: meas_Uploading Measurements + x-displayName: Uploading Measurements +- name: meas_Signals + x-displayName: Signals +- name: meas_Trashed Measurements + x-displayName: Trashed Measurements +- name: media_HLS + x-displayName: HLS +- name: media_Jobs + x-displayName: Jobs +- name: media_Videos + x-displayName: Videos +- name: media_Live + x-displayName: Live +- name: versions_Version + x-displayName: Version +paths: + /auth/clients: + get: + description: OAuth2クライアントのリストを取得します。 + operationId: listOAuth2Clients + parameters: + - description: OAuth2クライアントID + example: 039b8ee2-8edc-46e4-9a88-4d03bac142f7 + explode: true + in: query + name: id + required: false + schema: + items: + type: string + type: array + style: form + - description: 名前による部分一致検索 + example: client_name + explode: true + in: query + name: name + required: false + schema: + items: + type: string + type: array + style: form + - description: |- + 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 + - name + - created_at + - updated_at + explode: true + in: query + name: sort + required: false + schema: + default: name+ + type: string + style: form + - description: 取得するページの番号 + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: 1回のリクエストで取得する件数 + explode: true + in: query + name: per_page + required: false + schema: + default: 30 + maximum: 200 + type: integer + style: form + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/OAuth2Clients' + description: OK + summary: List OAuth2Clients + tags: + - auth_Clients + x-accepts: application/json; charset=utf-8 + /auth/authorize/http: + post: + operationId: checkHTTPAuthorization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CheckHTTPAuthorizationRequest' + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/CheckAuthorizationResponse' + description: OK + summary: Check HTTP Authorization + tags: + - auth_Authorization + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/clients/{client_id}: + delete: + description: OAuth2クライアントを削除します。 + operationId: deleteOAuth2Client + parameters: + - description: OAuth2クライアントID + example: 039b8ee2-8edc-46e4-9a88-4d03bac142f7 + explode: false + in: path + name: client_id + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete OAuth2Client + tags: + - auth_Clients + x-accepts: application/json + get: + description: OAuth2クライアントを取得します。 + operationId: getOAuth2Client + parameters: + - description: OAuth2クライアントID + example: 039b8ee2-8edc-46e4-9a88-4d03bac142f7 + explode: false + in: path + name: client_id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/OAuth2Client' + description: OK + summary: Get OAuth2Client + tags: + - auth_Clients + x-accepts: application/json; charset=utf-8 + patch: + description: OAuth2クライアントを更新します。 + operationId: updateOAuth2Client + parameters: + - description: OAuth2クライアントID + example: 039b8ee2-8edc-46e4-9a88-4d03bac142f7 + explode: false + in: path + name: client_id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateOAuth2ClientRequest' + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/OAuth2Client' + description: OK + summary: Update OAuth2Client + tags: + - auth_Clients + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/edges: + get: + description: エッジのリストを取得します。 + operationId: listEdges + parameters: + - description: エッジのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: true + in: query + name: uuid + required: false + schema: + items: + type: string + type: array + style: form + - description: 名前による部分一致検索 + example: edge_name + explode: true + in: query + name: name + required: false + schema: + items: + type: string + type: array + style: form + - description: 表示名による部分一致検索 + example: edge_nickname + explode: true + in: query + name: nickname + required: false + schema: + items: + type: string + type: array + style: form + - description: 所有者ユーザーのUUID + example: d30267f0-bdd4-4d53-b072-45d3cc29c7de + explode: true + in: query + name: owner_uuid + required: false + schema: + items: + type: string + type: array + style: form + - description: |- + 所有者の有無。 + + * `true` : 所有者が設定されているエッジを取得します。 + * `false` : 所有者が設定されていないエッジを取得します。 + example: "true" + explode: true + in: query + name: has_owner + required: false + schema: + enum: + - "true" + - "false" + type: string + style: form + - description: |- + 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 + 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 + - name + - created_at + - updated_at + explode: true + in: query + name: sort + required: false + schema: + default: name+ + type: string + style: form + - description: 取得するページの番号 + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: 1回のリクエストで取得する件数 + explode: true + in: query + name: per_page + required: false + schema: + default: 30 + maximum: 200 + type: integer + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + Edges: + $ref: '#/components/examples/EmptyList' + value: null + schema: + $ref: '#/components/schemas/Edges' + description: OK + summary: List Edges + tags: + - auth_Edges + x-accepts: application/json; charset=utf-8 + post: + description: 所有者がない状態でエッジを作成します。 + operationId: createEdge + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateEdgeRequest' + responses: + "201": + content: + application/json; charset=utf-8: + examples: + EdgeWithoutOwner: + $ref: '#/components/examples/EdgeWithoutOwner' + value: null + schema: + $ref: '#/components/schemas/Edge' + description: Created + summary: Create Edge + tags: + - auth_Edges + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/edges/me: + get: + description: 自分のUUIDと同じエッジUUIDを持つエッジを取得します。 + operationId: GetMeAsEdge + responses: + "200": + content: + application/json; charset=utf-8: + examples: + Edge: + $ref: '#/components/examples/Edge' + value: null + schema: + $ref: '#/components/schemas/Edge' + description: OK + summary: Get Edge having the same UUID as Me + tags: + - auth_Edges + x-accepts: application/json; charset=utf-8 + /auth/edges/{edge_uuid}: + delete: + description: エッジを削除します。 + operationId: deleteEdge + parameters: + - description: エッジのUUID + example: e920a50c-ddde-4571-b066-b568340de7cf + explode: false + in: path + name: edge_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete Edge + tags: + - auth_Edges + x-accepts: application/json + get: + description: エッジを取得します。 + operationId: getEdge + parameters: + - description: エッジのUUID + example: e920a50c-ddde-4571-b066-b568340de7cf + explode: false + in: path + name: edge_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + Edge: + $ref: '#/components/examples/Edge' + value: null + schema: + $ref: '#/components/schemas/Edge' + description: OK + summary: Get Edge + tags: + - auth_Edges + x-accepts: application/json; charset=utf-8 + patch: + description: エッジを更新します。 + operationId: updateEdge + parameters: + - description: エッジのUUID + example: e920a50c-ddde-4571-b066-b568340de7cf + explode: false + in: path + name: edge_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchEdgeRequest' + responses: + "200": + content: + application/json; charset=utf-8: + examples: + Edge: + $ref: '#/components/examples/Edge' + value: null + schema: + $ref: '#/components/schemas/Edge' + description: OK + summary: Update Edge + tags: + - auth_Edges + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/edges/{edge_uuid}/owner: + delete: + description: エッジに所有者がない状態にします。 + operationId: removeOwner + parameters: + - description: エッジのUUID + example: e920a50c-ddde-4571-b066-b568340de7cf + explode: false + in: path + name: edge_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Unassign Owner + tags: + - auth_Edges + x-accepts: application/json + post: + description: エッジに所有者を割り当てます。 + operationId: assignOwner + parameters: + - description: エッジのUUID + example: e920a50c-ddde-4571-b066-b568340de7cf + explode: false + in: path + name: edge_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AssignOwnerRequest' + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/EdgeOwner' + description: OK + "409": + content: + application/json; charset=utf-8: + example: + type: conflict + title: error message + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Conflict + summary: Assign Owner + tags: + - auth_Edges + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/oauth2/authorization: + get: + description: "OAuth2認可エンドポイント。 [RFC6749:The OAuth 2.0 Authorization Framework](https://tools.ietf.org/html/rfc6749)" + operationId: oauth2Authorization + parameters: + - description: OAuth2クライアントID + example: client_id + explode: true + in: query + name: client_id + required: true + schema: + type: string + style: form + - description: OAuth2のresponse_type。 `code` のみサポートされています。 + example: code + explode: true + in: query + name: response_type + required: true + schema: + enum: + - code + type: string + style: form + - description: 認可後のリダイレクト先URI + example: http://localhost:8080/ + explode: true + in: query + name: redirect_uri + required: true + schema: + type: string + style: form + - description: CSRF対策のためのstate + example: 05d54c58385046dd822d233c6adfb9e9 + explode: true + in: query + name: state + required: true + schema: + type: string + style: form + - description: PKCEコードチャレンジ。 `code_verifier` から計算したSHA-256ハッシュを、Base64 URLエンコードしたもの。 + example: ZtNPunH49FD35FWYhT5Tv8I7vRKQJ8uxMaL0_9eHjNA + explode: true + in: query + name: code_challenge + required: false + schema: + type: string + style: form + - description: PKCEコードチャレンジの方式。 `S256` (SHA-256)のみサポートされます。 + example: S256 + explode: true + in: query + name: code_challenge_method + required: false + schema: + enum: + - S256 + type: string + style: form + responses: + "302": + description: APIサーバーで設定されているログインページや同意ページへのリダイレクト + summary: Authorization Endpoint + tags: + - auth_OAuth2 + x-accepts: application/json + /auth/oauth2/revocation: + post: + description: "トークンを無効化します。 このエンドポイントをコールしてからトークンが無効化されるまで、通常数秒程度かかります。 [RFC7009:OAuth\ + \ 2.0 Token Revocation](https://tools.ietf.org/html/rfc7009)" + operationId: reovokeToken + requestBody: + content: + application/x-www-form-urlencoded: + examples: + email: + value: + client_id: 99dcf67c_default.aptpod.co.jp + token: eyJhbGciOiJSUzI1NiIsImtpZCI6ImNkY2M4NjAxZGNiMTY2ODg5MTAyNjY5OWY2MmQ5ZDEyNGIxMTcwZmQ4OWU2YTgxNTkyNGIwNDIwZWQ2MDM0NWYiLCJ0eXAiOiJKV1QifQ.eyJleHAiOjE1ODA5NTQ5NzgsImlhdCI6MTU4MDk1MTM3OCwiaXNzIjoibWljcm8tYXV0aCJ9.Xmi5TgHRiXIaVZXtfCxPNEIWrJMusmlqImA2d7uTZDtnUh6Cv_RvbLgChVsyl5hPFNDXU-Bm4-Nh8ppQVJpHQhVYPeVlycMXhKXdlx_kNJoBA8tJ4BgZlQObt16ZzakZIoYJBH8ffWkWxDYGVswVFRaB4e4EfsaOa3jGP15jK9g + token_type_hint: refresh_token + schema: + $ref: '#/components/schemas/RevokeTokenRequest' + responses: + "200": + description: OK + summary: Revoke Token + tags: + - auth_OAuth2 + x-content-type: application/x-www-form-urlencoded + x-accepts: application/json + /auth/oauth2/jwks: + get: + description: "JSON Web Keysのリストを取得します。 [RFC7517:JSON Web Key](https://tools.ietf.org/html/rfc7517)" + responses: + "200": + content: + application/jwk-set+json; charset=utf-8: + examples: + response: + value: + keys: + - use: sig + kty: RSA + kid: 6b8b47b2ea9d29b3efdfa1b3d3bf1b3cc88df7c8bb202c8b0f744dde2efe936e + alg: RS256 + "n": puyrqHYId3dIDZfDyEAY_Z8NoS86ohYWx0YcOPgfELGsu4NMX8yJhIG4f-wAXxnhFTdOI4nXjbBLmTfxliwTfkH94utcWiCCTLELa9RyZlL19SyFDfVf606xVaOGsESWwPTAid1_QigGt8Qx9ebtVsb5NfXWOeEofRWR29u6H6k + e: AQAB + - use: sig + kty: EC + kid: 9e02473a20ef0c9a22049132686ee8d6e331af1a3dcf4c0c80dc4978ba66bd75 + crv: P-384 + alg: ES384 + x: SG_q0mYlLQ8PM56M8gfQX2D2XWbB6ALM0eX67OArp5FdlJ1B6IADP7cidWVag6AU + "y": fnmtLHn8UQl-fY8i9ri15A2CxQ_eCArZD_H8h2vtPi6v6bnDK2Kn0GnohnHn_12n + schema: + $ref: '#/components/schemas/OAuth2JWKs' + description: OK + summary: List JSON Web Keys + tags: + - auth_OAuth2 + x-accepts: application/jwk-set+json; charset=utf-8 + /auth/oauth2/token: + post: + description: "OAuth2のアクセストークンを取得します。 [RFC6749:The OAuth 2.0 Authorization Framework](https://tools.ietf.org/html/rfc6749)" + operationId: issueToken + requestBody: + content: + application/x-www-form-urlencoded: + examples: + email: + value: + grant_type: password + username: username@example.com + password: password + client_id: 99dcf67c_default.aptpod.co.jp + username: + value: + grant_type: password + username: username + password: password + client_id: 99dcf67c_default.aptpod.co.jp + authorization_code: + value: + grant_type: authorization_code + code: w765opGdrT6Bd8dC4oT_ovsAjyM2NO8-U1egu0FgmN8.1MFSqmUl-HTrsOuvYRw3g8Ra0laz4X35kZgZr7eM640 + client_id: 533bc9ea_authorization_code.aptpod.co.jp + redirect_uri: http://localhost:8080 + authorization_code_pkce: + value: + grant_type: authorization_code + code: w765opGdrT6Bd8dC4oT_ovsAjyM2NO8-U1egu0FgmN8.1MFSqmUl-HTrsOuvYRw3g8Ra0laz4X35kZgZr7eM640 + client_id: 533bc9ea_authorization_code.aptpod.co.jp + redirect_uri: http://localhost:8080 + code_verifier: 659cbc006ea54ed6-abf12ebd8d40e00868504d2cdc49418a86107dba5f463f5d + client_credentials `client_secret_post`: + value: + grant_type: client_credentials + client_id: d2219ec6-b7ee-47c2-a7bf-447754b1de49 + client_secret: 3cEZUVWX5PrM5SsEGVP84MmGbM7BgcgvfQaKlSnTR0zIjWYSulPJcFSMvzG09uto + client_credentials `tls_client_auth`: + value: + grant_type: client_credentials + client_id: d2219ec6-b7ee-47c2-a7bf-447754b1de49 + client_certification: '-----BEGIN CERTIFICATE----- MIIEpzCCAw+gAwIBAgIRAPf1PElvbMfTv4n7yc1B1VkwDQYJKoZIhvcNAQELBQAw + gbcxHjAcBgNVBAoTFW1rY2VydCBkZXZlbG9wbWVudCBDQTFGMEQGA1UECww9bWFz + YXl1a2ktbWl5YXVjaGlAbWl5YXVjaGktbWFzYXl1a2ktMTQxMS5sb2NhbCAo5a6u + 5YaF5aOv5LmLKTFNMEsGA1UEAwxEbWtjZXJ0IG1hc2F5dWtpLW1peWF1Y2hpQG1p + eWF1Y2hpLW1hc2F5dWtpLTE0MTEubG9jYWwgKOWuruWGheWjr+S5iykwHhcNMjAx + MTE3MDgzODIxWhcNMzAxMTE3MDgzODIxWjBxMQswCQYDVQQGEwJKUDEOMAwGA1UE + CBMFVG9reW8xETAPBgNVBAcTCFNoaW5qdWt1MQ8wDQYDVQQKEwZhcHRwb2QxEzAR + BgNVBAsTCnByb2R1Y3Rpb24xGTAXBgNVBAMTEGRldmVsb3BtZW50LWNlcnQwggEi + MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDe/V7GAyDWAIZ8/wHnUAvfzt5i + 777x3Wmpf8qNzyZKo3um9xFdIa0LBqkYDS5RgBnapdLY+2Ihkw+VFA4ws++8eeW4 + wuXmwOZXVb6rGVdL6AH84XI9Zl0TQ6vZR0xcav3ZmWKU3eEw6eN2iDJhSzzdcUPv + paGw4LQ3VxknBHhi1+Vm5HxjG6c1+LfAgnW7AVEFPj13AP3B2Axe2SiCGspaBoK3 + x5EMqVRGVQmZTP2igVgIyUZ8CgiRstmCOTt9HCNrCud39eY5p73lDn6fwB7Fj/7p + MKLYPip1xs60N9NkRpsnz85V5Qo5kvunV9NUFeTRCzciIqd8Ku7vH6QABKtbAgMB + AAGjczBxMA4GA1UdDwEB/wQEAwIFoDATBgNVHSUEDDAKBggrBgEFBQcDATAMBgNV + HRMBAf8EAjAAMB8GA1UdIwQYMBaAFCfPRuEGzxXomEKZE9Vc2i8SRnW3MBsGA1Ud + EQQUMBKCEGRldmVsb3BtZW50LWNlcnQwDQYJKoZIhvcNAQELBQADggGBALPyYn4y + whQ5JezeUwDpKj/UVl3PdeCIoqBrj4s+6GVtBpwE3m6lFw1Fp1g0Bgoh90wuchlw + ijsaf8MwWezFNeTpZ/TONc9zgM0Dv+WBrEpsNc+VeJAfSNBLNo63fmHjmnUdOL/F + jEe/avphet22GJaa6KHsPRzqVXsaDjcWTlT8oSSwuaOWpHVXuW1m0TG2fJlIGPhW + EbjDjAxPF8+meW9GH1sT8QA8rhRZl4O8J8Z2QH8wQTfnWe3jCCgf5kmD0h5URZwD + GZbn0MSXa+7xX9RgaAxwvsNMDqhW/cF8IDmxWE8X5xTukuN5Qz6EtBtvwliETJro + YyIN9a/aMjJjypp8tEMoLeJRKWFsOy5DKh0rSNjb8FLWlf176dIrahcyhAs2n8AB + 38P9mgn2cyoijg52CA3GmofPM9cxsnvcmzScvi7dL6QCTIPDP2nuWZIX3SJVY/Jp + qKxueGGWuD5ePDy020qxEGIXZcCnhhoz6HSjEDiqVjQKjjhJEugQ6QPo1w== -----END + CERTIFICATE-----' + schema: + $ref: '#/components/schemas/TokenRequest' + responses: + "200": + content: + application/json; charset=utf-8: + examples: + response: + value: + token_type: bearer + access_token: eyJhbGciOiJSUzI1NiIsImtpZCI6ImNkY2M4NjAxZGNiMTY2ODg5MTAyNjY5OWY2MmQ5ZDEyNGIxMTcwZmQ4OWU2YTgxNTkyNGIwNDIwZWQ2MDM0NWYiLCJ0eXAiOiJKV1QifQ.eyJleHAiOjE1ODA5NTQ5NzgsImlhdCI6MTU4MDk1MTM3OCwiaXNzIjoibWljcm8tYXV0aCJ9.Xmi5TgHRiXIaVZXtfCxPNEIWrJMusmlqImA2d7uTZDtnUh6Cv_RvbLgChVsyl5hPFNDXU-Bm4-Nh8ppQVJpHQhVYPeVlycMXhKXdlx_kNJoBA8tJ4BgZlQObt16ZzakZIoYJBH8ffWkWxDYGVswVFRaB4e4EfsaOa3jGP15jK9g + expires_in: 3600 + refresh_token: lv70VlZ92fLAKiNT5qzOi684K0R5ZVcPjtAhCo_A_0I.iUIeiUrBVR9OoM9y_QBzSVzAgXvJ-8AYANCA1WEx_Lw + refresh_token_expires_in: 2592000 + scope: "" + schema: + $ref: '#/components/schemas/issueToken_200_response' + description: OK + summary: Token Endpoint + tags: + - auth_OAuth2 + x-content-type: application/x-www-form-urlencoded + x-accepts: application/json; charset=utf-8 + /auth/users/me: + get: + description: 自分(ユーザー)を取得します。 + operationId: getMe + responses: + "200": + content: + application/json; charset=utf-8: + examples: + User: + $ref: '#/components/examples/User' + value: null + schema: + $ref: '#/components/schemas/User' + description: OK + summary: Get Me + tags: + - auth_Me + x-accepts: application/json; charset=utf-8 + patch: + description: 自分(ユーザー)を更新します。 + operationId: updateMe + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchUserRequest' + responses: + "200": + content: + application/json; charset=utf-8: + examples: + User: + $ref: '#/components/examples/User' + value: null + schema: + $ref: '#/components/schemas/User' + description: OK + "403": + content: + application/json; charset=utf-8: + example: + type: forbidden + title: error message + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Forbidden + "409": + content: + application/json; charset=utf-8: + examples: + ErrorProblemConflict: + $ref: '#/components/examples/ErrorProblemConflict' + value: null + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Conflict + summary: Update Me + tags: + - auth_Me + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/users/me/clients: + get: + description: 自分(ユーザー)のOAuth2クライアントのリストを取得します。 + operationId: listMyOAuth2Clients + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/OAuth2Clients' + description: OK + summary: List My OAuth2Clients + tags: + - auth_Clients + x-accepts: application/json; charset=utf-8 + post: + description: 自分(ユーザー)のOAuth2クライアントを作成します。 + operationId: createMyOAuth2Clients + requestBody: + content: + application/json: + examples: + AuthorizationCode: + value: + name: my-authorization-code-client + grant_type: authorization_code + token_endpoint_auth_method: client_secret_basic + redirect_uris: + - http://localhost:8080 + ClientCredentials: + value: + name: my-credentials-client + grant_type: client_credentials + token_endpoint_auth_method: client_secret_post + schema: + $ref: '#/components/schemas/CreateMyOAuth2ClientRequest' + responses: + "201": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/OAuth2ClientWithSecret' + description: Created + summary: Create My OAuth2Client + tags: + - auth_Clients + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/users/me/clients/{client_id}: + delete: + description: 自分(ユーザー)のOAuth2クライアントを削除します。 + operationId: deleteMyOAuth2Client + parameters: + - description: OAuth2クライアントID + example: 039b8ee2-8edc-46e4-9a88-4d03bac142f7 + explode: false + in: path + name: client_id + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete My OAuth2Client + tags: + - auth_Clients + x-accepts: application/json + get: + description: 自分(ユーザー)のOAuth2クライアントを取得します。 + operationId: getMyOAuth2Client + parameters: + - description: OAuth2クライアントID + example: 039b8ee2-8edc-46e4-9a88-4d03bac142f7 + explode: false + in: path + name: client_id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/OAuth2Client' + description: OK + summary: Get My OAuth2Client + tags: + - auth_Clients + x-accepts: application/json; charset=utf-8 + patch: + description: 自分(ユーザー)のOAuth2クライアントを更新します。 + operationId: updateMyOAuth2Client + parameters: + - description: OAuth2クライアントID + example: 039b8ee2-8edc-46e4-9a88-4d03bac142f7 + explode: false + in: path + name: client_id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateOAuth2ClientRequest' + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/OAuth2Client' + description: OK + "304": + description: Not Modified + summary: Update My OAuth2Client + tags: + - auth_Clients + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/users/me/edges: + get: + description: 自分(ユーザー)が所有するエッジのリストを取得します。 + operationId: listMyEdges + responses: + "200": + content: + application/json; charset=utf-8: + examples: + Edges: + $ref: '#/components/examples/Edges' + value: null + schema: + $ref: '#/components/schemas/Edges' + description: OK + summary: List My Edges + tags: + - auth_Edges + x-accepts: application/json; charset=utf-8 + post: + description: 新しいエッジを作成し、自分(ユーザー)を所有者に設定します。 + operationId: createMyEdge + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateEdgeRequest' + responses: + "201": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Edge' + description: Created + summary: Create My Edge + tags: + - auth_Edges + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/users/me/edges/{edge_uuid}: + delete: + description: 自分(ユーザー)が所有するエッジを削除します。 + operationId: deleteMyEdge + parameters: + - description: エッジのUUID + example: e920a50c-ddde-4571-b066-b568340de7cf + explode: false + in: path + name: edge_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete My Edge + tags: + - auth_Edges + x-accepts: application/json + get: + description: 自分(ユーザー)が所有するエッジを取得します。 + operationId: getMyEdge + parameters: + - description: エッジのUUID + example: e920a50c-ddde-4571-b066-b568340de7cf + explode: false + in: path + name: edge_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + Edge: + $ref: '#/components/examples/Edge' + value: null + schema: + $ref: '#/components/schemas/Edge' + description: OK + summary: Get My Edge + tags: + - auth_Edges + x-accepts: application/json; charset=utf-8 + patch: + description: 自分(ユーザー)が所有するエッジを更新します。 + operationId: updateMyEdge + parameters: + - description: エッジのUUID + example: e920a50c-ddde-4571-b066-b568340de7cf + explode: false + in: path + name: edge_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchEdgeRequest' + responses: + "200": + content: + application/json; charset=utf-8: + examples: + Edge: + $ref: '#/components/examples/Edge' + value: null + schema: + $ref: '#/components/schemas/Edge' + description: OK + summary: Update My Edge + tags: + - auth_Edges + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + put: + description: 指定したUUIDを持つ新しいエッジを作成し、自分を所有者に設定します。 + operationId: createMyEdgeWithUUID + parameters: + - description: エッジのUUID + example: e920a50c-ddde-4571-b066-b568340de7cf + explode: false + in: path + name: edge_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + examples: + CreateEdgeWithUUID: + $ref: '#/components/examples/CreateEdgeWithUUIDRequest' + value: null + schema: + $ref: '#/components/schemas/CreateEdgeRequest' + responses: + "201": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Edge' + description: Created + summary: Create My Edge With UUID + tags: + - auth_Edges + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/users/me/authorize/http: + post: + operationId: checkMeHTTPAuthorization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CheckMeHTTPAuthorizationRequest' + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/CheckAuthorizationResponse' + description: OK + summary: Check Me HTTP Authorization + tags: + - auth_Authorization + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/users: + get: + description: ユーザーのリストを取得します。 + operationId: listUsers + parameters: + - description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: true + in: query + name: uuid + required: false + schema: + items: + type: string + type: array + style: form + - description: ロールのUUID + example: af22c56b-6b3e-4807-a165-07e9dbd7e25b + explode: true + in: query + name: role_uuid + required: false + schema: + items: + type: string + type: array + style: form + - description: ユーザーの名前による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 + example: intdash + explode: true + in: query + name: name + required: false + schema: + items: + type: string + type: array + style: form + - description: ユーザーの表示名による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 + example: intdash-nickname + explode: true + in: query + name: nickname + required: false + schema: + items: + type: string + type: array + style: form + - description: メールアドレスによる部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 + example: intdash@example.com + explode: true + in: query + name: email + required: false + schema: + items: + type: string + type: array + style: form + - description: |- + * `true` を指定した場合、無効化されているユーザーのみを取得します。 + * `false` を指定した場合、有効なユーザーのみを取得します。 + * 指定を省略した場合、有効/無効にかかわらずユーザーを取得します。 + example: false + explode: true + in: query + name: disabled + required: false + schema: + type: boolean + style: form + - description: |- + * `true` を指定した場合、スーパーユーザーのみを取得します。 + * `false` を指定した場合、スーパーユーザー以外を取得します。 + * 指定を省略した場合、スーパーユーザーであるかにかかわらずユーザーを取得します。 + example: false + explode: true + in: query + name: is_super + required: false + schema: + type: boolean + style: form + - description: |- + * `true` を指定した場合、一時パスワードを使用しているユーザーのみを取得します。 + * `false` を指定した場合、パスワードを設定済みのユーザーのみを取得します。 + * 指定を省略した場合、一時パスワードを使用しているかにかかわらずユーザーを取得します。 + example: false + explode: true + in: query + name: is_temporary + required: false + schema: + type: boolean + style: form + - description: ログイン失敗回数の最小値。ログイン失敗回数がこの数値以上のユーザーを取得します。 + example: 1 + explode: true + in: query + name: min_sign_in_attempt_count + required: false + schema: + minimum: 0 + type: integer + style: form + - description: ログイン失敗回数の最大値。ログイン失敗回数がこの数値以下のユーザーを取得します。 + example: 10 + explode: true + in: query + name: max_sign_in_attempt_count + required: false + schema: + minimum: 0 + type: integer + style: form + - description: |- + 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 + - name + - created_at + - updated_at + - last_sign_in_at + explode: true + in: query + name: sort + required: false + schema: + default: name+ + type: string + style: form + - description: 取得するページの番号 + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: 1回のリクエストで取得する件数 + explode: true + in: query + name: per_page + required: false + schema: + default: 30 + maximum: 200 + type: integer + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + Users: + $ref: '#/components/examples/EmptyList' + value: null + schema: + $ref: '#/components/schemas/Users' + description: OK + summary: List Users + tags: + - auth_Users + x-accepts: application/json; charset=utf-8 + post: + description: ユーザーを作成します。新しいユーザーには自動生成された一時パスワードが設定されます。 ユーザー作成のリクエストにメールアドレス( + `email` )が含まれていた場合は、 そのメールアドレスに確認メールが送信されます。 + operationId: createUser + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateUserRequest' + responses: + "201": + content: + application/json; charset=utf-8: + examples: + CreatedUser: + $ref: '#/components/examples/CreatedUser' + value: null + schema: + $ref: '#/components/schemas/User' + description: Created + "409": + content: + application/json; charset=utf-8: + examples: + ConflictNameAndEmail: + $ref: '#/components/examples/ErrorProblemConflictNameAndEmail' + value: null + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Conflict + summary: Create User + tags: + - auth_Users + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/users/me/emails: + post: + description: 自分(ユーザー)のメールアドレスを設定します。 メールアドレスの設定が成功すると、確認用URLを含むメールがそのアドレスに送信されます。 + 確認用URLには、メールアドレス確認用トークンとメールアドレスのIDが含まれます。 + operationId: createMyEmail + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateEmailRequest' + responses: + "201": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/UserEmail' + description: Created + "409": + content: + application/json; charset=utf-8: + examples: + ErrorProblemConflict: + $ref: '#/components/examples/ErrorProblemConflict' + value: null + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Conflict + summary: Create My Email + tags: + - auth_Me + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/users/me/emails/{user_email_id}: + delete: + description: 自分(ユーザー)のメールアドレスを削除します。 + operationId: deleteMyEmail + parameters: + - description: ユーザーのメールアドレスのID + example: 1 + explode: false + in: path + name: user_email_id + required: true + schema: + example: 1 + format: int64 + type: integer + style: simple + responses: + "204": + description: No Content + summary: Delete My Email + tags: + - auth_Me + x-accepts: application/json + patch: + description: 自分(ユーザー)のメールアドレスを更新します。 メールアドレスの設定が成功すると、確認用URLを含むメールがそのアドレスに送信されます。 + 確認用URLには、メールアドレス確認用トークンとメールアドレスのIDが含まれます。 + operationId: updateMyEmail + parameters: + - description: ユーザーのメールアドレスのID + example: 1 + explode: false + in: path + name: user_email_id + required: true + schema: + example: 1 + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchEmailRequest' + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/UserEmail' + description: OK + "409": + content: + application/json; charset=utf-8: + examples: + ErrorProblemConflict: + $ref: '#/components/examples/ErrorProblemConflict' + value: null + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Conflict + summary: Update My Email + tags: + - auth_Me + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/users/me/emails/{user_email_id}/verification: + put: + description: メールアドレスを確認するための確認メールを送信します。 + operationId: sendVerificationEmailToMyAddress + parameters: + - description: ユーザーのメールアドレスのID + example: 1 + explode: false + in: path + name: user_email_id + required: true + schema: + example: 1 + format: int64 + type: integer + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/UserEmailVerification' + description: OK + "400": + content: + application/json; charset=utf-8: + examples: + AlreadyVerified: + $ref: '#/components/examples/ErrorProblemBadRequest' + value: null + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Bad Request + summary: Send Verification Email to Me + tags: + - auth_Me + x-accepts: application/json; charset=utf-8 + /auth/users/me/emails/{user_email_id}/verified: + put: + description: 自分(ユーザー)のメールアドレスを確認済みにします。 + operationId: updateMyAddressToVerified + parameters: + - description: ユーザーのメールアドレスのID + example: 1 + explode: false + in: path + name: user_email_id + required: true + schema: + example: 1 + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateEmailVerifiedRequest' + responses: + "200": + content: + application/json; charset=utf-8: + example: + id: 1 + address: intdash@example.com + verified: true + created_at: 2000-01-01T00:00:00Z + updated_at: 2000-01-01T00:00:00Z + schema: + $ref: '#/components/schemas/UserEmail' + description: OK + summary: Set My Email as Verified + tags: + - auth_Me + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/users/me/password: + put: + description: |- + パスワードを変更します。 + 現在のパスワード `old_password` または `recovery_token` が必要です。 + operationId: changePassword + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ChangePasswordRequest' + responses: + "200": + content: + application/json; charset=utf-8: + examples: + UserPassword: + $ref: '#/components/examples/UserPassword' + value: null + schema: + $ref: '#/components/schemas/UserPassword' + description: OK + "400": + content: + application/json; charset=utf-8: + example: + type: invalid_request + title: error message + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Bad Request + summary: Change Password + tags: + - auth_Me + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/users/me/password/check: + post: + description: パスワードがポリシーに適合しているかをチェックします。 + operationId: checkPassword + requestBody: + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/CheckPasswordRequest' + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/CheckPasswordResult' + description: OK + summary: Check Password + tags: + - auth_Me + x-content-type: application/json; charset=utf-8 + x-accepts: application/json; charset=utf-8 + /auth/users/me/roles: + get: + description: 自分(ユーザー)に割り当てられたロールのリストを取得します。 + operationId: listMyRoles + responses: + "200": + content: + application/json; charset=utf-8: + examples: + MyRoles: + $ref: '#/components/examples/EmptyList' + value: null + schema: + $ref: '#/components/schemas/Roles' + description: OK + summary: List My Roles + tags: + - auth_Me + x-accepts: application/json; charset=utf-8 + /auth/users/me/tokens: + get: + description: 自分(ユーザー)のAPIトークンのリストを取得します。 + operationId: listMyAPITokens + responses: + "200": + content: + application/json; charset=utf-8: + examples: + UserAPITokenList: + $ref: '#/components/examples/UserAPITokenList' + value: null + schema: + $ref: '#/components/schemas/UserAPITokens' + description: OK + summary: List My API Tokens + tags: + - auth_Me + x-accepts: application/json; charset=utf-8 + post: + description: 自分(ユーザー)のAPIトークンを作成します。 + operationId: createMyAPIToken + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateUserAPITokenRequest' + responses: + "201": + content: + application/json; charset=utf-8: + examples: + CreatedUserAPIToken: + $ref: '#/components/examples/CreatedUserAPIToken' + value: null + schema: + $ref: '#/components/schemas/UserAPIToken' + description: Created + "409": + content: + application/json; charset=utf-8: + examples: + ErrorProblemConflict: + $ref: '#/components/examples/ErrorProblemConflict' + value: null + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Conflict + summary: Create My API Token + tags: + - auth_Me + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/users/me/tokens/{user_api_token_id}: + delete: + description: 自分(ユーザー)のAPIトークンを削除します。 + operationId: deleteMyAPIToken + parameters: + - description: APIトークンのID + example: 1 + explode: false + in: path + name: user_api_token_id + required: true + schema: + example: 1 + format: int64 + type: integer + style: simple + responses: + "204": + description: No Content + summary: Delete My API Token + tags: + - auth_Me + x-accepts: application/json + patch: + description: 自分(ユーザー)のAPIトークンを作成します。 + operationId: updateMyAPIToken + parameters: + - description: APIトークンのID + example: 1 + explode: false + in: path + name: user_api_token_id + required: true + schema: + example: 1 + format: int64 + type: integer + style: simple + requestBody: + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/UpdateUserAPITokenRequest' + responses: + "200": + content: + application/json; charset=utf-8: + examples: + UserAPIToken: + $ref: '#/components/examples/UserAPIToken' + value: null + schema: + $ref: '#/components/schemas/UserAPIToken' + description: OK + summary: Update My API Token + tags: + - auth_Me + x-content-type: application/json; charset=utf-8 + x-accepts: application/json; charset=utf-8 + /auth/users/me/projects: + get: + description: 自分(ユーザー)が所属するプロジェクトのリストを取得します。 + operationId: listMyProjects + parameters: + - description: 取得するページの番号 + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: 1回のリクエストで取得する件数 + explode: true + in: query + name: per_page + required: false + schema: + default: 30 + maximum: 200 + type: integer + style: form + - description: 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 + 例えば、 `name-` を指定すると、nameによる降順で出力されます。 + explode: true + in: query + name: sort + required: false + schema: + enum: + - created_at + - created_at+ + - created_at- + - updated_at + - updated_at+ + - updated_at- + - name + - name+ + - name- + type: string + x-enum-varnames: + - CreatedAt + - CreatedAtAsc + - CreatedAtDesc + - UpdatedAt + - UpdatedAtAsc + - UpdatedAtDesc + - Name + - NameAsc + - NameDesc + style: form + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Projects' + description: OK + summary: List My Projects + tags: + - auth_Projects + x-accepts: application/json; charset=utf-8 + /auth/users/me/groups: + get: + description: 自分(ユーザー)が所属するグループのリストを取得します。 + operationId: listMyGroups + parameters: + - description: 取得するページの番号 + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: 1回のリクエストで取得する件数 + explode: true + in: query + name: per_page + required: false + schema: + default: 30 + maximum: 200 + type: integer + style: form + - description: 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 + 例えば、 `name-` を指定すると、nameによる降順で出力されます。 + explode: true + in: query + name: sort + required: false + schema: + enum: + - created_at + - created_at+ + - created_at- + - updated_at + - updated_at+ + - updated_at- + - name + - name+ + - name- + type: string + x-enum-varnames: + - CreatedAt + - CreatedAtAsc + - CreatedAtDesc + - UpdatedAt + - UpdatedAtAsc + - UpdatedAtDesc + - Name + - NameAsc + - NameDesc + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + MyGroups: + $ref: '#/components/examples/EmptyList' + value: null + schema: + $ref: '#/components/schemas/Groups' + description: OK + summary: List My Groups + tags: + - auth_Groups + x-accepts: application/json; charset=utf-8 + /auth/users/tokens/introspection: + post: + description: APIトークンの検証を行います。 + operationId: introspectAPIToken + requestBody: + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/APITokenIntrospectionRequest' + responses: + "200": + content: + application/json; charset=utf-8: + examples: + InvalidToken: + value: + active: false + schema: + $ref: '#/components/schemas/APITokenIntrospectionResponse' + description: OK + summary: Introspect API Token + tags: + - auth_Users + x-content-type: application/json; charset=utf-8 + x-accepts: application/json; charset=utf-8 + /auth/users/{user_uuid}: + delete: + description: ユーザーを削除します。 + operationId: deleteUser + parameters: + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + responses: + "204": + description: No Content + "403": + content: + application/json; charset=utf-8: + example: + type: forbidden + title: error message + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Forbidden + summary: Delete User + tags: + - auth_Users + x-accepts: application/json; charset=utf-8 + get: + description: ユーザーを取得します。 + operationId: getUser + parameters: + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + User: + $ref: '#/components/examples/User' + value: null + schema: + $ref: '#/components/schemas/User' + description: OK + summary: Get User + tags: + - auth_Users + x-accepts: application/json; charset=utf-8 + patch: + description: ユーザーを更新します。 + operationId: updateUser + parameters: + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchUserRequest' + responses: + "200": + content: + application/json; charset=utf-8: + examples: + User: + $ref: '#/components/examples/User' + value: null + schema: + $ref: '#/components/schemas/User' + description: OK + "403": + content: + application/json; charset=utf-8: + example: + type: forbidden + title: error message + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Forbidden + "409": + content: + application/json; charset=utf-8: + examples: + ErrorProblemConflict: + $ref: '#/components/examples/ErrorProblemConflict' + value: null + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Conflict + summary: Update User + tags: + - auth_Users + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/users/{user_uuid}/enable: + put: + description: ユーザーを有効化します。 + operationId: enableUser + parameters: + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + User: + $ref: '#/components/examples/User' + value: null + schema: + $ref: '#/components/schemas/User' + description: OK + "403": + content: + application/json; charset=utf-8: + example: + type: forbidden + title: error message + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Forbidden + summary: Enable User + tags: + - auth_Users + x-accepts: application/json; charset=utf-8 + /auth/users/{user_uuid}/disable: + put: + description: ユーザーを無効化します。 + operationId: disableUser + parameters: + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + example: + uuid: 0932ff17-567c-4ac8-a40d-136357890f7b + name: intdash + disabled: true + is_super: false + emails: + - id: 1 + address: intdash@example.com + verified: false + created_at: 2000-01-01T00:00:00Z + updated_at: 2000-01-01T00:00:00Z + roles: + - af22c56b-6b3e-4807-a165-07e9dbd7e25b + created_at: 2000-01-01T00:00:00Z + updated_at: 2000-01-01T00:00:00Z + schema: + $ref: '#/components/schemas/User' + description: OK + "403": + content: + application/json; charset=utf-8: + example: + type: forbidden + title: error message + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Forbidden + summary: Disable User + tags: + - auth_Users + x-accepts: application/json; charset=utf-8 + /auth/users/{user_uuid}/clients: + get: + description: ユーザーのOAuth2クライアントのリストを取得します。 + operationId: listUsersOAuth2Clients + parameters: + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/OAuth2Clients' + description: OK + summary: List User's OAuth2Clients + tags: + - auth_Clients + x-accepts: application/json; charset=utf-8 + /auth/users/{user_uuid}/edges: + get: + description: 指定されたユーザーが所有するエッジのリストを取得します。 + operationId: listUsersEdges + parameters: + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + Edges: + $ref: '#/components/examples/Edges' + value: null + schema: + $ref: '#/components/schemas/Edges' + description: OK + summary: List User's Edges + tags: + - auth_Edges + x-accepts: application/json; charset=utf-8 + post: + description: 指定されたユーザーを所有者とするエッジを作成します。 + operationId: createUsersEdge + parameters: + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateEdgeRequest' + responses: + "201": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Edge' + description: Created + summary: Create User's Edge + tags: + - auth_Edges + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/users/{user_uuid}/edges/{edge_uuid}: + delete: + description: ユーザーが所有するエッジを削除します。 + operationId: deleteUsersEdge + parameters: + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + - description: エッジのUUID + example: e920a50c-ddde-4571-b066-b568340de7cf + explode: false + in: path + name: edge_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete User's Edge + tags: + - auth_Edges + x-accepts: application/json + get: + description: ユーザーが所有するエッジを取得します。 + operationId: getUsersEdge + parameters: + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + - description: エッジのUUID + example: e920a50c-ddde-4571-b066-b568340de7cf + explode: false + in: path + name: edge_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + Edge: + $ref: '#/components/examples/Edge' + value: null + schema: + $ref: '#/components/schemas/Edge' + description: OK + summary: Get User's Edge + tags: + - auth_Edges + x-accepts: application/json; charset=utf-8 + patch: + description: ユーザーが所有するエッジを更新します。 + operationId: updateUsersEdge + parameters: + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + - description: エッジのUUID + example: e920a50c-ddde-4571-b066-b568340de7cf + explode: false + in: path + name: edge_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchEdgeRequest' + responses: + "200": + content: + application/json; charset=utf-8: + examples: + Edge: + $ref: '#/components/examples/Edge' + value: null + schema: + $ref: '#/components/schemas/Edge' + description: OK + summary: Update User's Edge + tags: + - auth_Edges + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/users/{user_uuid}/emails: + post: + description: ユーザーのメールアドレスを設定します。 メールアドレスの設定が成功すると、確認用URLを含むメールがそのアドレスに送信されます。 + 確認用URLには、メールアドレス確認用トークンとメールアドレスのIDが含まれます。 + operationId: createEmail + parameters: + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateEmailRequest' + responses: + "201": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/UserEmail' + description: Created + "409": + content: + application/json; charset=utf-8: + examples: + ErrorProblemConflict: + $ref: '#/components/examples/ErrorProblemConflict' + value: null + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Conflict + summary: Create Email + tags: + - auth_Users + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/users/{user_uuid}/emails/{user_email_id}: + delete: + description: ユーザーのメールアドレスを削除します。 + operationId: deleteEmail + parameters: + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + - description: ユーザーのメールアドレスのID + example: 1 + explode: false + in: path + name: user_email_id + required: true + schema: + example: 1 + format: int64 + type: integer + style: simple + responses: + "204": + description: No Content + summary: Delete Email + tags: + - auth_Users + x-accepts: application/json + patch: + description: ユーザーのメールアドレスを更新します。 メールアドレスの設定が成功すると、確認用URLを含むメールがそのアドレスに送信されます。 + 確認用URLには、メールアドレス確認用トークンとメールアドレスのIDが含まれます。 + operationId: updateEmail + parameters: + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + - description: ユーザーのメールアドレスのID + example: 1 + explode: false + in: path + name: user_email_id + required: true + schema: + example: 1 + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchEmailRequest' + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/UserEmail' + description: OK + "409": + content: + application/json; charset=utf-8: + examples: + ErrorProblemConflict: + $ref: '#/components/examples/ErrorProblemConflict' + value: null + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Conflict + summary: Update Email + tags: + - auth_Users + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/users/{user_uuid}/emails/{user_email_id}/verification: + put: + description: メールアドレスを確認するため確認メールを送信します。メールアドレス確認用トークンを使用します。 + operationId: sendVerificationEmail + parameters: + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + - description: ユーザーのメールアドレスのID + example: 1 + explode: false + in: path + name: user_email_id + required: true + schema: + example: 1 + format: int64 + type: integer + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/UserEmailVerification' + description: OK + "400": + content: + application/json; charset=utf-8: + examples: + AlreadyVerified: + $ref: '#/components/examples/ErrorProblemBadRequest' + value: null + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Bad Request + summary: Send Verification Email + tags: + - auth_Users + x-accepts: application/json; charset=utf-8 + /auth/users/{user_uuid}/emails/{user_email_id}/verified: + put: + description: ユーザーのメールアドレスを確認済みにします。 + operationId: updateToVerified + parameters: + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + - description: ユーザーのメールアドレスのID + example: 1 + explode: false + in: path + name: user_email_id + required: true + schema: + example: 1 + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateEmailVerifiedRequest' + responses: + "200": + content: + application/json; charset=utf-8: + example: + id: 1 + address: intdash@example.com + verified: true + created_at: 2000-01-01T00:00:00Z + updated_at: 2000-01-01T00:00:00Z + schema: + $ref: '#/components/schemas/UserEmail' + description: OK + summary: Set Email as Verified + tags: + - auth_Users + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/users/{user_uuid}/password: + put: + description: ユーザーのパスワードを、ランダムな一時パスワードに変更します。 + operationId: createTemporaryPassword + parameters: + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + UserTemporaryPassword: + $ref: '#/components/examples/UserTemporaryPassword' + value: null + schema: + $ref: '#/components/schemas/UserPassword' + description: OK + summary: Create Temporary Password + tags: + - auth_Users + x-accepts: application/json; charset=utf-8 + /auth/users/{user_uuid}/password/unlock: + put: + description: ユーザーのパスワードのロックを解除します。このユーザーのログイン失敗回数は0にリセットされます。 + operationId: unlockPassword + parameters: + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + example: + attempt_count: 0 + is_temporary: false + last_attempt_at: 2000-01-01T00:00:00Z + created_at: 2000-01-01T00:00:00Z + updated_at: 2000-01-01T00:00:00Z + schema: + $ref: '#/components/schemas/UserPassword' + description: OK + summary: Unlock Password + tags: + - auth_Users + x-accepts: application/json; charset=utf-8 + /auth/users/{user_uuid}/roles: + get: + description: ユーザーのロールのリストを取得します。 + operationId: listUsersRoles + parameters: + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + UsersRoles: + $ref: '#/components/examples/EmptyList' + value: null + schema: + $ref: '#/components/schemas/Roles' + description: OK + summary: List User's Roles + tags: + - auth_Users + x-accepts: application/json; charset=utf-8 + /auth/users/{user_uuid}/roles/{role_uuid}: + delete: + description: ユーザーへのロールの割り当てを解除します。 + operationId: unassignRole + parameters: + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + - description: ロールのUUID + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + explode: false + in: path + name: role_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Unassign Role + tags: + - auth_Users + x-accepts: application/json + put: + description: ユーザーにロールを割り当てます。 + operationId: assignRole + parameters: + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + - description: ロールのUUID + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + explode: false + in: path + name: role_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Role' + description: OK + "304": + description: Not Modified + summary: Assign Role + tags: + - auth_Users + x-accepts: application/json; charset=utf-8 + /auth/users/{user_uuid}/tokens: + get: + description: ユーザーのAPIトークンのリストを取得します。 + operationId: listAPITokens + parameters: + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + UserAPITokenList: + $ref: '#/components/examples/UserAPITokenList' + value: null + schema: + $ref: '#/components/schemas/UserAPITokens' + description: OK + summary: List API Tokens + tags: + - auth_Users + x-accepts: application/json; charset=utf-8 + post: + description: ユーザーのAPIトークンを作成します。 + operationId: createAPIToken + parameters: + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateUserAPITokenRequest' + responses: + "201": + content: + application/json; charset=utf-8: + examples: + CreatedUserAPIToken: + $ref: '#/components/examples/CreatedUserAPIToken' + value: null + schema: + $ref: '#/components/schemas/UserAPIToken' + description: Created + "409": + content: + application/json; charset=utf-8: + examples: + ErrorProblemConflict: + $ref: '#/components/examples/ErrorProblemConflict' + value: null + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Conflict + summary: Create API Token + tags: + - auth_Users + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/users/{user_uuid}/tokens/{user_api_token_id}: + delete: + description: ユーザーのAPIトークンを削除します。 + operationId: deleteAPIToken + parameters: + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + - description: APIトークンのID + example: 1 + explode: false + in: path + name: user_api_token_id + required: true + schema: + example: 1 + format: int64 + type: integer + style: simple + responses: + "204": + description: No Content + summary: Delete API Token + tags: + - auth_Users + x-accepts: application/json + patch: + description: ユーザーのAPIトークンを更新します。 + operationId: updateAPIToken + parameters: + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + - description: APIトークンのID + example: 1 + explode: false + in: path + name: user_api_token_id + required: true + schema: + example: 1 + format: int64 + type: integer + style: simple + requestBody: + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/UpdateUserAPITokenRequest' + responses: + "200": + content: + application/json; charset=utf-8: + examples: + UserAPIToken: + $ref: '#/components/examples/UserAPIToken' + value: null + schema: + $ref: '#/components/schemas/UserAPIToken' + description: OK + summary: Update API Token + tags: + - auth_Users + x-content-type: application/json; charset=utf-8 + x-accepts: application/json; charset=utf-8 + /auth/groups: + get: + description: グループのリストを取得します。 + operationId: listGroups + parameters: + - description: 取得するページの番号 + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: 1回のリクエストで取得する件数 + explode: true + in: query + name: per_page + required: false + schema: + default: 30 + maximum: 200 + type: integer + style: form + - description: 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 + 例えば、 `name-` を指定すると、nameによる降順で出力されます。 + explode: true + in: query + name: sort + required: false + schema: + enum: + - created_at + - created_at+ + - created_at- + - updated_at + - updated_at+ + - updated_at- + - name + - name+ + - name- + type: string + x-enum-varnames: + - CreatedAt + - CreatedAtAsc + - CreatedAtDesc + - UpdatedAt + - UpdatedAtAsc + - UpdatedAtDesc + - Name + - NameAsc + - NameDesc + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + Groups: + $ref: '#/components/examples/EmptyList' + value: null + schema: + $ref: '#/components/schemas/Groups' + description: OK + summary: List Groups + tags: + - auth_Groups + x-accepts: application/json; charset=utf-8 + post: + description: グループを作成します。 + operationId: createGroup + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateGroupRequest' + responses: + "201": + content: + application/json; charset=utf-8: + examples: + CreatedGroup: + $ref: '#/components/examples/CreatedGroup' + value: null + schema: + $ref: '#/components/schemas/Group' + description: Created + "409": + content: + application/json; charset=utf-8: + examples: + ConflictNameAndEmail: + $ref: '#/components/examples/ErrorProblemConflict' + value: null + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Conflict + summary: Create Group + tags: + - auth_Groups + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/groups/{group_uuid}: + delete: + description: グループを削除します。 + operationId: deleteGroup + parameters: + - description: グループのUUID + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + explode: false + in: path + name: group_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete Group + tags: + - auth_Groups + x-accepts: application/json + get: + description: グループを取得します。 + operationId: getGroup + parameters: + - description: グループのUUID + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + explode: false + in: path + name: group_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Group' + description: OK + summary: Get Group + tags: + - auth_Groups + x-accepts: application/json; charset=utf-8 + patch: + description: グループを更新します。 + operationId: updateGroup + parameters: + - description: グループのUUID + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + explode: false + in: path + name: group_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateGroupRequest' + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Group' + description: OK + summary: Update Group + tags: + - auth_Groups + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/groups/{group_uuid}/groups: + get: + description: サブグループを取得します。 + operationId: listSubGroup + parameters: + - description: グループのUUID + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + explode: false + in: path + name: group_uuid + required: true + schema: + type: string + style: simple + - description: 取得するページの番号 + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: 1回のリクエストで取得する件数 + explode: true + in: query + name: per_page + required: false + schema: + default: 30 + maximum: 200 + type: integer + style: form + - description: 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 + 例えば、 `name-` を指定すると、nameによる降順で出力されます。 + explode: true + in: query + name: sort + required: false + schema: + enum: + - created_at + - created_at+ + - created_at- + - updated_at + - updated_at+ + - updated_at- + - name + - name+ + - name- + type: string + x-enum-varnames: + - CreatedAt + - CreatedAtAsc + - CreatedAtDesc + - UpdatedAt + - UpdatedAtAsc + - UpdatedAtDesc + - Name + - NameAsc + - NameDesc + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + SubGroups: + $ref: '#/components/examples/EmptyList' + value: null + schema: + $ref: '#/components/schemas/Groups' + description: OK + summary: List Sub Groups + tags: + - auth_Groups + x-accepts: application/json; charset=utf-8 + post: + description: サブグループを作成します。 + operationId: createSubGroup + parameters: + - description: グループのUUID + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + explode: false + in: path + name: group_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateGroupRequest' + responses: + "201": + content: + application/json; charset=utf-8: + examples: + CreatedGroup: + $ref: '#/components/examples/CreatedGroup' + value: null + schema: + $ref: '#/components/schemas/Group' + description: Created + "403": + content: + application/json; charset=utf-8: + examples: + ErrorExceededMaxGroupsCount: + $ref: '#/components/examples/ErrorProblemErrorExceededMaxGroupsCount' + value: null + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Forbidden + "409": + content: + application/json; charset=utf-8: + examples: + ConflictNameAndEmail: + $ref: '#/components/examples/ErrorProblemConflict' + value: null + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Conflict + summary: Create Sub Group + tags: + - auth_Groups + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/groups/{group_uuid}/members: + get: + description: グループメンバーリストを取得します。 + operationId: listGroupMembers + parameters: + - description: グループのUUID + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + explode: false + in: path + name: group_uuid + required: true + schema: + type: string + style: simple + - description: |- + * `true` を指定した場合、オーナーのみを取得します。 + * `false` を指定した場合、オーナー以外を取得します。 + * 指定を省略した場合、オーナーであるかにかかわらずメンバーを取得します。 + example: false + explode: true + in: query + name: is_owner + required: false + schema: + type: boolean + style: form + - description: ユーザーのUUID + explode: true + in: query + name: user_uuid + required: false + schema: + items: + example: b7f5f259-6a63-4a26-bfa3-e15240cbc0b7 + type: string + type: array + style: form + - description: 取得するページの番号 + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: 1回のリクエストで取得する件数 + explode: true + in: query + name: per_page + required: false + schema: + default: 30 + maximum: 200 + type: integer + style: form + - description: 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 + 例えば、 `name-` を指定すると、nameによる降順で出力されます。 + explode: true + in: query + name: sort + required: false + schema: + enum: + - created_at + - created_at+ + - created_at- + - updated_at + - updated_at+ + - updated_at- + - name + - name+ + - name- + type: string + x-enum-varnames: + - CreatedAt + - CreatedAtAsc + - CreatedAtDesc + - UpdatedAt + - UpdatedAtAsc + - UpdatedAtDesc + - Name + - NameAsc + - NameDesc + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + GroupMembers: + $ref: '#/components/examples/EmptyList' + value: null + schema: + $ref: '#/components/schemas/Members' + description: OK + summary: List Group Members + tags: + - auth_Group Members + x-accepts: application/json; charset=utf-8 + post: + description: グループメンバーを追加します。 + operationId: addGroupMember + parameters: + - description: グループのUUID + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + explode: false + in: path + name: group_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AddGroupMemberRequest' + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Member' + description: OK + "400": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Bad Request + "409": + content: + application/json; charset=utf-8: + examples: + AlreadyMember: + $ref: '#/components/examples/ErrorProblemConflict' + value: null + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Conflict + summary: Add Group Member + tags: + - auth_Group Members + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/groups/{group_uuid}/projects: + get: + description: プロジェクトのリストを取得します。 + operationId: listGroupProjects + parameters: + - description: グループのUUID + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + explode: false + in: path + name: group_uuid + required: true + schema: + type: string + style: simple + - description: 取得するページの番号 + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: 1回のリクエストで取得する件数 + explode: true + in: query + name: per_page + required: false + schema: + default: 30 + maximum: 200 + type: integer + style: form + - description: 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 + 例えば、 `name-` を指定すると、nameによる降順で出力されます。 + explode: true + in: query + name: sort + required: false + schema: + enum: + - created_at + - created_at+ + - created_at- + - updated_at + - updated_at+ + - updated_at- + - name + - name+ + - name- + type: string + x-enum-varnames: + - CreatedAt + - CreatedAtAsc + - CreatedAtDesc + - UpdatedAt + - UpdatedAtAsc + - UpdatedAtDesc + - Name + - NameAsc + - NameDesc + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + GroupProjects: + $ref: '#/components/examples/EmptyList' + value: null + schema: + $ref: '#/components/schemas/Projects' + description: OK + summary: List Group Projects + tags: + - auth_Projects + x-accepts: application/json; charset=utf-8 + post: + description: プロジェクトを作成します。 + operationId: createProject + parameters: + - description: グループのUUID + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + explode: false + in: path + name: group_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateProjectRequest' + responses: + "201": + content: + application/json; charset=utf-8: + examples: + CreatedProject: + $ref: '#/components/examples/CreatedProject' + value: null + schema: + $ref: '#/components/schemas/Project' + description: Created + "403": + content: + application/json; charset=utf-8: + examples: + ExceededMaxProjectsCountPerGroup: + $ref: '#/components/examples/ErrorProblemExceededMaxProjectsCountPerGroup' + value: null + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Forbidden + "409": + content: + application/json; charset=utf-8: + examples: + ConflictNameAndEmail: + $ref: '#/components/examples/ErrorProblemConflict' + value: null + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Conflict + summary: Create Project + tags: + - auth_Projects + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/projects: + get: + description: プロジェクトのリストを取得します。 + operationId: listProjects + parameters: + - description: 指定した時刻より後に作成されたリソースを取得します。 + example: 2006-01-02T15:04:05.999999999Z + explode: true + in: query + name: since_created_at + required: false + schema: + format: date-time + type: string + style: form + - description: 取得するページの番号 + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: 1回のリクエストで取得する件数 + explode: true + in: query + name: per_page + required: false + schema: + default: 30 + maximum: 200 + type: integer + style: form + - description: 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 + 例えば、 `name-` を指定すると、nameによる降順で出力されます。 + explode: true + in: query + name: sort + required: false + schema: + enum: + - created_at + - created_at+ + - created_at- + - updated_at + - updated_at+ + - updated_at- + - name + - name+ + - name- + type: string + x-enum-varnames: + - CreatedAt + - CreatedAtAsc + - CreatedAtDesc + - UpdatedAt + - UpdatedAtAsc + - UpdatedAtDesc + - Name + - NameAsc + - NameDesc + style: form + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Projects' + description: OK + summary: List Projects + tags: + - auth_Projects + x-accepts: application/json; charset=utf-8 + /auth/projects/{project_uuid}: + delete: + description: プロジェクトを削除します。プロジェクトを削除できるのはプロジェクトのオーナーのみです。 + operationId: deleteProject + parameters: + - description: プロジェクトのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + "403": + content: + application/json; charset=utf-8: + examples: + CannotDeleteProject: + $ref: '#/components/examples/ErrorProblemForbiddenCannotDeleteProject' + value: null + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Forbidden + summary: Delete Project + tags: + - auth_Projects + x-accepts: application/json; charset=utf-8 + get: + description: プロジェクトを取得します。 + operationId: getProject + parameters: + - description: プロジェクトのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Project' + description: OK + summary: Get Project + tags: + - auth_Projects + x-accepts: application/json; charset=utf-8 + patch: + description: プロジェクトを更新します。 + operationId: updateProject + parameters: + - description: プロジェクトのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateProjectRequest' + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Project' + description: OK + "409": + content: + application/json; charset=utf-8: + examples: + ErrorProblemConflict: + $ref: '#/components/examples/ErrorProblemConflict' + value: null + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Conflict + summary: Update Project + tags: + - auth_Projects + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/projects/{project_uuid}/edges: + get: + description: プロジェクトに所属するエッジのリストを取得します。 + operationId: listProjectEdges + parameters: + - description: プロジェクトのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: エッジのUUID + explode: true + in: query + name: edge_uuid + required: false + schema: + items: + example: b7f5f259-6a63-4a26-bfa3-e15240cbc0b7 + type: string + type: array + style: form + - description: 取得するページの番号 + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: 1回のリクエストで取得する件数 + explode: true + in: query + name: per_page + required: false + schema: + default: 30 + maximum: 200 + type: integer + style: form + - description: 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 + 例えば、 `name-` を指定すると、nameによる降順で出力されます。 + explode: true + in: query + name: sort + required: false + schema: + enum: + - created_at + - created_at+ + - created_at- + - updated_at + - updated_at+ + - updated_at- + - nickname + - nickname+ + - nickname- + type: string + x-enum-varnames: + - CreatedAt + - CreatedAtAsc + - CreatedAtDesc + - UpdatedAt + - UpdatedAtAsc + - UpdatedAtDesc + - NicknameAt + - NicknameAtAsc + - NicknameAtDesc + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + ProjectEdges: + $ref: '#/components/examples/EmptyList' + value: null + schema: + $ref: '#/components/schemas/ProjectEdges' + description: OK + summary: List Project Edges + tags: + - auth_Project Edges + x-accepts: application/json; charset=utf-8 + post: + description: エッジをプロジェクトに追加します。 + operationId: addProjectEdges + parameters: + - description: プロジェクトのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AddProjectEdgeRequest' + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/ProjectEdge' + description: OK + "400": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Bad Request + "409": + content: + application/json; charset=utf-8: + examples: + AlreadyInProject: + $ref: '#/components/examples/ErrorProblemConflict' + value: null + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Conflict + summary: Add Project Edge + tags: + - auth_Project Edges + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/projects/{project_uuid}/edges/{edge_uuid}: + delete: + description: プロジェクトからエッジを外します。 + operationId: removeProjectEdge + parameters: + - description: プロジェクトのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: エッジのUUID + example: e920a50c-ddde-4571-b066-b568340de7cf + explode: false + in: path + name: edge_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Remove Project Edge + tags: + - auth_Project Edges + x-accepts: application/json + get: + description: プロジェクトに所属するエッジを取得します。 + operationId: getProjectEdge + parameters: + - description: プロジェクトのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: エッジのUUID + example: e920a50c-ddde-4571-b066-b568340de7cf + explode: false + in: path + name: edge_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/ProjectEdge' + description: OK + summary: Get Project Edge + tags: + - auth_Project Edges + x-accepts: application/json; charset=utf-8 + patch: + description: プロジェクトエッジを更新します。 + operationId: updateProjectEdge + parameters: + - description: プロジェクトのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: エッジのUUID + example: e920a50c-ddde-4571-b066-b568340de7cf + explode: false + in: path + name: edge_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateProjectEdgeRequest' + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/ProjectEdge' + description: OK + "304": + description: Not Modified + summary: Update Project Edge + tags: + - auth_Project Edges + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/projects/{project_uuid}/members: + get: + description: プロジェクトメンバーリストを取得します。 + operationId: listProjectMembers + parameters: + - description: プロジェクトのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: ユーザーのUUID + explode: true + in: query + name: user_uuid + required: false + schema: + items: + example: b7f5f259-6a63-4a26-bfa3-e15240cbc0b7 + type: string + type: array + style: form + - description: |- + * `true` を指定した場合、オーナーのみを取得します。 + * `false` を指定した場合、オーナー以外を取得します。 + * 指定を省略した場合、オーナーであるかにかかわらずメンバーを取得します。 + example: false + explode: true + in: query + name: is_owner + required: false + schema: + type: boolean + style: form + - description: 取得するページの番号 + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: 1回のリクエストで取得する件数 + explode: true + in: query + name: per_page + required: false + schema: + default: 30 + maximum: 200 + type: integer + style: form + - description: 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 + 例えば、 `name-` を指定すると、nameによる降順で出力されます。 + explode: true + in: query + name: sort + required: false + schema: + enum: + - created_at + - created_at+ + - created_at- + - updated_at + - updated_at+ + - updated_at- + - name + - name+ + - name- + type: string + x-enum-varnames: + - CreatedAt + - CreatedAtAsc + - CreatedAtDesc + - UpdatedAt + - UpdatedAtAsc + - UpdatedAtDesc + - Name + - NameAsc + - NameDesc + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + ProjectMembers: + $ref: '#/components/examples/EmptyList' + value: null + schema: + $ref: '#/components/schemas/Members' + description: OK + summary: List Project Members + tags: + - auth_Project Members + x-accepts: application/json; charset=utf-8 + post: + description: プロジェクトメンバーを追加します。 + operationId: addProjectMember + parameters: + - description: プロジェクトのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AddProjectMemberRequest' + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Member' + description: OK + "400": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Bad Request + "409": + content: + application/json; charset=utf-8: + examples: + AlreadyMember: + $ref: '#/components/examples/ErrorProblemConflict' + value: null + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Conflict + summary: Add Project Member + tags: + - auth_Project Members + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/projects/{project_uuid}/members/{user_uuid}: + delete: + description: プロジェクトからメンバーを外します。 + operationId: removeProjectMember + parameters: + - description: プロジェクトのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + responses: + "204": + description: No Content + "403": + content: + application/json; charset=utf-8: + examples: + OwnerMember: + $ref: '#/components/examples/ErrorProblemForbiddenRemoveOwner' + value: null + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Forbidden + summary: Remove Project Member + tags: + - auth_Project Members + x-accepts: application/json; charset=utf-8 + get: + description: プロジェクトメンバーを取得します。 + operationId: getProjectMember + parameters: + - description: プロジェクトのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Member' + description: OK + "404": + description: Not Found + summary: Get Project Member + tags: + - auth_Project Members + x-accepts: application/json; charset=utf-8 + patch: + description: プロジェクトメンバーを更新します。 + operationId: updateProjectMember + parameters: + - description: プロジェクトのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateProjectMemberRequest' + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Member' + description: OK + summary: Update Project Member + tags: + - auth_Project Members + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/projects/{project_uuid}/members/{user_uuid}/owner: + delete: + description: オーナー属性を取り除きます。 + operationId: removeProjectOwnerAttribute + parameters: + - description: プロジェクトのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + responses: + "204": + description: No Content + "304": + description: Not Modified + "403": + content: + application/json; charset=utf-8: + examples: + OwnerMember: + $ref: '#/components/examples/ErrorProblemForbiddenAtLeastOneOwner' + value: null + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Forbidden + summary: Remove Project Owner Attribute + tags: + - auth_Project Members + x-accepts: application/json; charset=utf-8 + put: + description: オーナー属性を追加します。オーナー属性を追加したメンバーは自動的にそのプロジェクトにおける全ての権限が付与されます。 + operationId: addProjectOwnerAttribute + parameters: + - description: プロジェクトのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Member' + description: OK + "304": + description: Not Modified + summary: Add Project Owner Attribute + tags: + - auth_Project Members + x-accepts: application/json; charset=utf-8 + /auth/groups/{group_uuid}/members/{user_uuid}: + delete: + description: グループメンバーを除名します。 + operationId: removeGroupMember + parameters: + - description: グループのUUID + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + explode: false + in: path + name: group_uuid + required: true + schema: + type: string + style: simple + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + responses: + "204": + description: No Content + "403": + content: + application/json; charset=utf-8: + examples: + OwnerMember: + $ref: '#/components/examples/ErrorProblemForbiddenRemoveOwner' + value: null + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Forbidden + summary: Remove Group Member + tags: + - auth_Group Members + x-accepts: application/json; charset=utf-8 + get: + description: グループメンバーを取得します。 + operationId: getGroupMember + parameters: + - description: グループのUUID + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + explode: false + in: path + name: group_uuid + required: true + schema: + type: string + style: simple + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Member' + description: OK + "404": + description: Not Found + summary: Get Group Member + tags: + - auth_Group Members + x-accepts: application/json; charset=utf-8 + patch: + description: グループメンバーを更新します。 + operationId: updateGroupMember + parameters: + - description: グループのUUID + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + explode: false + in: path + name: group_uuid + required: true + schema: + type: string + style: simple + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateGroupMemberRequest' + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Member' + description: OK + summary: Update Group Member + tags: + - auth_Group Members + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /auth/groups/{group_uuid}/members/{user_uuid}/owner: + delete: + description: オーナー属性を取り除きます。 + operationId: removeGroupOwnerAttribute + parameters: + - description: グループのUUID + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + explode: false + in: path + name: group_uuid + required: true + schema: + type: string + style: simple + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + responses: + "204": + description: No Content + "304": + description: Not Modified + "403": + content: + application/json; charset=utf-8: + examples: + OwnerMember: + $ref: '#/components/examples/ErrorProblemForbiddenAtLeastOneOwner' + value: null + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Forbidden + summary: Remove Group Owner Attribute + tags: + - auth_Group Members + x-accepts: application/json; charset=utf-8 + put: + description: オーナー属性を追加します。オーナー属性を追加したメンバーは自動的にそのグループにおける全ての権限が付与されます。 + operationId: addGroupOwnerAttribute + parameters: + - description: グループのUUID + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + explode: false + in: path + name: group_uuid + required: true + schema: + type: string + style: simple + - example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Member' + description: OK + "304": + description: Not Modified + summary: Add Group Owner Attribute + tags: + - auth_Group Members + x-accepts: application/json; charset=utf-8 + /auth/roles: + get: + description: ロールのリストを取得します。 + operationId: listRoles + parameters: + - description: ロールのUUID + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + explode: true + in: query + name: uuid + required: false + schema: + items: + type: string + type: array + style: form + - description: ロールの名前による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 + example: member + explode: true + in: query + name: name + required: false + schema: + items: + type: string + type: array + style: form + - description: 取得するページの番号 + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: 1回のリクエストで取得する件数 + explode: true + in: query + name: per_page + required: false + schema: + default: 30 + maximum: 200 + type: integer + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + Roles: + $ref: '#/components/examples/EmptyList' + value: null + schema: + $ref: '#/components/schemas/Roles' + description: OK + "400": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Bad Request + summary: List Roles + tags: + - auth_Roles + x-accepts: application/json; charset=utf-8 + /auth/roles/{role_uuid}: + get: + description: ロールを取得します。 + operationId: getRole + parameters: + - description: ロールのUUID + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + explode: false + in: path + name: role_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Role' + description: OK + summary: Get Role + tags: + - auth_Roles + x-accepts: application/json; charset=utf-8 + /auth/scopes: + get: + description: スコープのリストを取得します。 + operationId: listScopes + parameters: + - description: スコープのUUID + example: 4688a07a-0cbc-4597-8c87-538e744bc90d + explode: true + in: query + name: uuid + required: false + schema: + items: + type: string + type: array + style: form + - description: スコープの名前による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 + example: meas:r + explode: true + in: query + name: name + required: false + schema: + items: + type: string + type: array + style: form + - description: 取得するページの番号 + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: 1回のリクエストで取得する件数 + explode: true + in: query + name: per_page + required: false + schema: + default: 30 + maximum: 200 + type: integer + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + Scopes: + $ref: '#/components/examples/EmptyList' + value: null + schema: + $ref: '#/components/schemas/Scopes' + description: OK + "400": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/ErrorProblem' + description: Bad Request + summary: List Scopes + tags: + - auth_Scopes + x-accepts: application/json; charset=utf-8 + /auth/scopes/{scope_uuid}: + get: + description: スコープを取得します。 + operationId: getScope + parameters: + - description: The Scope UUID. + example: 4688a07a-0cbc-4597-8c87-538e744bc90d + explode: false + in: path + name: scope_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Scope' + description: OK + summary: Get Scope + tags: + - auth_Scopes + x-accepts: application/json; charset=utf-8 + /v1/edge_connections: + get: + deprecated: true + description: |- + (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/edge_connection` を使用してください) + エッジ接続のリストを取得します。 + エッジ接続は、エッジが `/v1/ws/measurements` エンドポイントに接続したときに新規作成され、 + 3日間更新がないと削除されます。 + operationId: listEdgeConnections + parameters: + - description: エッジのUUID + example: + - b55e3351-97e2-4db1-ac90-60fda8b3d144 + explode: true + in: query + name: edge + required: false + schema: + items: + type: string + type: array + style: form + - description: 並べ替えに使用するキー + example: last_lived_at + explode: true + in: query + name: sort + required: false + schema: + default: last_lived_at + enum: + - last_lived_at + - created_at + - updated_at + type: string + style: form + - description: 並べ替えの順序 + example: asc + explode: true + in: query + name: order + required: false + schema: + default: desc + enum: + - asc + - desc + type: string + style: form + - description: 1回のリクエストで取得する件数 + example: + - "100" + explode: true + in: query + name: limit + required: false + schema: + default: 100 + type: integer + style: form + - description: 取得するページの番号 + example: "1" + explode: true + in: query + name: page + required: false + schema: + default: 1 + type: integer + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + response: + value: + items: + - uuid: e0326d93-6e94-4edf-92a2-961cc1c07414 + last_lived_at: 2017-02-11T01:23:45Z + edge: + uuid: b55e3351-97e2-4db1-ac90-60fda8b3d144 + name: edge_name + nickname: edge_nickname + description: edge description + type: user + disabled: true + internal: false + protected: false + last_lived_at: 2017-02-11T01:23:45Z + last_login_at: 2017-02-11T01:23:45Z + created_at: 2017-02-11T01:23:45Z + updated_at: 2017-02-11T01:23:45Z + created_at: 2017-02-11T01:23:45Z + updated_at: 2017-02-11T12:34:56Z + page: null + schema: + $ref: '#/components/schemas/EdgeConnectionList' + description: OK + summary: List Edge Connections + tags: + - broker_Edge Connections + x-accepts: application/json; charset=utf-8 + /v1/edge_connections/{edge_connection_uuid}: + get: + deprecated: true + description: "(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/edge_connection/{edge_connection_uuid}`\ + \ を使用してください) エッジ接続( `/v1/ws/measurements` に接続されたエッジの接続情報)を取得します。" + operationId: getEdgeConnection + parameters: + - description: エッジ接続のUUID + example: e0326d93-6e94-4edf-92a2-961cc1c07414 + explode: false + in: path + name: edge_connection_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + response: + value: + created_at: 2017-02-11T01:23:45Z + downstreams: + - created_at: 2017-02-11T01:23:45Z + dst_edge_uuid: c3341333-31ce-40a6-9208-2dde4c869aab + last_received_at: 2017-02-11T01:23:45Z + received_close_request: false + src_edge_uuid: 3c11158e-ce70-41a9-8ed6-dd3a3b94ce3e + stream_id: 1 + updated_at: 2017-02-11T12:34:56Z + edge: + created_at: 2017-02-11T01:23:45Z + description: edge description + disabled: true + internal: false + last_lived_at: 2017-02-11T01:23:45Z + last_login_at: 2017-02-11T01:23:45Z + name: edge_name + nickname: edge_nickname + protected: false + type: user + updated_at: 2017-02-11T01:23:45Z + uuid: b55e3351-97e2-4db1-ac90-60fda8b3d144 + last_lived_at: 2017-02-11T01:23:45Z + updated_at: 2017-02-11T12:34:56Z + upstreams: + - created_at: 2017-02-11T01:23:45Z + last_received_at: 2017-02-11T01:23:45Z + measurement_uuid: e6e292d6-013f-4214-9367-6a5673c8c82a + received_close_request: false + resend: false + src_edge_uuid: 3c11158e-ce70-41a9-8ed6-dd3a3b94ce3e + store: false + stream_id: 1 + updated_at: 2017-02-11T12:34:56Z + uuid: e0326d93-6e94-4edf-92a2-961cc1c07414 + schema: + $ref: '#/components/schemas/EdgeConnection' + description: OK + summary: Get Edge Connection + tags: + - broker_Edge Connections + x-accepts: application/json; charset=utf-8 + /v1/stream: + get: + deprecated: true + description: |- + (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/stream` を使用してください) + WebSocketを使ってリアルタイムデータを取得します。 + + + 同じくWebSocketを使ってリアルタイムデータを扱う `/v1/ws/measurements` では、 + iSCP (intdash Stream Control Protocol)を使用しますが、 + 本エンドポイントではJSONとしてデータポイントを取得することができます。 + + ## クエリパラメータ + + + | パラメータ名 | 型 | 必須 | デフォルト | 説明 | + + | ---------------- | -------------------------- | ---------- | ---------- | ----- | + + | flush_interval | string | true | - | + メッセージがフラッシュされる間隔を指定します。 + 単位は"ns"、"us" (または"µs")、"ms"、"s"、"m"、"h"のいずれかを使用してください + (参考: [Goのtimeパッケージ](https://golang.org/pkg/time/#ParseDuration))。 + 指定がない場合は、メッセージごとにフラッシュされます。 | + + + ## メッセージのフォーマット + + ### JSON Lines + + リクエストメッセージおよびレスポンスメッセージには [JSON lines](http://jsonlines.org/) 形式を使用します。 + + 1つのメッセージが1行です。 + + + 例: + + ``` + + { "type" : "message_type", "contents" : { depends on message_type }} + + { "type" : "message_type", "contents" : { depends on message_type }} + + { "type" : "message_type", "contents" : { depends on message_type }} + + { "type" : "message_type", "contents" : { depends on message_type }} + + { "type" : "message_type", "contents" : { depends on message_type }} + + . + + . + + + ``` + + 注意: メッセージに改行を含むことはできません。 + + 改行が入ったメッセージの例(悪い例): + + ``` + + { + "type" : "message_type", + "contents" : { depends on message_type } + } + + ``` + + + メッセージには、 `type` 属性および `contents` 属性が必要です。 + `contents` のスキーマは、 `type` により決定されます。 + + ## ダウンストリーム開始リクエスト + + ### ダウンストリーム開始リクエストメッセージのスキーマ + + | 属性名 | 型 | 必須 | デフォルト | 説明 | + + | ---------------- | ------------------------ | ---------- | ----------------- | ------- | + + | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | + + | type | string | true | `"open_downstream"` | 固定値 | + + | contents | object(次の表を参照) | true | - | | + + + ### ダウンストリーム開始リクエスト内 `contents` のスキーマ + + | 属性名 | 型 | 必須 | デフォルト | 説明 | + + | ---------------- | ------------------------ | ---------- | ------------------ | ------ | + + | edge | string | true | - | データの送信元エッジを、エッジのUUIDまたはエッジの名前で指定します。 + 最初に、一致するエッジUUIDが検索され、一致するエッジUUIDがなければ一致する名前が検索されます。 | + + | filter | string array | false | `[]` | 「フィルター」を参照してください。 | + + + ### フィルター + + データコードとデータ名を指定することにより、指定にマッチしたデータポイントだけを受信することができます。 + + ただし、メタデータのデータポイントは、フィルターの設定に関係なくすべて受信されます。 + + + フィルターは以下のフォーマットで設定します: `<型コード>:<データ名>` + + データコードについては、後述の 時系列データのペイロードフォーマット を参照してください。 + + フィルター設定文字列の各セグメントにはワイルドカード( `**` )を使用することができます。 + + + 例: + + - 型コードが `can_data_field` のデータポイント(CAN)を受信する -> `can_data_field:**` + + - 型コードが `string/` で始まるデータポイントを受信する(`string/json` 、 `string/csv` など) -> `string/**:**` + + - 文字列のデータポイントのうち、データ名が `my-string` のものを受信する -> `string:my-string` + + + `filter` として空の配列が指定された場合は、すべてのデータポイントを受信します。 + + + ### ダウンストリーム開始リクエストの例 + + リクエスト: + + ``` + + { "type" : "open_downstream", "contents" : { "edge" : "edge_name_or_uuid", "filter" : ["string:a/b"] } } + + ``` + + レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): + + + ``` + + { "type" : "response", "contents": { "code" : 10000, "message": "succeed: open downstream" } } + + ``` + + + ## ダウンストリーム更新リクエスト + + ### ダウンストリーム更新リクエストメッセージのスキーマ + + + | 属性名 | 型 | 必須 | デフォルト | 説明 | + + | ---------------- | ------------------------ | ---------- | ----------------- | ------- | + + | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | + + | type | string | true | `"update_downstream"` | 固定値 | + + | contents | object(次の表を参照) | true | - | | + + + ### ダウンストリーム更新リクエスト内 `contents` のスキーマ + + + | 属性名 | 型 | 必須 | デフォルト | 説明 | + + | ---------------- | ------------------------ | ---------- | ----------------- | ------- | + + | filter | string array | true | - |「フィルター」を参照してください。 | + + + ### ダウンストリーム更新リクエストの例 + + フィルターを指定する場合のリクエスト: + + ``` + + { "type" : "update_downstream", "contents" : { "filter" : ["string:a/b"] } } + + ``` + + + フィルターを指定せずすべてのデータポイントを受信する場合のリクエスト: + + ``` + + { "type" : "update_downstream", "contents" : { "filter" : [] } } + + ``` + + + レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): + + + ``` + + { "type" : "response", "contents": { "code" : 10000, "message": "succeed: + update downstream" } } + + ``` + + + ## ダウンストリーム終了リクエスト + + ### ダウンストリーム終了リクエストメッセージのスキーマ + + + | 属性名 | 型 | 必須 | デフォルト | 説明 | + + | ---------------- | ------------------------ | ---------- | ----------------- | ------- | + + | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | + + | type | string | true | `"close_downstream"` | 固定値| + + + ### ダウンストリーム終了リクエストの例 + + リクエスト: + + ``` + + { "type" : "close_downstream"} + + ``` + + レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): + + ``` + + { "type" : "response", "contents": { "code" : 10000, "message": "succeed: close downstream" } } + + ``` + + + ## レスポンスメッセージ + + リクエストの処理結果が返却されます。 + + ### レスポンスメッセージのスキーマ + + + | 属性名 | 型 | 必須 | デフォルト | 説明 | + + | ---------------- | ------------------------ | ---------- | ----------------- | ----- | + + | type | string | true | `"response"` | 固定値| + + | ack | number | false | - | リクエストで `id` が指定されていた場合、その値 | + + | contents | object(次の表を参照) | true | - | | + + + ### レスポンス内 `contents` のスキーマ + + + | 属性名 | 型 | 必須 | デフォルト | 説明 | + + | ---------------- | ------------------------ | ---------- | ----------------- | ----- | + + | code | number | true | - | 10000 < code < 20000 の場合、成功。 + 20000 < code < 30000 の場合、不正なリクエスト。50000 < code の場合、予期しないエラー | + + | message | string | true | - | リクエストで `id` が指定されていた場合、その値 | + + + ### レスポンスの例 + + ``` + + { "type" : "response", "contents": { "code" : 10000, "message": "succeed: open downstream" } } + + ``` + + + リクエストで `id` が指定されている場合のレスポンス例( `id` の値が `ack` として返ります): + + + ``` + + { "ack": 1, "type" : "response", "contents": { "code" : 10000, "message": "succeed: open downstream" } } + + ``` + + # 時系列データのペイロードフォーマット + + 時系列データポイントが格納するペイロードのフォーマットです。各データ型に対する `contents`のフォーマットは [このページ](https://git.aptpod.co.jp/intdash-protocol/dataformat/-/tree/master/data) を参照してください。 + + ## データ型 + + 各データバイナリには、ペイロードのフォーマットを示すデータ型が付与されます。各データ型には、型を識別するためのコード名が割り当てられます。 + + ## 標準データ型 + + 単一のデータを格納するデータ型です。 + + + | 名称 | コード | バイト長 | 説明 | + + | :---------------------- | :-------- | :------: | :--------------------------- | + + | Bytes | `bytes` | 可変 | フォーマットなしバイト列 | + + | String | `string` | 可変 | フォーマットなし文字列 | + + | Float64 | `float64` | 8 | IEEE754 64ビット浮動小数点数 | + + | Int64 | `int64` | 8 | 符号付き 64ビット整数 | + + | Bool | `bool` | 1 | 真偽値 | + + + ## メディアデータ型 + + メディア(動画/音声)関連のデータを格納するデータ型です。 + + + | 名称 | コード | バイト長 | 説明 | + + | :---------------------- | :----------- | :------: | :------------------------- | + + | JPEG | `video/jpeg` | 可変 | JPEG 形式の画像データ | + + | H264 | `video/h264` | 可変 | H264 形式の映像データ | + + + ### 拡張バイナリ型 + + フォーマット付きのバイナリデータを格納するデータ型です。 + + + | 名称 | コード | バイト長 | 説明 | + + | :------------------------------------------------ | :---------------- | :------: | :---------------------------------------- | + + | BSON | `bson` | 可変 | BSON フォーマット | + + | CAN Frame | `can_frame` | 可変 | CAN フレーム フォーマット | + + | CAN Data Field | `can_data_field` | 可変 | CAN データフィールド フォーマット | + + | MAVLink1 Packet | `mavlink1_packet` | 可変 | MAVLink パケット フォーマット | + + | Generic (非推奨) | `generic` | 可変 | iSCPv1互換 汎用フォーマット | + + | Controlpad (非推奨) | `control_pad` | 可変 | iSCPv1互換 コントロールパッドフォーマット | + + | GeneralSensor (非推奨) | `general_sensor` | 可変 | iSCPv1互換 汎用センサーフォーマット | + + + ### 拡張文字列型 + + フォーマット付きの文字列データを格納するデータ型です。 + + + | 名称 | コード | バイト長 | 説明 | + + | :----------------------- | :------------ | :------: | :---------------- | + + | JSON | `string/json` | 可変 | JSON フォーマット | + + | CSV | `string/csv` | 可変 | CSV フォーマット | + + | NMEA | `string/nmea` | 可変 | NMEA フォーマット | + operationId: Stream + responses: + "101": + description: Switching Protocols. + summary: Get Realtime Streaming Data + tags: + - broker_Stream + x-accepts: application/json + /v1/ws/measurements: + get: + deprecated: true + description: |- + (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/ws/measurements` を使用してください) + iSCP v1(WebSocket上でリアルタイムデータを送受信するintdash独自プロトコル)の使用を開始するためのエンドポイントです。 + + + このリクエストを送ることで、プロトコルがWebSocketに切り替えられ、iSCP v1を使用できます。 + + "permessage-deflate" (RFC 7692) が使用できます。 + + + iSCP v1の詳細については、別ドキュメント [詳説iSCP 1.0](https://docs.intdash.jp/manual/iscp1-essentials/latest/ja/iscp1-essentials-ja.pdf) を参照してください。 + + + 「詳説iSCP 1.0」に記載されいていない事項ついては、 [アプトポッド](https://www.aptpod.co.jp/contact/) にお問い合わせください。 + operationId: ConnectISCPV1 + responses: + "101": + description: Switching Protocols + summary: Connect ISCPv1 + tags: + - broker_iSCP + x-accepts: application/json + /iscp/connect: + get: + description: |- + iSCP v2(WebSocket上でリアルタイムデータを送受信するintdash独自プロトコル)の使用を開始するためのエンドポイントです。 + このリクエストを送ることで、プロトコルがWebSocketに切り替えられ、iSCP v2を使用できます。 + + iSCP v2の詳細については、 [アプトポッド](https://www.aptpod.co.jp/contact/) にお問い合わせください。 + operationId: connectISCPV2 + responses: + "101": + description: Switching Protocols + summary: Connect ISCPv2 + tags: + - broker_iSCP + x-accepts: application/json + /iscp/tickets: + post: + description: |- + iSCPの認証チケットを発行します。 + + iSCPの認証チケットは、iSCPv2の接続リクエスト時の拡張用アクセストークンとして使用することができます。 また、認証チケットは有効期限内で一回のみ使用することができます。 一度使用した認証チケットは有効期限に関わらず使用することはできません。 + operationId: issueISCPTicket + responses: + "201": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/ISCPTicket' + description: Created + summary: Issue ISCP Ticket + tags: + - broker_iSCP + x-accepts: application/json; charset=utf-8 + /v1/projects/{project_uuid}/edge_connections: + get: + description: エッジ接続のリストを取得します。 エッジ接続は、エッジが `/v1/ws/measurements` エンドポイントに接続したときに新規作成され、 + 3日間更新がないと削除されます。 + operationId: listProjectEdgeConnections + parameters: + - description: プロジェクトのUUID + example: c78ce0c1-eb57-4f93-a087-ee3b7cee5e06 + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: エッジのUUID + example: + - b55e3351-97e2-4db1-ac90-60fda8b3d144 + explode: true + in: query + name: edge + required: false + schema: + items: + type: string + type: array + style: form + - description: 並べ替えに使用するキー + example: last_lived_at + explode: true + in: query + name: sort + required: false + schema: + default: last_lived_at + enum: + - last_lived_at + - created_at + - updated_at + type: string + style: form + - description: 並べ替えの順序 + example: asc + explode: true + in: query + name: order + required: false + schema: + default: desc + enum: + - asc + - desc + type: string + style: form + - description: 1回のリクエストで取得する件数 + example: + - "100" + explode: true + in: query + name: limit + required: false + schema: + default: 100 + type: integer + style: form + - description: 取得するページの番号 + example: "1" + explode: true + in: query + name: page + required: false + schema: + default: 1 + type: integer + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + response: + value: + items: + - uuid: e0326d93-6e94-4edf-92a2-961cc1c07414 + last_lived_at: 2017-02-11T01:23:45Z + edge: + uuid: b55e3351-97e2-4db1-ac90-60fda8b3d144 + name: edge_name + nickname: edge_nickname + description: edge description + type: user + disabled: true + internal: false + protected: false + last_lived_at: 2017-02-11T01:23:45Z + last_login_at: 2017-02-11T01:23:45Z + created_at: 2017-02-11T01:23:45Z + updated_at: 2017-02-11T01:23:45Z + created_at: 2017-02-11T01:23:45Z + updated_at: 2017-02-11T12:34:56Z + page: null + schema: + $ref: '#/components/schemas/EdgeConnectionList' + description: OK + summary: List Project Edge Connections + tags: + - broker_Edge Connections + x-accepts: application/json; charset=utf-8 + /v1/projects/{project_uuid}/edge_connections/{edge_connection_uuid}: + get: + description: エッジ接続( `/v1/ws/measurements` に接続されたエッジの接続情報)を取得します。 + operationId: getProjectEdgeConnection + parameters: + - description: プロジェクトのUUID + example: c78ce0c1-eb57-4f93-a087-ee3b7cee5e06 + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: エッジ接続のUUID + example: e0326d93-6e94-4edf-92a2-961cc1c07414 + explode: false + in: path + name: edge_connection_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + response: + value: + created_at: 2017-02-11T01:23:45Z + downstreams: + - created_at: 2017-02-11T01:23:45Z + dst_edge_uuid: c3341333-31ce-40a6-9208-2dde4c869aab + last_received_at: 2017-02-11T01:23:45Z + received_close_request: false + src_edge_uuid: 3c11158e-ce70-41a9-8ed6-dd3a3b94ce3e + stream_id: 1 + updated_at: 2017-02-11T12:34:56Z + edge: + created_at: 2017-02-11T01:23:45Z + description: edge description + disabled: true + internal: false + last_lived_at: 2017-02-11T01:23:45Z + last_login_at: 2017-02-11T01:23:45Z + name: edge_name + nickname: edge_nickname + protected: false + type: user + updated_at: 2017-02-11T01:23:45Z + uuid: b55e3351-97e2-4db1-ac90-60fda8b3d144 + last_lived_at: 2017-02-11T01:23:45Z + updated_at: 2017-02-11T12:34:56Z + upstreams: + - created_at: 2017-02-11T01:23:45Z + last_received_at: 2017-02-11T01:23:45Z + measurement_uuid: e6e292d6-013f-4214-9367-6a5673c8c82a + received_close_request: false + resend: false + src_edge_uuid: 3c11158e-ce70-41a9-8ed6-dd3a3b94ce3e + store: false + stream_id: 1 + updated_at: 2017-02-11T12:34:56Z + uuid: e0326d93-6e94-4edf-92a2-961cc1c07414 + schema: + $ref: '#/components/schemas/EdgeConnection' + description: OK + summary: Get Project Edge Connection + tags: + - broker_Edge Connections + x-accepts: application/json; charset=utf-8 + /v1/projects/{project_uuid}/stream: + get: + description: |- + WebSocketを使ってリアルタイムデータを取得します。 + + 同じくWebSocketを使ってリアルタイムデータを扱う `/v1/ws/measurements` では、 iSCP (intdash Stream Control Protocol)を使用しますが、 本エンドポイントではJSONとしてデータポイントを取得することができます。 + ## クエリパラメータ + + | パラメータ名 | 型 | 必須 | デフォルト | 説明 | + | ---------------- | -------------------------- | ---------- | ---------- | ----- | + | flush_interval | string | true | - | メッセージがフラッシュされる間隔を指定します。 単位は"ns"、"us" (または"µs")、"ms"、"s"、"m"、"h"のいずれかを使用してください (参考: [Goのtimeパッケージ](https://golang.org/pkg/time/#ParseDuration))。 指定がない場合は、メッセージごとにフラッシュされます。 | + + ## メッセージのフォーマット + ### JSON Lines + リクエストメッセージおよびレスポンスメッセージには [JSON lines](http://jsonlines.org/) 形式を使用します。 + 1つのメッセージが1行です。 + + 例: + ``` + { "type" : "message_type", "contents" : { depends on message_type }} + { "type" : "message_type", "contents" : { depends on message_type }} + { "type" : "message_type", "contents" : { depends on message_type }} + { "type" : "message_type", "contents" : { depends on message_type }} + { "type" : "message_type", "contents" : { depends on message_type }} + . + . + + ``` + 注意: メッセージに改行を含むことはできません。 + 改行が入ったメッセージの例(悪い例): + ``` + { + "type" : "message_type", + "contents" : { depends on message_type } + } + ``` + + メッセージには、 `type` 属性および `contents` 属性が必要です。 `contents` のスキーマは、 `type` により決定されます。 + ## ダウンストリーム開始リクエスト + ### ダウンストリーム開始リクエストメッセージのスキーマ + | 属性名 | 型 | 必須 | デフォルト | 説明 | + | ---------------- | ------------------------ | ---------- | ----------------- | ------- | + | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | + | type | string | true | `"open_downstream"` | 固定値 | + | contents | object(次の表を参照) | true | - | | + + ### ダウンストリーム開始リクエスト内 `contents` のスキーマ + | 属性名 | 型 | 必須 | デフォルト | 説明 | + | ---------------- | ------------------------ | ---------- | ------------------ | ------ | + | edge | string | true | - | データの送信元エッジを、エッジのUUIDまたはエッジの名前で指定します。 最初に、一致するエッジUUIDが検索され、一致するエッジUUIDがなければ一致する名前が検索されます。 | + | filter | string array | false | `[]` | 「フィルター」を参照してください。 | + + ### フィルター + データコードとデータ名を指定することにより、指定にマッチしたデータポイントだけを受信することができます。 + ただし、メタデータのデータポイントは、フィルターの設定に関係なくすべて受信されます。 + + フィルターは以下のフォーマットで設定します: `<型コード>:<データ名>` + データコードについては、後述の 時系列データのペイロードフォーマット を参照してください。 + フィルター設定文字列の各セグメントにはワイルドカード( `**` )を使用することができます。 + + 例: + - 型コードが `can_data_field` のデータポイント(CAN)を受信する -> `can_data_field:**` + - 型コードが `string/` で始まるデータポイントを受信する(`string/json` 、 `string/csv` など) -> `string/**:**` + - 文字列のデータポイントのうち、データ名が `my-string` のものを受信する -> `string:my-string` + + `filter` として空の配列が指定された場合は、すべてのデータポイントを受信します。 + + ### ダウンストリーム開始リクエストの例 + リクエスト: + ``` + { "type" : "open_downstream", "contents" : { "edge" : "edge_name_or_uuid", "filter" : ["string:a/b"] } } + ``` + レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): + + ``` + { "type" : "response", "contents": { "code" : 10000, "message": "succeed: open downstream" } } + ``` + + ## ダウンストリーム更新リクエスト + ### ダウンストリーム更新リクエストメッセージのスキーマ + + | 属性名 | 型 | 必須 | デフォルト | 説明 | + | ---------------- | ------------------------ | ---------- | ----------------- | ------- | + | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | + | type | string | true | `"update_downstream"` | 固定値 | + | contents | object(次の表を参照) | true | - | | + + ### ダウンストリーム更新リクエスト内 `contents` のスキーマ + + | 属性名 | 型 | 必須 | デフォルト | 説明 | + | ---------------- | ------------------------ | ---------- | ----------------- | ------- | + | filter | string array | true | - |「フィルター」を参照してください。 | + + ### ダウンストリーム更新リクエストの例 + フィルターを指定する場合のリクエスト: + ``` + { "type" : "update_downstream", "contents" : { "filter" : ["string:a/b"] } } + ``` + + フィルターを指定せずすべてのデータポイントを受信する場合のリクエスト: + ``` + { "type" : "update_downstream", "contents" : { "filter" : [] } } + ``` + + レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): + + ``` + { "type" : "response", "contents": { "code" : 10000, "message": "succeed: update downstream" } } + ``` + + ## ダウンストリーム終了リクエスト + ### ダウンストリーム終了リクエストメッセージのスキーマ + + | 属性名 | 型 | 必須 | デフォルト | 説明 | + | ---------------- | ------------------------ | ---------- | ----------------- | ------- | + | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | + | type | string | true | `"close_downstream"` | 固定値| + + ### ダウンストリーム終了リクエストの例 + リクエスト: + ``` + { "type" : "close_downstream"} + ``` + レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): + ``` + { "type" : "response", "contents": { "code" : 10000, "message": "succeed: close downstream" } } + ``` + + ## レスポンスメッセージ + リクエストの処理結果が返却されます。 + ### レスポンスメッセージのスキーマ + + | 属性名 | 型 | 必須 | デフォルト | 説明 | + | ---------------- | ------------------------ | ---------- | ----------------- | ----- | + | type | string | true | `"response"` | 固定値| + | ack | number | false | - | リクエストで `id` が指定されていた場合、その値 | + | contents | object(次の表を参照) | true | - | | + + ### レスポンス内 `contents` のスキーマ + + | 属性名 | 型 | 必須 | デフォルト | 説明 | + | ---------------- | ------------------------ | ---------- | ----------------- | ----- | + | code | number | true | - | 10000 < code < 20000 の場合、成功。 20000 < code < 30000 の場合、不正なリクエスト。50000 < code の場合、予期しないエラー | + | message | string | true | - | リクエストで `id` が指定されていた場合、その値 | + + ### レスポンスの例 + ``` + { "type" : "response", "contents": { "code" : 10000, "message": "succeed: open downstream" } } + ``` + + リクエストで `id` が指定されている場合のレスポンス例( `id` の値が `ack` として返ります): + + ``` + { "ack": 1, "type" : "response", "contents": { "code" : 10000, "message": "succeed: open downstream" } } + ``` + # 時系列データのペイロードフォーマット + 時系列データポイントが格納するペイロードのフォーマットです。各データ型に対する `contents`のフォーマットは [このページ](https://git.aptpod.co.jp/intdash-protocol/dataformat/-/tree/master/data) を参照してください。 + ## データ型 + 各データバイナリには、ペイロードのフォーマットを示すデータ型が付与されます。各データ型には、型を識別するためのコード名が割り当てられます。 + ## 標準データ型 + 単一のデータを格納するデータ型です。 + + | 名称 | コード | バイト長 | 説明 | + | :---------------------- | :-------- | :------: | :--------------------------- | + | Bytes | `bytes` | 可変 | フォーマットなしバイト列 | + | String | `string` | 可変 | フォーマットなし文字列 | + | Float64 | `float64` | 8 | IEEE754 64ビット浮動小数点数 | + | Int64 | `int64` | 8 | 符号付き 64ビット整数 | + | Bool | `bool` | 1 | 真偽値 | + + ## メディアデータ型 + メディア(動画/音声)関連のデータを格納するデータ型です。 + + | 名称 | コード | バイト長 | 説明 | + | :---------------------- | :----------- | :------: | :------------------------- | + | JPEG | `video/jpeg` | 可変 | JPEG 形式の画像データ | + | H264 | `video/h264` | 可変 | H264 形式の映像データ | + + ### 拡張バイナリ型 + フォーマット付きのバイナリデータを格納するデータ型です。 + + | 名称 | コード | バイト長 | 説明 | + | :------------------------------------------------ | :---------------- | :------: | :---------------------------------------- | + | BSON | `bson` | 可変 | BSON フォーマット | + | CAN Frame | `can_frame` | 可変 | CAN フレーム フォーマット | + | CAN Data Field | `can_data_field` | 可変 | CAN データフィールド フォーマット | + | MAVLink1 Packet | `mavlink1_packet` | 可変 | MAVLink パケット フォーマット | + | Generic (非推奨) | `generic` | 可変 | iSCPv1互換 汎用フォーマット | + | Controlpad (非推奨) | `control_pad` | 可変 | iSCPv1互換 コントロールパッドフォーマット | + | GeneralSensor (非推奨) | `general_sensor` | 可変 | iSCPv1互換 汎用センサーフォーマット | + + ### 拡張文字列型 + フォーマット付きの文字列データを格納するデータ型です。 + + | 名称 | コード | バイト長 | 説明 | + | :----------------------- | :------------ | :------: | :---------------- | + | JSON | `string/json` | 可変 | JSON フォーマット | + | CSV | `string/csv` | 可変 | CSV フォーマット | + | NMEA | `string/nmea` | 可変 | NMEA フォーマット | + operationId: projectStream + parameters: + - description: プロジェクトのUUID + example: c78ce0c1-eb57-4f93-a087-ee3b7cee5e06 + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + responses: + "101": + description: Switching Protocols. + summary: Get Project Realtime Streaming Data + tags: + - broker_Stream + x-accepts: application/json + /v1/projects/{project_uuid}/ws/measurements: + get: + description: |- + iSCP v1(WebSocket上でリアルタイムデータを送受信するintdash独自プロトコル)の使用を開始するためのエンドポイントです。 + + このリクエストを送ることで、プロトコルがWebSocketに切り替えられ、iSCP v1を使用できます。 + "permessage-deflate" (RFC 7692) が使用できます。 + + iSCP v1の詳細については、別ドキュメント [詳説iSCP 1.0](https://docs.intdash.jp/manual/iscp1-essentials/latest/ja/iscp1-essentials-ja.pdf) を参照してください。 + + 「詳説iSCP 1.0」に記載されいていない事項ついては、 [アプトポッド](https://www.aptpod.co.jp/contact/) にお問い合わせください。 + operationId: ConnectProjectISCPV1 + parameters: + - description: プロジェクトのUUID + example: c78ce0c1-eb57-4f93-a087-ee3b7cee5e06 + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + responses: + "101": + description: Switching Protocols + summary: Connect Project ISCPv1 + tags: + - broker_iSCP + x-accepts: application/json + /v1/data: + get: + deprecated: true + description: |- + (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/data` を使用してください) + データポイントのリストを取得します。 + 返却されるデータポイントはJSON形式です。データポイントごとに改行で区切られます。 + operationId: listDataPoints + parameters: + - description: |- + どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: + - 計測UUID + - エッジUUID + - エッジの名前 + + 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 + example: 8f40b21c-f2c4-4fa5-8fe3-325491a59597 + explode: true + in: query + name: name + required: true + schema: + type: string + style: form + - description: |- + 取得対象範囲の始点。以下のいずれかの形式で指定します。 + - rfc3339(ex 2019-10-29T03:04:05.341268Z) + - UNIX時刻(マイクロ秒)(**Deprecated**) + example: 2019-10-29T03:04:05.123456Z + explode: true + in: query + name: start + required: false + schema: + type: string + style: form + - description: |- + 取得対象範囲の終点。以下のいずれかの形式で指定します。 + - rfc3339(ex 2019-10-29T03:04:05.341268Z) + - UNIX時刻(マイクロ秒)(**Deprecated**) + example: 2019-10-29T03:04:05.234567Z + explode: true + in: query + name: end + required: false + schema: + type: string + style: form + - description: |- + 取得したいデータポイントの条件を以下のフォーマットで指定します。 + `data_id` には、 `GET /data_ids` エンドポイントで取得できる `data_id` の値を使用します。 + + - `:/` + + 各セグメントにはワイルドカード(*)を使用することができます。 例: + - CAN(data_type = `1`)のデータポイントを取得する -> `1:*/*` または `1` + - チャンネル2のCANデータポイントを取得する -> `1:2/*` または `1:2` + - チャンネル2のCANデータポイントのうち、データIDが `00000001` のものを取得する -> `1:2/00000001` + example: 1:1/* + explode: true + in: query + name: idq + required: false + schema: + items: + type: string + type: array + style: form + - description: |- + 指定した時刻以降に更新された計測のみを取得します。 + 以下のいずれかの形式で指定します。 + - rfc3339(ex 2019-10-29T03:04:05.341268Z). + - UNIX時刻(マイクロ秒)(**Deprecated**). + example: 2019-10-29T03:04:05.341268Z + explode: true + in: query + name: since + required: false + schema: + type: string + style: form + - description: '`true` を指定した場合、取得中にエラーが発生すると処理を中断し、中断前までのデータポイントのリストを返します。' + example: "false" + explode: true + in: query + name: exit_on_error + required: false + schema: + default: "false" + type: string + style: form + - description: 信号定義のラベル + example: label + explode: true + in: query + name: label + required: false + schema: + items: + type: string + type: array + style: form + - description: |- + データポイントを指定した間隔(マイクロ秒)に間引きます。( **Experimental** ) + + 指定された間隔ごとに最新のデータポイントを残し、それ以外を除去します。 また、指定された間隔になるようにデータポイントの時刻を揃えます。 + ``` + --1--2----3---4--5---6-7--89-a---b-c---d--e--> period指定なし + | | | | | | | | + | | | | | | | | + 2-----3-----5-----7-----a-----c-----d-----e--> period指定あり + + |<--->| period + ``` + example: 10000 + explode: true + in: query + name: period + required: false + schema: + format: int64 + type: integer + style: form + - description: 1回のリクエストで取得する件数。デフォルトは無制限。 + explode: true + in: query + name: limit + required: false + schema: + format: int64 + type: integer + style: form + - description: 並べ替えの順序。デフォルトは `asc` (昇順) + example: asc + explode: true + in: query + name: order + required: false + schema: + enum: + - asc + - desc + type: string + style: form + - description: レスポンスの時刻表示形式。デフォルトは `us` (マイクロ秒) + example: rfc3339 + explode: true + in: query + name: time_format + required: false + schema: + enum: + - ns + - us + - ms + - s + - rfc3339 + type: string + style: form + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/DataPointJSONLine' + application/protobuf: + schema: + description: |- + - データは64ビットの符号なし整数です。バイトオーダーはリトルエンディアンです。 + - データペイロード + - [protocol.proto](https://docs.intdash.jp/api/measurement/proto/index.html) の `DataResponseProto` 参照 + + ``` + + 0 1 2 3 4 5 6 7 8 + +----+----+----+----+----+----+----+----+ + | Data Length( 8 byte) | + +----+----+----+----+----+----+----+----+ --+-- + | Data Payload | | + + + | + | | | + + + | + . . | Data Length + . . | + . . | + + + | + | | | + +----+----+----+----+----+----+----+----+ --+-- + | Data Length(8byte) | + +----+----+----+----+----+----+----+----+ --+-- + | Data Payload | | + + + | + | | | + + + | + . . | Data Length + . . | + ``` + format: binary + type: string + description: OK + headers: + Transfer-Encoding: + explode: false + schema: + enum: + - Chunked + type: string + style: simple + summary: List Data Points + tags: + - meas_DataPoints + x-accepts: "application/json; charset=utf-8,application/protobuf" + /v1/data_ids: + get: + deprecated: true + description: |- + (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/data_ids` を使用してください) + データポイントのデータID( `data_type`, `data_id` )のリストを取得します。 + operationId: listDataPointDataIDs + parameters: + - description: |- + どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: + - 計測UUID + - エッジUUID + - エッジの名前 + + 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 + example: 8f40b21c-f2c4-4fa5-8fe3-325491a59597 + explode: true + in: query + name: name + required: true + schema: + type: string + style: form + - description: |- + 取得対象範囲の始点。以下のいずれかの形式で指定します。 + - rfc3339(ex 2019-10-29T03:04:05.341268Z) + - UNIX時刻(マイクロ秒)(**Deprecated**) + example: 2019-10-29T03:04:05.123456Z + explode: true + in: query + name: start + required: false + schema: + type: string + style: form + - description: |- + 取得対象範囲の終点。以下のいずれかの形式で指定します。 + - rfc3339(ex 2019-10-29T03:04:05.341268Z) + - UNIX時刻(マイクロ秒)(**Deprecated**) + example: 2019-10-29T03:04:05.234567Z + explode: true + in: query + name: end + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/DataPointDataIDs' + description: OK + summary: List Data Point Data IDs + tags: + - meas_DataPointIDs + x-accepts: application/json; charset=utf-8 + /v1/getids: + get: + deprecated: true + description: |- + (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/getids` を使用してください) + エッジを指定し、そのエッジから送信されているデータに含まれるデータ識別子( `data_type` 、 `channel` 、 `data_id` の組み合わせ)のリストを取得します。 + operationId: listDataIDs + parameters: + - description: 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) + example: 1505797626000000 + explode: true + in: query + name: start + required: false + schema: + format: int64 + type: integer + style: form + - description: 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) + example: 1505798226123456 + explode: true + in: query + name: end + required: false + schema: + format: int64 + type: integer + style: form + - description: エッジのUUID + example: 24dbdc29-165f-4919-b2ce-7a335282bde2 + explode: true + in: query + name: edge_uuid + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/DataIDsGetResponse' + value: null + schema: + $ref: '#/components/schemas/DataIDs' + description: OK + summary: List Edge's Data IDs + tags: + - meas_DataPoints + x-accepts: application/json; charset=utf-8 + /v1/measurements/{measurement_uuid}/getids: + get: + deprecated: true + description: "(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/getids`\ + \ を使用してください) 計測を指定し、その計測に含まれるデータ識別子( `data_type` 、 `channel` 、 `data_id` の\ + 組み合わせ)のリストを取得します。" + operationId: listDataIDsWithMeasurementUUID + parameters: + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/DataIDsGetResponse' + value: null + schema: + $ref: '#/components/schemas/DataIDs' + description: OK + summary: List Data IDs + tags: + - meas_DataPoints + x-accepts: application/json; charset=utf-8 + /v1/measurements/data: + post: + deprecated: true + description: |- + (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/data` を使用してください) + データポイントを登録します。 + operationId: createDataPoints + requestBody: + content: + application/protobuf: + schema: + format: binary + type: string + description: |- + このエンドポイント使用時は、 `Content-Type` を以下にしてください。 + * `application/protobuf` + * [protocol.proto](https://docs.intdash.jp/api/measurement/proto/index.html) の `StoreProto` を参照してください。 + * `DataPointProto` の `data_payload`は iSCP v1のデータフォーマットに従います。 + * iSCPのデータフォーマットは [詳説 iSCP 1.0](https://docs.intdash.jp/manual/iscp1-essentials/latest/ja/iscp1-essentials-ja.pdf#page=23)を参照してください。 + responses: + "200": + content: + '*/*': + schema: + description: OK + format: binary + type: string + description: OK + summary: Store Data Points + tags: + - meas_DataPoints + x-content-type: application/protobuf + x-accepts: '*/*' + /v1/measurements: + get: + deprecated: true + description: |- + (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements` を使用してください) + 計測のリストを取得します。 + operationId: listMeasurements + parameters: + - description: 計測のUUID + example: 5c3ac8b5-3acd-43ea-86cb-4835664b0483 + explode: true + in: query + name: uuid + required: false + schema: + items: + type: string + type: array + style: form + - description: 名前が指定した文字列から始まる計測を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけが取得されます。 + example: measurement1 + explode: true + in: query + name: name + required: false + schema: + format: int32 + type: integer + style: form + - description: 計測に関連付けられたエッジのUUID + example: e0022b03-023f-4f24-90f1-560be10c423b + explode: true + in: query + name: edge_uuid + required: false + schema: + type: string + style: form + - description: |- + 取得対象範囲の始点。以下のいずれかの形式で指定します。 + - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) + - UNIX時刻(マイクロ秒)(**Deprecated**) + example: 2019-10-29T03:04:05.123456Z + explode: true + in: query + name: start + required: false + schema: + type: string + style: form + - description: |- + 取得対象範囲の終点。以下のいずれかの形式で指定します。 + - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) + - UNIX時刻(マイクロ秒)(**Deprecated**) + example: 2019-10-29T03:04:05.234567Z + explode: true + in: query + name: end + required: false + schema: + type: string + style: form + - description: |- + `true` にすると、計測の一部が取得対象範囲に入っていればその計測は取得対象となります。 `false` にすると、計測の基準時刻(計測開始)が取得対象範囲に入っていればその計測は取得対象となります。 + ``` + | measurement1 | + +--------------+ + | measurement2 | + +--------------+ + | measurement3 | + +--------------+ + time + -----------+----------------------------+------------> + | | + start end + ``` + + - この例では、もし `partial_match` を `true` にすると、 `measurement1` 、 `measurement2` 、 `measurement3` が取得できます。 + - もし `partial_match` を `false` にすると、 `measurement2` と `measurement3` が取得できます。 + example: true + explode: true + in: query + name: partial_match + required: false + schema: + default: false + type: boolean + style: form + - description: 計測の基準時刻のタイプ + example: ntp + explode: true + in: query + name: basetime_type + required: false + schema: + enum: + - edge_rtc + - ntp + - gps + - api_first_received + - volatile + - manual + type: string + style: form + - description: |- + 計測が終了している(ended)かどうかを指定して計測を取得します。 + + エッジにおいてデータの取得が終了している場合、その計測は「終了(ended)」となります。 + 計測は終了(ended)していても、まだサーバーに送信されていないデータがエッジに残っている可能性があります。 + * `true`: 終了した計測だけを取得します。 + * `false`: 終了していない計測だけを取得します。 + example: false + explode: true + in: query + name: ended + required: false + schema: + type: boolean + style: form + - description: |- + 指定した時刻以降に更新された計測のみを取得します。 + + 以下のいずれかの形式で指定します。 + + - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) + - UNIX時刻(マイクロ秒)(**Deprecated**) + example: 2019-10-29T03:04:05.341268Z + explode: true + in: query + name: since + required: false + schema: + type: string + style: form + - description: 計測時間の最小値(マイクロ秒)。これより短い計測は取得しません。 + example: 100 + explode: true + in: query + name: duration_start + required: false + schema: + format: int64 + type: integer + style: form + - description: 計測時間の最大値(マイクロ秒)。これより長い計測は取得しません。 + example: 100000 + explode: true + in: query + name: duration_end + required: false + schema: + format: int64 + type: integer + style: form + - description: 計測のステータス + example: measuring + explode: true + in: query + name: status + required: false + schema: + items: + enum: + - measuring + - resending + - finished + type: string + type: array + style: form + - description: 1回のリクエストで取得する件数。ただし、0を指定するとデフォルトの値が使用されます。 + example: 1000 + explode: true + in: query + name: limit + required: false + schema: + default: 1000 + format: int32 + type: integer + style: form + - description: 並べ替えに使用するキー + example: base_time + explode: true + in: query + name: sort + required: false + schema: + default: base_time + enum: + - name + - description + - ended + - duration + - base_time + - processed_ratio + - created_at + - updated_at + type: string + style: form + - description: 取得するページの番号 + example: 1 + explode: true + in: query + name: page + required: false + schema: + format: int32 + type: integer + style: form + - description: 並べ替えの順序 + example: asc + explode: true + in: query + name: order + required: false + schema: + enum: + - asc + - desc + type: string + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/MeasList' + value: null + schema: + $ref: '#/components/schemas/Measurements' + description: OK + summary: List Measurements + tags: + - meas_Measurements + x-accepts: application/json; charset=utf-8 + post: + deprecated: true + description: |- + (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements` を使用してください) + 計測を作成します。 + + - **Note** + - 計測の保護/非保護を切り替える権限を持たないエッジも、 + 計測作成時は保護された計測を作成することが可能です。 + operationId: createMeasurement + requestBody: + content: + application/json: + examples: + example1: + $ref: '#/components/examples/MeasCreate' + value: null + schema: + $ref: '#/components/schemas/MeasCreate' + responses: + "201": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/Meas' + value: null + schema: + $ref: '#/components/schemas/Measurement' + description: Created + summary: Create Measurement + tags: + - meas_Measurements + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /v1/measurements/{measurement_uuid}: + delete: + deprecated: true + description: |- + (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}` を使用してください) + 計測を削除します。 + - **Note** + - 保護された計測は削除できません。 + operationId: deleteMeasurement + parameters: + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Trash Measurement + tags: + - meas_Measurements + x-accepts: application/json + get: + deprecated: true + description: "(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}`\ + \ を使用してください) 計測を取得します。" + operationId: getMeasurement + parameters: + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/MeasFinished' + value: null + schema: + $ref: '#/components/schemas/Measurement' + description: OK + summary: Get Measurement + tags: + - meas_Measurements + x-accepts: application/json; charset=utf-8 + post: + deprecated: true + description: "(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}`\ + \ を使用してください) 指定したUUIDの計測を作成します。" + operationId: createMeasurementWithUUID + parameters: + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + examples: + example1: + $ref: '#/components/examples/MeasCreate' + value: null + schema: + $ref: '#/components/schemas/MeasCreate' + responses: + "201": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/Meas' + value: null + schema: + $ref: '#/components/schemas/Measurement' + description: Created + summary: Create Measurement with UUID + tags: + - meas_Measurements + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + put: + deprecated: true + description: "(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}`\ + \ を使用してください) 計測に関する情報を更新します。" + operationId: updateMeasurement + parameters: + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/MeasReplace' + responses: + "204": + description: No Content + summary: Update Measurement + tags: + - meas_Measurements + x-content-type: application/json + x-accepts: application/json + /v1/measurements/{measurement_uuid}/complete: + put: + deprecated: true + description: |- + (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/complete` を使用してください) + 計測を回収完了(completed)にします。 + completedは、エッジでのデータ取得が終了し(ended)、 + かつ、すべてのデータがサーバーに送信されたことを意味します。 + operationId: completeMeasurement + parameters: + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/Meas' + value: null + schema: + $ref: '#/components/schemas/Measurement' + description: OK + summary: Complete Measurement + tags: + - meas_Measurements + x-accepts: application/json; charset=utf-8 + /v1/measurements/{measurement_uuid}/end: + put: + deprecated: true + description: |- + (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/end` を使用してください) + 計測終了(ended)とします。endedは、エッジにおけるデータの取得が終了していることを表します。 + (サーバーに回収されていないデータがまだエッジに残っている可能性はあります。サーバーへのデータの回収が完了した状態は、completedと呼びます。) + operationId: endMeasurement + parameters: + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/SequenceSummary' + description: OK + summary: End Measurement + tags: + - meas_Measurements + x-accepts: application/json; charset=utf-8 + /v1/measurements/{measurement_uuid}/protected: + delete: + deprecated: true + description: "(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/protected`\ + \ を使用してください) 計測の保護を解除します。" + operationId: unprotectMeasurement + parameters: + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Unprotect Measurement + tags: + - meas_Measurements + x-accepts: application/json + put: + deprecated: true + description: "(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/protected`\ + \ を使用してください) 計測を保護します。保護された計測は削除できません。 [See](#section/Protected-resources)\ + \ も参照してください。" + operationId: protectMeasurement + parameters: + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Protect Measurement + tags: + - meas_Measurements + x-accepts: application/json + /v1/measurements/{measurement_uuid}/basetimes: + get: + deprecated: true + description: |- + (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/basetimes` を使用してください) + 計測の基準時刻のリストを取得します。 + operationId: listMeasurementBaseTimes + parameters: + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/MeasBaseTimesGetResponse' + value: null + schema: + $ref: '#/components/schemas/MeasBaseTimes' + description: OK + summary: List Measurement Base Times + tags: + - meas_Measurements + x-accepts: application/json; charset=utf-8 + /v1/measurements/{measurement_uuid}/basetimes/{type}: + delete: + deprecated: true + description: |- + (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/basetimes/{type}` を使用してください) + 基準時刻を削除します。 + + 指定された基準時刻が使用中の場合(その計測の `basetime_type` として設定されている場合)は、 + その基準時刻は削除できません(ステータスコード `409` が返却されます)。 + + このような場合は、他の基準時刻をその計測の `basetime_type` にしてから、削除したい基準時刻を削除してください。 + operationId: deleteMeasurementBaseTime + parameters: + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + - description: 基準時刻のタイプ + example: ntp + explode: false + in: path + name: type + required: true + schema: + enum: + - edge_rtc + - ntp + - gps + - api_first_received + - volatile + - manual + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete Measurement Base Time + tags: + - meas_Measurements + x-accepts: application/json + get: + deprecated: true + description: "(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/basetimes/{type}`\ + \ を使用してください) 基準時刻タイプを指定して計測の基準時刻を取得します。" + operationId: getMeasurementBaseTime + parameters: + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + - description: 基準時刻のタイプ + example: ntp + explode: false + in: path + name: type + required: true + schema: + enum: + - edge_rtc + - ntp + - gps + - api_first_received + - volatile + - manual + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/MeasBaseTimeGetResponse' + value: null + schema: + $ref: '#/components/schemas/MeasBaseTime' + description: OK + summary: Get Measurement Base Time + tags: + - meas_Measurements + x-accepts: application/json; charset=utf-8 + put: + deprecated: true + description: |- + (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/basetimes/{type}` を使用してください) + 基準時刻を更新します。 + この計測において、使用する基準時刻が設定されていない( `basetime_type` が `undefined` )の場合は、 + 新しい基準時刻を `basetime_type` に設定します。 + operationId: updateMeasurementBaseTime + parameters: + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + - description: 基準時刻のタイプ + example: ntp + explode: false + in: path + name: type + required: true + schema: + enum: + - edge_rtc + - ntp + - gps + - api_first_received + - volatile + - manual + type: string + style: simple + requestBody: + content: + application/json: + examples: + example1: + $ref: '#/components/examples/MeasBaseTimePutRequest' + value: null + schema: + $ref: '#/components/schemas/MeasBaseTimePut' + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/MeasBaseTimePutResponse' + value: null + schema: + $ref: '#/components/schemas/MeasBaseTime' + description: OK + summary: Replace Measurement Base Time + tags: + - meas_Measurements + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /v1/measurements/{measurement_uuid}/sections: + get: + deprecated: true + description: |- + (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sections` を使用してください) + 計測に含まれるセクションのリストを取得します。 + operationId: getMeasurementSections + parameters: + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + - description: 計測セクションの処理ステータス。 `processed` (処理済みの計測セクションを取得)、 `unprocessed` + (未処理の計測セクションを取得)、 `both` (両方を取得)のいずれかを選択します。 + example: processed + explode: true + in: query + name: filter + required: false + schema: + default: both + enum: + - processed + - unprocessed + - both + type: string + style: form + - description: 1回のリクエストで取得する件数 + example: 1000 + explode: true + in: query + name: limit + required: false + schema: + format: int32 + type: integer + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/MeasurementSectionsGetResponse' + value: null + schema: + $ref: '#/components/schemas/MeasurementSectionsGetResponse' + description: OK + summary: List Measurement Sections + tags: + - meas_Measurements + x-accepts: application/json; charset=utf-8 + /v1/measurements/{measurement_uuid}/sequences: + get: + deprecated: true + description: "(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sequences`\ + \ を使用してください) 計測シーケンスのリストを取得します。" + operationId: listMeasurementSequences + parameters: + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/MeasurementSequenceGroups' + description: OK + summary: List Measurement Sequences + tags: + - meas_Measurements + x-accepts: application/json; charset=utf-8 + /v1/measurements/{measurement_uuid}/sequences/{sequences_uuid}: + get: + deprecated: true + description: "(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sequences/{sequence_uuid}`\ + \ を使用してください) 計測シーケンスを取得します。" + operationId: getMeasurementSequence + parameters: + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + - description: 計測シーケンスのUUID + example: 0b849907-9f04-4c87-b176-b73fb527e935 + explode: false + in: path + name: sequences_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/MeasurementSequenceGroup' + description: OK + summary: Get Measurement Sequence + tags: + - meas_Measurements + x-accepts: application/json; charset=utf-8 + patch: + deprecated: true + description: "(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sequences/{sequence_uuid}`\ + \ を使用してください) 計測シーケンスを更新します。" + operationId: updateMeasurementSequence + parameters: + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + - description: 計測シーケンスのUUID + example: 0b849907-9f04-4c87-b176-b73fb527e935 + explode: false + in: path + name: sequences_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/MeasurementSequenceGroupReplace' + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/MeasurementSequenceGroup' + description: OK + summary: Update Measurement Sequence + tags: + - meas_Measurements + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + put: + deprecated: true + description: "(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sequences/{sequence_uuid}`\ + \ を使用してください) 計測シーケンスを置換します。" + operationId: replaceMeasurementSequence + parameters: + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + - description: 計測シーケンスのUUID + example: 0b849907-9f04-4c87-b176-b73fb527e935 + explode: false + in: path + name: sequences_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/MeasurementSequenceGroupReplace' + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/MeasurementSequenceGroup' + description: OK + summary: Replace Measurement Sequence + tags: + - meas_Measurements + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /v1/measurements/sequences/chunks: + post: + deprecated: true + description: (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/sequence/chunks` + を使用してください) 計測シーケンスにチャンクを作成します。 + operationId: createMeasurementSequenceChunks + requestBody: + content: + application/vnd.iscp.v2.protobuf: + schema: + description: |- + [protocol.proto](https://docs.intdash.jp/api/measurement/proto/index.html)の`StoreDataChunks`を参照してくだいさい。 + + `StoreDataPoint`のpayloadは iSCP v2のデータフォーマットに従います。この資料は現在準備中です。 + format: binary + type: string + application/json: + schema: + description: |- + [protocol.proto](https://docs.intdash.jp/api/measurement/proto/index.html)の`StoreDataChunks`をJSONでシリアライズしたものです。 + + `StoreDataPoint`のpayloadは iSCP v2のデータフォーマットに従います。この資料は現在準備中です。 + format: binary + type: string + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/CreateMeasurementChunksResult' + description: OK + summary: Create Measurement Sequence Chunk + tags: + - meas_Measurements + x-content-type: application/vnd.iscp.v2.protobuf + x-accepts: application/json; charset=utf-8 + /v1/measurements/jobs: + get: + deprecated: true + description: |- + (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/jobs` を使用してください) + ジョブ(CSVファイルを計測に変換するジョブなど)のリストを取得します。 + operationId: listMeasurementJobs + parameters: + - description: 1回のリクエストで取得する件数 + example: 1000 + explode: true + in: query + name: limit + required: false + schema: + format: int32 + type: integer + style: form + - description: 並べ替えに使用するキー + example: created_at + explode: true + in: query + name: sort + required: false + schema: + default: created_at + enum: + - created_at + - updated_at + type: string + style: form + - description: ジョブのステータス + example: succeeded + explode: true + in: query + name: status + required: false + schema: + enum: + - ready + - processing + - succeeded + - failed + - cancelled + type: string + style: form + - description: 取得するページの番号 + example: 1 + explode: true + in: query + name: page + required: false + schema: + format: int32 + type: integer + style: form + - description: 並べ替えの順序 + example: asc + explode: true + in: query + name: order + required: false + schema: + enum: + - asc + - desc + type: string + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/MeasurementJobsGetResponse' + value: null + schema: + $ref: '#/components/schemas/MeasurementJobs' + description: OK + summary: List Measurement Jobs + tags: + - meas_Measurement Jobs + x-accepts: application/json; charset=utf-8 + /v1/measurements/jobs/{job_uuid}: + delete: + deprecated: true + description: "(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/jobs/{job_uuid}`\ + \ を使用してください) ジョブを削除します。" + operationId: deleteMeasurementJob + parameters: + - description: ジョブのUUID + example: ddba7729-3a53-42bb-a4cf-6d19a3e66deb + explode: false + in: path + name: job_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete Measurement Job + tags: + - meas_Measurement Jobs + x-accepts: application/json + get: + deprecated: true + description: "(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/jobs/{job_uuid}`\ + \ を使用してください) ジョブを取得します。" + operationId: getMeasurementJob + parameters: + - description: ジョブのUUID + example: ddba7729-3a53-42bb-a4cf-6d19a3e66deb + explode: false + in: path + name: job_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/MeasurementJobGetResponse' + value: null + schema: + $ref: '#/components/schemas/MeasurementJob' + description: OK + summary: Get Measurement Job + tags: + - meas_Measurement Jobs + x-accepts: application/json; charset=utf-8 + /v1/measurements/jobs/{job_uuid}/cancel: + put: + deprecated: true + description: "(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/jobs/{job_uuid}/cancel`\ + \ を使用してください) ジョブをキャンセルします。" + operationId: cancelMeasurementJob + parameters: + - description: ジョブのUUID + example: ddba7729-3a53-42bb-a4cf-6d19a3e66deb + explode: false + in: path + name: job_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Cancel Measurement Job + tags: + - meas_Measurement Jobs + x-accepts: application/json + /v1/measurements/markers: + get: + deprecated: true + description: (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/markers` + を使用してください) 計測マーカーのリストを取得します。 + operationId: listMeasurementMarkers + parameters: + - description: 計測マーカーのUUID + example: c14f84c1-b7a5-459b-bd1e-35982e4a4f38 + explode: true + in: query + name: uuid + required: false + schema: + items: + type: string + type: array + style: form + - description: 計測マーカーの名前 + example: measurement marker1 + explode: true + in: query + name: name + required: false + schema: + items: + type: string + type: array + style: form + - description: "Get MeasMarkers which start Meas.BaseTime + elapsed_time <=\ + \ this[usec]." + example: 1000 + explode: true + in: query + name: start_unix_micro + required: false + schema: + format: int64 + type: integer + style: form + - description: "Get MeasMarkers which start this[usec] < Meas.BaseTime +\ + \ elapsed_time." + example: 1000 + explode: true + in: query + name: end_unix_micro + required: false + schema: + format: int64 + type: integer + style: form + - description: |- + タグのキーと値を使って条件を指定し、条件に一致する計測マーカーを取得します。 + キーのみを指定した場合は、指定されたキーを持つ計測マーカーを取得します。 キーと値を指定した場合は、指定されたキーを持ち、その値として指定された値を含む計測マーカーを取得します。 + `tag.=` 条件は複数個指定することができ、OR条件で使用されます。 ただし `!tag.` と組み合わせた場合、 `!tag.` が優先されます。 + + 例: + + | measurement marker | tag (key: value) | + | ------------------ | ---------------- | + | 1 | a: value1 | + | | c: value2 | + | | e: 1 | + + | 2 | a: b | + | | c: d | + + | 3 | a: b | + + - `?tag.e=` の場合、計測マーカー1番が取得されます。 + - `?!tag.c=` の場合、計測マーカー3番が取得されます。 + - `?tag.a=&!tag.e=` の場合、計測マーカー2、3番が取得されます。 + - `?tag.a=val&tag.c=d` の場合、計測マーカー1、2番が取得されます。 + example: include_tag_value + explode: true + in: query + name: tag. + required: false + schema: + items: + type: string + type: array + style: form + - description: |- + タグのキーを使って条件を指定し、条件に一致する計測キャプチャを除外します。 + タグの値は無視されます。 + `!tag.` を複数個指定した場合、AND条件となります。 また、 `tag.=` と組み合わせて使用した場合、 `tag.=` よりも `!tag.` が優先されます。 + 例: 上の `tag.` の説明を参照してください。 + example: exclude_tag_value + explode: true + in: query + name: '!tag.' + required: false + schema: + items: + type: string + type: array + style: form + - description: 1回のリクエストで取得する件数 + example: 1000 + explode: true + in: query + name: limit + required: false + schema: + format: int32 + type: integer + style: form + - description: 並べ替えに使用するキー + example: created_at + explode: true + in: query + name: sort + required: false + schema: + default: base_time + enum: + - name + - base_time + - created_at + - updated_at + type: string + style: form + - description: 取得するページの番号 + example: 1 + explode: true + in: query + name: page + required: false + schema: + format: int32 + type: integer + style: form + - description: 並べ替えの順序 + example: asc + explode: true + in: query + name: order + required: false + schema: + enum: + - asc + - desc + type: string + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/MeasurementMarkersGetResponse' + value: null + schema: + $ref: '#/components/schemas/MeasurementMarkers' + description: OK + summary: List Measurement Markers + tags: + - meas_Measurement Markers + x-accepts: application/json; charset=utf-8 + /v1/measurements/markers/{measurement_marker_uuid}: + delete: + deprecated: true + description: "(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/markers/{measurement_marker_uuid}`\ + \ を使用してください) 計測マーカーを削除します。" + operationId: deleteMeasurementMarker + parameters: + - description: 計測マーカーのUUID + example: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 + explode: false + in: path + name: measurement_marker_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete Measurement Marker + tags: + - meas_Measurement Markers + x-accepts: application/json + get: + deprecated: true + description: "(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/markers/{measurement_marker_uuid}`\ + \ を使用してください) 計測マーカーを取得します。" + operationId: getMeasurementMarker + parameters: + - description: 計測マーカーのUUID + example: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 + explode: false + in: path + name: measurement_marker_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + range: + $ref: '#/components/examples/MeasurementMarkerGetResponseRange' + value: null + point: + $ref: '#/components/examples/MeasurementMarkerGetResponsePoint' + value: null + schema: + $ref: '#/components/schemas/MeasurementMarker' + description: OK + summary: Get Measurement Marker + tags: + - meas_Measurement Markers + x-accepts: application/json; charset=utf-8 + put: + deprecated: true + description: "(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/markers/{measurement_marker_uuid}`\ + \ を使用してください) 計測マーカーを更新します。" + operationId: updateMeasurementMarker + parameters: + - description: 計測マーカーのUUID + example: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 + explode: false + in: path + name: measurement_marker_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + examples: + range: + $ref: '#/components/examples/MeasurementMarkerPutRequestRange' + value: null + point: + $ref: '#/components/examples/MeasurementMarkerPutRequestPoint' + value: null + schema: + $ref: '#/components/schemas/MeasurementMarkerPutRequest' + responses: + "200": + content: + application/json; charset=utf-8: + examples: + range: + $ref: '#/components/examples/MeasurementMarkerGetResponseRange' + value: null + point: + $ref: '#/components/examples/MeasurementMarkerGetResponsePoint' + value: null + schema: + $ref: '#/components/schemas/MeasurementMarker' + description: OK + summary: Update Measurement Marker + tags: + - meas_Measurement Markers + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /v1/measurements/markers/{measurement_marker_uuid}/measurement: + get: + deprecated: true + description: "(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/markers/{measurement_marker_uuid}/measurement`\ + \ を使用してください)" + operationId: getMeasurementFromMeasurementMarker + parameters: + - description: 計測マーカーのUUID + example: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 + explode: false + in: path + name: measurement_marker_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example: + $ref: '#/components/examples/Meas' + value: null + schema: + $ref: '#/components/schemas/Measurement' + description: OK + summary: Get Measurement from Marker + tags: + - meas_Measurements + x-accepts: application/json; charset=utf-8 + /v1/measurements/upload: + get: + deprecated: true + description: ( **Deprecated** このエンドポイントではなく、`GET /measurements/jobs` を使用してください。) + 計測のアップロードのリストを取得します。 + operationId: listMeasurementStatuses + parameters: + - description: 1回のリクエストで取得する件数 + example: 1000 + explode: true + in: query + name: limit + required: false + schema: + format: int32 + type: integer + style: form + - description: 並べ替えに使用するキー + example: created_at + explode: true + in: query + name: sort + required: false + schema: + default: created_at + enum: + - created_at + - updated_at + type: string + style: form + - description: 取得するページの番号 + example: 1 + explode: true + in: query + name: page + required: false + schema: + format: int32 + type: integer + style: form + - description: 並べ替えの順序 + example: asc + explode: true + in: query + name: order + required: false + schema: + enum: + - asc + - desc + type: string + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/MeasurementUploadStatusesGetResponse' + value: null + schema: + $ref: '#/components/schemas/MeasurementUploadStatusesGetResponse' + description: OK + summary: List Uploading Statuses of Measurements + tags: + - meas_Uploading Measurements + x-accepts: application/json; charset=utf-8 + post: + description: |- + CSVまたはMP4(**MP4はexperimental**)ファイルをアップロードし、計測を作成します。 計測には、指定されたエッジUUIDが関連付けられます。 + + `base_time` (基準時刻)は、RFC3339による表現か、UNIX時刻(マイクロ秒)を指定してください。 + 基準時刻が指定されていない場合は、CSVファイルのデータ行の1行目の時刻が基準時刻として使用されます。 + CSVファイルのデータは、時刻順にソートされている必要があります。 + `meas_end` パラメーターの設定は任意です。指定しない場合、 `true` となります。 + + CSVファイルの例: + ``` + time, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10 + 1539263579, val11, 12, 13.12345, val14, 15, 16.12345, val17, 18, 19.12345, val110 + 1539263580, val21, 22, 23.12345, val24, 25, 26.12345, val27, 28, 29.12345, val210 + 1539263581, val31, 32, 33.12345, val34, 35, 36.12345, val37, 38, 39.12345, val310 + 1539263582, val41, 42, 43.12345, val44, 45, 46.12345, val47, 48, 49.12345, val410 + ``` + 空白行がある場合、行番号のカウントは加算されますが、その行は処理されません。 例えば、以下のような場合の空白行は無視されます。 + ``` + time, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10 + 1539263579, val11, 12, 13.12345, val14, 15, 16.12345, val17, 18, 19.12345, val110 + + 1539263581, val31, 32, 33.12345, val34, 35, 36.12345, val37, 38, 39.12345, val310 + 1539263582, val41, 42, 43.12345, val44, 45, 46.12345, val47, 48, 49.12345, val410 + ``` + + [Go parser library](https://golang.org/pkg/encoding/csv/) も参照してください。 + + 時刻の列には、RFC3339による表現か、UNIX時刻(秒)を使用することができます。 + ## エスケープ + 値の内部で `,` を使用したい場合は、その値全体を `"` で囲んでください。 + また、値の内部で `"` を使用したい場合は、値全体を `"` で囲み、さらに、 `"` を `""` のように表記してください。 + 値を `"` で囲まないと、CSVファイルのパースの際にエラーが発生します。 + + エスケープの例: + ``` + time,col1 + 1539263579,"ab,cde" .....OK (parsed as 'ab,cde') + 1539263579,"ab""cde" .....OK (parsed as 'ab"cde') + 1539263579, abcde .....OK (parsed as ' abcde') + 1539263579," abcde" .....OK (parsed as ' abcde') + 1539263579,ab"cde .....NG + 1539263579, "abcde" .....NG + 1539263579,ab,cde .....NG(wrong number of fields) + ``` + operationId: uploadMeasurement + requestBody: + content: + multipart/form-data: + schema: + $ref: '#/components/schemas/MeasurementUploadPostRequest' + responses: + "202": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/MeasurementUploadPostResponse' + value: null + schema: + $ref: '#/components/schemas/MeasurementUploadPostResponse' + description: OK + summary: Create Measurement from CSV File + tags: + - meas_Uploading Measurements + x-content-type: multipart/form-data + x-accepts: application/json; charset=utf-8 + /v1/measurements/{measurement_uuid}/upload: + post: + deprecated: true + description: |- + (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/upload` を使用してください) + CSVファイルをアップロードし、計測にデータを追加します。 + operationId: uploadMeasurementIntoMeasurement + parameters: + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + multipart/form-data: + schema: + $ref: '#/components/schemas/MeasurementUploadPostRequestAppend' + description: '`meas_end` パラメーターの設定は任意です。指定しない場合、 `true` となります。' + responses: + "202": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/MeasurementUploadPostResponse' + value: null + schema: + $ref: '#/components/schemas/MeasurementUploadPostResponse' + description: OK + summary: Store Data Points by CSV File + tags: + - meas_Uploading Measurements + x-content-type: multipart/form-data + x-accepts: application/json; charset=utf-8 + /v1/measurements/{measurement_uuid}/markers: + delete: + deprecated: true + description: "(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/markers`\ + \ を使用してください) 計測マーカーを削除します。" + operationId: deleteMeasurementMarkers + parameters: + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete Measurement Markers by Measurement UUID + tags: + - meas_Measurement Markers + x-accepts: application/json + get: + deprecated: true + description: "(**Deprecated** このエンドポイントではなく、 `GET /measurements/{measurement_uuid}`\ + \ を使用してください。) 計測UUIDを指定して、その計測に付与されたマーカーの一覧を取得します。" + operationId: getMeasurementMarkersWithMeasurementUUID + parameters: + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + value: + items: + - uuid: 887326ce-a2a2-4db6-8c06-2f8447f0f29e + name: name + description: description + type: range + detail: + start_elapsed_time: 100 + end_elapsed_time: 200 + tag: + key1: value1 + key2: value2 + elapsed_time: 1000 + created_at: 2017-02-11T01:23:45Z + created_by: adbbd1ff-1e13-4b12-b125-e213945a65f8 + updated_at: 2017-02-11T12:34:56Z + updated_by: adbbd1ff-1e13-4b12-b125-e213945a65f8 + - uuid: 887326ce-a2a2-4db6-8c06-2f8447f0f29e + name: name + description: description + type: range + detail: + occurred_elapsed_time: 100 + tag: + key1: value1 + key2: value2 + elapsed_time: 1000 + created_at: 2017-02-11T01:23:45Z + created_by: adbbd1ff-1e13-4b12-b125-e213945a65f8 + updated_at: 2017-02-11T12:34:56Z + updated_by: adbbd1ff-1e13-4b12-b125-e213945a65f8 + schema: + $ref: '#/components/schemas/MeasurementMarkersWithoutPage' + description: OK + summary: List Measurement Markers by Measurement UUID + tags: + - meas_Measurement Markers + x-accepts: application/json; charset=utf-8 + post: + deprecated: true + description: "(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/markers`\ + \ を使用してください) 計測マーカーを作成します。" + operationId: createMeasurementMarker + parameters: + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + examples: + point: + $ref: '#/components/examples/MeasurementMarkerPostRequestPoint' + value: null + range: + $ref: '#/components/examples/MeasurementMarkerPostRequestRange' + value: null + schema: + $ref: '#/components/schemas/MeasurementMarkerPostRequest' + responses: + "201": + content: + application/json; charset=utf-8: + examples: + point: + $ref: '#/components/examples/MeasurementMarkerGetResponsePoint' + value: null + range: + $ref: '#/components/examples/MeasurementMarkerGetResponseRange' + value: null + schema: + $ref: '#/components/schemas/MeasurementMarker' + description: Created + summary: Create Measurement Marker by Measurement UUID + tags: + - meas_Measurement Markers + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /v1/measurements/{measurement_uuid}/markers/{measurement_marker_uuid}: + delete: + deprecated: true + description: "(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/markers/{Measurement_marker_uuid}`\ + \ を使用してください) 計測マーカーを削除します。" + operationId: deleteMeasurementMarkerWithMeasurementUUIDAndMarkerUUID + parameters: + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + - description: 計測マーカーのUUID + example: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 + explode: false + in: path + name: measurement_marker_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete Measurement Marker using Measurement UUID + tags: + - meas_Measurement Markers + x-accepts: application/json + get: + deprecated: true + description: "**Deprecated** このエンドポイントではなく、 `GET /measurements/{measurement_uuid}`\ + \ を使用してください。" + operationId: getMeasurementMarkerWithMeasurementUUIDAndMarkerUUID + parameters: + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + - description: 計測マーカーのUUID + example: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 + explode: false + in: path + name: measurement_marker_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + range: + $ref: '#/components/examples/MeasurementMarkerGetResponseRange' + value: null + point: + $ref: '#/components/examples/MeasurementMarkerGetResponsePoint' + value: null + schema: + $ref: '#/components/schemas/MeasurementMarker' + description: OK + summary: Get Measurement Marker using Measurement UUID + tags: + - meas_Measurement Markers + x-accepts: application/json; charset=utf-8 + put: + deprecated: true + description: "(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/markers/{Measurement_marker_uuid}`\ + \ を使用してください) 計測マーカーの情報を更新します。" + operationId: updateMeasurementMarkerWithMeasurementUUIDAndMarkerUUID + parameters: + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + - description: 計測マーカーのUUID + example: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 + explode: false + in: path + name: measurement_marker_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + examples: + range: + $ref: '#/components/examples/MeasurementMarkerPutRequestRange' + value: null + point: + $ref: '#/components/examples/MeasurementMarkerPutRequestPoint' + value: null + schema: + $ref: '#/components/schemas/MeasurementMarkerPutRequest' + responses: + "200": + content: + application/json; charset=utf-8: + examples: + range: + $ref: '#/components/examples/MeasurementMarkerGetResponseRange' + value: null + point: + $ref: '#/components/examples/MeasurementMarkerGetResponsePoint' + value: null + schema: + $ref: '#/components/schemas/MeasurementMarker' + description: OK + summary: Replace Measurement Marker using Measurement UUID + tags: + - meas_Measurement Markers + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /v1/signals: + get: + deprecated: true + description: (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/signals` + を使用してください) 信号定義のリストを取得します。 + operationId: listSignals + parameters: + - description: ラベルが指定した文字列から始まる信号定義を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 + example: label1 + explode: true + in: query + name: label + required: false + schema: + items: + type: string + type: array + style: form + - description: 並べ替えに使用するキー + example: label + explode: true + in: query + name: sort + required: false + schema: + enum: + - label + - created_at + - updated_at + type: string + style: form + - description: 並べ替えの順序 + example: asc + explode: true + in: query + name: order + required: false + schema: + enum: + - asc + - desc + type: string + style: form + - description: 1回のリクエストで取得する件数 + example: "100" + explode: true + in: query + name: limit + required: false + schema: + format: int32 + type: integer + style: form + - description: 取得するページの番号 + example: "1" + explode: true + in: query + name: page + required: false + schema: + format: int32 + type: integer + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + response: + value: + items: + - channel: 1 + conversion: + options: + bitsize: 8 + endian: big + offset: 0 + scale: 1 + sign: signed + startbit: 0 + type: num_fixed_point + created_at: 2017-02-11T01:23:45Z + data_id: "00000001" + data_type: 1 + description: this is signal1 + display: + format: '%6.3f' + max: 10 + min: -10 + unit: m/s2 + hash: sha256:8ddad69061d8... + label: signal1 + updated_at: 2017-02-11T12:34:56Z + uuid: 2cc7de37-6f71-4458-887e-10e618a6fcfb + page: + first: true + last: true + next: /path?xxx=1&bbb=2&page=3 + previous: /path?xxx=1&bbb=2&page=1 + total_count: 1 + schema: + $ref: '#/components/schemas/Signals' + description: OK + summary: List Signals + tags: + - meas_Signals + x-accepts: application/json; charset=utf-8 + post: + deprecated: true + description: |- + (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/signals` を使用してください) + 信号定義を作成します。 + + * **Note** + - 既存の信号定義と `label` が重複する場合、または `uuid` が重複する場合は、 + ステータスコード `409 Conflict` が返却されます。 + operationId: createSignal + requestBody: + content: + application/json: + examples: + example: + value: + channel: 1 + conversion: + options: + bitsize: 8 + endian: big + offset: 0 + scale: 1 + sign: signed + startbit: 0 + type: num_fixed_point + data_id: "00000001" + data_type: 1 + description: description of signal + display: + format: '%6.3f' + max: 10 + min: -10 + unit: m/s2 + label: signal + uuid: 022a9941-d7ff-44ee-a9ff-55a623880a40 + schema: + $ref: '#/components/schemas/CreateSignalRequest' + responses: + "201": + content: + application/json; charset=utf-8: + examples: + response: + value: + channel: 1 + conversion: + options: + bitsize: 8 + endian: big + offset: 0 + scale: 1 + sign: signed + startbit: 0 + type: num_fixed_point + created_at: 2017-02-11T01:23:45Z + data_id: "00000001" + data_type: 1 + description: this is signal1 + display: + format: '%6.3f' + max: 10 + min: -10 + unit: m/s2 + hash: sha256:8ddad69061d8... + label: signal1 + updated_at: 2017-02-11T12:34:56Z + uuid: c1c3fd05-89c6-4da8-abdb-7d31aec2af18 + schema: + $ref: '#/components/schemas/Signal' + description: Created + summary: Create Signal + tags: + - meas_Signals + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /v1/signals/{signal_uuid}: + delete: + deprecated: true + description: "(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/signals/{signal_uuid}`\ + \ を使用してください) 信号定義を削除します。" + operationId: deleteSignal + parameters: + - description: 信号定義のUUID + example: a74b933c-7c3a-4e9f-bf16-299a96d26562 + explode: false + in: path + name: signal_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete Signal + tags: + - meas_Signals + x-accepts: application/json + get: + deprecated: true + description: "(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/signals/{signal_uuid}`\ + \ を使用してください) 信号定義を取得します。" + operationId: getSignal + parameters: + - description: 信号定義のUUID + example: a74b933c-7c3a-4e9f-bf16-299a96d26562 + explode: false + in: path + name: signal_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + response: + value: + uuid: c1c3fd05-89c6-4da8-abdb-7d31aec2af18 + label: signal1 + data_id: "00000001" + data_type: 1 + description: this is signal1 + channel: 1 + conversion: + options: + bitsize: 8 + endian: big + offset: 0 + scale: 1 + sign: signed + startbit: 0 + type: num_fixed_point + display: + format: '%6.3f' + max: 10 + min: -10 + unit: m/s2 + hash: sha256:8ddad69061d8... + created_at: 2017-02-11T01:23:45Z + updated_at: 2017-02-11T12:34:56Z + schema: + $ref: '#/components/schemas/Signal' + description: OK + summary: Get Signal + tags: + - meas_Signals + x-accepts: application/json; charset=utf-8 + put: + deprecated: true + description: "(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/signals/{signal_uuid}`\ + \ を使用してください) 信号定義を更新します。" + operationId: updateSignal + parameters: + - description: 信号定義のUUID + example: a74b933c-7c3a-4e9f-bf16-299a96d26562 + explode: false + in: path + name: signal_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + examples: + example: + value: + channel: 1 + conversion: + options: + bitsize: 8 + endian: big + offset: 0 + scale: 1 + sign: signed + startbit: 0 + type: num_fixed_point + data_id: "00000001" + data_type: 1 + description: description of signal + display: + format: '%6.3f' + max: 10 + min: -10 + unit: m/s2 + label: signal + schema: + $ref: '#/components/schemas/UpdateSignalRequest' + responses: + "200": + content: + application/json; charset=utf-8: + examples: + response: + value: + uuid: c1c3fd05-89c6-4da8-abdb-7d31aec2af18 + label: signal1 + data_id: "00000001" + data_type: 1 + description: this is signal1 + channel: 1 + conversion: + options: + bitsize: 8 + endian: big + offset: 0 + scale: 1 + sign: signed + startbit: 0 + type: num_fixed_point + display: + format: '%6.3f' + max: 10 + min: -10 + unit: m/s2 + hash: sha256:8ddad69061d8... + created_at: 2017-02-11T01:23:45Z + updated_at: 2017-02-11T12:34:56Z + schema: + $ref: '#/components/schemas/Signal' + description: OK + summary: Update Signal + tags: + - meas_Signals + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /v1/trashed_measurements: + get: + deprecated: true + description: (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/trashed_measurements` + を使用してください) ゴミ箱に入っている計測のリストを取得します。 + operationId: listTrashedMeasurements + parameters: + - description: 1回のリクエストで取得する件数。`0` を指定した場合は、デフォルト値の50件となります。 + example: 1 + explode: true + in: query + name: limit + required: false + schema: + maximum: 50 + minimum: 0 + type: integer + style: form + - description: 取得するページの番号 + example: 1 + explode: true + in: query + name: page + required: false + schema: + minimum: 0 + type: integer + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + value: + items: + - uuid: 2cc7de37-6f71-4458-887e-10e618a6fcfb + name: meas1 + description: description of measurement + edge_uuid: 00de1861-6614-4435-af07-da9b4338d57c + duration: 100000000 + ended: true + status: measuring + basetime: 2017-02-11T01:23:45.678901Z + basetime_type: ntp + processed_ratio: 0.9 + protected: false + received_data_points: null + markers: + - uuid: 887326ce-a2a2-4db6-8c06-2f8447f0f29e + name: name + description: description + type: point + detail: + occurred_elapsed_time: 100 + tag: + key1: value1 + key2: value2 + elapsed_time: 1000 + created_at: 2017-02-11T01:23:45Z + created_by: adbbd1ff-1e13-4b12-b125-e213945a65f8 + updated_at: 2017-02-11T12:34:56Z + updated_by: adbbd1ff-1e13-4b12-b125-e213945a65f8 + created_at: 2017-02-11T01:23:45Z + updated_at: 2017-02-11T12:34:56Z + total_count: 1 + schema: + $ref: '#/components/schemas/TrashedMeasurements' + description: OK + summary: List Trashed Measurements + tags: + - meas_Trashed Measurements + x-accepts: application/json; charset=utf-8 + /v1/trashed_measurements/{measurement_uuid}: + delete: + deprecated: true + description: "(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/trashed_measurements/{measurement_uuid}`\ + \ を使用してください) ゴミ箱に入っている計測と、その計測に関連付けられているデータポイントを直ちに削除します。" + operationId: deleteTrashedMeasurement + parameters: + - description: 計測のUUID + example: 86fff159-5887-43c9-bf2d-cd1b522c047d + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete Trashed Measurement and Delete Data Points Immediately + tags: + - meas_Trashed Measurements + x-accepts: application/json + /v1/trashed_measurements/{measurement_uuid}/restore: + delete: + deprecated: true + description: "(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/trashed_measurements/{measurement_uuid}/restore`\ + \ を使用してください) ゴミ箱に入っている計測を復元します。" + operationId: restoreTrashedMeasurement + parameters: + - description: 計測のUUID + example: 86fff159-5887-43c9-bf2d-cd1b522c047d + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Restore Measurement + tags: + - meas_Trashed Measurements + x-accepts: application/json + /v1/projects/{project_uuid}/data: + get: + description: データポイントのリストを取得します。 返却されるデータポイントはJSON形式です。データポイントごとに改行で区切られます。 + operationId: listProjectDataPoints + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: |- + どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: + - 計測UUID + - エッジUUID + - エッジの名前 + + 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 + example: 8f40b21c-f2c4-4fa5-8fe3-325491a59597 + explode: true + in: query + name: name + required: true + schema: + type: string + style: form + - description: |- + 取得したいデータポイントの条件を以下のフォーマットで指定します。 + `data_id` には、 `GET /data_ids` エンドポイントで取得できる `data_id` の値を使用します。 + + - `:/` + + 各セグメントにはワイルドカード(*)を使用することができます。 例: + - CAN(data_type = `1`)のデータポイントを取得する -> `1:*/*` または `1` + - チャンネル2のCANデータポイントを取得する -> `1:2/*` または `1:2` + - チャンネル2のCANデータポイントのうち、データIDが `00000001` のものを取得する -> `1:2/00000001` + example: 1:1/* + explode: true + in: query + name: idq + required: false + schema: + items: + type: string + type: array + style: form + - description: |- + 取得対象範囲の始点。以下のいずれかの形式で指定します。 + - rfc3339(ex 2019-10-29T03:04:05.341268Z) + - UNIX時刻(マイクロ秒)(**Deprecated**) + example: 2019-10-29T03:04:05.123456Z + explode: true + in: query + name: start + required: false + schema: + type: string + style: form + - description: |- + 取得対象範囲の終点。以下のいずれかの形式で指定します。 + - rfc3339(ex 2019-10-29T03:04:05.341268Z) + - UNIX時刻(マイクロ秒)(**Deprecated**) + example: 2019-10-29T03:04:05.234567Z + explode: true + in: query + name: end + required: false + schema: + type: string + style: form + - description: |- + 指定した時刻以降に更新された計測のみを取得します。 + 以下のいずれかの形式で指定します。 + - rfc3339(ex 2019-10-29T03:04:05.341268Z). + - UNIX時刻(マイクロ秒)(**Deprecated**). + example: 2019-10-29T03:04:05.341268Z + explode: true + in: query + name: since + required: false + schema: + type: string + style: form + - description: '`true` を指定した場合、取得中にエラーが発生すると処理を中断し、中断前までのデータポイントのリストを返します。' + example: "false" + explode: true + in: query + name: exit_on_error + required: false + schema: + default: "false" + type: string + style: form + - description: 信号定義のラベル + example: label + explode: true + in: query + name: label + required: false + schema: + items: + type: string + type: array + style: form + - description: |- + データポイントを指定した間隔(マイクロ秒)に間引きます。( **Experimental** ) + + 指定された間隔ごとに最新のデータポイントを残し、それ以外を除去します。 また、指定された間隔になるようにデータポイントの時刻を揃えます。 + ``` + --1--2----3---4--5---6-7--89-a---b-c---d--e--> period指定なし + | | | | | | | | + | | | | | | | | + 2-----3-----5-----7-----a-----c-----d-----e--> period指定あり + + |<--->| period + ``` + example: 10000 + explode: true + in: query + name: period + required: false + schema: + format: int64 + type: integer + style: form + - description: 1回のリクエストで取得する件数 + example: 1000 + explode: true + in: query + name: limit + required: false + schema: + format: int32 + type: integer + style: form + - description: 並べ替えの順序。デフォルトは `asc` (昇順) + example: asc + explode: true + in: query + name: order + required: false + schema: + enum: + - asc + - desc + type: string + style: form + - description: レスポンスの時刻表示形式。デフォルトは `us` (マイクロ秒) + example: rfc3339 + explode: true + in: query + name: time_format + required: false + schema: + enum: + - ns + - us + - ms + - s + - rfc3339 + type: string + style: form + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/DataPointJSONLine' + application/protobuf: + schema: + description: |- + - データは64ビットの符号なし整数です。バイトオーダーはリトルエンディアンです。 + - データペイロード + - [protocol.proto](https://docs.intdash.jp/api/measurement/proto/index.html) の `DataResponseProto` 参照 + + ``` + + 0 1 2 3 4 5 6 7 8 + +----+----+----+----+----+----+----+----+ + | Data Length( 8 byte) | + +----+----+----+----+----+----+----+----+ --+-- + | Data Payload | | + + + | + | | | + + + | + . . | Data Length + . . | + . . | + + + | + | | | + +----+----+----+----+----+----+----+----+ --+-- + | Data Length(8byte) | + +----+----+----+----+----+----+----+----+ --+-- + | Data Payload | | + + + | + | | | + + + | + . . | Data Length + . . | + ``` + format: binary + type: string + description: OK + headers: + Transfer-Encoding: + explode: false + schema: + enum: + - Chunked + type: string + style: simple + summary: List Project Data Points + tags: + - meas_DataPoints + x-accepts: "application/json; charset=utf-8,application/protobuf" + /v1/projects/{project_uuid}/data_ids: + get: + description: "データポイントのデータID( `data_type`, `data_id` )のリストを取得します。" + operationId: listProjectDataPointDataIDs + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: |- + どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: + - 計測UUID + - エッジUUID + - エッジの名前 + + 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 + example: 8f40b21c-f2c4-4fa5-8fe3-325491a59597 + explode: true + in: query + name: name + required: true + schema: + type: string + style: form + - description: |- + 取得対象範囲の始点。以下のいずれかの形式で指定します。 + - rfc3339(ex 2019-10-29T03:04:05.341268Z) + - UNIX時刻(マイクロ秒)(**Deprecated**) + example: 2019-10-29T03:04:05.123456Z + explode: true + in: query + name: start + required: false + schema: + type: string + style: form + - description: |- + 取得対象範囲の終点。以下のいずれかの形式で指定します。 + - rfc3339(ex 2019-10-29T03:04:05.341268Z) + - UNIX時刻(マイクロ秒)(**Deprecated**) + example: 2019-10-29T03:04:05.234567Z + explode: true + in: query + name: end + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/DataPointDataIDs' + description: OK + summary: List Project Data Point Data IDs + tags: + - meas_DataPointIDs + x-accepts: application/json; charset=utf-8 + /v1/projects/{project_uuid}/getids: + get: + description: エッジを指定し、そのエッジから送信されているデータに含まれるデータ識別子( `data_type` 、 `channel` 、 + `data_id` の組み合わせ)のリストを取得します。 + operationId: listProjectDataIDs + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) + example: 1505797626000000 + explode: true + in: query + name: start + required: false + schema: + format: int64 + type: integer + style: form + - description: 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) + example: 1505798226123456 + explode: true + in: query + name: end + required: false + schema: + format: int64 + type: integer + style: form + - description: エッジのUUID + example: 24dbdc29-165f-4919-b2ce-7a335282bde2 + explode: true + in: query + name: edge_uuid + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/DataIDsGetResponse' + value: null + schema: + $ref: '#/components/schemas/DataIDs' + description: OK + summary: List Project Edge's Data IDs + tags: + - meas_DataPoints + x-accepts: application/json; charset=utf-8 + /v1/projects/{project_uuid}/measurements/{measurement_uuid}/getids: + get: + description: 計測を指定し、その計測に含まれるデータ識別子( `data_type` 、 `channel` 、 `data_id` の組み合わせ)のリストを取得します。 + operationId: listProjectDataIDsWithMeasurementUUID + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/DataIDsGetResponse' + value: null + schema: + $ref: '#/components/schemas/DataIDs' + description: OK + summary: List Project Data IDs + tags: + - meas_DataPoints + x-accepts: application/json; charset=utf-8 + /v1/projects/{project_uuid}/measurements/data: + post: + description: データポイントを登録します。 + operationId: createProjectDataPoints + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/protobuf: + schema: + format: binary + type: string + description: |- + このエンドポイント使用時は、 `Content-Type` を以下にしてください。 + * `application/protobuf` + * [protocol.proto](https://docs.intdash.jp/api/measurement/proto/index.html) の `StoreProto` を参照してください。 + * `DataPointProto` の `data_payload`は iSCP v1のデータフォーマットに従います。 + * iSCPのデータフォーマットは [詳説 iSCP 1.0](https://docs.intdash.jp/manual/iscp1-essentials/latest/ja/iscp1-essentials-ja.pdf#page=23)を参照してください。 + responses: + "200": + content: + '*/*': + schema: + description: OK + format: binary + type: string + description: OK + summary: Store Project Data Points + tags: + - meas_DataPoints + x-content-type: application/protobuf + x-accepts: '*/*' + /v1/projects/{project_uuid}/measurements: + get: + description: 計測のリストを取得します。 + operationId: listProjectMeasurements + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: 5c3ac8b5-3acd-43ea-86cb-4835664b0483 + explode: true + in: query + name: uuid + required: false + schema: + items: + type: string + type: array + style: form + - description: 名前が指定した文字列から始まる計測を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけが取得されます。 + example: measurement1 + explode: true + in: query + name: name + required: false + schema: + format: int32 + type: integer + style: form + - description: 計測に関連付けられたエッジのUUID + example: e0022b03-023f-4f24-90f1-560be10c423b + explode: true + in: query + name: edge_uuid + required: false + schema: + type: string + style: form + - description: |- + 取得対象範囲の始点。以下のいずれかの形式で指定します。 + - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) + - UNIX時刻(マイクロ秒)(**Deprecated**) + example: 2019-10-29T03:04:05.123456Z + explode: true + in: query + name: start + required: false + schema: + type: string + style: form + - description: |- + 取得対象範囲の終点。以下のいずれかの形式で指定します。 + - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) + - UNIX時刻(マイクロ秒)(**Deprecated**) + example: 2019-10-29T03:04:05.234567Z + explode: true + in: query + name: end + required: false + schema: + type: string + style: form + - description: |- + `true` にすると、計測の一部が取得対象範囲に入っていればその計測は取得対象となります。 `false` にすると、計測の基準時刻(計測開始)が取得対象範囲に入っていればその計測は取得対象となります。 + ``` + | measurement1 | + +--------------+ + | measurement2 | + +--------------+ + | measurement3 | + +--------------+ + time + -----------+----------------------------+------------> + | | + start end + ``` + + - この例では、もし `partial_match` を `true` にすると、 `measurement1` 、 `measurement2` 、 `measurement3` が取得できます。 + - もし `partial_match` を `false` にすると、 `measurement2` と `measurement3` が取得できます。 + example: true + explode: true + in: query + name: partial_match + required: false + schema: + default: false + type: boolean + style: form + - description: 計測の基準時刻のタイプ + example: ntp + explode: true + in: query + name: basetime_type + required: false + schema: + enum: + - edge_rtc + - ntp + - gps + - api_first_received + - volatile + - manual + type: string + style: form + - description: |- + 計測が終了している(ended)かどうかを指定して計測を取得します。 + + エッジにおいてデータの取得が終了している場合、その計測は「終了(ended)」となります。 + 計測は終了(ended)していても、まだサーバーに送信されていないデータがエッジに残っている可能性があります。 + * `true`: 終了した計測だけを取得します。 + * `false`: 終了していない計測だけを取得します。 + example: false + explode: true + in: query + name: ended + required: false + schema: + type: boolean + style: form + - description: |- + 指定した時刻以降に更新された計測のみを取得します。 + + 以下のいずれかの形式で指定します。 + + - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) + - UNIX時刻(マイクロ秒)(**Deprecated**) + example: 2019-10-29T03:04:05.341268Z + explode: true + in: query + name: since + required: false + schema: + type: string + style: form + - description: 計測時間の最小値(マイクロ秒)。これより短い計測は取得しません。 + example: 100 + explode: true + in: query + name: duration_start + required: false + schema: + format: int64 + type: integer + style: form + - description: 計測時間の最大値(マイクロ秒)。これより長い計測は取得しません。 + example: 100000 + explode: true + in: query + name: duration_end + required: false + schema: + format: int64 + type: integer + style: form + - description: 計測のステータス + example: measuring + explode: true + in: query + name: status + required: false + schema: + items: + enum: + - measuring + - resending + - finished + type: string + type: array + style: form + - description: 1回のリクエストで取得する件数。ただし、0を指定するとデフォルトの値が使用されます。 + example: 1000 + explode: true + in: query + name: limit + required: false + schema: + default: 1000 + format: int32 + type: integer + style: form + - description: 並べ替えに使用するキー + example: base_time + explode: true + in: query + name: sort + required: false + schema: + default: base_time + enum: + - name + - description + - ended + - duration + - base_time + - processed_ratio + - created_at + - updated_at + type: string + style: form + - description: 取得するページの番号 + example: 1 + explode: true + in: query + name: page + required: false + schema: + format: int32 + type: integer + style: form + - description: 並べ替えの順序 + example: asc + explode: true + in: query + name: order + required: false + schema: + enum: + - asc + - desc + type: string + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/MeasList' + value: null + schema: + $ref: '#/components/schemas/Measurements' + description: OK + summary: List Project Measurements + tags: + - meas_Measurements + x-accepts: application/json; charset=utf-8 + post: + description: |- + 計測を作成します。 + + - **Note** + - 計測の保護/非保護を切り替える権限を持たないエッジも、 + 計測作成時は保護された計測を作成することが可能です。 + operationId: createProjectMeasurement + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + examples: + example1: + $ref: '#/components/examples/MeasCreate' + value: null + schema: + $ref: '#/components/schemas/MeasCreate' + responses: + "201": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/Meas' + value: null + schema: + $ref: '#/components/schemas/Measurement' + description: Created + summary: Create Project Measurement + tags: + - meas_Measurements + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /v1/projects/{project_uuid}/measurements/{measurement_uuid}: + delete: + description: |- + 計測を削除します。 + - **Note** + - 保護された計測は削除できません。 + operationId: deleteProjectMeasurement + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Trash Project Measurement + tags: + - meas_Measurements + x-accepts: application/json + get: + description: 計測を取得します。 + operationId: getProjectMeasurement + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/MeasFinished' + value: null + schema: + $ref: '#/components/schemas/Measurement' + description: OK + summary: Get Project Measurement + tags: + - meas_Measurements + x-accepts: application/json; charset=utf-8 + post: + description: 指定したUUIDの計測を作成します。 + operationId: createProjectMeasurementWithUUID + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + examples: + example1: + $ref: '#/components/examples/MeasCreate' + value: null + schema: + $ref: '#/components/schemas/MeasCreate' + responses: + "201": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/Meas' + value: null + schema: + $ref: '#/components/schemas/Measurement' + description: Created + summary: Create Project Measurement with UUID + tags: + - meas_Measurements + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + put: + description: 計測に関する情報を更新します。 + operationId: updateProjectMeasurement + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/MeasReplace' + responses: + "204": + description: No Content + summary: Update Project Measurement + tags: + - meas_Measurements + x-content-type: application/json + x-accepts: application/json + /v1/projects/{project_uuid}/measurements/{measurement_uuid}/complete: + put: + description: 計測を回収完了(completed)にします。 completedは、エッジでのデータ取得が終了し(ended)、 かつ、すべてのデータがサーバーに送信されたことを意味します。 + operationId: completeProjectMeasurement + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/Meas' + value: null + schema: + $ref: '#/components/schemas/Measurement' + description: OK + summary: Complete Project Measurement + tags: + - meas_Measurements + x-accepts: application/json; charset=utf-8 + /v1/projects/{project_uuid}/measurements/{measurement_uuid}/end: + put: + description: 計測終了(ended)とします。endedは、エッジにおけるデータの取得が終了していることを表します。 (サーバーに回収されていないデータがまだエッジに残っている可能性はあります。サーバーへのデータの回収が完了した状態は、completedと呼びます。) + operationId: endProjectMeasurement + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/SequenceSummary' + description: OK + summary: End Project Measurement + tags: + - meas_Measurements + x-accepts: application/json; charset=utf-8 + /v1/projects/{project_uuid}/measurements/{measurement_uuid}/protected: + delete: + description: 計測の保護を解除します。 + operationId: unprotectProjectMeasurement + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Unprotect Project Measurement + tags: + - meas_Measurements + x-accepts: application/json + put: + description: "計測を保護します。保護された計測は削除できません。 [See](#section/Protected-resources)\ + \ も参照してください。" + operationId: protectProjectMeasurement + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Protect Project Measurement + tags: + - meas_Measurements + x-accepts: application/json + /v1/projects/{project_uuid}/measurements/{measurement_uuid}/basetimes: + get: + description: 計測の基準時刻のリストを取得します。 + operationId: listProjectMeasurementBaseTimes + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/MeasBaseTimesGetResponse' + value: null + schema: + $ref: '#/components/schemas/MeasBaseTimes' + description: OK + summary: List Project Measurement Base Times + tags: + - meas_Measurements + x-accepts: application/json; charset=utf-8 + /v1/projects/{project_uuid}/measurements/{measurement_uuid}/basetimes/{type}: + delete: + description: |- + 基準時刻を削除します。 + 指定された基準時刻が使用中の場合(その計測の `basetime_type` として設定されている場合)は、 その基準時刻は削除できません(ステータスコード `409` が返却されます)。 + このような場合は、他の基準時刻をその計測の `basetime_type` にしてから、削除したい基準時刻を削除してください。 + operationId: deleteProjectMeasurementBaseTime + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + - description: 基準時刻のタイプ + example: ntp + explode: false + in: path + name: type + required: true + schema: + enum: + - edge_rtc + - ntp + - gps + - api_first_received + - volatile + - manual + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete Project Measurement Base Time + tags: + - meas_Measurements + x-accepts: application/json + get: + description: 基準時刻タイプを指定して計測の基準時刻を取得します。 + operationId: getProjectMeasurementBaseTime + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + - description: 基準時刻のタイプ + example: ntp + explode: false + in: path + name: type + required: true + schema: + enum: + - edge_rtc + - ntp + - gps + - api_first_received + - volatile + - manual + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/MeasBaseTimeGetResponse' + value: null + schema: + $ref: '#/components/schemas/MeasBaseTime' + description: OK + summary: Get Project Measurement Base Time + tags: + - meas_Measurements + x-accepts: application/json; charset=utf-8 + put: + description: 基準時刻を更新します。 この計測において、使用する基準時刻が設定されていない( `basetime_type` が `undefined` + )の場合は、 新しい基準時刻を `basetime_type` に設定します。 + operationId: updateProjectMeasurementBaseTime + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + - description: 基準時刻のタイプ + example: ntp + explode: false + in: path + name: type + required: true + schema: + enum: + - edge_rtc + - ntp + - gps + - api_first_received + - volatile + - manual + type: string + style: simple + requestBody: + content: + application/json: + examples: + example1: + $ref: '#/components/examples/MeasBaseTimePutRequest' + value: null + schema: + $ref: '#/components/schemas/MeasBaseTimePut' + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/MeasBaseTimePutResponse' + value: null + schema: + $ref: '#/components/schemas/MeasBaseTime' + description: OK + summary: Replace Project Measurement Base Time + tags: + - meas_Measurements + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /v1/projects/{project_uuid}/measurements/{measurement_uuid}/sections: + get: + description: 計測に含まれるセクションのリストを取得します。 + operationId: getProjectMeasurementSections + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + - description: 計測セクションの処理ステータス。 `processed` (処理済みの計測セクションを取得)、 `unprocessed` + (未処理の計測セクションを取得)、 `both` (両方を取得)のいずれかを選択します。 + example: processed + explode: true + in: query + name: filter + required: false + schema: + default: both + enum: + - processed + - unprocessed + - both + type: string + style: form + - description: 1回のリクエストで取得する件数 + example: 1000 + explode: true + in: query + name: limit + required: false + schema: + format: int32 + type: integer + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/MeasurementSectionsGetResponse' + value: null + schema: + $ref: '#/components/schemas/MeasurementSectionsGetResponse' + description: OK + summary: List Project Measurement Sections + tags: + - meas_Measurements + x-accepts: application/json; charset=utf-8 + /v1/projects/{project_uuid}/measurements/{measurement_uuid}/sequences: + get: + description: 計測シーケンスのリストを取得します。 + operationId: listProjectMeasurementSequences + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/MeasurementSequenceGroups' + description: OK + summary: List Project Measurement Sequences + tags: + - meas_Measurements + x-accepts: application/json; charset=utf-8 + /v1/projects/{project_uuid}/measurements/{measurement_uuid}/sequences/{sequences_uuid}: + get: + description: 計測シーケンスを取得します。 + operationId: getProjectMeasurementSequence + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + - description: 計測シーケンスのUUID + example: 0b849907-9f04-4c87-b176-b73fb527e935 + explode: false + in: path + name: sequences_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/MeasurementSequenceGroup' + description: OK + summary: Get Project Measurement Sequence + tags: + - meas_Measurements + x-accepts: application/json; charset=utf-8 + patch: + description: 計測シーケンスを更新します。 + operationId: updateProjectMeasurementSequence + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + - description: 計測シーケンスのUUID + example: 0b849907-9f04-4c87-b176-b73fb527e935 + explode: false + in: path + name: sequences_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/MeasurementSequenceGroupReplace' + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/MeasurementSequenceGroup' + description: OK + summary: Update Project Measurement Sequence + tags: + - meas_Measurements + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + put: + description: 計測シーケンスを置換します。 + operationId: replaceProjectMeasurementSequence + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + - description: 計測シーケンスのUUID + example: 0b849907-9f04-4c87-b176-b73fb527e935 + explode: false + in: path + name: sequences_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/MeasurementSequenceGroupReplace' + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/MeasurementSequenceGroup' + description: OK + summary: Replace Project Measurement Sequence + tags: + - meas_Measurements + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /v1/projects/{project_uuid}/measurements/sequences/chunks: + post: + description: 計測シーケンスにチャンクを作成します。 + operationId: createProjectMeasurementSequenceChunks + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/vnd.iscp.v2.protobuf: + schema: + description: |- + [protocol.proto](https://docs.intdash.jp/api/measurement/proto/index.html)の`StoreDataChunks`を参照してくだいさい。 + + `StoreDataPoint`のpayloadは iSCP v2のデータフォーマットに従います。この資料は現在準備中です。 + format: binary + type: string + application/json: + schema: + description: |- + [protocol.proto](https://docs.intdash.jp/api/measurement/proto/index.html)の`StoreDataChunks`をJSONでシリアライズしたものです。 + + `StoreDataPoint`のpayloadは iSCP v2のデータフォーマットに従います。この資料は現在準備中です。 + format: binary + type: string + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/CreateMeasurementChunksResult' + description: OK + summary: Create Project Measurement Sequence Chunk + tags: + - meas_Measurements + x-content-type: application/vnd.iscp.v2.protobuf + x-accepts: application/json; charset=utf-8 + /v1/projects/{project_uuid}/measurements/jobs: + get: + description: ジョブ(CSVファイルを計測に変換するジョブなど)のリストを取得します。 + operationId: listProjectMeasurementJobs + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 1回のリクエストで取得する件数 + example: 1000 + explode: true + in: query + name: limit + required: false + schema: + format: int32 + type: integer + style: form + - description: 並べ替えに使用するキー + example: created_at + explode: true + in: query + name: sort + required: false + schema: + default: created_at + enum: + - created_at + - updated_at + type: string + style: form + - description: ジョブのステータス + example: succeeded + explode: true + in: query + name: status + required: false + schema: + enum: + - ready + - processing + - succeeded + - failed + - cancelled + type: string + style: form + - description: 取得するページの番号 + example: 1 + explode: true + in: query + name: page + required: false + schema: + format: int32 + type: integer + style: form + - description: 並べ替えの順序 + example: asc + explode: true + in: query + name: order + required: false + schema: + enum: + - asc + - desc + type: string + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/MeasurementJobsGetResponse' + value: null + schema: + $ref: '#/components/schemas/MeasurementJobs' + description: OK + summary: List Project Measurement Jobs + tags: + - meas_Measurement Jobs + x-accepts: application/json; charset=utf-8 + /v1/projects/{project_uuid}/measurements/jobs/{job_uuid}: + delete: + description: ジョブを削除します。 + operationId: deleteProjectMeasurementJob + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: ジョブのUUID + example: ddba7729-3a53-42bb-a4cf-6d19a3e66deb + explode: false + in: path + name: job_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete Project Measurement Job + tags: + - meas_Measurement Jobs + x-accepts: application/json + get: + description: ジョブを取得します。 + operationId: getProjectMeasurementJob + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: ジョブのUUID + example: ddba7729-3a53-42bb-a4cf-6d19a3e66deb + explode: false + in: path + name: job_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/MeasurementJobGetResponse' + value: null + schema: + $ref: '#/components/schemas/MeasurementJob' + description: OK + summary: Get Project Measurement Job + tags: + - meas_Measurement Jobs + x-accepts: application/json; charset=utf-8 + /v1/projects/{project_uuid}/measurements/jobs/{job_uuid}/cancel: + put: + description: ジョブをキャンセルします。 + operationId: cancelProjectMeasurementJob + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: ジョブのUUID + example: ddba7729-3a53-42bb-a4cf-6d19a3e66deb + explode: false + in: path + name: job_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Cancel Project Measurement Job + tags: + - meas_Measurement Jobs + x-accepts: application/json + /v1/projects/{project_uuid}/measurements/markers: + get: + description: 計測マーカーのリストを取得します。 + operationId: listProjectMeasurementMarkers + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測マーカーのUUID + example: c14f84c1-b7a5-459b-bd1e-35982e4a4f38 + explode: true + in: query + name: uuid + required: false + schema: + items: + type: string + type: array + style: form + - description: 計測マーカーの名前 + example: measurement marker1 + explode: true + in: query + name: name + required: false + schema: + items: + type: string + type: array + style: form + - description: "Get MeasMarkers which start Meas.BaseTime + elapsed_time <=\ + \ this[usec]." + example: 1000 + explode: true + in: query + name: start_unix_micro + required: false + schema: + format: int64 + type: integer + style: form + - description: "Get MeasMarkers which start this[usec] < Meas.BaseTime +\ + \ elapsed_time." + example: 1000 + explode: true + in: query + name: end_unix_micro + required: false + schema: + format: int64 + type: integer + style: form + - description: |- + タグのキーと値を使って条件を指定し、条件に一致する計測マーカーを取得します。 + キーのみを指定した場合は、指定されたキーを持つ計測マーカーを取得します。 キーと値を指定した場合は、指定されたキーを持ち、その値として指定された値を含む計測マーカーを取得します。 + `tag.=` 条件は複数個指定することができ、OR条件で使用されます。 ただし `!tag.` と組み合わせた場合、 `!tag.` が優先されます。 + + 例: + + | measurement marker | tag (key: value) | + | ------------------ | ---------------- | + | 1 | a: value1 | + | | c: value2 | + | | e: 1 | + + | 2 | a: b | + | | c: d | + + | 3 | a: b | + + - `?tag.e=` の場合、計測マーカー1番が取得されます。 + - `?!tag.c=` の場合、計測マーカー3番が取得されます。 + - `?tag.a=&!tag.e=` の場合、計測マーカー2、3番が取得されます。 + - `?tag.a=val&tag.c=d` の場合、計測マーカー1、2番が取得されます。 + example: include_tag_value + explode: true + in: query + name: tag. + required: false + schema: + items: + type: string + type: array + style: form + - description: |- + タグのキーを使って条件を指定し、条件に一致する計測キャプチャを除外します。 + タグの値は無視されます。 + `!tag.` を複数個指定した場合、AND条件となります。 また、 `tag.=` と組み合わせて使用した場合、 `tag.=` よりも `!tag.` が優先されます。 + 例: 上の `tag.` の説明を参照してください。 + example: exclude_tag_value + explode: true + in: query + name: '!tag.' + required: false + schema: + items: + type: string + type: array + style: form + - description: 1回のリクエストで取得する件数 + example: 1000 + explode: true + in: query + name: limit + required: false + schema: + format: int32 + type: integer + style: form + - description: 並べ替えに使用するキー + example: created_at + explode: true + in: query + name: sort + required: false + schema: + default: base_time + enum: + - name + - base_time + - created_at + - updated_at + type: string + style: form + - description: 取得するページの番号 + example: 1 + explode: true + in: query + name: page + required: false + schema: + format: int32 + type: integer + style: form + - description: 並べ替えの順序 + example: asc + explode: true + in: query + name: order + required: false + schema: + enum: + - asc + - desc + type: string + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/MeasurementMarkersGetResponse' + value: null + schema: + $ref: '#/components/schemas/MeasurementMarkers' + description: OK + summary: List Project Measurement Markers + tags: + - meas_Measurement Markers + x-accepts: application/json; charset=utf-8 + /v1/projects/{project_uuid}/measurements/markers/{measurement_marker_uuid}: + delete: + description: 計測マーカーを削除します。 + operationId: deleteProjectMeasurementMarker + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測マーカーのUUID + example: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 + explode: false + in: path + name: measurement_marker_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete Project Measurement Marker + tags: + - meas_Measurement Markers + x-accepts: application/json + get: + description: 計測マーカーを取得します。 + operationId: getProjectMeasurementMarker + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測マーカーのUUID + example: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 + explode: false + in: path + name: measurement_marker_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + range: + $ref: '#/components/examples/MeasurementMarkerGetResponseRange' + value: null + point: + $ref: '#/components/examples/MeasurementMarkerGetResponsePoint' + value: null + schema: + $ref: '#/components/schemas/MeasurementMarker' + description: OK + summary: Get Project Measurement Marker + tags: + - meas_Measurement Markers + x-accepts: application/json; charset=utf-8 + put: + description: 計測マーカーを更新します。 + operationId: updateProjectMeasurementMarker + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測マーカーのUUID + example: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 + explode: false + in: path + name: measurement_marker_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + examples: + range: + $ref: '#/components/examples/MeasurementMarkerPutRequestRange' + value: null + point: + $ref: '#/components/examples/MeasurementMarkerPutRequestPoint' + value: null + schema: + $ref: '#/components/schemas/MeasurementMarkerPutRequest' + responses: + "200": + content: + application/json; charset=utf-8: + examples: + range: + $ref: '#/components/examples/MeasurementMarkerGetResponseRange' + value: null + point: + $ref: '#/components/examples/MeasurementMarkerGetResponsePoint' + value: null + schema: + $ref: '#/components/schemas/MeasurementMarker' + description: OK + summary: Update Project Measurement Marker + tags: + - meas_Measurement Markers + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /v1/projects/{project_uuid}/measurements/upload: + get: + deprecated: true + description: ( **Deprecated** このエンドポイントではなく、`GET /measurements/jobs` を使用してください。) + 計測のアップロードのリストを取得します。 + operationId: listProjectMeasurementStatuses + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 1回のリクエストで取得する件数 + example: 1000 + explode: true + in: query + name: limit + required: false + schema: + format: int32 + type: integer + style: form + - description: 並べ替えに使用するキー + example: created_at + explode: true + in: query + name: sort + required: false + schema: + default: created_at + enum: + - created_at + - updated_at + type: string + style: form + - description: 取得するページの番号 + example: 1 + explode: true + in: query + name: page + required: false + schema: + format: int32 + type: integer + style: form + - description: 並べ替えの順序 + example: asc + explode: true + in: query + name: order + required: false + schema: + enum: + - asc + - desc + type: string + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/MeasurementUploadStatusesGetResponse' + value: null + schema: + $ref: '#/components/schemas/MeasurementUploadStatusesGetResponse' + description: OK + summary: List Project Uploading Statuses of Measurements + tags: + - meas_Uploading Measurements + x-accepts: application/json; charset=utf-8 + post: + description: |- + CSVまたはMP4(**MP4はexperimental**)ファイルをアップロードし、計測を作成します。 計測には、指定されたエッジUUIDが関連付けられます。 + + `base_time` (基準時刻)は、RFC3339による表現か、UNIX時刻(マイクロ秒)を指定してください。 + 基準時刻が指定されていない場合は、CSVファイルのデータ行の1行目の時刻が基準時刻として使用されます。 + CSVファイルのデータは、時刻順にソートされている必要があります。 + `meas_end` パラメーターの設定は任意です。指定しない場合、 `true` となります。 + + CSVファイルの例: + ``` + time, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10 + 1539263579, val11, 12, 13.12345, val14, 15, 16.12345, val17, 18, 19.12345, val110 + 1539263580, val21, 22, 23.12345, val24, 25, 26.12345, val27, 28, 29.12345, val210 + 1539263581, val31, 32, 33.12345, val34, 35, 36.12345, val37, 38, 39.12345, val310 + 1539263582, val41, 42, 43.12345, val44, 45, 46.12345, val47, 48, 49.12345, val410 + ``` + 空白行がある場合、行番号のカウントは加算されますが、その行は処理されません。 例えば、以下のような場合の空白行は無視されます。 + ``` + time, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10 + 1539263579, val11, 12, 13.12345, val14, 15, 16.12345, val17, 18, 19.12345, val110 + + 1539263581, val31, 32, 33.12345, val34, 35, 36.12345, val37, 38, 39.12345, val310 + 1539263582, val41, 42, 43.12345, val44, 45, 46.12345, val47, 48, 49.12345, val410 + ``` + + [Go parser library](https://golang.org/pkg/encoding/csv/) も参照してください。 + + 時刻の列には、RFC3339による表現か、UNIX時刻(秒)を使用することができます。 + ## エスケープ + 値の内部で `,` を使用したい場合は、その値全体を `"` で囲んでください。 + また、値の内部で `"` を使用したい場合は、値全体を `"` で囲み、さらに、 `"` を `""` のように表記してください。 + 値を `"` で囲まないと、CSVファイルのパースの際にエラーが発生します。 + + エスケープの例: + ``` + time,col1 + 1539263579,"ab,cde" .....OK (parsed as 'ab,cde') + 1539263579,"ab""cde" .....OK (parsed as 'ab"cde') + 1539263579, abcde .....OK (parsed as ' abcde') + 1539263579," abcde" .....OK (parsed as ' abcde') + 1539263579,ab"cde .....NG + 1539263579, "abcde" .....NG + 1539263579,ab,cde .....NG(wrong number of fields) + ``` + operationId: uploadProjectMeasurement + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + multipart/form-data: + schema: + $ref: '#/components/schemas/MeasurementUploadPostRequest' + responses: + "202": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/MeasurementUploadPostResponse' + value: null + schema: + $ref: '#/components/schemas/MeasurementUploadPostResponse' + description: OK + summary: Create Project Measurement from CSV File + tags: + - meas_Uploading Measurements + x-content-type: multipart/form-data + x-accepts: application/json; charset=utf-8 + /v1/projects/{project_uuid}/measurements/{measurement_uuid}/upload: + post: + description: CSVファイルをアップロードし、計測にデータを追加します。 + operationId: uploadProjectMeasurementIntoMeasurement + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + multipart/form-data: + schema: + $ref: '#/components/schemas/MeasurementUploadPostRequestAppend' + description: '`meas_end` パラメーターの設定は任意です。指定しない場合、 `true` となります。' + responses: + "202": + content: + application/json; charset=utf-8: + examples: + example1: + $ref: '#/components/examples/MeasurementUploadPostResponse' + value: null + schema: + $ref: '#/components/schemas/MeasurementUploadPostResponse' + description: OK + summary: Store Project Data Points by CSV File + tags: + - meas_Uploading Measurements + x-content-type: multipart/form-data + x-accepts: application/json; charset=utf-8 + /v1/projects/{project_uuid}/measurements/{measurement_uuid}/markers: + delete: + description: 計測マーカーを削除します。 + operationId: deleteProjectMeasurementMarkers + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete Project Measurement Markers by Measurement UUID + tags: + - meas_Measurement Markers + x-accepts: application/json + get: + deprecated: true + description: "(**Deprecated** このエンドポイントではなく、 `GET /measurements/{measurement_uuid}`\ + \ を使用してください。) 計測UUIDを指定して、その計測に付与されたマーカーの一覧を取得します。" + operationId: getProjectMeasurementMarkersWithMeasurementUUID + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + value: + items: + - uuid: 887326ce-a2a2-4db6-8c06-2f8447f0f29e + name: name + description: description + type: range + detail: + start_elapsed_time: 100 + end_elapsed_time: 200 + tag: + key1: value1 + key2: value2 + elapsed_time: 1000 + created_at: 2017-02-11T01:23:45Z + created_by: adbbd1ff-1e13-4b12-b125-e213945a65f8 + updated_at: 2017-02-11T12:34:56Z + updated_by: adbbd1ff-1e13-4b12-b125-e213945a65f8 + - uuid: 887326ce-a2a2-4db6-8c06-2f8447f0f29e + name: name + description: description + type: range + detail: + occurred_elapsed_time: 100 + tag: + key1: value1 + key2: value2 + elapsed_time: 1000 + created_at: 2017-02-11T01:23:45Z + created_by: adbbd1ff-1e13-4b12-b125-e213945a65f8 + updated_at: 2017-02-11T12:34:56Z + updated_by: adbbd1ff-1e13-4b12-b125-e213945a65f8 + schema: + $ref: '#/components/schemas/MeasurementMarkersWithoutPage' + description: OK + summary: List Project Measurement Markers by Measurement UUID + tags: + - meas_Measurement Markers + x-accepts: application/json; charset=utf-8 + post: + description: 計測マーカーを作成します。 + operationId: createProjectMeasurementMarker + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + examples: + point: + $ref: '#/components/examples/MeasurementMarkerPostRequestPoint' + value: null + range: + $ref: '#/components/examples/MeasurementMarkerPostRequestRange' + value: null + schema: + $ref: '#/components/schemas/MeasurementMarkerPostRequest' + responses: + "201": + content: + application/json; charset=utf-8: + examples: + point: + $ref: '#/components/examples/MeasurementMarkerGetResponsePoint' + value: null + range: + $ref: '#/components/examples/MeasurementMarkerGetResponseRange' + value: null + schema: + $ref: '#/components/schemas/MeasurementMarker' + description: Created + summary: Create Project Measurement Marker by Measurement UUID + tags: + - meas_Measurement Markers + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /v1/projects/{project_uuid}/measurements/{measurement_uuid}/markers/{measurement_marker_uuid}: + delete: + description: 計測マーカーを削除します。 + operationId: deleteProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + - description: 計測マーカーのUUID + example: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 + explode: false + in: path + name: measurement_marker_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete Project Measurement Marker using Measurement UUID + tags: + - meas_Measurement Markers + x-accepts: application/json + get: + deprecated: true + description: "**Deprecated** このエンドポイントではなく、 `GET /measurements/{measurement_uuid}`\ + \ を使用してください。" + operationId: getProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + - description: 計測マーカーのUUID + example: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 + explode: false + in: path + name: measurement_marker_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + range: + $ref: '#/components/examples/MeasurementMarkerGetResponseRange' + value: null + point: + $ref: '#/components/examples/MeasurementMarkerGetResponsePoint' + value: null + schema: + $ref: '#/components/schemas/MeasurementMarker' + description: OK + summary: Get Project Measurement Marker using Measurement UUID + tags: + - meas_Measurement Markers + x-accepts: application/json; charset=utf-8 + put: + description: 計測マーカーの情報を更新します。 + operationId: updateProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + - description: 計測マーカーのUUID + example: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 + explode: false + in: path + name: measurement_marker_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + examples: + range: + $ref: '#/components/examples/MeasurementMarkerPutRequestRange' + value: null + point: + $ref: '#/components/examples/MeasurementMarkerPutRequestPoint' + value: null + schema: + $ref: '#/components/schemas/MeasurementMarkerPutRequest' + responses: + "200": + content: + application/json; charset=utf-8: + examples: + range: + $ref: '#/components/examples/MeasurementMarkerGetResponseRange' + value: null + point: + $ref: '#/components/examples/MeasurementMarkerGetResponsePoint' + value: null + schema: + $ref: '#/components/schemas/MeasurementMarker' + description: OK + summary: Replace Project Measurement Marker using Measurement UUID + tags: + - meas_Measurement Markers + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /v1/projects/{project_uuid}/signals: + get: + description: 信号定義のリストを取得します。 + operationId: listProjectSignals + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: ラベルが指定した文字列から始まる信号定義を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 + example: label1 + explode: true + in: query + name: label + required: false + schema: + items: + type: string + type: array + style: form + - description: 並べ替えに使用するキー + example: label + explode: true + in: query + name: sort + required: false + schema: + enum: + - label + - created_at + - updated_at + type: string + style: form + - description: 並べ替えの順序 + example: asc + explode: true + in: query + name: order + required: false + schema: + enum: + - asc + - desc + type: string + style: form + - description: 1回のリクエストで取得する件数 + example: "100" + explode: true + in: query + name: limit + required: false + schema: + format: int32 + type: integer + style: form + - description: 取得するページの番号 + example: "1" + explode: true + in: query + name: page + required: false + schema: + format: int32 + type: integer + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + response: + value: + items: + - channel: 1 + conversion: + options: + bitsize: 8 + endian: big + offset: 0 + scale: 1 + sign: signed + startbit: 0 + type: num_fixed_point + created_at: 2017-02-11T01:23:45Z + data_id: "00000001" + data_type: 1 + description: this is signal1 + display: + format: '%6.3f' + max: 10 + min: -10 + unit: m/s2 + hash: sha256:8ddad69061d8... + label: signal1 + updated_at: 2017-02-11T12:34:56Z + uuid: 2cc7de37-6f71-4458-887e-10e618a6fcfb + page: + first: true + last: true + next: /path?xxx=1&bbb=2&page=3 + previous: /path?xxx=1&bbb=2&page=1 + total_count: 1 + schema: + $ref: '#/components/schemas/Signals' + description: OK + summary: List Project Signals + tags: + - meas_Signals + x-accepts: application/json; charset=utf-8 + post: + description: |- + 信号定義を作成します。 + + * **Note** + - 既存の信号定義と `label` が重複する場合、または `uuid` が重複する場合は、 + ステータスコード `409 Conflict` が返却されます。 + operationId: createProjectSignal + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + examples: + example: + value: + channel: 1 + conversion: + options: + bitsize: 8 + endian: big + offset: 0 + scale: 1 + sign: signed + startbit: 0 + type: num_fixed_point + data_id: "00000001" + data_type: 1 + description: description of signal + display: + format: '%6.3f' + max: 10 + min: -10 + unit: m/s2 + label: signal + uuid: 022a9941-d7ff-44ee-a9ff-55a623880a40 + schema: + $ref: '#/components/schemas/CreateSignalRequest' + responses: + "201": + content: + application/json; charset=utf-8: + examples: + response: + value: + channel: 1 + conversion: + options: + bitsize: 8 + endian: big + offset: 0 + scale: 1 + sign: signed + startbit: 0 + type: num_fixed_point + created_at: 2017-02-11T01:23:45Z + data_id: "00000001" + data_type: 1 + description: this is signal1 + display: + format: '%6.3f' + max: 10 + min: -10 + unit: m/s2 + hash: sha256:8ddad69061d8... + label: signal1 + updated_at: 2017-02-11T12:34:56Z + uuid: c1c3fd05-89c6-4da8-abdb-7d31aec2af18 + schema: + $ref: '#/components/schemas/Signal' + description: Created + summary: Create Project Signal + tags: + - meas_Signals + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /v1/projects/{project_uuid}/signals/{signal_uuid}: + delete: + description: 信号定義を削除します。 + operationId: deleteProjectSignal + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 信号定義のUUID + example: a74b933c-7c3a-4e9f-bf16-299a96d26562 + explode: false + in: path + name: signal_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete Project Signal + tags: + - meas_Signals + x-accepts: application/json + get: + description: 信号定義を取得します。 + operationId: getProjectSignal + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 信号定義のUUID + example: a74b933c-7c3a-4e9f-bf16-299a96d26562 + explode: false + in: path + name: signal_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + examples: + response: + value: + uuid: c1c3fd05-89c6-4da8-abdb-7d31aec2af18 + label: signal1 + data_id: "00000001" + data_type: 1 + description: this is signal1 + channel: 1 + conversion: + options: + bitsize: 8 + endian: big + offset: 0 + scale: 1 + sign: signed + startbit: 0 + type: num_fixed_point + display: + format: '%6.3f' + max: 10 + min: -10 + unit: m/s2 + hash: sha256:8ddad69061d8... + created_at: 2017-02-11T01:23:45Z + updated_at: 2017-02-11T12:34:56Z + schema: + $ref: '#/components/schemas/Signal' + description: OK + summary: Get Project Signal + tags: + - meas_Signals + x-accepts: application/json; charset=utf-8 + put: + description: 信号定義を更新します。 + operationId: updateProjectSignal + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 信号定義のUUID + example: a74b933c-7c3a-4e9f-bf16-299a96d26562 + explode: false + in: path + name: signal_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + examples: + example: + value: + channel: 1 + conversion: + options: + bitsize: 8 + endian: big + offset: 0 + scale: 1 + sign: signed + startbit: 0 + type: num_fixed_point + data_id: "00000001" + data_type: 1 + description: description of signal + display: + format: '%6.3f' + max: 10 + min: -10 + unit: m/s2 + label: signal + schema: + $ref: '#/components/schemas/UpdateSignalRequest' + responses: + "200": + content: + application/json; charset=utf-8: + examples: + response: + value: + uuid: c1c3fd05-89c6-4da8-abdb-7d31aec2af18 + label: signal1 + data_id: "00000001" + data_type: 1 + description: this is signal1 + channel: 1 + conversion: + options: + bitsize: 8 + endian: big + offset: 0 + scale: 1 + sign: signed + startbit: 0 + type: num_fixed_point + display: + format: '%6.3f' + max: 10 + min: -10 + unit: m/s2 + hash: sha256:8ddad69061d8... + created_at: 2017-02-11T01:23:45Z + updated_at: 2017-02-11T12:34:56Z + schema: + $ref: '#/components/schemas/Signal' + description: OK + summary: Update Project Signal + tags: + - meas_Signals + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /v1/projects/{project_uuid}/trashed_measurements: + get: + description: ゴミ箱に入っている計測のリストを取得します。 + operationId: listProjectTrashedMeasurements + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 1回のリクエストで取得する件数。`0` を指定した場合は、デフォルト値の50件となります。 + example: 1 + explode: true + in: query + name: limit + required: false + schema: + maximum: 50 + minimum: 0 + type: integer + style: form + - description: 取得するページの番号 + example: 1 + explode: true + in: query + name: page + required: false + schema: + minimum: 0 + type: integer + style: form + responses: + "200": + content: + application/json; charset=utf-8: + examples: + example1: + value: + items: + - uuid: 2cc7de37-6f71-4458-887e-10e618a6fcfb + name: meas1 + description: description of measurement + edge_uuid: 00de1861-6614-4435-af07-da9b4338d57c + duration: 100000000 + ended: true + status: measuring + basetime: 2017-02-11T01:23:45.678901Z + basetime_type: ntp + processed_ratio: 0.9 + protected: false + received_data_points: null + markers: + - uuid: 887326ce-a2a2-4db6-8c06-2f8447f0f29e + name: name + description: description + type: point + detail: + occurred_elapsed_time: 100 + tag: + key1: value1 + key2: value2 + elapsed_time: 1000 + created_at: 2017-02-11T01:23:45Z + created_by: adbbd1ff-1e13-4b12-b125-e213945a65f8 + updated_at: 2017-02-11T12:34:56Z + updated_by: adbbd1ff-1e13-4b12-b125-e213945a65f8 + created_at: 2017-02-11T01:23:45Z + updated_at: 2017-02-11T12:34:56Z + total_count: 1 + schema: + $ref: '#/components/schemas/TrashedMeasurements' + description: OK + summary: List Project Trashed Measurements + tags: + - meas_Trashed Measurements + x-accepts: application/json; charset=utf-8 + /v1/projects/{project_uuid}/trashed_measurements/{measurement_uuid}: + delete: + description: ゴミ箱に入っている計測と、その計測に関連付けられているデータポイントを直ちに削除します。 + operationId: deleteProjectTrashedMeasurement + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: 86fff159-5887-43c9-bf2d-cd1b522c047d + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete Project Trashed Measurement and Delete Data Points Immediately + tags: + - meas_Trashed Measurements + x-accepts: application/json + /v1/projects/{project_uuid}/trashed_measurements/{measurement_uuid}/restore: + delete: + description: ゴミ箱に入っている計測を復元します。 + operationId: restoreProjectTrashedMeasurement + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: 86fff159-5887-43c9-bf2d-cd1b522c047d + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + responses: + "204": + description: No Content + summary: Restore Project Measurement + tags: + - meas_Trashed Measurements + x-accepts: application/json + /media/hlses: + get: + deprecated: true + description: "**Deprecated** このエンドポイントではなく [`GET /media/videos`](#operation/getVideos)\ + \ を使用してください" + operationId: getHLSes + parameters: + - description: 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) + example: 1234567890 + explode: true + in: query + name: start + required: false + schema: + type: integer + style: form + - description: 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) + example: 1234567890 + explode: true + in: query + name: end + required: false + schema: + type: integer + style: form + - description: エッジのUUID + example: 3699e2b9-5d87-4dbd-9b85-098e7dfaee76 + explode: true + in: query + name: edge_uuid + required: false + schema: + type: string + style: form + - description: チャンネル + example: 1 + explode: true + in: query + name: channel + required: false + schema: + type: integer + style: form + - description: 1回のリクエストで取得する件数 + example: 1000 + explode: true + in: query + name: limit + required: false + schema: + type: integer + style: form + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/HLSList' + description: OK + summary: List HLSes + tags: + - media_HLS + x-accepts: application/json; charset=utf-8 + /media/jobs: + get: + deprecated: true + description: (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) + HLSへの変換ジョブのリストを取得します。 + operationId: getJobs + parameters: + - description: 取得したいジョブのUUID + example: ade4eea8-edc6-3ca5-c557-12a616c2028a + explode: true + in: query + name: uuid + required: false + schema: + items: + type: string + type: array + style: form + - description: 計測のUUID + example: a5170afc-9cc2-5327-e0e1-32746b5a7977 + explode: true + in: query + name: meas_uuid + required: false + schema: + items: + type: string + type: array + style: form + - description: |- + - update + - 計測内の動画データのうち、新しくサーバーが受信した部分(HLSにまだ変換されていない部分)を + HLSに変換するジョブ。通常は計測実行中に行います。 + - finalize + - 計測全体をサーバーに回収した後に、動画データ全体をHLSに変換するジョブ + - delete + - 変換によって作成されたHLSデータを削除するジョブ。 + このジョブを実行すると、HLSプレイリスト、セグメントファイル、 + データベース内のHLSに関する情報が削除され、この動画のHLSによる再生はできなくなります。 + example: update + explode: true + in: query + name: type + required: false + schema: + items: + $ref: '#/components/schemas/JobType' + type: array + style: form + - description: ジョブのステータス + example: succeeded + explode: true + in: query + name: status + required: false + schema: + items: + $ref: '#/components/schemas/JobStatus' + type: array + style: form + - description: 1回のリクエストで取得する件数 + example: 1000 + explode: true + in: query + name: limit + required: false + schema: + type: number + style: form + - description: 取得するページ番号 + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: 並べ替えに使用するキー + example: created_at + explode: true + in: query + name: sort + required: false + schema: + default: created_at + enum: + - created_at + - updated_at + type: string + style: form + - description: 並べ替えの順序 + example: asc + explode: true + in: query + name: order + required: false + schema: + enum: + - asc + - desc + type: string + style: form + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/JobList' + description: OK + "400": + content: + application/json; charset=utf-8: + examples: + BadRequest: + $ref: '#/components/examples/ErrorProblemBadRequestMedia' + value: null + schema: + $ref: '#/components/schemas/ErrorProblemMedia' + description: Bad Request + summary: List Jobs + tags: + - media_Jobs + x-accepts: application/json; charset=utf-8 + post: + deprecated: true + description: (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) + HLSへの変換ジョブを作成します。 + operationId: createJob + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateJobRequest' + responses: + "201": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Job' + description: Created + "400": + content: + application/json; charset=utf-8: + examples: + BadRequest: + $ref: '#/components/examples/ErrorProblemBadRequestMedia' + value: null + schema: + $ref: '#/components/schemas/ErrorProblemMedia' + description: Bad Request + "409": + content: + application/json; charset=utf-8: + examples: + Conflict: + $ref: '#/components/examples/ErrorProblemConflictMedia' + value: null + schema: + $ref: '#/components/schemas/ErrorProblemMedia' + description: Conflict + summary: Create Job + tags: + - media_Jobs + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /media/measurements/{meas_uuid}/channels/{channel}/hlses/playlist.m3u8: + get: + deprecated: true + description: '**Depricated** このエンドポイントの代わりに、Videoオブジェクトの `hls`にあるPATHにしたがってPlaylistを取得してください。' + operationId: getPlaylist + parameters: + - description: 計測のUUID + example: f967c530-f562-410a-991b-031c43142778 + explode: false + in: path + name: meas_uuid + required: true + schema: + example: f967c530-f562-410a-991b-031c43142778 + type: string + style: simple + - description: チャンネル + example: 1 + explode: false + in: path + name: channel + required: true + schema: + example: 1 + type: integer + style: simple + - description: '`true` にすると、取得するm3u8形式のプレイリストに強制的にEXT-X-ENDLISTを追加します。' + example: true + explode: true + in: query + name: force_end + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + application/vnd.apple.mpegurl: + schema: + type: string + description: OK + summary: Get HLS Playlist + tags: + - media_HLS + x-accepts: application/vnd.apple.mpegurl + /media/measurements/{meas_uuid}/channels/{channel}/mp4s/measurement.mp4: + get: + deprecated: true + description: "**Deprecated** このエンドポイントの代わりに [`POST /media/videos/{video_uuid}/mp4s`](#operation/createMP4)\ + \ を使用してください。 mp4リソース作成後、 `MP4`オブジェクトの `file_path`にあるPATHに従って動画を取得してください" + operationId: getFMP4 + parameters: + - description: 計測のUUID + example: f967c530-f562-410a-991b-031c43142778 + explode: false + in: path + name: meas_uuid + required: true + schema: + example: f967c530-f562-410a-991b-031c43142778 + type: string + style: simple + - description: チャンネル + example: 1 + explode: false + in: path + name: channel + required: true + schema: + example: 1 + type: integer + style: simple + responses: + "200": + content: + video/mp4: + schema: + format: binary + type: string + description: OK + summary: Get HLS as FMP4 + tags: + - media_HLS + x-accepts: video/mp4 + /media/videos: + get: + deprecated: true + description: (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) + 動画(video)のリストを取得します。 + operationId: getVideos + parameters: + - description: 動画(video)のUUID + example: 3699e2b9-5d87-4dbd-9b85-098e7dfaee76 + explode: true + in: query + name: uuid + required: false + schema: + type: string + style: form + - description: 計測のUUID + example: 3699e2b9-5d87-4dbd-9b85-098e7dfaee76 + explode: true + in: query + name: meas_uuid + required: false + schema: + type: string + style: form + - description: チャンネル + example: 1 + explode: true + in: query + name: channel + required: false + schema: + type: integer + style: form + - description: |- + 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 + 接尾辞を省略した場合は昇順となります。例えば、 `name-` を指定すると、nameによる降順で出力されます。 + + - `channel` + - `created_at` + - `updated_at` + explode: true + in: query + name: sort + required: false + schema: + default: create_at+ + type: string + style: form + - description: 取得するページ番号 + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: 1回のリクエストで取得する件数 + explode: true + in: query + name: per_page + required: false + schema: + default: 100 + maximum: 1000 + type: integer + style: form + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Videos' + description: OK + "400": + content: + application/json; charset=utf-8: + examples: + BadRequest: + $ref: '#/components/examples/ErrorProblemBadRequestMedia' + value: null + schema: + $ref: '#/components/schemas/ErrorProblemMedia' + description: Bad Request + summary: List Videos + tags: + - media_Videos + x-accepts: application/json; charset=utf-8 + /media/videos/{video_uuid}: + get: + deprecated: true + description: (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) + 動画を取得します。 + operationId: getVideo + parameters: + - description: 変換元の動画(video)のUUID + example: 68b91013-47e9-4e68-a965-892549587dfa + explode: false + in: path + name: video_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Video' + description: OK + summary: Get Video + tags: + - media_Videos + x-accepts: application/json; charset=utf-8 + /media/videos/{video_uuid}/jpegs: + get: + deprecated: true + description: (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) + 動画(video)から変換されたJPEGデータのリストを取得します。 + operationId: getJpegs + parameters: + - description: 変換元の動画(video)のUUID + example: 68b91013-47e9-4e68-a965-892549587dfa + explode: false + in: path + name: video_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Jpegs' + description: OK + summary: List JPEGs + tags: + - media_Videos + x-accepts: application/json; charset=utf-8 + post: + deprecated: true + description: (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) + 動画(video)を変換してJPEGデータを作成します。 + operationId: createJpeg + parameters: + - description: 変換元の動画(video)のUUID + example: 68b91013-47e9-4e68-a965-892549587dfa + explode: false + in: path + name: video_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateJpegRequest' + responses: + "201": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Jpeg' + description: Created + "400": + content: + application/json; charset=utf-8: + examples: + BadRequest: + $ref: '#/components/examples/ErrorProblemBadRequestMedia' + value: null + schema: + $ref: '#/components/schemas/ErrorProblemMedia' + description: Bad Request + summary: Create JPEG + tags: + - media_Videos + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /media/videos/{video_uuid}/jpegs/{jpeg_uuid}: + delete: + deprecated: true + description: (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) + 動画(video)から変換されたJPEGデータを削除します。 + operationId: deleteJpeg + parameters: + - description: 変換元の動画(video)のUUID + example: 68b91013-47e9-4e68-a965-892549587dfa + explode: false + in: path + name: video_uuid + required: true + schema: + type: string + style: simple + - description: JPEGのUUID + example: 3279bdfb-9079-417e-8f94-ee8126da5933 + explode: false + in: path + name: jpeg_uuid + required: true + schema: + example: 3279bdfb-9079-417e-8f94-ee8126da5933 + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete JPEG + tags: + - media_Videos + x-accepts: application/json + get: + deprecated: true + description: "(Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が\ + 付いたエンドポイントを使用してください) 動画(video)から変換されたJPEGデータの情報を取得します。 JPEGファイル自体を取得するには、\ + `GET /media/videos/{video_uuid}/jpegs/{jpeg_uuid}/images/selected.zip` を使用\ + してください。" + operationId: getJpeg + parameters: + - description: 変換元の動画(video)のUUID + example: 68b91013-47e9-4e68-a965-892549587dfa + explode: false + in: path + name: video_uuid + required: true + schema: + type: string + style: simple + - description: JPEGのUUID + example: 3279bdfb-9079-417e-8f94-ee8126da5933 + explode: false + in: path + name: jpeg_uuid + required: true + schema: + example: 3279bdfb-9079-417e-8f94-ee8126da5933 + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Jpeg' + description: OK + summary: Get JPEG + tags: + - media_Videos + x-accepts: application/json; charset=utf-8 + /media/videos/{video_uuid}/jpegs/{jpeg_uuid}/cancel_convert: + put: + deprecated: true + description: (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) + 動画(video)からJPEGデータへの変換をキャンセルします。 + operationId: cancelCreatingJpeg + parameters: + - description: 変換元の動画(video)のUUID + example: 68b91013-47e9-4e68-a965-892549587dfa + explode: false + in: path + name: video_uuid + required: true + schema: + type: string + style: simple + - description: JPEGのUUID + example: 3279bdfb-9079-417e-8f94-ee8126da5933 + explode: false + in: path + name: jpeg_uuid + required: true + schema: + example: 3279bdfb-9079-417e-8f94-ee8126da5933 + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Jpeg' + description: OK + "400": + content: + application/json; charset=utf-8: + examples: + BadRequest: + $ref: '#/components/examples/ErrorProblemBadRequestMedia' + value: null + schema: + $ref: '#/components/schemas/ErrorProblemMedia' + description: Bad Request + summary: Cancel Creating JPEG + tags: + - media_Videos + x-accepts: application/json; charset=utf-8 + /media/videos/{video_uuid}/jpegs/{jpeg_uuid}/images/selected.zip: + get: + deprecated: true + description: (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) + JPEGデータをZIPファイルにまとめた形で取得します。 + operationId: getJpegAsZip + parameters: + - description: 変換元の動画(video)のUUID + example: 68b91013-47e9-4e68-a965-892549587dfa + explode: false + in: path + name: video_uuid + required: true + schema: + type: string + style: simple + - description: JPEGのUUID + example: 3279bdfb-9079-417e-8f94-ee8126da5933 + explode: false + in: path + name: jpeg_uuid + required: true + schema: + example: 3279bdfb-9079-417e-8f94-ee8126da5933 + type: string + style: simple + - description: 取得したいJPEGのインデックス番号(最初の番号は1)。指定がない場合はすべて取得します。 `indexes` パラメーターを複数回指定することで、複数のJPEGファイルを取得することができます。 + explode: true + in: query + name: indexes + required: false + schema: + items: + example: 1 + type: integer + type: array + style: form + responses: + "200": + content: + application/zip: + schema: + format: binary + type: string + description: OK + summary: Get JPEG as zip + tags: + - media_Videos + x-accepts: application/zip + /media/videos/{video_uuid}/mp4s: + get: + deprecated: true + description: (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) + 動画(video)から変換されたMP4データのリストを取得します。 + operationId: getMP4s + parameters: + - description: 変換元の動画(video)のUUID + example: 68b91013-47e9-4e68-a965-892549587dfa + explode: false + in: path + name: video_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/MP4s' + description: OK + summary: List MP4s + tags: + - media_Videos + x-accepts: application/json; charset=utf-8 + post: + deprecated: true + description: (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) + 動画(video)を変換してMP4データを作成します。 + operationId: createMP4 + parameters: + - description: 変換元の動画(video)のUUID + example: 68b91013-47e9-4e68-a965-892549587dfa + explode: false + in: path + name: video_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateMP4Request' + responses: + "201": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/MP4' + description: Created + "400": + content: + application/json; charset=utf-8: + examples: + BadRequest: + $ref: '#/components/examples/ErrorProblemBadRequestMedia' + value: null + schema: + $ref: '#/components/schemas/ErrorProblemMedia' + description: Bad Request + summary: Create MP4 + tags: + - media_Videos + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /media/videos/{video_uuid}/mp4s/{mp4_uuid}: + delete: + deprecated: true + description: (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) + 動画(video)から変換されたMP4データを削除します。 + operationId: deleteMP4 + parameters: + - description: 変換元の動画(video)のUUID + example: 68b91013-47e9-4e68-a965-892549587dfa + explode: false + in: path + name: video_uuid + required: true + schema: + type: string + style: simple + - description: MP4のUUID + example: 34cd9cc6-4c62-4310-bbfd-04541f59ca0f + explode: false + in: path + name: mp4_uuid + required: true + schema: + example: 34cd9cc6-4c62-4310-bbfd-04541f59ca0f + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete MP4 + tags: + - media_Videos + x-accepts: application/json + get: + deprecated: true + description: (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) + 動画(video)から変換されたMP4データの情報を取得します。 + operationId: getMP4 + parameters: + - description: 変換元の動画(video)のUUID + example: 68b91013-47e9-4e68-a965-892549587dfa + explode: false + in: path + name: video_uuid + required: true + schema: + type: string + style: simple + - description: MP4のUUID + example: 34cd9cc6-4c62-4310-bbfd-04541f59ca0f + explode: false + in: path + name: mp4_uuid + required: true + schema: + example: 34cd9cc6-4c62-4310-bbfd-04541f59ca0f + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/MP4' + description: OK + summary: Get MP4 + tags: + - media_Videos + x-accepts: application/json; charset=utf-8 + /media/videos/{video_uuid}/mp4s/{mp4_uuid}/cancel_convert: + put: + deprecated: true + description: (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) + 動画(video)からMP4データへの変換をキャンセルします。 + operationId: cancelCreatingMP4 + parameters: + - description: 変換元の動画(video)のUUID + example: 68b91013-47e9-4e68-a965-892549587dfa + explode: false + in: path + name: video_uuid + required: true + schema: + type: string + style: simple + - description: MP4のUUID + example: 34cd9cc6-4c62-4310-bbfd-04541f59ca0f + explode: false + in: path + name: mp4_uuid + required: true + schema: + example: 34cd9cc6-4c62-4310-bbfd-04541f59ca0f + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/MP4' + description: OK + "400": + content: + application/json; charset=utf-8: + examples: + BadRequest: + $ref: '#/components/examples/ErrorProblemBadRequestMedia' + value: null + schema: + $ref: '#/components/schemas/ErrorProblemMedia' + description: Bad Request + summary: Cancel Creating MP4 + tags: + - media_Videos + x-accepts: application/json; charset=utf-8 + /media/ws/edges/{edge_uuid}/fmp4s/{channel}: + get: + deprecated: true + description: "**Deprecated** このエンドポイントの代わりに [`GET /v1/stream`](#operation/Stream)\ + \ でデータを取得し、WebCodecsを使用して取得したデータをデコードしてください。" + operationId: connectLive + parameters: + - description: エッジのUUID + example: 421fecd4-646b-4ab8-a715-c4b888964b11 + explode: false + in: path + name: edge_uuid + required: true + schema: + example: 421fecd4-646b-4ab8-a715-c4b888964b11 + type: string + style: simple + - description: チャンネル + example: 1 + explode: false + in: path + name: channel + required: true + schema: + example: 1 + type: integer + style: simple + responses: + "101": + description: Switching Protocols + summary: Get realtime video stream + tags: + - media_Live + x-accepts: application/json + /media/projects/{project_uuid}/hlses: + get: + deprecated: true + description: "**Deprecated** このエンドポイントではなく [`GET /media/videos`](#operation/getVideos)\ + \ を使用してください" + operationId: getProjectHLSes + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) + example: 123456789 + explode: true + in: query + name: start + required: false + schema: + type: integer + style: form + - description: 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) + example: 1234567890 + explode: true + in: query + name: end + required: false + schema: + type: integer + style: form + - description: エッジのUUID + example: 3699e2b9-5d87-4dbd-9b85-098e7dfaee76 + explode: true + in: query + name: edge_uuid + required: false + schema: + type: string + style: form + - description: チャンネル + example: 1 + explode: true + in: query + name: channel + required: false + schema: + type: integer + style: form + - description: 1回のリクエストで取得する件数 + example: 1000 + explode: true + in: query + name: limit + required: false + schema: + type: integer + style: form + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/HLSList' + description: OK + summary: List Project HLSes + tags: + - media_HLS + x-accepts: application/json; charset=utf-8 + /media/projects/{project_uuid}/jobs: + get: + description: HLSへの変換ジョブのリストを取得します。 + operationId: getProjectJobs + parameters: + - description: 取得したいジョブのUUID + example: ade4eea8-edc6-3ca5-c557-12a616c2028a + explode: true + in: query + name: uuid + required: false + schema: + items: + type: string + type: array + style: form + - description: 計測のUUID + example: a5170afc-9cc2-5327-e0e1-32746b5a7977 + explode: true + in: query + name: meas_uuid + required: false + schema: + items: + type: string + type: array + style: form + - description: |- + - update + - 計測内の動画データのうち、新しくサーバーが受信した部分(HLSにまだ変換されていない部分)を + HLSに変換するジョブ。通常は計測実行中に行います。 + - finalize + - 計測全体をサーバーに回収した後に、動画データ全体をHLSに変換するジョブ + - delete + - 変換によって作成されたHLSデータを削除するジョブ。 + このジョブを実行すると、HLSプレイリスト、セグメントファイル、 + データベース内のHLSに関する情報が削除され、この動画のHLSによる再生はできなくなります。 + example: update + explode: true + in: query + name: type + required: false + schema: + items: + $ref: '#/components/schemas/JobType' + type: array + style: form + - description: ジョブのステータス + example: succeeded + explode: true + in: query + name: status + required: false + schema: + items: + $ref: '#/components/schemas/JobStatus' + type: array + style: form + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 1回のリクエストで取得する件数 + example: 1000 + explode: true + in: query + name: limit + required: false + schema: + type: number + style: form + - description: 取得するページ番号 + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: 並べ替えに使用するキー + example: created_at + explode: true + in: query + name: sort + required: false + schema: + default: created_at + enum: + - created_at + - updated_at + type: string + style: form + - description: 並べ替えの順序 + example: asc + explode: true + in: query + name: order + required: false + schema: + enum: + - asc + - desc + type: string + style: form + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/JobList' + description: OK + "400": + content: + application/json; charset=utf-8: + examples: + BadRequest: + $ref: '#/components/examples/ErrorProblemBadRequestMedia' + value: null + schema: + $ref: '#/components/schemas/ErrorProblemMedia' + description: Bad Request + summary: List Project Jobs + tags: + - media_Jobs + x-accepts: application/json; charset=utf-8 + post: + description: HLSへの変換ジョブを作成します。 + operationId: createProjectJob + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateJobRequest' + responses: + "201": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Job' + description: Created + "400": + content: + application/json; charset=utf-8: + examples: + BadRequest: + $ref: '#/components/examples/ErrorProblemBadRequestMedia' + value: null + schema: + $ref: '#/components/schemas/ErrorProblemMedia' + description: Bad Request + "409": + content: + application/json; charset=utf-8: + examples: + Conflict: + $ref: '#/components/examples/ErrorProblemConflictMedia' + value: null + schema: + $ref: '#/components/schemas/ErrorProblemMedia' + description: Conflict + summary: Create Project Job + tags: + - media_Jobs + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /media/projects/{project_uuid}/measurements/{meas_uuid}/channels/{channel}/hlses/playlist.m3u8: + get: + deprecated: true + description: '**Depricated** このエンドポイントの代わりに、Videoオブジェクトの `hls`にあるPATHにしたがってPlaylistを取得してください。' + operationId: getProjectPlaylist + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: f967c530-f562-410a-991b-031c43142778 + explode: false + in: path + name: meas_uuid + required: true + schema: + example: f967c530-f562-410a-991b-031c43142778 + type: string + style: simple + - description: チャンネル + example: 1 + explode: false + in: path + name: channel + required: true + schema: + example: 1 + type: integer + style: simple + - description: '`true` にすると、取得するm3u8形式のプレイリストに強制的にEXT-X-ENDLISTを追加します。' + example: true + explode: true + in: query + name: force_end + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + application/vnd.apple.mpegurl: + schema: + type: string + description: OK + summary: Get Project HLS Playlist + tags: + - media_HLS + x-accepts: application/vnd.apple.mpegurl + /media/projects/{project_uuid}/measurements/{meas_uuid}/channels/{channel}/mp4s/measurement.mp4: + get: + deprecated: true + description: "**Deprecated** このエンドポイントの代わりに [`POST /media/videos/{video_uuid}/mp4s`](#operation/createMP4)\ + \ を使用してください。 mp4リソース作成後、 `MP4`オブジェクトの `file_path`にあるPATHに従って動画を取得してください" + operationId: getProjectFMP4 + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 計測のUUID + example: f967c530-f562-410a-991b-031c43142778 + explode: false + in: path + name: meas_uuid + required: true + schema: + example: f967c530-f562-410a-991b-031c43142778 + type: string + style: simple + - description: チャンネル + example: 1 + explode: false + in: path + name: channel + required: true + schema: + example: 1 + type: integer + style: simple + responses: + "200": + content: + video/mp4: + schema: + format: binary + type: string + description: OK + summary: Get Project HLS as FMP4 + tags: + - media_HLS + x-accepts: video/mp4 + /media/projects/{project_uuid}/videos: + get: + description: 動画(video)のリストを取得します。 + operationId: getProjectVideos + parameters: + - description: 動画(video)のUUID + example: 3699e2b9-5d87-4dbd-9b85-098e7dfaee76 + explode: true + in: query + name: uuid + required: false + schema: + type: string + style: form + - description: 計測のUUID + example: 3699e2b9-5d87-4dbd-9b85-098e7dfaee76 + explode: true + in: query + name: meas_uuid + required: false + schema: + type: string + style: form + - description: チャンネル + example: 1 + explode: true + in: query + name: channel + required: false + schema: + type: integer + style: form + - description: |- + 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 + 接尾辞を省略した場合は昇順となります。例えば、 `name-` を指定すると、nameによる降順で出力されます。 + + - `channel` + - `created_at` + - `updated_at` + explode: true + in: query + name: sort + required: false + schema: + default: create_at+ + type: string + style: form + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 取得するページ番号 + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: 1回のリクエストで取得する件数 + explode: true + in: query + name: per_page + required: false + schema: + default: 100 + maximum: 1000 + type: integer + style: form + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Videos' + description: OK + "400": + content: + application/json; charset=utf-8: + examples: + BadRequest: + $ref: '#/components/examples/ErrorProblemBadRequestMedia' + value: null + schema: + $ref: '#/components/schemas/ErrorProblemMedia' + description: Bad Request + summary: List Project Videos + tags: + - media_Videos + x-accepts: application/json; charset=utf-8 + /media/projects/{project_uuid}/videos/{video_uuid}: + get: + description: 動画を取得します。 + operationId: getProjectVideo + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 変換元の動画(video)のUUID + example: 68b91013-47e9-4e68-a965-892549587dfa + explode: false + in: path + name: video_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Video' + description: OK + summary: Get Project Video + tags: + - media_Videos + x-accepts: application/json; charset=utf-8 + /media/projects/{project_uuid}/videos/{video_uuid}/jpegs: + get: + description: 動画(video)から変換されたJPEGデータのリストを取得します。 + operationId: getProjectJpegs + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 変換元の動画(video)のUUID + example: 68b91013-47e9-4e68-a965-892549587dfa + explode: false + in: path + name: video_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Jpegs' + description: OK + summary: List Project JPEGs + tags: + - media_Videos + x-accepts: application/json; charset=utf-8 + post: + description: 動画(video)を変換してJPEGデータを作成します。 + operationId: createProjectJpeg + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 変換元の動画(video)のUUID + example: 68b91013-47e9-4e68-a965-892549587dfa + explode: false + in: path + name: video_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateJpegRequest' + responses: + "201": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Jpeg' + description: Created + "400": + content: + application/json; charset=utf-8: + examples: + BadRequest: + $ref: '#/components/examples/ErrorProblemBadRequestMedia' + value: null + schema: + $ref: '#/components/schemas/ErrorProblemMedia' + description: Bad Request + summary: Create Project JPEG + tags: + - media_Videos + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /media/projects/{project_uuid}/videos/{video_uuid}/jpegs/{jpeg_uuid}: + delete: + description: 動画(video)から変換されたJPEGデータを削除します。 + operationId: deleteProjectJpeg + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 変換元の動画(video)のUUID + example: 68b91013-47e9-4e68-a965-892549587dfa + explode: false + in: path + name: video_uuid + required: true + schema: + type: string + style: simple + - description: JPEGのUUID + example: 3279bdfb-9079-417e-8f94-ee8126da5933 + explode: false + in: path + name: jpeg_uuid + required: true + schema: + example: 3279bdfb-9079-417e-8f94-ee8126da5933 + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete Project JPEG + tags: + - media_Videos + x-accepts: application/json + get: + description: "動画(video)から変換されたJPEGデータの情報を取得します。 JPEGファイル自体を取得するには、`GET /media/videos/{video_uuid}/jpegs/{jpeg_uuid}/images/selected.zip`\ + \ を使用してください。" + operationId: getProjectJpeg + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 変換元の動画(video)のUUID + example: 68b91013-47e9-4e68-a965-892549587dfa + explode: false + in: path + name: video_uuid + required: true + schema: + type: string + style: simple + - description: JPEGのUUID + example: 3279bdfb-9079-417e-8f94-ee8126da5933 + explode: false + in: path + name: jpeg_uuid + required: true + schema: + example: 3279bdfb-9079-417e-8f94-ee8126da5933 + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Jpeg' + description: OK + summary: Get Project JPEG + tags: + - media_Videos + x-accepts: application/json; charset=utf-8 + /media/projects/{project_uuid}/videos/{video_uuid}/jpegs/{jpeg_uuid}/cancel_convert: + put: + description: 動画(video)からJPEGデータへの変換をキャンセルします。 + operationId: cancelCreatingProjectJpeg + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 変換元の動画(video)のUUID + example: 68b91013-47e9-4e68-a965-892549587dfa + explode: false + in: path + name: video_uuid + required: true + schema: + type: string + style: simple + - description: JPEGのUUID + example: 3279bdfb-9079-417e-8f94-ee8126da5933 + explode: false + in: path + name: jpeg_uuid + required: true + schema: + example: 3279bdfb-9079-417e-8f94-ee8126da5933 + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Jpeg' + description: OK + "400": + content: + application/json; charset=utf-8: + examples: + BadRequest: + $ref: '#/components/examples/ErrorProblemBadRequestMedia' + value: null + schema: + $ref: '#/components/schemas/ErrorProblemMedia' + description: Bad Request + summary: Cancel Creating Project JPEG + tags: + - media_Videos + x-accepts: application/json; charset=utf-8 + /media/projects/{project_uuid}/videos/{video_uuid}/jpegs/{jpeg_uuid}/images/selected.zip: + get: + description: JPEGデータをZIPファイルにまとめた形で取得します。 + operationId: getProjectJpegAsZip + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 変換元の動画(video)のUUID + example: 68b91013-47e9-4e68-a965-892549587dfa + explode: false + in: path + name: video_uuid + required: true + schema: + type: string + style: simple + - description: JPEGのUUID + example: 3279bdfb-9079-417e-8f94-ee8126da5933 + explode: false + in: path + name: jpeg_uuid + required: true + schema: + example: 3279bdfb-9079-417e-8f94-ee8126da5933 + type: string + style: simple + - description: 取得したいJPEGのインデックス番号(最初の番号は1)。指定がない場合はすべて取得します。 `indexes` パラメーターを複数回指定することで、複数のJPEGファイルを取得することができます。 + explode: true + in: query + name: indexes + required: false + schema: + items: + example: 1 + type: integer + type: array + style: form + responses: + "200": + content: + application/zip: + schema: + format: binary + type: string + description: OK + summary: Get Project JPEG as zip + tags: + - media_Videos + x-accepts: application/zip + /media/projects/{project_uuid}/videos/{video_uuid}/mp4s: + get: + description: 動画(video)から変換されたMP4データのリストを取得します。 + operationId: getProjectMP4s + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 変換元の動画(video)のUUID + example: 68b91013-47e9-4e68-a965-892549587dfa + explode: false + in: path + name: video_uuid + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/MP4s' + description: OK + summary: List Project MP4s + tags: + - media_Videos + x-accepts: application/json; charset=utf-8 + post: + description: 動画(video)を変換してMP4データを作成します。 + operationId: createProjectMP4 + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 変換元の動画(video)のUUID + example: 68b91013-47e9-4e68-a965-892549587dfa + explode: false + in: path + name: video_uuid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateMP4Request' + responses: + "201": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/MP4' + description: Created + "400": + content: + application/json; charset=utf-8: + examples: + BadRequest: + $ref: '#/components/examples/ErrorProblemBadRequestMedia' + value: null + schema: + $ref: '#/components/schemas/ErrorProblemMedia' + description: Bad Request + summary: Create Project MP4 + tags: + - media_Videos + x-content-type: application/json + x-accepts: application/json; charset=utf-8 + /media/projects/{project_uuid}/videos/{video_uuid}/mp4s/{mp4_uuid}: + delete: + description: 動画(video)から変換されたMP4データを削除します。 + operationId: deleteProjectMP4 + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 変換元の動画(video)のUUID + example: 68b91013-47e9-4e68-a965-892549587dfa + explode: false + in: path + name: video_uuid + required: true + schema: + type: string + style: simple + - description: MP4のUUID + example: 34cd9cc6-4c62-4310-bbfd-04541f59ca0f + explode: false + in: path + name: mp4_uuid + required: true + schema: + example: 34cd9cc6-4c62-4310-bbfd-04541f59ca0f + type: string + style: simple + responses: + "204": + description: No Content + summary: Delete Project MP4 + tags: + - media_Videos + x-accepts: application/json + get: + description: 動画(video)から変換されたMP4データの情報を取得します。 + operationId: getProjectMP4 + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 変換元の動画(video)のUUID + example: 68b91013-47e9-4e68-a965-892549587dfa + explode: false + in: path + name: video_uuid + required: true + schema: + type: string + style: simple + - description: MP4のUUID + example: 34cd9cc6-4c62-4310-bbfd-04541f59ca0f + explode: false + in: path + name: mp4_uuid + required: true + schema: + example: 34cd9cc6-4c62-4310-bbfd-04541f59ca0f + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/MP4' + description: OK + summary: Get Project MP4 + tags: + - media_Videos + x-accepts: application/json; charset=utf-8 + /media/projects/{project_uuid}/videos/{video_uuid}/mp4s/{mp4_uuid}/cancel_convert: + put: + description: 動画(video)からMP4データへの変換をキャンセルします。 + operationId: cancelCreatingProjectMP4 + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: 変換元の動画(video)のUUID + example: 68b91013-47e9-4e68-a965-892549587dfa + explode: false + in: path + name: video_uuid + required: true + schema: + type: string + style: simple + - description: MP4のUUID + example: 34cd9cc6-4c62-4310-bbfd-04541f59ca0f + explode: false + in: path + name: mp4_uuid + required: true + schema: + example: 34cd9cc6-4c62-4310-bbfd-04541f59ca0f + type: string + style: simple + responses: + "200": + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/MP4' + description: OK + "400": + content: + application/json; charset=utf-8: + examples: + BadRequest: + $ref: '#/components/examples/ErrorProblemBadRequestMedia' + value: null + schema: + $ref: '#/components/schemas/ErrorProblemMedia' + description: Bad Request + summary: Cancel Creating Project MP4 + tags: + - media_Videos + x-accepts: application/json; charset=utf-8 + /media/projects/{project_uuid}/ws/edges/{edge_uuid}/fmp4s/{channel}: + get: + deprecated: true + description: "**Deprecated** このエンドポイントの代わりに [`GET /v1/stream`](#operation/Stream)\ + \ でデータを取得し、WebCodecsを使用して取得したデータをデコードしてください。" + operationId: connectProjectLive + parameters: + - description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + - description: エッジのUUID + example: 421fecd4-646b-4ab8-a715-c4b888964b11 + explode: false + in: path + name: edge_uuid + required: true + schema: + example: 421fecd4-646b-4ab8-a715-c4b888964b11 + type: string + style: simple + - description: チャンネル + example: 1 + explode: false + in: path + name: channel + required: true + schema: + example: 1 + type: integer + style: simple + responses: + "101": + description: Switching Protocols + summary: Get Project realtime video stream + tags: + - media_Live + x-accepts: application/json + /v1/version: + get: + description: APIバージョンを取得します。 + operationId: getVersion + responses: + "200": + content: + application/json; charset=utf-8: + examples: + response: + value: + version: 1.0.0 + schema: + $ref: '#/components/schemas/getVersion_200_response' + description: OK + summary: Get Version + tags: + - versions_Version + x-accepts: application/json; charset=utf-8 +components: + examples: + EmptyList: + value: + items: [] + page: + next: false + prev: false + total_page: 1 + total_count: 1 + EdgeWithoutOwner: + value: + uuid: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + name: my-edge + nickname: My Edge + description: Description + created_at: 2000-01-01T00:00:00Z + updated_at: 2000-01-01T00:00:00Z + Edge: + value: + uuid: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + name: my-edge + nickname: My Edge + description: Description + owner: + user_uuid: 84693d9e-0f1a-457b-b417-a7c697cffdce + created_at: 2000-01-01T00:00:00Z + updated_at: 2000-01-01T00:00:00Z + User: + value: + uuid: 0932ff17-567c-4ac8-a40d-136357890f7b + name: intdash + nickname: nickname + disabled: false + is_super: false + emails: + - id: 1 + address: intdash@example.com + verified: false + created_at: 2000-01-01T00:00:00Z + updated_at: 2000-01-01T00:00:00Z + roles: + - af22c56b-6b3e-4807-a165-07e9dbd7e25b + password: + attempt_count: 1 + is_temporary: false + last_attempt_at: 2000-01-01T00:00:00Z + expired_at: 2000-01-01T00:00:00Z + created_at: 2000-01-01T00:00:00Z + updated_at: 2000-01-01T00:00:00Z + last_sign_in_at: 2000-01-01T00:00:00Z + created_at: 2000-01-01T00:00:00Z + updated_at: 2000-01-01T00:00:00Z + ErrorProblemConflict: + value: + type: conflict + title: conflict message + Edges: + value: + items: + - uuid: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + name: my-edge + nickname: My Edge + description: Description + owner: + user_uuid: 84693d9e-0f1a-457b-b417-a7c697cffdce + created_at: 2000-01-01T00:00:00Z + updated_at: 2000-01-01T00:00:00Z + page: + total_count: 1 + CreateEdgeWithUUIDRequest: + value: + name: edge-with-uuid + nickname: nickname + description: description + CreatedUser: + value: + uuid: 0932ff17-567c-4ac8-a40d-136357890f7b + name: intdash + nickname: nickname + disabled: false + description: description + is_super: false + emails: + - id: 1 + address: intdash@example.com + verified: false + created_at: 2000-01-01T00:00:00Z + updated_at: 2000-01-01T00:00:00Z + password: + attempt_count: 0 + last_attempt_at: 2000-01-01T00:00:00Z + is_temporary: true + temporary_password: password + expired_at: 2000-01-01T00:00:00Z + created_at: 2000-01-01T00:00:00Z + updated_at: 2000-01-01T00:00:00Z + roles: + - af22c56b-6b3e-4807-a165-07e9dbd7e25b + last_sign_in_at: 2000-01-01T00:00:00Z + created_at: 2000-01-01T00:00:00Z + updated_at: 2000-01-01T00:00:00Z + ErrorProblemConflictNameAndEmail: + value: + type: conflict + title: conflict message + properties: + name: already exist + email: already exist + ErrorProblemBadRequest: + value: + type: invalid_request + title: invalid request message + UserPassword: + value: + attempt_count: 1 + is_temporary: false + last_attempt_at: 2000-01-01T00:00:00Z + expired_at: 2000-01-01T00:00:00Z + created_at: 2000-01-01T00:00:00Z + updated_at: 2000-01-01T00:00:00Z + UserAPITokenList: + value: + items: + - id: 1 + name: craeted + scopes: + - uuid: 4688a07a-0cbc-4597-8c87-538e744bc90d + name: meas:r + allowed_endpoints: + - path: /resources + method: GET + allowed_iscp_messages: + - type: upstream_spec_request + denied_endpoints: + - path: /denied_resources + method: GET + expired_at: 2000-01-01T00:00:00Z + created_at: 2000-01-01T00:00:00Z + updated_at: 2000-01-01T00:00:00Z + page: + total_count: 1 + CreatedUserAPIToken: + value: + id: 1 + name: craeted + token: token.signature + scopes: + - uuid: 4688a07a-0cbc-4597-8c87-538e744bc90d + name: meas:r + allowed_endpoints: + - path: /resources + method: GET + allowed_iscp_messages: + - type: upstream_spec_request + denied_endpoints: + - path: /denied_resources + method: GET + expired_at: 2000-01-01T00:00:00Z + created_at: 2000-01-01T00:00:00Z + updated_at: 2000-01-01T00:00:00Z + UserAPIToken: + value: + id: 1 + name: craeted + scopes: + - uuid: 4688a07a-0cbc-4597-8c87-538e744bc90d + name: meas:r + allowed_endpoints: + - path: /resources + method: GET + allowed_iscp_messages: + - type: upstream_spec_request + denied_endpoints: + - path: /denied_resources + method: GET + expired_at: 2000-01-01T00:00:00Z + created_at: 2000-01-01T00:00:00Z + updated_at: 2000-01-01T00:00:00Z + UserTemporaryPassword: + value: + attempt_count: 0 + is_temporary: true + temporary_password: password + last_attempt_at: 2000-01-01T00:00:00Z + expired_at: 2000-01-01T00:00:00Z + created_at: 2000-01-01T00:00:00Z + updated_at: 2000-01-01T00:00:00Z + CreatedGroup: + value: + uuid: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + name: my-group + created_at: 2000-01-01T00:00:00Z + updated_at: 2000-01-01T00:00:00Z + ErrorProblemErrorExceededMaxGroupsCount: + value: + type: exceeded_max_groups_count + title: + CreatedProject: + value: + uuid: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + parent_group_uuid: 0932ff17-567c-4ac8-a40d-136357890f7b + name: my-project + created_at: 2000-01-01T00:00:00Z + updated_at: 2000-01-01T00:00:00Z + ErrorProblemExceededMaxProjectsCountPerGroup: + value: + type: exceeded_max_projects_count_per_group + title: + ErrorProblemForbiddenCannotDeleteProject: + value: + type: forbidden + title: You cannot delete a project. Because you are not a project owner. + ErrorProblemForbiddenRemoveOwner: + value: + type: forbidden + title: unremovable owner member + ErrorProblemForbiddenAtLeastOneOwner: + value: + type: forbidden + title: project must have at least one owner. + DataIDsGetResponse: + value: + items: + - data_type: 1 + channel: 2 + data_id: "00000001" + MeasList: + value: + items: + - uuid: 2cc7de37-6f71-4458-887e-10e618a6fcfb + name: meas1 + description: description of measurement + edge_uuid: 00de1861-6614-4435-af07-da9b4338d57c + duration: 100000000 + ended: true + status: measuring + basetime: 2017-02-11T01:23:45.678901Z + basetime_type: ntp + processed_ratio: 0.9 + protected: false + received_data_points: null + markers: + - uuid: 887326ce-a2a2-4db6-8c06-2f8447f0f29e + name: name + description: description + type: point + detail: + occurred_elapsed_time: 100 + tag: + key1: value1 + key2: value2 + elapsed_time: 1000 + created_at: 2017-02-11T01:23:45Z + created_by: adbbd1ff-1e13-4b12-b125-e213945a65f8 + updated_at: 2017-02-11T12:34:56Z + updated_by: adbbd1ff-1e13-4b12-b125-e213945a65f8 + created_at: 2017-02-11T01:23:45Z + updated_at: 2017-02-11T12:34:56Z + page: + total_count: 1 + first: true + last: true + next: /path?xxx=1&bbb=2&page=3 + previous: /path?xxx=1&bbb=2&page=1 + MeasCreate: + value: + name: meas1 + description: description of measurement + basetime: 2017-02-11T01:23:45.678901Z + basetime_type: ntp + edge_uuid: 00de1861-6614-4435-af07-da9b4338d57c + protected: false + Meas: + value: + uuid: 2cc7de37-6f71-4458-887e-10e618a6fcfb + name: meas1 + description: description of measurement + edge_uuid: 00de1861-6614-4435-af07-da9b4338d57c + duration: 100000000 + ended: true + status: measuring + basetime: 2017-02-11T01:23:45.678901Z + basetime_type: ntp + processed_ratio: 0.9 + received_data_points: null + markers: + - uuid: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 + name: Name3 + description: Description3 + tag: + tagkey1: tagValue1 + tagkey2: tagValue2 + type: range + detail: + start_elapsed_time: 3 + end_elapsed_time: 7 + created_at: 2000-01-02T03:04:07Z + created_by: e3f57626-93d6-4274-a51f-1ac538357a8a + updated_at: 2020-04-15T14:15:23.135268Z + updated_by: 447af3b3-a311-4047-9d7c-110a0fac505b + - uuid: cdc1029e-d474-477c-aa6e-b48928fdb825 + name: Name2 + description: Description2 + tag: + tagkey1: tagValue1 + tagkey2: tagValue2 + type: point + detail: + occurred_elapsed_time: 3 + created_at: 2000-01-02T03:04:06Z + created_by: e3f57626-93d6-4274-a51f-1ac538357a8a + updated_at: 2020-04-15T14:15:23.064981Z + updated_by: 447af3b3-a311-4047-9d7c-110a0fac505b + protected: false + created_at: 2017-02-11T01:23:45Z + updated_at: 2017-02-11T12:34:56Z + MeasFinished: + value: + uuid: 2cc7de37-6f71-4458-887e-10e618a6fcfb + name: meas1 + description: description of measurement + edge_uuid: 00de1861-6614-4435-af07-da9b4338d57c + duration: 100000000 + ended: true + status: measuring + basetime: 2017-02-11T01:23:45.678901Z + basetime_type: ntp + processed_ratio: 0.9 + received_data_points: null + markers: + - uuid: 887326ce-a2a2-4db6-8c06-2f8447f0f29e + name: name + description: description + type: point + detail: + occurred_elapsed_time: 100 + tag: + key1: value1 + key2: value2 + elapsed_time: 1000 + created_at: 2017-02-11T01:23:45Z + created_by: adbbd1ff-1e13-4b12-b125-e213945a65f8 + updated_at: 2017-02-11T12:34:56Z + updated_by: adbbd1ff-1e13-4b12-b125-e213945a65f8 + protected: false + created_at: 2017-02-11T01:23:45Z + updated_at: 2017-02-11T12:34:56Z + MeasBaseTimesGetResponse: + value: + items: + - type: ntp + basetime: 2017-02-11T01:23:45.678901Z + created_at: 2017-02-11T01:23:45Z + updated_at: 2017-02-11T01:23:45Z + MeasBaseTimeGetResponse: + value: + type: ntp + basetime: 2017-02-11T01:23:45.678901Z + created_at: 2017-02-11T01:23:45Z + updated_at: 2017-02-11T01:23:45Z + MeasBaseTimePutRequest: + value: + basetime: 2017-02-11T01:23:45Z + MeasBaseTimePutResponse: + value: + type: ntp + basetime: 2017-02-11T01:23:45.678901Z + created_at: 2017-02-11T01:23:45Z + updated_at: 2017-02-11T01:23:45Z + MeasurementSectionsGetResponse: + value: + items: + - serial_number: 0 + processed: true + created_at: 2017-02-11T01:23:45Z + updated_at: 2017-02-11T12:34:56Z + - serial_number: 1 + processed: true + created_at: 2017-02-11T01:23:45Z + updated_at: 2017-02-11T12:34:56Z + - serial_number: 2 + processed: false + total_count: 100 + MeasurementJobsGetResponse: + value: + items: + - uuid: d9135580-4a6b-4fbd-971b-8fdce27b617c + meas_uuid: a72c674a-e8e9-43bc-940f-a034853363e1 + measurement: + uuid: 2cc7de37-6f71-4458-887e-10e618a6fcfb + name: meas1 + description: description of measurement + edge_uuid: 00de1861-6614-4435-af07-da9b4338d57c + duration: 100000000 + ended: true + status: measuring + basetime: 2017-02-11T01:23:45.678901Z + basetime_type: ntp + processed_ratio: 0.9 + received_data_points: null + markers: + - uuid: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 + name: Name3 + description: Description3 + tag: + tagkey1: tagValue1 + tagkey2: tagValue2 + type: range + detail: + start_elapsed_time: 3 + end_elapsed_time: 7 + created_at: 2000-01-02T03:04:07Z + created_by: e3f57626-93d6-4274-a51f-1ac538357a8a + updated_at: 2020-04-15T14:15:23.135268Z + updated_by: 447af3b3-a311-4047-9d7c-110a0fac505b + - uuid: cdc1029e-d474-477c-aa6e-b48928fdb825 + name: Name2 + description: Description2 + tag: + tagkey1: tagValue1 + tagkey2: tagValue2 + type: point + detail: + occurred_elapsed_time: 3 + created_at: 2000-01-02T03:04:06Z + created_by: e3f57626-93d6-4274-a51f-1ac538357a8a + updated_at: 2020-04-15T14:15:23.064981Z + updated_by: 447af3b3-a311-4047-9d7c-110a0fac505b + protected: false + created_at: 2017-02-11T01:23:45Z + updated_at: 2017-02-11T12:34:56Z + page: + total_count: 1 + first: true + last: true + next: /path?xxx=1&bbb=2&page=3 + previous: /path?xxx=1&bbb=2&page=1 + MeasurementJobGetResponse: + value: + uuid: d9135580-4a6b-4fbd-971b-8fdce27b617c + meas_uuid: a72c674a-e8e9-43bc-940f-a034853363e1 + status: succeeded + message: Succeeded + file_name: sample.csv + created_at: 2017-02-11T01:23:45Z + updated_at: 2017-02-11T12:34:56Z + MeasurementMarkersGetResponse: + value: + items: + - uuid: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 + name: name + description: description + type: range + detail: + start_elapsed_time: 3 + end_elapsed_time: 4 + tag: + tagkey1: tagValue1 + tagkey2: tagValue2 + created_at: 2017-02-11T01:23:45Z + created_by: adbbd1ff-1e13-4b12-b125-e213945a65f8 + updated_at: 2017-02-11T12:34:56Z + updated_by: adbbd1ff-1e13-4b12-b125-e213945a65f8 + - uuid: cdc1029e-d474-477c-aa6e-b48928fdb825 + name: name + description: description + type: point + detail: + occurred_elapsed_time: 3 + tag: + tagkey1: tagValue1 + tagkey2: tagValue2 + created_at: 2017-02-11T01:23:45Z + created_by: adbbd1ff-1e13-4b12-b125-e213945a65f8 + updated_at: 2017-02-11T12:34:56Z + updated_by: adbbd1ff-1e13-4b12-b125-e213945a65f8 + page: + total_count: 1 + first: true + last: true + next: /path?xxx=1&bbb=2&page=3 + previous: /path?xxx=1&bbb=2&page=1 + MeasurementMarkerGetResponseRange: + value: + uuid: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 + name: name + description: description + type: range + detail: + start_elapsed_time: 3 + end_elapsed_time: 4 + tag: + tagkey1: tagValue1 + tagkey2: tagValue2 + created_at: 2017-02-11T01:23:45Z + created_by: adbbd1ff-1e13-4b12-b125-e213945a65f8 + updated_at: 2017-02-11T12:34:56Z + updated_by: adbbd1ff-1e13-4b12-b125-e213945a65f8 + MeasurementMarkerGetResponsePoint: + value: + uuid: cdc1029e-d474-477c-aa6e-b48928fdb825 + name: name + description: description + type: point + detail: + occurred_elapsed_time: 3 + tag: + tagkey1: tagValue1 + tagkey2: tagValue2 + created_at: 2017-02-11T01:23:45Z + created_by: adbbd1ff-1e13-4b12-b125-e213945a65f8 + updated_at: 2017-02-11T12:34:56Z + updated_by: adbbd1ff-1e13-4b12-b125-e213945a65f8 + MeasurementMarkerPutRequestRange: + value: + name: name + description: description + type: range + detail: + start_elapsed_time: 100 + end_elapsed_time: 200 + tag: + tagkey1: tagValue1 + tagkey2: tagValue2 + MeasurementMarkerPutRequestPoint: + value: + name: name + description: description + type: point + detail: + occurred_elapsed_time: 100 + tag: + tagkey1: tagValue1 + tagkey2: tagValue2 + MeasurementUploadStatusesGetResponse: + value: + items: + - uuid: d9135580-4a6b-4fbd-971b-8fdce27b617c + meas_uuid: a72c674a-e8e9-43bc-940f-a034853363e1 + state: succeed + message: Succeed + file_name: sample.csv + created_at: 2017-02-11T01:23:45Z + updated_at: 2017-02-11T12:34:56Z + page: + total_count: 1 + first: true + last: true + next: /path?xxx=1&bbb=2&page=3 + previous: /path?xxx=1&bbb=2&page=1 + MeasurementUploadPostResponse: + value: + meas_upload_uuid: d9135580-4a6b-4fbd-971b-8fdce27b617c + job_uuid: d9135580-4a6b-4fbd-971b-8fdce27b617c + file_name: filename.csv + MeasurementMarkerPostRequestPoint: + value: + name: name + description: description + type: point + detail: + occurred_elapsed_time: 100 + tag: + tagkey1: tagValue1 + tagkey2: tagValue2 + MeasurementMarkerPostRequestRange: + value: + name: name + description: description + type: range + detail: + start_elapsed_time: 100 + end_elapsed_time: 200 + tag: + tagkey1: tagValue1 + tagkey2: tagValue2 + ErrorProblemBadRequestMedia: + value: + type: invalid_request + title: invalid request message + ErrorProblemConflictMedia: + value: + type: conflict + title: conflict message + parameters: + QueryPage: + description: 取得するページの番号 + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + QueryPerPage: + description: 1回のリクエストで取得する件数 + explode: true + in: query + name: per_page + required: false + schema: + default: 30 + maximum: 200 + type: integer + style: form + PathClientID: + description: OAuth2クライアントID + example: 039b8ee2-8edc-46e4-9a88-4d03bac142f7 + explode: false + in: path + name: client_id + required: true + schema: + type: string + style: simple + PathEdgeUUID: + description: エッジのUUID + example: e920a50c-ddde-4571-b066-b568340de7cf + explode: false + in: path + name: edge_uuid + required: true + schema: + type: string + style: simple + QueryOAuth2ClientID: + description: OAuth2クライアントID + example: client_id + explode: true + in: query + name: client_id + required: true + schema: + type: string + style: form + QueryOAuth2ResponseType: + description: OAuth2のresponse_type。 `code` のみサポートされています。 + example: code + explode: true + in: query + name: response_type + required: true + schema: + enum: + - code + type: string + style: form + QueryOAuth2RedirectURI: + description: 認可後のリダイレクト先URI + example: http://localhost:8080/ + explode: true + in: query + name: redirect_uri + required: true + schema: + type: string + style: form + QueryOAuth2State: + description: CSRF対策のためのstate + example: 05d54c58385046dd822d233c6adfb9e9 + explode: true + in: query + name: state + required: true + schema: + type: string + style: form + QueryOAuth2CodeChallenge: + description: PKCEコードチャレンジ。 `code_verifier` から計算したSHA-256ハッシュを、Base64 URLエンコードしたもの。 + example: ZtNPunH49FD35FWYhT5Tv8I7vRKQJ8uxMaL0_9eHjNA + explode: true + in: query + name: code_challenge + required: false + schema: + type: string + style: form + QueryOAuth2CodeChallengeMethod: + description: PKCEコードチャレンジの方式。 `S256` (SHA-256)のみサポートされます。 + example: S256 + explode: true + in: query + name: code_challenge_method + required: false + schema: + enum: + - S256 + type: string + style: form + PathUserEmailID: + description: ユーザーのメールアドレスのID + example: 1 + explode: false + in: path + name: user_email_id + required: true + schema: + example: 1 + format: int64 + type: integer + style: simple + UserAPITokenID: + description: APIトークンのID + example: 1 + explode: false + in: path + name: user_api_token_id + required: true + schema: + example: 1 + format: int64 + type: integer + style: simple + QueryProjectSort: + description: 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 + 例えば、 `name-` を指定すると、nameによる降順で出力されます。 + explode: true + in: query + name: sort + required: false + schema: + enum: + - created_at + - created_at+ + - created_at- + - updated_at + - updated_at+ + - updated_at- + - name + - name+ + - name- + type: string + x-enum-varnames: + - CreatedAt + - CreatedAtAsc + - CreatedAtDesc + - UpdatedAt + - UpdatedAtAsc + - UpdatedAtDesc + - Name + - NameAsc + - NameDesc + style: form + QueryGroupSort: + description: 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 + 例えば、 `name-` を指定すると、nameによる降順で出力されます。 + explode: true + in: query + name: sort + required: false + schema: + enum: + - created_at + - created_at+ + - created_at- + - updated_at + - updated_at+ + - updated_at- + - name + - name+ + - name- + type: string + x-enum-varnames: + - CreatedAt + - CreatedAtAsc + - CreatedAtDesc + - UpdatedAt + - UpdatedAtAsc + - UpdatedAtDesc + - Name + - NameAsc + - NameDesc + style: form + PathUserUUID: + example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: user_uuid + required: true + schema: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + style: simple + PathRoleUUID: + description: ロールのUUID + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + explode: false + in: path + name: role_uuid + required: true + schema: + type: string + style: simple + PathGroupUUID: + description: グループのUUID + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + explode: false + in: path + name: group_uuid + required: true + schema: + type: string + style: simple + QueryIsOwner: + description: |- + * `true` を指定した場合、オーナーのみを取得します。 + * `false` を指定した場合、オーナー以外を取得します。 + * 指定を省略した場合、オーナーであるかにかかわらずメンバーを取得します。 + example: false + explode: true + in: query + name: is_owner + required: false + schema: + type: boolean + style: form + QueryUserUUIDs: + description: ユーザーのUUID + explode: true + in: query + name: user_uuid + required: false + schema: + items: + example: b7f5f259-6a63-4a26-bfa3-e15240cbc0b7 + type: string + type: array + style: form + QueryGroupMemberSort: + description: 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 + 例えば、 `name-` を指定すると、nameによる降順で出力されます。 + explode: true + in: query + name: sort + required: false + schema: + enum: + - created_at + - created_at+ + - created_at- + - updated_at + - updated_at+ + - updated_at- + - name + - name+ + - name- + type: string + x-enum-varnames: + - CreatedAt + - CreatedAtAsc + - CreatedAtDesc + - UpdatedAt + - UpdatedAtAsc + - UpdatedAtDesc + - Name + - NameAsc + - NameDesc + style: form + QuerySinceCreatedAt: + description: 指定した時刻より後に作成されたリソースを取得します。 + example: 2006-01-02T15:04:05.999999999Z + explode: true + in: query + name: since_created_at + required: false + schema: + format: date-time + type: string + style: form + PathProjectUUID: + description: プロジェクトのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + QueryEdgeUUIDs: + description: エッジのUUID + explode: true + in: query + name: edge_uuid + required: false + schema: + items: + example: b7f5f259-6a63-4a26-bfa3-e15240cbc0b7 + type: string + type: array + style: form + QueryProjectEdgeSort: + description: 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 + 例えば、 `name-` を指定すると、nameによる降順で出力されます。 + explode: true + in: query + name: sort + required: false + schema: + enum: + - created_at + - created_at+ + - created_at- + - updated_at + - updated_at+ + - updated_at- + - nickname + - nickname+ + - nickname- + type: string + x-enum-varnames: + - CreatedAt + - CreatedAtAsc + - CreatedAtDesc + - UpdatedAt + - UpdatedAtAsc + - UpdatedAtDesc + - NicknameAt + - NicknameAtAsc + - NicknameAtDesc + style: form + QueryProjectMemberSort: + description: 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 + 例えば、 `name-` を指定すると、nameによる降順で出力されます。 + explode: true + in: query + name: sort + required: false + schema: + enum: + - created_at + - created_at+ + - created_at- + - updated_at + - updated_at+ + - updated_at- + - name + - name+ + - name- + type: string + x-enum-varnames: + - CreatedAt + - CreatedAtAsc + - CreatedAtDesc + - UpdatedAt + - UpdatedAtAsc + - UpdatedAtDesc + - Name + - NameAsc + - NameDesc + style: form + PathScopeUUID: + description: The Scope UUID. + example: 4688a07a-0cbc-4597-8c87-538e744bc90d + explode: false + in: path + name: scope_uuid + required: true + schema: + type: string + style: simple + BrokerPathProjectUUID: + description: プロジェクトのUUID + example: c78ce0c1-eb57-4f93-a087-ee3b7cee5e06 + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + DataPointsTargetName: + description: |- + どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: + - 計測UUID + - エッジUUID + - エッジの名前 + + 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 + example: 8f40b21c-f2c4-4fa5-8fe3-325491a59597 + explode: true + in: query + name: name + required: true + schema: + type: string + style: form + DataPointsStart: + description: |- + 取得対象範囲の始点。以下のいずれかの形式で指定します。 + - rfc3339(ex 2019-10-29T03:04:05.341268Z) + - UNIX時刻(マイクロ秒)(**Deprecated**) + example: 2019-10-29T03:04:05.123456Z + explode: true + in: query + name: start + required: false + schema: + type: string + style: form + DataPointsEnd: + description: |- + 取得対象範囲の終点。以下のいずれかの形式で指定します。 + - rfc3339(ex 2019-10-29T03:04:05.341268Z) + - UNIX時刻(マイクロ秒)(**Deprecated**) + example: 2019-10-29T03:04:05.234567Z + explode: true + in: query + name: end + required: false + schema: + type: string + style: form + QueryLabel: + description: 信号定義のラベル + example: label + explode: true + in: query + name: label + required: false + schema: + items: + type: string + type: array + style: form + QueryPeriod: + description: |- + データポイントを指定した間隔(マイクロ秒)に間引きます。( **Experimental** ) + + 指定された間隔ごとに最新のデータポイントを残し、それ以外を除去します。 また、指定された間隔になるようにデータポイントの時刻を揃えます。 + ``` + --1--2----3---4--5---6-7--89-a---b-c---d--e--> period指定なし + | | | | | | | | + | | | | | | | | + 2-----3-----5-----7-----a-----c-----d-----e--> period指定あり + + |<--->| period + ``` + example: 10000 + explode: true + in: query + name: period + required: false + schema: + format: int64 + type: integer + style: form + QueryStart: + description: 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) + example: 1505797626000000 + explode: true + in: query + name: start + required: false + schema: + format: int64 + type: integer + style: form + QueryEnd: + description: 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) + example: 1505798226123456 + explode: true + in: query + name: end + required: false + schema: + format: int64 + type: integer + style: form + QueryEdgeUUID: + description: エッジのUUID + example: 24dbdc29-165f-4919-b2ce-7a335282bde2 + explode: true + in: query + name: edge_uuid + required: false + schema: + type: string + style: form + pathMeasUUID: + description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + explode: false + in: path + name: measurement_uuid + required: true + schema: + type: string + style: simple + page: + description: 取得するページの番号 + example: 1 + explode: true + in: query + name: page + required: false + schema: + format: int32 + type: integer + style: form + order: + description: 並べ替えの順序 + example: asc + explode: true + in: query + name: order + required: false + schema: + enum: + - asc + - desc + type: string + style: form + pathMeasBaseTimeType: + description: 基準時刻のタイプ + example: ntp + explode: false + in: path + name: type + required: true + schema: + enum: + - edge_rtc + - ntp + - gps + - api_first_received + - volatile + - manual + type: string + style: simple + limit: + description: 1回のリクエストで取得する件数 + example: 1000 + explode: true + in: query + name: limit + required: false + schema: + format: int32 + type: integer + style: form + PathMeasSequenceGroupUUID: + description: 計測シーケンスのUUID + example: 0b849907-9f04-4c87-b176-b73fb527e935 + explode: false + in: path + name: sequences_uuid + required: true + schema: + type: string + style: simple + PathMeasurementJobUUID: + description: ジョブのUUID + example: ddba7729-3a53-42bb-a4cf-6d19a3e66deb + explode: false + in: path + name: job_uuid + required: true + schema: + type: string + style: simple + QueryTag: + description: |- + タグのキーと値を使って条件を指定し、条件に一致する計測マーカーを取得します。 + キーのみを指定した場合は、指定されたキーを持つ計測マーカーを取得します。 キーと値を指定した場合は、指定されたキーを持ち、その値として指定された値を含む計測マーカーを取得します。 + `tag.=` 条件は複数個指定することができ、OR条件で使用されます。 ただし `!tag.` と組み合わせた場合、 `!tag.` が優先されます。 + + 例: + + | measurement marker | tag (key: value) | + | ------------------ | ---------------- | + | 1 | a: value1 | + | | c: value2 | + | | e: 1 | + + | 2 | a: b | + | | c: d | + + | 3 | a: b | + + - `?tag.e=` の場合、計測マーカー1番が取得されます。 + - `?!tag.c=` の場合、計測マーカー3番が取得されます。 + - `?tag.a=&!tag.e=` の場合、計測マーカー2、3番が取得されます。 + - `?tag.a=val&tag.c=d` の場合、計測マーカー1、2番が取得されます。 + example: include_tag_value + explode: true + in: query + name: tag. + required: false + schema: + items: + type: string + type: array + style: form + QueryNotTag: + description: |- + タグのキーを使って条件を指定し、条件に一致する計測キャプチャを除外します。 + タグの値は無視されます。 + `!tag.` を複数個指定した場合、AND条件となります。 また、 `tag.=` と組み合わせて使用した場合、 `tag.=` よりも `!tag.` が優先されます。 + 例: 上の `tag.` の説明を参照してください。 + example: exclude_tag_value + explode: true + in: query + name: '!tag.' + required: false + schema: + items: + type: string + type: array + style: form + PathMeasurementMarkerUUID: + description: 計測マーカーのUUID + example: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 + explode: false + in: path + name: measurement_marker_uuid + required: true + schema: + type: string + style: simple + MeasPathProjectUUID: + description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + QueryLimitMedia: + description: 1回のリクエストで取得する件数 + example: 1000 + explode: true + in: query + name: limit + required: false + schema: + type: number + style: form + QueryPageMedia: + description: 取得するページ番号 + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + QueryOrderMedia: + description: 並べ替えの順序 + example: asc + explode: true + in: query + name: order + required: false + schema: + enum: + - asc + - desc + type: string + style: form + PathMeasUUIDMedia: + description: 計測のUUID + example: f967c530-f562-410a-991b-031c43142778 + explode: false + in: path + name: meas_uuid + required: true + schema: + example: f967c530-f562-410a-991b-031c43142778 + type: string + style: simple + PathChannelMedia: + description: チャンネル + example: 1 + explode: false + in: path + name: channel + required: true + schema: + example: 1 + type: integer + style: simple + QueryPerPageMedia: + description: 1回のリクエストで取得する件数 + explode: true + in: query + name: per_page + required: false + schema: + default: 100 + maximum: 1000 + type: integer + style: form + PathVideoUUID: + description: 変換元の動画(video)のUUID + example: 68b91013-47e9-4e68-a965-892549587dfa + explode: false + in: path + name: video_uuid + required: true + schema: + type: string + style: simple + PathJpegUUID: + description: JPEGのUUID + example: 3279bdfb-9079-417e-8f94-ee8126da5933 + explode: false + in: path + name: jpeg_uuid + required: true + schema: + example: 3279bdfb-9079-417e-8f94-ee8126da5933 + type: string + style: simple + PathMP4UUID: + description: MP4のUUID + example: 34cd9cc6-4c62-4310-bbfd-04541f59ca0f + explode: false + in: path + name: mp4_uuid + required: true + schema: + example: 34cd9cc6-4c62-4310-bbfd-04541f59ca0f + type: string + style: simple + PathEdgeUUIDMedia: + description: エッジのUUID + example: 421fecd4-646b-4ab8-a715-c4b888964b11 + explode: false + in: path + name: edge_uuid + required: true + schema: + example: 421fecd4-646b-4ab8-a715-c4b888964b11 + type: string + style: simple + MediaPathProjectUUID: + description: プロジェクトのUUID + example: 75c55669-b2ab-4f14-a871-8571c6afa1ef + explode: false + in: path + name: project_uuid + required: true + schema: + type: string + style: simple + schemas: + OAuth2ClientGrantType: + description: グラントタイプ + enum: + - authorization_code + - client_credentials + - refresh_token + type: string + OAuth2ClientResponseType: + description: グラントタイプ + enum: + - code + type: string + OAuth2Client: + example: + grant_types: + - null + - null + name: My Client + audiences: + - audiences + - audiences + tls_client_auth_subject_dn: "SERIALNUMBER=0001,CN=CommonName,OU=OrganizationalUnit,O=Organization,POSTALCODE=PostalCode,STREET=StreetAddress,L=Locality,ST=Province,C=COUNTRY" + redirect_uris: + - http://localhost:8080/ + - http://localhost:8080/ + scopes: + - meas:r + - meas:r + client_id: 4b54d475-0607-441e-b252-944a97337a9e + token_endpoint_auth_method: none + response_types: + - null + - null + properties: + client_id: + description: OAuth2クライアントID + example: 4b54d475-0607-441e-b252-944a97337a9e + type: string + name: + description: 名前 + example: My Client + type: string + grant_types: + description: グラントタイプ + items: + $ref: '#/components/schemas/OAuth2ClientGrantType' + type: array + token_endpoint_auth_method: + description: トークンエンドポイントの認証方式 + enum: + - none + - client_secret_post + - client_secret_basic + - tls_client_auth + type: string + redirect_uris: + description: 認可後のリダイレクト先URI + items: + example: http://localhost:8080/ + type: string + type: array + response_types: + description: レスポンスタイプ + items: + $ref: '#/components/schemas/OAuth2ClientResponseType' + type: array + scopes: + description: スコープ + items: + example: meas:r + type: string + type: array + audiences: + description: オーディエンス + items: + example: audiences + type: string + type: array + tls_client_auth_subject_dn: + description: TLSクライアント認証のサブジェクトDN + example: "SERIALNUMBER=0001,CN=CommonName,OU=OrganizationalUnit,O=Organization,POSTALCODE=PostalCode,STREET=StreetAddress,L=Locality,ST=Province,C=COUNTRY" + type: string + required: + - audiences + - client_id + - grant_types + - name + - redirect_uris + - response_types + - scopes + - tls_client_auth_subject_dn + - token_endpoint_auth_method + - type + type: object + AuthPage: + example: + next: true + next_page: 1 + total_count: 1 + prev: true + total_page: 1 + prev_page: 1 + properties: + next: + description: 次のページがあるかどうか + example: true + type: boolean + prev: + description: 前のページがあるかどうか + example: true + type: boolean + next_page: + description: 取得対象の次のページ番号。`next` がtrueの場合のみ表示。 + example: 1 + format: int64 + type: integer + prev_page: + description: 取得対象の前のページ番号。`next` がtrueの場合のみ表示。 + example: 1 + format: int64 + type: integer + total_page: + description: 取得対象の総ページ数 + example: 1 + format: int64 + type: integer + total_count: + description: 取得対象の総件数 + example: 1 + format: int64 + type: integer + required: + - next + - prev + - total_count + - total_page + type: object + OAuth2Clients: + example: + page: + next: true + next_page: 1 + total_count: 1 + prev: true + total_page: 1 + prev_page: 1 + items: + - grant_types: + - null + - null + name: My Client + audiences: + - audiences + - audiences + tls_client_auth_subject_dn: "SERIALNUMBER=0001,CN=CommonName,OU=OrganizationalUnit,O=Organization,POSTALCODE=PostalCode,STREET=StreetAddress,L=Locality,ST=Province,C=COUNTRY" + redirect_uris: + - http://localhost:8080/ + - http://localhost:8080/ + scopes: + - meas:r + - meas:r + client_id: 4b54d475-0607-441e-b252-944a97337a9e + token_endpoint_auth_method: none + response_types: + - null + - null + - grant_types: + - null + - null + name: My Client + audiences: + - audiences + - audiences + tls_client_auth_subject_dn: "SERIALNUMBER=0001,CN=CommonName,OU=OrganizationalUnit,O=Organization,POSTALCODE=PostalCode,STREET=StreetAddress,L=Locality,ST=Province,C=COUNTRY" + redirect_uris: + - http://localhost:8080/ + - http://localhost:8080/ + scopes: + - meas:r + - meas:r + client_id: 4b54d475-0607-441e-b252-944a97337a9e + token_endpoint_auth_method: none + response_types: + - null + - null + properties: + items: + items: + $ref: '#/components/schemas/OAuth2Client' + type: array + page: + $ref: '#/components/schemas/AuthPage' + required: + - items + - page + title: Roles + type: object + CheckHTTPAuthorizationRequest: + description: |- + アクセス制御可能かどうかを判定します。 + ### サブジェクト指定なしの場合 + リクエストのスコープのみでアクセス判定を行います。 + ### サブジェクト指定ありの場合 + パスを分類し、分類した結果によって処理が変わります。 + #### パスがプロジェクトコンテキストの場合 + サブジェクトがプロジェクトに所属しているかを確認し、所属している場合は、サブジェクトがメンバーの場合そのプロジェクトにおけるスコープからアクセス判定を行います。サブジェクトがエッジの場合はリクエストのスコープからアクセス判定を行います。 + + ### パスがグループコンテキストの場合 + サブジェクトがプロジェクトに所属しているかを確認し、所属している場合は、そのプロジェクトにおけるスコープからアクセス判定を行います。 + ### パスがその他の場合 + リクエストのスコープからアクセス判定を行います。 + example: + path: /resource/path + method: POST + subject: eb0398f0-3631-470a-abed-0ac3763cf90d + scopes: + - scope1 + properties: + subject: + description: 認証主体を指定します。通常アクセスユーザーのUUIDかアクセスエッジのUUIDを指定します。 + example: eb0398f0-3631-470a-abed-0ac3763cf90d + type: string + scopes: + description: スコープを指定します。前述の説明を参照ください。 + example: + - scope1 + items: + type: string + type: array + path: + example: /resource/path + type: string + method: + enum: + - GET + - POST + - PUT + - PATCH + - DELETE + example: POST + type: string + required: + - method + - path + - scopes + title: CheckAuthorizationRequest + type: object + CheckAuthorizationResponse: + example: + result: true + properties: + result: + example: true + type: boolean + required: + - result + title: CheckAuthorizationResponse + type: object + UpdateOAuth2ClientRequest: + example: + name: My Client + redirect_uris: + - http://localhost:8080 + - http://localhost:8080 + properties: + name: + description: 名前 + example: My Client + maxLength: 256 + minLength: 1 + type: string + redirect_uris: + description: 認可後のリダイレクト先URI + items: + description: グラントタイプが `authorization_code` のときに必要です。 + example: http://localhost:8080 + maxLength: 256 + type: string + maximum: 10 + type: array + type: object + EdgeOwner: + example: + user_uuid: 84693d9e-0f1a-457b-b417-a7c697cffdce + properties: + user_uuid: + description: 所有者ユーザーのUUID + example: 84693d9e-0f1a-457b-b417-a7c697cffdce + type: string + required: + - user_uuid + type: object + Edge: + example: + owner: + user_uuid: 84693d9e-0f1a-457b-b417-a7c697cffdce + updated_at: 2000-01-01T00:00:00Z + name: my-edge + nickname: My Edge + description: Description + created_at: 2000-01-01T00:00:00Z + client_secret: secret + uuid: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + properties: + uuid: + description: エッジのUUID + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + type: string + name: + description: エッジの名前 + example: my-edge + type: string + nickname: + description: エッジの表示名 + example: My Edge + type: string + description: + description: エッジの説明 + example: Description + type: string + owner: + $ref: '#/components/schemas/EdgeOwner' + created_at: + description: 作成日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + updated_at: + description: 最終更新日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + client_secret: + description: エッジのクライアントシークレット + example: secret + type: string + required: + - created_at + - description + - name + - nickname + - updated_at + - uuid + type: object + Edges: + example: + page: + next: true + next_page: 1 + total_count: 1 + prev: true + total_page: 1 + prev_page: 1 + items: + - owner: + user_uuid: 84693d9e-0f1a-457b-b417-a7c697cffdce + updated_at: 2000-01-01T00:00:00Z + name: my-edge + nickname: My Edge + description: Description + created_at: 2000-01-01T00:00:00Z + client_secret: secret + uuid: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + - owner: + user_uuid: 84693d9e-0f1a-457b-b417-a7c697cffdce + updated_at: 2000-01-01T00:00:00Z + name: my-edge + nickname: My Edge + description: Description + created_at: 2000-01-01T00:00:00Z + client_secret: secret + uuid: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + properties: + items: + items: + $ref: '#/components/schemas/Edge' + type: array + page: + $ref: '#/components/schemas/AuthPage' + required: + - items + - page + title: Edges + type: object + CreateEdgeRequest: + example: + name: edge + nickname: nickname + description: description + properties: + name: + description: エッジの名前 + example: edge + maxLength: 255 + minLength: 1 + pattern: "^[0-9a-zA-Z-_]*$" + type: string + nickname: + description: エッジの表示名 + example: nickname + maxLength: 511 + type: string + description: + description: エッジの説明 + example: description + maxLength: 65535 + type: string + required: + - name + type: object + PatchEdgeRequest: + example: + name: edge_name + nickname: nickname + description: description + properties: + name: + description: エッジの名前 + example: edge_name + maxLength: 255 + minLength: 1 + pattern: "^[0-9a-zA-Z-_]*$" + type: string + nickname: + description: エッジの表示名 + example: nickname + maxLength: 511 + type: string + description: + description: エッジの説明 + example: description + maxLength: 65535 + type: string + type: object + AssignOwnerRequest: + example: + user_uuid: 0932ff17-567c-4ac8-a40d-136357890f7b + properties: + user_uuid: + description: 所有者とするユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + required: + - user_uuid + type: object + ErrorProblem: + properties: + type: + description: エラーのタイプ + enum: + - about:blank + - invalid_request + - conflict + - forbidden + - account_locked + - exceeded_max_groups_count + - exceeded_max_projects_count_per_group + - conflict_project_edge_uuid + - conflict_project_edge_nickname + type: string + title: + description: エラーのタイトル + type: string + properties: + description: 無効なパラメーターについての情報 + type: object + required: + - title + - type + type: object + RevokeTokenRequest: + properties: + client_id: + description: OAuth2クライアントID + type: string + token_type_hint: + default: refresh_token + description: OAuth2トークンタイプについてのヒント + enum: + - access_token + - refresh_token + type: string + token: + description: |- + 無効化したいリフレッシュトークンまたはアクセストークン。 + 指定を省略した場合、サーバーは、cookieの `_bearer_token` に指定されたアクセストークン、または、Authorizationヘッダーに指定されたアクセストークン( `Bearer` トークン)を無効化します。 + type: string + required: + - client_id + type: object + JSONWebKey: + description: "See [JSON Web Key (JWK)](https://datatracker.ietf.org/doc/html/rfc7517)" + properties: + use: + type: string + kty: + type: string + kid: + type: string + crv: + type: string + alg: + type: string + k: + format: byte + type: string + x: + format: byte + type: string + "y": + format: byte + type: string + "n": + format: byte + type: string + e: + format: byte + type: string + d: + format: byte + type: string + p: + format: byte + type: string + q: + format: byte + type: string + dp: + format: byte + type: string + dq: + format: byte + type: string + qi: + format: byte + type: string + x5c: + items: + type: string + type: array + x5u: + format: url + type: string + x5t: + type: string + x5t#S256: + type: string + type: object + OAuth2JWKs: + properties: + keys: + items: + $ref: '#/components/schemas/JSONWebKey' + type: array + type: object + UserEmail: + example: + address: intdash@example.com + updated_at: 2000-01-01T00:00:00Z + verified: false + created_at: 2000-01-01T00:00:00Z + id: 1 + properties: + id: + description: メールアドレスのID + example: 1 + format: int64 + type: integer + address: + description: メールアドレス + example: intdash@example.com + type: string + verified: + description: '`true` の場合、確認メールによるメールアドレス確認が済んでいます。' + example: false + type: boolean + created_at: + description: 作成日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + updated_at: + description: 最終更新日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + required: + - address + - created_at + - id + - updated_at + - verified + type: object + UserPassword: + example: + attempt_count: 1 + temporary_password: password + updated_at: 2000-01-01T00:00:00Z + is_temporary: false + last_attempt_at: 2000-01-01T00:00:00Z + created_at: 2000-01-01T00:00:00Z + expired_at: 2000-01-01T00:00:00Z + properties: + attempt_count: + description: ログイン失敗回数。ログインに成功すると0にリセットされます。 + example: 1 + format: int64 + type: integer + is_temporary: + description: '`true` の場合、このユーザーのパスワードは一時パスワードです。' + example: false + type: boolean + temporary_password: + description: 一時パスワード + example: password + type: string + last_attempt_at: + description: 最終ログイン試行日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + expired_at: + description: パスワードの有効期限 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + created_at: + description: 作成日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + updated_at: + description: 最終更新日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + required: + - attempt_count + - created_at + - is_temporary + - last_attempt_at + - updated_at + title: UserPassword + type: object + User: + example: + emails: + - address: intdash@example.com + updated_at: 2000-01-01T00:00:00Z + verified: false + created_at: 2000-01-01T00:00:00Z + id: 1 + - address: intdash@example.com + updated_at: 2000-01-01T00:00:00Z + verified: false + created_at: 2000-01-01T00:00:00Z + id: 1 + password: + attempt_count: 1 + temporary_password: password + updated_at: 2000-01-01T00:00:00Z + is_temporary: false + last_attempt_at: 2000-01-01T00:00:00Z + created_at: 2000-01-01T00:00:00Z + expired_at: 2000-01-01T00:00:00Z + last_sign_in_at: 2000-01-01T00:00:00Z + updated_at: 2000-01-01T00:00:00Z + roles: + - af22c56b-6b3e-4807-a165-07e9dbd7e25b + - af22c56b-6b3e-4807-a165-07e9dbd7e25b + name: intdash + nickname: intdash-nickname + description: description + is_super: false + created_at: 2000-01-01T00:00:00Z + disabled: false + uuid: 0932ff17-567c-4ac8-a40d-136357890f7b + properties: + uuid: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + name: + description: ユーザーの名前 + example: intdash + type: string + nickname: + description: ユーザーの表示名 + example: intdash-nickname + type: string + disabled: + description: |- + * `true`: このユーザーは無効化されています + * `false` : このユーザーは有効です。 + example: false + type: boolean + description: + description: ユーザーの説明 + example: description + type: string + is_super: + description: '`true` の場合、このユーザーはスーパーユーザーです。' + example: false + type: boolean + emails: + items: + $ref: '#/components/schemas/UserEmail' + type: array + last_sign_in_at: + description: 最後にログインした日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + roles: + description: 割り当てられたロールのUUID + items: + example: af22c56b-6b3e-4807-a165-07e9dbd7e25b + type: string + type: array + password: + $ref: '#/components/schemas/UserPassword' + created_at: + description: 作成日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + updated_at: + description: 最終更新日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + required: + - created_at + - description + - disabled + - emails + - is_super + - last_sign_in_at + - name + - nickname + - password + - roles + - updated_at + - uuid + type: object + PatchUserRequest: + example: + name: username + nickname: nickname + description: user description + properties: + name: + description: ユーザーの名前 + example: username + maxLength: 256 + minLength: 1 + pattern: "^[0-9a-zA-Z-_]*$" + type: string + nickname: + description: ユーザーの表示名 + example: nickname + maxLength: 512 + type: string + description: + description: ユーザーの説明 + example: user description + maxLength: 65536 + type: string + type: object + CreateOAuth2ClientClientCredentialsRequest: + properties: + name: + description: 名前 + example: My Client + maxLength: 256 + minLength: 1 + type: string + grant_type: + description: グラントタイプ + enum: + - authorization_code + - client_credentials + type: string + token_endpoint_auth_method: + default: client_secret_post + description: トークンエンドポイントの認証方式 + enum: + - client_secret_post + - tls_client_auth + type: string + tls_client_auth_subject_dn: + description: TLSクライアント認証のサブジェクトDN + example: "SERIALNUMBER=0001,CN=CommonName,OU=OrganizationalUnit,O=Organization,POSTALCODE=PostalCode,STREET=StreetAddress,L=Locality,ST=Province,C=COUNTRY" + maxLength: 512 + type: string + required: + - grant_type + - name + - token_endpoint_auth_method + type: object + CreateOAuth2ClientAuthorizationCodeRequest: + allOf: + - $ref: '#/components/schemas/CreateOAuth2ClientAuthorizationCodeRequest_allOf' + - $ref: '#/components/schemas/CreateOAuth2ClientClientCredentialsRequest' + CreateMyOAuth2ClientRequest: + discriminator: + mapping: + authorization_code: '#/components/schemas/CreateOAuth2ClientAuthorizationCodeRequest' + client_credentials: '#/components/schemas/CreateOAuth2ClientClientCredentialsRequest' + propertyName: grant_type + oneOf: + - $ref: '#/components/schemas/CreateOAuth2ClientAuthorizationCodeRequest' + - $ref: '#/components/schemas/CreateOAuth2ClientClientCredentialsRequest' + OAuth2ClientWithSecret: + allOf: + - $ref: '#/components/schemas/OAuth2Client' + - $ref: '#/components/schemas/OAuth2ClientWithSecret_allOf' + CheckMeHTTPAuthorizationRequest: + description: 認証ユーザー自身がアクセス可能かどうかを判定します。 + example: + path: /resource/path + method: POST + properties: + path: + example: /resource/path + type: string + method: + enum: + - GET + - POST + - PUT + - PATCH + - DELETE + example: POST + type: string + required: + - method + - path + title: CheckAuthorizationRequest + type: object + Users: + example: + page: + next: true + next_page: 1 + total_count: 1 + prev: true + total_page: 1 + prev_page: 1 + items: + - emails: + - address: intdash@example.com + updated_at: 2000-01-01T00:00:00Z + verified: false + created_at: 2000-01-01T00:00:00Z + id: 1 + - address: intdash@example.com + updated_at: 2000-01-01T00:00:00Z + verified: false + created_at: 2000-01-01T00:00:00Z + id: 1 + password: + attempt_count: 1 + temporary_password: password + updated_at: 2000-01-01T00:00:00Z + is_temporary: false + last_attempt_at: 2000-01-01T00:00:00Z + created_at: 2000-01-01T00:00:00Z + expired_at: 2000-01-01T00:00:00Z + last_sign_in_at: 2000-01-01T00:00:00Z + updated_at: 2000-01-01T00:00:00Z + roles: + - af22c56b-6b3e-4807-a165-07e9dbd7e25b + - af22c56b-6b3e-4807-a165-07e9dbd7e25b + name: intdash + nickname: intdash-nickname + description: description + is_super: false + created_at: 2000-01-01T00:00:00Z + disabled: false + uuid: 0932ff17-567c-4ac8-a40d-136357890f7b + - emails: + - address: intdash@example.com + updated_at: 2000-01-01T00:00:00Z + verified: false + created_at: 2000-01-01T00:00:00Z + id: 1 + - address: intdash@example.com + updated_at: 2000-01-01T00:00:00Z + verified: false + created_at: 2000-01-01T00:00:00Z + id: 1 + password: + attempt_count: 1 + temporary_password: password + updated_at: 2000-01-01T00:00:00Z + is_temporary: false + last_attempt_at: 2000-01-01T00:00:00Z + created_at: 2000-01-01T00:00:00Z + expired_at: 2000-01-01T00:00:00Z + last_sign_in_at: 2000-01-01T00:00:00Z + updated_at: 2000-01-01T00:00:00Z + roles: + - af22c56b-6b3e-4807-a165-07e9dbd7e25b + - af22c56b-6b3e-4807-a165-07e9dbd7e25b + name: intdash + nickname: intdash-nickname + description: description + is_super: false + created_at: 2000-01-01T00:00:00Z + disabled: false + uuid: 0932ff17-567c-4ac8-a40d-136357890f7b + properties: + items: + items: + $ref: '#/components/schemas/User' + type: array + page: + $ref: '#/components/schemas/AuthPage' + required: + - items + - page + title: Users + type: object + CreateUserRequest: + example: + role_uuids: + - af22c56b-6b3e-4807-a165-07e9dbd7e25b + - af22c56b-6b3e-4807-a165-07e9dbd7e25b + name: intdash + nickname: nickname + description: description + email: intdash@example.com + properties: + name: + description: ユーザーの名前 + example: intdash + maxLength: 256 + minLength: 1 + pattern: "^[0-9a-zA-Z-_]*$" + type: string + nickname: + description: ユーザーの表示名 + example: nickname + maxLength: 512 + type: string + description: + description: ユーザーの説明 + example: description + maxLength: 65536 + type: string + role_uuids: + description: ロールのUUID。指定したロールがユーザーに割り当てられます。 + items: + example: af22c56b-6b3e-4807-a165-07e9dbd7e25b + type: string + type: array + email: + description: ユーザーのメールアドレス + example: intdash@example.com + maxLength: 256 + minLength: 1 + type: string + required: + - name + - role_uuids + type: object + CreateEmailRequest: + example: + address: intdash@example.com + properties: + address: + description: メールアドレス + example: intdash@example.com + maxLength: 256 + minLength: 1 + type: string + required: + - address + type: object + PatchEmailRequest: + example: + address: intdash@example.com + properties: + address: + description: メールアドレス + example: intdash@example.com + maxLength: 256 + minLength: 1 + type: string + required: + - address + type: object + UserEmailVerification: + example: + email_id: 1 + updated_at: 2000-01-01T00:00:00Z + created_at: 2000-01-01T00:00:00Z + expired_at: 2100-01-01T00:00:00Z + properties: + email_id: + description: メールアドレスのID + example: 1 + format: int64 + type: integer + expired_at: + description: 有効期限 + example: 2100-01-01T00:00:00Z + format: date-time + type: string + created_at: + description: 作成日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + updated_at: + description: 最終更新日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + required: + - created_at + - email_id + - expired_at + - updated_at + type: object + UpdateEmailVerifiedRequest: + example: + verification_token: verification.token + properties: + verification_token: + description: メールアドレス確認用トークン + example: verification.token + maxLength: 4096 + minLength: 1 + type: string + required: + - verification_token + type: object + ChangePasswordRequest: + example: + password: new-password + old_password: old-password + recovery_token: recovery.token + properties: + password: + description: 新しいパスワード + example: new-password + maxLength: 512 + minLength: 8 + pattern: "[a-zA-Z0-9!\"#$%&'()*+,-./:;<=>?@\\{\\}|\\[\\]]*" + type: string + old_password: + description: 現在のパスワード + example: old-password + maxLength: 512 + type: string + recovery_token: + description: リカバリートークン。パスワード再設定用の確認メールに含まれています。 + example: recovery.token + type: string + required: + - password + title: ChangePasswordRequest + type: object + CheckPasswordResult: + example: + valid: false + errors: + - type: min_length + message: messsage + value: "10" + - type: min_length + message: messsage + value: "10" + properties: + valid: + description: '`true` の場合、ポリシーに適合しています。' + example: false + type: boolean + errors: + description: ポリシー不適合の場合、その詳細 + items: + $ref: '#/components/schemas/CheckPasswordResult_errors_inner' + type: array + required: + - valid + type: object + AllowedEndpoint: + example: + path: /resources + method: GET + properties: + path: + description: リソースパス。グロブを使って指定可能です。 + example: /resources + type: string + method: + description: HTTPメソッド。グロブを使って指定可能です。 + example: GET + type: string + required: + - method + - path + title: AllowedEndpoint + type: object + ISCPMessageType: + description: iSCPメッセージタイプ + enum: + - upstream_spec_request + - downstream_spec_request + - unit + - eos + - sos + - ping + example: eos + type: string + AllowedISCPMessage: + example: + type: eos + properties: + type: + $ref: '#/components/schemas/ISCPMessageType' + required: + - type + title: AllowedISCPMessage + type: object + DeniedEndpoint: + example: + path: /denied_resources + method: GET + properties: + path: + description: リソースパス。グロブを使って指定可能です。 + example: /denied_resources + type: string + method: + description: HTTPメソッド。グロブを使って指定可能です。 + example: GET + type: string + required: + - method + - path + title: DeniedEndpoint + type: object + Scope: + example: + allowed_endpoints: + - path: /resources + method: GET + - path: /resources + method: GET + updated_at: 2000-01-01T00:00:00Z + denied_endpoints: + - path: /denied_resources + method: GET + - path: /denied_resources + method: GET + allowed_iscp_messages: + - type: eos + - type: eos + name: meas:r + created_at: 2000-01-01T00:00:00Z + uuid: 4688a07a-0cbc-4597-8c87-538e744bc90d + properties: + uuid: + description: スコープのUUID + example: 4688a07a-0cbc-4597-8c87-538e744bc90d + type: string + name: + description: スコープの名前 + example: meas:r + type: string + allowed_endpoints: + description: 許可されているエンドポイント + items: + $ref: '#/components/schemas/AllowedEndpoint' + type: array + allowed_iscp_messages: + description: 許可されているiSCPメッセージ + items: + $ref: '#/components/schemas/AllowedISCPMessage' + type: array + denied_endpoints: + description: 拒否されているエンドポイント + items: + $ref: '#/components/schemas/DeniedEndpoint' + type: array + created_at: + description: 作成日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + updated_at: + description: 最終更新日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + required: + - allowed_endpoints + - allowed_iscp_messages + - created_at + - denied_endpoints + - name + - updated_at + - uuid + type: object + Role: + example: + updated_at: 2000-01-01T00:00:00Z + name: member + created_at: 2000-01-01T00:00:00Z + scopes: + - allowed_endpoints: + - path: /resources + method: GET + - path: /resources + method: GET + updated_at: 2000-01-01T00:00:00Z + denied_endpoints: + - path: /denied_resources + method: GET + - path: /denied_resources + method: GET + allowed_iscp_messages: + - type: eos + - type: eos + name: meas:r + created_at: 2000-01-01T00:00:00Z + uuid: 4688a07a-0cbc-4597-8c87-538e744bc90d + - allowed_endpoints: + - path: /resources + method: GET + - path: /resources + method: GET + updated_at: 2000-01-01T00:00:00Z + denied_endpoints: + - path: /denied_resources + method: GET + - path: /denied_resources + method: GET + allowed_iscp_messages: + - type: eos + - type: eos + name: meas:r + created_at: 2000-01-01T00:00:00Z + uuid: 4688a07a-0cbc-4597-8c87-538e744bc90d + uuid: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + properties: + uuid: + description: ロールのUUID + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + title: UUID + type: string + name: + description: ロールの名前 + example: member + type: string + scopes: + description: ロールのスコープ + items: + $ref: '#/components/schemas/Scope' + type: array + created_at: + description: 作成日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + updated_at: + description: 最終更新日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + required: + - created_at + - name + - scopes + - updated_at + - uuid + type: object + Roles: + example: + page: + next: true + next_page: 1 + total_count: 1 + prev: true + total_page: 1 + prev_page: 1 + items: + - updated_at: 2000-01-01T00:00:00Z + name: member + created_at: 2000-01-01T00:00:00Z + scopes: + - allowed_endpoints: + - path: /resources + method: GET + - path: /resources + method: GET + updated_at: 2000-01-01T00:00:00Z + denied_endpoints: + - path: /denied_resources + method: GET + - path: /denied_resources + method: GET + allowed_iscp_messages: + - type: eos + - type: eos + name: meas:r + created_at: 2000-01-01T00:00:00Z + uuid: 4688a07a-0cbc-4597-8c87-538e744bc90d + - allowed_endpoints: + - path: /resources + method: GET + - path: /resources + method: GET + updated_at: 2000-01-01T00:00:00Z + denied_endpoints: + - path: /denied_resources + method: GET + - path: /denied_resources + method: GET + allowed_iscp_messages: + - type: eos + - type: eos + name: meas:r + created_at: 2000-01-01T00:00:00Z + uuid: 4688a07a-0cbc-4597-8c87-538e744bc90d + uuid: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + - updated_at: 2000-01-01T00:00:00Z + name: member + created_at: 2000-01-01T00:00:00Z + scopes: + - allowed_endpoints: + - path: /resources + method: GET + - path: /resources + method: GET + updated_at: 2000-01-01T00:00:00Z + denied_endpoints: + - path: /denied_resources + method: GET + - path: /denied_resources + method: GET + allowed_iscp_messages: + - type: eos + - type: eos + name: meas:r + created_at: 2000-01-01T00:00:00Z + uuid: 4688a07a-0cbc-4597-8c87-538e744bc90d + - allowed_endpoints: + - path: /resources + method: GET + - path: /resources + method: GET + updated_at: 2000-01-01T00:00:00Z + denied_endpoints: + - path: /denied_resources + method: GET + - path: /denied_resources + method: GET + allowed_iscp_messages: + - type: eos + - type: eos + name: meas:r + created_at: 2000-01-01T00:00:00Z + uuid: 4688a07a-0cbc-4597-8c87-538e744bc90d + uuid: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + properties: + items: + items: + $ref: '#/components/schemas/Role' + type: array + page: + $ref: '#/components/schemas/AuthPage' + required: + - items + - page + title: Roles + type: object + UserAPIToken: + example: + last_used_at: 2000-01-01T00:00:00Z + updated_at: 2000-01-01T00:00:00Z + name: for test + created_at: 2000-01-01T00:00:00Z + id: 1 + scopes: + - allowed_endpoints: + - path: /resources + method: GET + - path: /resources + method: GET + updated_at: 2000-01-01T00:00:00Z + denied_endpoints: + - path: /denied_resources + method: GET + - path: /denied_resources + method: GET + allowed_iscp_messages: + - type: eos + - type: eos + name: meas:r + created_at: 2000-01-01T00:00:00Z + uuid: 4688a07a-0cbc-4597-8c87-538e744bc90d + - allowed_endpoints: + - path: /resources + method: GET + - path: /resources + method: GET + updated_at: 2000-01-01T00:00:00Z + denied_endpoints: + - path: /denied_resources + method: GET + - path: /denied_resources + method: GET + allowed_iscp_messages: + - type: eos + - type: eos + name: meas:r + created_at: 2000-01-01T00:00:00Z + uuid: 4688a07a-0cbc-4597-8c87-538e744bc90d + expired_at: 2000-01-01T00:00:00Z + token: token + properties: + id: + description: APIトークンのID + example: 1 + format: int64 + type: integer + name: + description: APIトークンの名前 + example: for test + type: string + token: + description: APIトークン + example: token + type: string + scopes: + description: スコープ + items: + $ref: '#/components/schemas/Scope' + type: array + last_used_at: + description: 最後に使用された日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + expired_at: + description: 有効期限 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + created_at: + description: 作成日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + updated_at: + description: 最終更新日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + required: + - created_at + - expired_at + - id + - last_used_at + - name + - scopes + - updated_at + type: object + UserAPITokens: + example: + page: + next: true + next_page: 1 + total_count: 1 + prev: true + total_page: 1 + prev_page: 1 + items: + - last_used_at: 2000-01-01T00:00:00Z + updated_at: 2000-01-01T00:00:00Z + name: for test + created_at: 2000-01-01T00:00:00Z + id: 1 + scopes: + - allowed_endpoints: + - path: /resources + method: GET + - path: /resources + method: GET + updated_at: 2000-01-01T00:00:00Z + denied_endpoints: + - path: /denied_resources + method: GET + - path: /denied_resources + method: GET + allowed_iscp_messages: + - type: eos + - type: eos + name: meas:r + created_at: 2000-01-01T00:00:00Z + uuid: 4688a07a-0cbc-4597-8c87-538e744bc90d + - allowed_endpoints: + - path: /resources + method: GET + - path: /resources + method: GET + updated_at: 2000-01-01T00:00:00Z + denied_endpoints: + - path: /denied_resources + method: GET + - path: /denied_resources + method: GET + allowed_iscp_messages: + - type: eos + - type: eos + name: meas:r + created_at: 2000-01-01T00:00:00Z + uuid: 4688a07a-0cbc-4597-8c87-538e744bc90d + expired_at: 2000-01-01T00:00:00Z + token: token + - last_used_at: 2000-01-01T00:00:00Z + updated_at: 2000-01-01T00:00:00Z + name: for test + created_at: 2000-01-01T00:00:00Z + id: 1 + scopes: + - allowed_endpoints: + - path: /resources + method: GET + - path: /resources + method: GET + updated_at: 2000-01-01T00:00:00Z + denied_endpoints: + - path: /denied_resources + method: GET + - path: /denied_resources + method: GET + allowed_iscp_messages: + - type: eos + - type: eos + name: meas:r + created_at: 2000-01-01T00:00:00Z + uuid: 4688a07a-0cbc-4597-8c87-538e744bc90d + - allowed_endpoints: + - path: /resources + method: GET + - path: /resources + method: GET + updated_at: 2000-01-01T00:00:00Z + denied_endpoints: + - path: /denied_resources + method: GET + - path: /denied_resources + method: GET + allowed_iscp_messages: + - type: eos + - type: eos + name: meas:r + created_at: 2000-01-01T00:00:00Z + uuid: 4688a07a-0cbc-4597-8c87-538e744bc90d + expired_at: 2000-01-01T00:00:00Z + token: token + properties: + items: + items: + $ref: '#/components/schemas/UserAPIToken' + type: array + page: + $ref: '#/components/schemas/AuthPage' + required: + - items + - page + type: object + CreateUserAPITokenRequest: + example: + name: for test + expired_at: 2000-01-02T03:04:05Z + properties: + name: + description: APIトークンの名前 + example: for test + maxLength: 256 + minLength: 1 + type: string + expired_at: + description: 有効期限 + example: 2000-01-02T03:04:05Z + format: date-time + type: string + required: + - name + type: object + UpdateUserAPITokenRequest: + example: + name: for test + properties: + name: + description: APIトークンの名前 + example: for test + maxLength: 256 + type: string + required: + - name + type: object + Project: + example: + updated_at: 2000-01-01T00:00:00Z + parent_group_uuid: 0932ff17-567c-4ac8-a40d-136357890f7b + name: intdash + created_at: 2000-01-01T00:00:00Z + uuid: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + properties: + uuid: + description: プロジェクトのUUID + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + type: string + parent_group_uuid: + description: 親グループのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + name: + description: プロジェクトの名前 + example: intdash + type: string + created_at: + description: 作成日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + updated_at: + description: 最終更新日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + required: + - created_at + - group_uuid + - name + - updated_at + - uuid + type: object + Projects: + example: + page: + next: true + next_page: 1 + total_count: 1 + prev: true + total_page: 1 + prev_page: 1 + items: + - updated_at: 2000-01-01T00:00:00Z + parent_group_uuid: 0932ff17-567c-4ac8-a40d-136357890f7b + name: intdash + created_at: 2000-01-01T00:00:00Z + uuid: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + - updated_at: 2000-01-01T00:00:00Z + parent_group_uuid: 0932ff17-567c-4ac8-a40d-136357890f7b + name: intdash + created_at: 2000-01-01T00:00:00Z + uuid: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + properties: + items: + items: + $ref: '#/components/schemas/Project' + type: array + page: + $ref: '#/components/schemas/AuthPage' + required: + - items + title: Projects + type: object + Group: + example: + updated_at: 2000-01-01T00:00:00Z + parent_group_uuid: 76b35658-9d77-40d0-8ef8-5c3f520db30d + name: intdash + created_at: 2000-01-01T00:00:00Z + uuid: 0932ff17-567c-4ac8-a40d-136357890f7b + properties: + uuid: + description: グループのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + parent_group_uuid: + description: 親グループのUUID。nullの場合、親グループは存在しません。 + example: 76b35658-9d77-40d0-8ef8-5c3f520db30d + nullable: true + type: string + name: + description: グループの名前 + example: intdash + type: string + created_at: + description: 作成日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + updated_at: + description: 最終更新日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + required: + - created_at + - name + - parent_group_uuid + - updated_at + - uuid + type: object + Groups: + example: + page: + next: true + next_page: 1 + total_count: 1 + prev: true + total_page: 1 + prev_page: 1 + items: + - updated_at: 2000-01-01T00:00:00Z + parent_group_uuid: 76b35658-9d77-40d0-8ef8-5c3f520db30d + name: intdash + created_at: 2000-01-01T00:00:00Z + uuid: 0932ff17-567c-4ac8-a40d-136357890f7b + - updated_at: 2000-01-01T00:00:00Z + parent_group_uuid: 76b35658-9d77-40d0-8ef8-5c3f520db30d + name: intdash + created_at: 2000-01-01T00:00:00Z + uuid: 0932ff17-567c-4ac8-a40d-136357890f7b + properties: + items: + items: + $ref: '#/components/schemas/Group' + type: array + page: + $ref: '#/components/schemas/AuthPage' + required: + - items + title: Groups + type: object + APITokenIntrospectionRequest: + example: + token: message.signature + properties: + token: + description: APIトークン + example: message.signature + type: string + required: + - token + title: APITokenIntrospectionRequest + type: object + APITokenIntrospectionResponse: + example: + tenant_id: 0 + user_uuid: 0932ff17-567c-4ac8-a40d-136357890f7b + active: true + created_at: 2000-01-02T03:04:05Z + scopes: + - allowed_endpoints: + - path: /resources + method: GET + - path: /resources + method: GET + updated_at: 2000-01-01T00:00:00Z + denied_endpoints: + - path: /denied_resources + method: GET + - path: /denied_resources + method: GET + allowed_iscp_messages: + - type: eos + - type: eos + name: meas:r + created_at: 2000-01-01T00:00:00Z + uuid: 4688a07a-0cbc-4597-8c87-538e744bc90d + - allowed_endpoints: + - path: /resources + method: GET + - path: /resources + method: GET + updated_at: 2000-01-01T00:00:00Z + denied_endpoints: + - path: /denied_resources + method: GET + - path: /denied_resources + method: GET + allowed_iscp_messages: + - type: eos + - type: eos + name: meas:r + created_at: 2000-01-01T00:00:00Z + uuid: 4688a07a-0cbc-4597-8c87-538e744bc90d + expired_at: 2000-01-02T03:04:05Z + properties: + active: + description: '`true` の場合、このAPIトークンは有効です。' + example: true + type: boolean + tenant_id: + description: テナントID。デフォルトテナント以外を対象とする場合にのみ返されます。 + format: int64 + type: integer + user_uuid: + description: ユーザーのUUID + example: 0932ff17-567c-4ac8-a40d-136357890f7b + type: string + scopes: + description: APIトークンが認可されているスコープ + items: + $ref: '#/components/schemas/Scope' + type: array + expired_at: + description: APIトークンの有効期限 + example: 2000-01-02T03:04:05Z + format: date-time + type: string + created_at: + description: APIトークンの作成日時 + example: 2000-01-02T03:04:05Z + format: date-time + type: string + required: + - active + type: object + GroupName: + description: グループの名前 + example: my-group + maxLength: 255 + minLength: 1 + type: string + CreateGroupRequest: + example: + name: my-group + properties: + name: + description: グループの名前 + example: my-group + maxLength: 255 + minLength: 1 + type: string + required: + - name + type: object + UpdateGroupRequest: + example: + name: my-group + properties: + name: + description: グループの名前 + example: my-group + maxLength: 255 + minLength: 1 + type: string + type: object + Member: + example: + emails: + - address: intdash@example.com + updated_at: 2000-01-01T00:00:00Z + verified: false + created_at: 2000-01-01T00:00:00Z + id: 1 + - address: intdash@example.com + updated_at: 2000-01-01T00:00:00Z + verified: false + created_at: 2000-01-01T00:00:00Z + id: 1 + user_uuid: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + updated_at: 2000-01-01T00:00:00Z + is_owner: true + role_uuids: + - 59530a1d-4491-4b24-b6c6-121b4c24bb21 + - 59530a1d-4491-4b24-b6c6-121b4c24bb21 + name: username + created_at: 2000-01-01T00:00:00Z + inherited_role_uuids: + - b344c708-40bc-4088-8868-2701c41d9dc2 + - b344c708-40bc-4088-8868-2701c41d9dc2 + properties: + user_uuid: + description: メンバーのユーザーUUID + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + type: string + name: + description: メンバーの名前 + example: username + type: string + emails: + items: + $ref: '#/components/schemas/UserEmail' + type: array + inherited_role_uuids: + description: 親グループから継承されたメンバーのロールUUID + items: + example: b344c708-40bc-4088-8868-2701c41d9dc2 + type: string + type: array + role_uuids: + description: メンバーのロールUUID + items: + example: 59530a1d-4491-4b24-b6c6-121b4c24bb21 + type: string + type: array + is_owner: + description: '`true` の場合、このメンバーはオーナーです。' + type: boolean + created_at: + description: 作成日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + updated_at: + description: 最終更新日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + required: + - created_at + - emails + - inherited_role_uuids + - is_owner + - name + - role_uuids + - updated_at + - user_uuid + type: object + Members: + example: + page: + next: true + next_page: 1 + total_count: 1 + prev: true + total_page: 1 + prev_page: 1 + items: + - emails: + - address: intdash@example.com + updated_at: 2000-01-01T00:00:00Z + verified: false + created_at: 2000-01-01T00:00:00Z + id: 1 + - address: intdash@example.com + updated_at: 2000-01-01T00:00:00Z + verified: false + created_at: 2000-01-01T00:00:00Z + id: 1 + user_uuid: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + updated_at: 2000-01-01T00:00:00Z + is_owner: true + role_uuids: + - 59530a1d-4491-4b24-b6c6-121b4c24bb21 + - 59530a1d-4491-4b24-b6c6-121b4c24bb21 + name: username + created_at: 2000-01-01T00:00:00Z + inherited_role_uuids: + - b344c708-40bc-4088-8868-2701c41d9dc2 + - b344c708-40bc-4088-8868-2701c41d9dc2 + - emails: + - address: intdash@example.com + updated_at: 2000-01-01T00:00:00Z + verified: false + created_at: 2000-01-01T00:00:00Z + id: 1 + - address: intdash@example.com + updated_at: 2000-01-01T00:00:00Z + verified: false + created_at: 2000-01-01T00:00:00Z + id: 1 + user_uuid: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + updated_at: 2000-01-01T00:00:00Z + is_owner: true + role_uuids: + - 59530a1d-4491-4b24-b6c6-121b4c24bb21 + - 59530a1d-4491-4b24-b6c6-121b4c24bb21 + name: username + created_at: 2000-01-01T00:00:00Z + inherited_role_uuids: + - b344c708-40bc-4088-8868-2701c41d9dc2 + - b344c708-40bc-4088-8868-2701c41d9dc2 + properties: + items: + items: + $ref: '#/components/schemas/Member' + type: array + page: + $ref: '#/components/schemas/AuthPage' + required: + - items + - page + type: object + RoleUUIDs: + description: ユーザーに割り当てるロールのUUID。オーナーのロールUUIDは変更できません。 + items: + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + maxLength: 36 + type: string + type: array + AddGroupMemberRequest: + example: + user_email_address: intdash@example.com + user_uuid: 0932ff17-567c-4ac8-a40d-136357890f7b + role_uuids: + - 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + - 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + properties: + user_email_address: + description: ユーザーのメールアドレス。`user_uuid` といずれか必須です。`user_uuid` を優先します。 + example: intdash@example.com + maxLength: 512 + type: string + user_uuid: + description: ユーザーのUUID。`user_email_address` といずれか必須です。`user_uuid` を優先します。 + example: 0932ff17-567c-4ac8-a40d-136357890f7b + maxLength: 36 + type: string + role_uuids: + description: ユーザーに割り当てるロールのUUID。オーナーのロールUUIDは変更できません。 + items: + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + maxLength: 36 + type: string + type: array + required: + - role_uuids + type: object + ProjectName: + description: プロジェクトの名前 + example: my-project + maxLength: 255 + minLength: 1 + type: string + CreateProjectRequest: + example: + name: my-project + properties: + name: + description: プロジェクトの名前 + example: my-project + maxLength: 255 + minLength: 1 + type: string + required: + - name + type: object + UpdateProjectRequest: + example: + name: my-project + properties: + name: + description: プロジェクトの名前 + example: my-project + maxLength: 255 + minLength: 1 + type: string + required: + - name + type: object + ProjectEdge: + example: + updated_at: 2000-01-01T00:00:00Z + name: edge-name + nickname: Edge Nickname + created_at: 2000-01-01T00:00:00Z + edge_uuid: 756c0e45-21e3-4942-92d9-4ef44a0add26 + properties: + edge_uuid: + description: エッジのUUID + example: 756c0e45-21e3-4942-92d9-4ef44a0add26 + type: string + name: + description: エッジの名前 + example: edge-name + type: string + nickname: + description: プロジェクトにおけるエッジのニックネーム + example: Edge Nickname + type: string + created_at: + description: 作成日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + updated_at: + description: 最終更新日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + required: + - created_at + - edge_uuid + - name + - nickname + - updated_at + type: object + ProjectEdges: + example: + page: + next: true + next_page: 1 + total_count: 1 + prev: true + total_page: 1 + prev_page: 1 + items: + - updated_at: 2000-01-01T00:00:00Z + name: edge-name + nickname: Edge Nickname + created_at: 2000-01-01T00:00:00Z + edge_uuid: 756c0e45-21e3-4942-92d9-4ef44a0add26 + - updated_at: 2000-01-01T00:00:00Z + name: edge-name + nickname: Edge Nickname + created_at: 2000-01-01T00:00:00Z + edge_uuid: 756c0e45-21e3-4942-92d9-4ef44a0add26 + properties: + items: + items: + $ref: '#/components/schemas/ProjectEdge' + type: array + page: + $ref: '#/components/schemas/AuthPage' + required: + - items + - page + title: ProjectEdges + type: object + ProjectEdgeNickname: + description: プロジェクトにおけるエッジのニックネーム + example: Edge Nickname + maxLength: 255 + minLength: 1 + type: string + AddProjectEdgeRequest: + example: + edge_name: edge-name + nickname: Edge Nickname + properties: + edge_name: + description: 追加したいエッジの名前 + example: edge-name + maxLength: 255 + minLength: 1 + type: string + nickname: + description: プロジェクトにおけるエッジのニックネーム + example: Edge Nickname + maxLength: 255 + minLength: 1 + type: string + required: + - edge_name + - nickname + type: object + UpdateProjectEdgeRequest: + example: + nickname: Edge Nickname + properties: + nickname: + description: プロジェクトにおけるエッジのニックネーム + example: Edge Nickname + maxLength: 255 + minLength: 1 + type: string + type: object + AddProjectMemberRequest: + example: + user_email_address: intdash@example.com + user_uuid: 0932ff17-567c-4ac8-a40d-136357890f7b + role_uuids: + - 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + - 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + properties: + user_email_address: + description: ユーザーのメールアドレス。`user_uuid` といずれか必須です。`user_uuid` を優先します。 + example: intdash@example.com + maxLength: 512 + type: string + user_uuid: + description: ユーザーのUUID。`user_email_address` といずれか必須です。`user_uuid` を優先します。 + example: 0932ff17-567c-4ac8-a40d-136357890f7b + maxLength: 36 + type: string + role_uuids: + description: ユーザーに割り当てるロールのUUID + items: + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + maxLength: 36 + type: string + type: array + required: + - role_uuids + type: object + UpdateProjectMemberRequest: + example: + role_uuids: + - 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + - 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + properties: + role_uuids: + description: ユーザーに割り当てるロールのUUID。オーナーのロールUUIDは変更できません。 + items: + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + maxLength: 36 + type: string + type: array + type: object + UpdateGroupMemberRequest: + example: + role_uuids: + - 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + - 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + properties: + role_uuids: + description: ユーザーに割り当てるロールのUUID。オーナーのロールUUIDは変更できません。 + items: + example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee + maxLength: 36 + type: string + type: array + type: object + Scopes: + example: + page: + next: true + next_page: 1 + total_count: 1 + prev: true + total_page: 1 + prev_page: 1 + items: + - allowed_endpoints: + - path: /resources + method: GET + - path: /resources + method: GET + updated_at: 2000-01-01T00:00:00Z + denied_endpoints: + - path: /denied_resources + method: GET + - path: /denied_resources + method: GET + allowed_iscp_messages: + - type: eos + - type: eos + name: meas:r + created_at: 2000-01-01T00:00:00Z + uuid: 4688a07a-0cbc-4597-8c87-538e744bc90d + - allowed_endpoints: + - path: /resources + method: GET + - path: /resources + method: GET + updated_at: 2000-01-01T00:00:00Z + denied_endpoints: + - path: /denied_resources + method: GET + - path: /denied_resources + method: GET + allowed_iscp_messages: + - type: eos + - type: eos + name: meas:r + created_at: 2000-01-01T00:00:00Z + uuid: 4688a07a-0cbc-4597-8c87-538e744bc90d + properties: + items: + items: + $ref: '#/components/schemas/Scope' + type: array + page: + $ref: '#/components/schemas/AuthPage' + required: + - items + - page + title: Scopes + type: object + EdgeConnectionEdge: + example: + internal: true + last_login_at: last_login_at + protected: true + updated_at: updated_at + last_lived_at: last_lived_at + name: name + nickname: nickname + description: description + created_at: created_at + disabled: true + type: user + uuid: uuid + nullable: true + properties: + uuid: + description: エッジのUUID + type: string + name: + description: エッジの名前 + type: string + nickname: + description: エッジの表示名 + type: string + description: + description: エッジの説明 + type: string + disabled: + description: |- + * `true` : このエッジは無効化されています。 + * `false` : このエッジは有効です。 + type: boolean + internal: + description: |- + * `true` : このエッジは内部エッジ(システム内部で使用される特別なエッジ)です。 + このエッジの変更や削除はできません。 + * `false` : このエッジは内部エッジではありません。 + type: boolean + protected: + description: |- + * `true` : このエッジは保護されています。このエッジの変更や削除はできません。 + * `false` : このエッジは保護されていません。 + type: boolean + type: + description: エッジのタイプ + enum: + - user + - device + type: string + last_login_at: + description: エッジが最後にログインした日時 + type: string + last_lived_at: + description: サーバーがこのエッジ接続を確認できた最後の日時。 エッジとサーバーがWebSocketで接続されている間、この値は数秒おきに最新の日時に更新されます。 + WebSocketが切断されると、それ以上更新されなくなります。 更新は数秒おきであるため、WebSocketが切断された場合に その切断の時刻が正確に記録されるわけではありません。 + type: string + created_at: + description: エッジが作成された日時 + type: string + updated_at: + description: エッジの最終更新日時 + type: string + required: + - created_at + - description + - disabled + - internal + - last_lived_at + - last_login_at + - name + - nickname + - protected + - type + - updated_at + - uuid + type: object + EdgeConnectionItem: + example: + edge: + internal: true + last_login_at: last_login_at + protected: true + updated_at: updated_at + last_lived_at: last_lived_at + name: name + nickname: nickname + description: description + created_at: created_at + disabled: true + type: user + uuid: uuid + updated_at: updated_at + last_lived_at: last_lived_at + created_at: created_at + uuid: uuid + properties: + uuid: + description: エッジ接続のUUID + type: string + last_lived_at: + description: サーバーがこのエッジ接続を確認できた最後の日時。 エッジとサーバーがWebSocketで接続されている間、この値は数秒おきに最新の日時に更新されます。 + WebSocketが切断されると、それ以上更新されなくなります。 更新は数秒おきであるため、WebSocketが切断された場合に その切断の時刻が正確に記録されるわけではありません。 + type: string + edge: + $ref: '#/components/schemas/EdgeConnectionEdge' + created_at: + description: エッジ接続が作成された日時 + type: string + updated_at: + description: エッジ接続の最終更新日時 + type: string + required: + - created_at + - edge + - last_lived_at + - updated_at + - uuid + type: object + EdgeConnectionList: + example: + page: + next: next + last: true + previous: previous + total_count: 0 + first: true + items: + - edge: + internal: true + last_login_at: last_login_at + protected: true + updated_at: updated_at + last_lived_at: last_lived_at + name: name + nickname: nickname + description: description + created_at: created_at + disabled: true + type: user + uuid: uuid + updated_at: updated_at + last_lived_at: last_lived_at + created_at: created_at + uuid: uuid + - edge: + internal: true + last_login_at: last_login_at + protected: true + updated_at: updated_at + last_lived_at: last_lived_at + name: name + nickname: nickname + description: description + created_at: created_at + disabled: true + type: user + uuid: uuid + updated_at: updated_at + last_lived_at: last_lived_at + created_at: created_at + uuid: uuid + properties: + items: + items: + $ref: '#/components/schemas/EdgeConnectionItem' + type: array + page: + $ref: '#/components/schemas/EdgeConnectionList_page' + required: + - items + - page + type: object + EdgeConnectionDownstream: + properties: + stream_id: + description: ダウンストリームのストリームID + type: integer + src_edge_uuid: + description: ダウンストリームの送信元エッジUUID + type: string + dst_edge_uuid: + description: ダウンストリームの宛先エッジUUID + type: string + last_received_at: + description: ダウンストリームで最後にデータポイントが受信された日時。 実際の最後のデータポイントの受信よりも最大で10秒後の値となる場合があります。 + type: string + received_close_request: + description: |- + * `true` : このダウンストリームについてのclose requestを受信済みです。 + * `false` : このダウンストリームについてのclose requestを受信していません。 + type: boolean + created_at: + description: ダウンストリームが作成された日時 + type: string + updated_at: + description: ダウンストリームの最終更新日時 + type: string + required: + - created_at + - dst_edge_uuid + - last_received_at + - received_close_request + - src_edge_uuid + - stream_id + - updated_at + type: object + EdgeConnectionUpstream: + properties: + stream_id: + description: アップストリームのストリームID + type: integer + measurement_uuid: + description: アップストリームの計測UUID + type: string + src_edge_uuid: + description: アップストリームの送信元エッジUUID + type: string + resend: + description: |- + * `true` : このアップストリームは再送です。 + * `false` : このアップストリームは再送ではありません。 + type: boolean + store: + description: |- + * `true` : このアップストリームで送信されたデータポイントはサーバーに保存されます。 + * `false` : このアップストリームで送信されたデータポイントはサーバーに保存されません。 + type: boolean + last_received_at: + description: アップストリームで最後にデータポイントが送信された日時。 実際の最後のデータポイント送信よりも最大で10秒後の値となる場合があります。 + type: string + received_close_request: + description: |- + * `true` : このアップストリームについてのclose requestを受信済みです。 + * `false` : このアップストリームについてのclose requestは受信していません。 + type: boolean + created_at: + description: アップストリームが作成された日時 + type: string + updated_at: + description: アップストリームの最終更新日時 + type: string + required: + - created_at + - last_received_at + - measurement_uuid + - received_close_request + - resend + - src_edge_uuid + - store + - stream_id + - updated_at + type: object + EdgeConnection: + allOf: + - $ref: '#/components/schemas/EdgeConnectionItem' + - $ref: '#/components/schemas/EdgeConnection_allOf' + ISCPTicket: + example: + ticket: VjVL9o7cj45Z1WJX-dPVZ0Z6i80xAfs6.AFVDLS0-iPfzKQN3m7j_pGpU7XSwliWopn9QvGtHf2Y= + created_at: 2000-01-23T04:56:07.000+00:00 + expired_at: 2000-01-23T04:56:07.000+00:00 + properties: + ticket: + description: iSCPチケット + example: VjVL9o7cj45Z1WJX-dPVZ0Z6i80xAfs6.AFVDLS0-iPfzKQN3m7j_pGpU7XSwliWopn9QvGtHf2Y= + type: string + expired_at: + description: 有効期限 + format: date-time + type: string + created_at: + description: 作成日時 + format: date-time + type: string + required: + - created_at + - expired_at + - ticket + type: object + DataPoint: + discriminator: + mapping: + '*': '#/components/schemas/DataPointNormal' + intdash/measurement/get/data/error: '#/components/schemas/DataPointError' + propertyName: data_id + oneOf: + - $ref: '#/components/schemas/DataPointNormal' + - $ref: '#/components/schemas/DataPointError' + DataPointJSONLine: + description: "JSONLines形式で返却します。一行で表現されるJSONスキーマは [DataPoint Model](https://docs.intdash.jp/api/intdash-api/main/spec_public.html#tag/meas_data_model)\ + \ を参照ください。" + format: binary + type: string + DataPointDataID: + description: データID + example: + data_id: data_id + data_type: data_type + properties: + data_type: + description: データタイプ + example: data_type + type: string + data_id: + description: データID + example: data_id + type: string + required: + - data_id + - data_type + type: object + DataPointDataIDs: + example: + items: + - data_id: data_id + data_type: data_type + - data_id: data_id + data_type: data_type + properties: + items: + items: + $ref: '#/components/schemas/DataPointDataID' + type: array + required: + - items + type: object + DataID: + description: データID + example: + data_id: data_id + data_type: 0 + channel: 6 + properties: + data_type: + description: データタイプ + format: int32 + type: integer + channel: + description: チャンネル + format: int64 + type: integer + data_id: + description: データID + type: string + required: + - channel + - data_id + - data_type + type: object + DataIDs: + example: + items: + - data_id: data_id + data_type: 0 + channel: 6 + - data_id: data_id + data_type: 0 + channel: 6 + properties: + items: + items: + $ref: '#/components/schemas/DataID' + type: array + required: + - items + type: object + MeasurementBaseTimeType: + description: 計測の基準時刻タイプ + enum: + - edge_rtc + - ntp + - gps + - api_first_received + - volatile + - manual + - undefined + example: edge_rtc + type: string + MeasurementSequencesSummary: + example: + received_chunks_ratio: 0.5 + expected_data_points: 123456789 + received_data_points: 123456789 + status: measuring + properties: + received_chunks_ratio: + description: 計測シーケンス回収率。計測内に含まれる計測シーケンスのうち、 サーバーへの保存が完了した計測シーケンスの割合です。 + example: 0.5 + maximum: 1 + minimum: 0 + type: number + received_data_points: + description: サーバーが受信したデータポイントの数。符号無し64bit整数。 + example: 123456789 + format: int64 + maximum: 18446744073709552000 + minimum: 0 + type: integer + expected_data_points: + description: サーバーが受信することが想定されるデータポイントの総数(既に受信済みのデータポイントを含む)。符号無し64bit整数。 + example: 123456789 + format: int64 + maximum: 18446744073709552000 + minimum: 0 + type: integer + status: + description: |- + 計測のステータス: + - ready + - 計測準備中 + - measuring + - 計測中 + - resending + - 再送中。計測(エッジにおけるデータの取得)は終了しましたが、エッジにデータが残っており、サーバーに再送中です。 + - finished(非推奨。段階的にcompletedへ移行) + - 完了。サーバーへのデータの回収が完了しています。 + - completed + - 完了。サーバーへのデータの回収が完了しています。 + enum: + - ready + - measuring + - resending + - finished + - completed + example: measuring + type: string + type: object + MeasurementMarkerBase: + properties: + uuid: + description: 計測マーカーのUUID + type: string + name: + description: 計測マーカーの名前 + type: string + description: + description: 計測マーカーの説明 + type: string + type: + description: |- + 計測マーカーのタイプ + - `point` : ポイントマーカー + - `range` : 範囲マーカー + enum: + - point + - range + type: string + tag: + description: 計測マーカーに付与されたタグ + type: object + created_at: + description: 計測マーカーの作成日時 + type: string + created_by: + description: 計測マーカー作成者 + type: string + updated_at: + description: 計測マーカーの最終更新日時 + type: string + updated_by: + description: 計測マーカーの最終更新者 + type: string + required: + - created_at + - created_by + - description + - detail + - name + - tag + - type + - updated_at + - updated_by + - uuid + type: object + MeasurementMarkerDetailPoint: + properties: + occurred_elapsed_time: + description: この計測マーカーの時刻。計測の基準時刻からの経過時間(マイクロ秒)で表します。 + format: int64 + type: integer + type: object + MeasurementMarkerPoint: + allOf: + - $ref: '#/components/schemas/MeasurementMarkerBase' + - $ref: '#/components/schemas/MeasurementMarkerPoint_allOf' + MeasurementMarkerDetailRange: + properties: + start_elapsed_time: + description: この計測マーカーの始点。この計測の基準時刻からの経過時間(マイクロ秒)で表示します。 + format: int64 + type: integer + end_elapsed_time: + description: この計測マーカーの始点。この計測の基準時刻からの経過時間(マイクロ秒)で表示します。 + format: int64 + type: integer + type: object + MeasurementMarkerRange: + allOf: + - $ref: '#/components/schemas/MeasurementMarkerBase' + - $ref: '#/components/schemas/MeasurementMarkerRange_allOf' + MeasurementMarker: + discriminator: + mapping: + point: '#/components/schemas/MeasurementMarkerPoint' + range: '#/components/schemas/MeasurementMarkerRange' + propertyName: type + oneOf: + - $ref: '#/components/schemas/MeasurementMarkerPoint' + - $ref: '#/components/schemas/MeasurementMarkerRange' + Measurement: + example: + basetime_type: edge_rtc + description: description of measurement + created_at: 2017-02-11T01:23:45Z + completed: true + processed_ratio: 0.9 + basetime: basetime + sequences: + received_chunks_ratio: 0.5 + expected_data_points: 123456789 + received_data_points: 123456789 + status: measuring + uuid: 2cc7de37-6f71-4458-887e-10e618a6fcfb + duration: 100000000 + protected: true + updated_at: 2017-02-11T01:23:45Z + max_elapsed_time: 100000000 + name: meas1 + ended: true + markers: + - null + - null + edge_uuid: 00de1861-6614-4435-af07-da9b4338d57c + status: measuring + properties: + uuid: + description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + type: string + name: + description: 計測の名前 + example: meas1 + type: string + description: + description: 計測の説明 + example: description of measurement + type: string + basetime: + description: 計測の基準時刻(RFC3339形式) + type: string + basetime_type: + $ref: '#/components/schemas/MeasurementBaseTimeType' + edge_uuid: + description: エッジのUUID + example: 00de1861-6614-4435-af07-da9b4338d57c + type: string + duration: + deprecated: true + description: 計測時間( `max_elapsed_time` を使用してください) + example: 100000000 + format: int64 + type: integer + max_elapsed_time: + description: 計測時間(マイクロ秒) + example: 100000000 + format: int64 + type: integer + completed: + description: '`true` の場合、この計測はサーバーへのデータの回収が完了しています。' + example: true + type: boolean + protected: + deprecated: true + description: |- + `true` の場合、計測は保護されています。保護されている計測は削除できません。 + 保護されている計測を削除したい場合は、まず保護を解除してください。 + example: true + type: boolean + sequences: + $ref: '#/components/schemas/MeasurementSequencesSummary' + markers: + items: + $ref: '#/components/schemas/MeasurementMarker' + type: array + created_at: + description: 計測の作成日時 + example: 2017-02-11T01:23:45Z + format: date-time + type: string + updated_at: + description: 計測の最終更新日時 + example: 2017-02-11T01:23:45Z + format: date-time + type: string + processed_ratio: + deprecated: true + description: 代わりに `sequences.received_chunks_ratio` を使用してください。処理済み率を表します。 + example: 0.9 + type: number + ended: + deprecated: true + description: 代わりに `sequences.status` を使用してください。エッジにおいてデータの取得が終了しているかどうかを示します。 + example: true + type: boolean + status: + deprecated: true + description: |- + 代わりに `sequences.status` を使用してください。 + 計測のステータスを表します: + - measuring + - 計測中 + - resending + - 再送中。計測(エッジにおけるデータの取得)は終了しましたが、エッジにデータが残っており、サーバーに再送中です。 + - finished + - 完了。サーバーへのデータの回収が完了しています。 + enum: + - measuring + - resending + - finished + type: string + required: + - basetime + - basetime_type + - created_at + - description + - duration + - edge_uuid + - ended + - name + - processed_ratio + - protected + - received_data_points + - sequences + - status + - updated_at + - uuid + PageDetail: + example: + next: next + last: true + previous: previous + total_count: 0 + first: true + properties: + total_count: + description: 取得対象の総件数 + format: int64 + type: integer + first: + description: '`true` の場合、現在のページが最初のページです。' + type: boolean + last: + description: '`true` の場合、現在のページが最後のページです。' + type: boolean + next: + description: 次のページのパス。現在のページが最後のページの場合は空文字列です。 + type: string + previous: + description: 次のページのパス。現在のページが最後のページの場合は空文字列です。 + type: string + required: + - first + - last + - next + - previous + - total_count + type: object + Measurements: + example: + page: + next: next + last: true + previous: previous + total_count: 0 + first: true + items: + - basetime_type: edge_rtc + description: description of measurement + created_at: 2017-02-11T01:23:45Z + completed: true + processed_ratio: 0.9 + basetime: basetime + sequences: + received_chunks_ratio: 0.5 + expected_data_points: 123456789 + received_data_points: 123456789 + status: measuring + uuid: 2cc7de37-6f71-4458-887e-10e618a6fcfb + duration: 100000000 + protected: true + updated_at: 2017-02-11T01:23:45Z + max_elapsed_time: 100000000 + name: meas1 + ended: true + markers: + - null + - null + edge_uuid: 00de1861-6614-4435-af07-da9b4338d57c + status: measuring + - basetime_type: edge_rtc + description: description of measurement + created_at: 2017-02-11T01:23:45Z + completed: true + processed_ratio: 0.9 + basetime: basetime + sequences: + received_chunks_ratio: 0.5 + expected_data_points: 123456789 + received_data_points: 123456789 + status: measuring + uuid: 2cc7de37-6f71-4458-887e-10e618a6fcfb + duration: 100000000 + protected: true + updated_at: 2017-02-11T01:23:45Z + max_elapsed_time: 100000000 + name: meas1 + ended: true + markers: + - null + - null + edge_uuid: 00de1861-6614-4435-af07-da9b4338d57c + status: measuring + properties: + items: + items: + $ref: '#/components/schemas/Measurement' + type: array + page: + $ref: '#/components/schemas/PageDetail' + required: + - items + - page + type: object + MeasCreate: + example: + protected: true + basetime_type: edge_rtc + name: name + description: description + basetime: 2000-01-23T04:56:07.000+00:00 + edge_uuid: edge_uuid + properties: + name: + description: 計測の名前 + type: string + description: + description: 計測の説明 + type: string + basetime: + description: 計測の基準時刻(計測が開始された時刻) + format: date-time + type: string + basetime_type: + $ref: '#/components/schemas/MeasurementBaseTimeType' + edge_uuid: + description: この計測に関連付けられたエッジのUUID + type: string + protected: + deprecated: true + description: '`true` の場合、計測は保護されます。保護されている計測は削除できません。' + type: boolean + required: + - basetime + - basetime_type + - edge_uuid + - protected + MeasReplace: + example: + basetime_type: edge_rtc + name: name + description: description + basetime: 2000-01-23T04:56:07.000+00:00 + properties: + name: + description: 計測の名前 + type: string + description: + description: 計測の説明 + type: string + basetime: + description: 計測の基準時刻 + format: date-time + type: string + basetime_type: + $ref: '#/components/schemas/MeasurementBaseTimeType' + type: object + SequenceSummary: + example: + status: status + properties: + status: + description: 計測のステータス + type: string + required: + - status + type: object + MeasBaseTime: + example: + updated_at: updated_at + created_at: created_at + type: edge_rtc + basetime: basetime + properties: + type: + $ref: '#/components/schemas/MeasurementBaseTimeType' + basetime: + description: 基準時刻(計測が開始された時刻)(RFC3339形式) + type: string + created_at: + description: 基準時刻の作成日時 + type: string + updated_at: + description: 基準時刻の最終更新日時 + type: string + required: + - basetime + - created_at + - type + - updated_at + type: object + MeasBaseTimes: + example: + items: + - updated_at: updated_at + created_at: created_at + type: edge_rtc + basetime: basetime + - updated_at: updated_at + created_at: created_at + type: edge_rtc + basetime: basetime + properties: + items: + items: + $ref: '#/components/schemas/MeasBaseTime' + type: array + required: + - items + type: object + MeasBaseTimePut: + example: + basetime: basetime + properties: + basetime: + description: 計測の基準時刻 + type: string + type: object + MeasurementSectionGetResponse: + example: + processed: true + updated_at: updated_at + created_at: created_at + serial_number: serial_number + properties: + serial_number: + description: 計測セクションのシリアルナンバー + type: string + processed: + description: '`true` の場合、計測セクションは処理済みです。' + type: boolean + created_at: + description: 計測セクションの作成日時。 `processed` が `false` の場合は、この属性はありません。 + type: string + updated_at: + description: 計測セクションの最終更新日時。 `processed` が `false` の場合は、この属性はありません。 + type: string + required: + - created_at + - processed + - serial_number + - updated_at + type: object + MeasurementSectionsGetResponse: + example: + total_count: 0 + items: + - processed: true + updated_at: updated_at + created_at: created_at + serial_number: serial_number + - processed: true + updated_at: updated_at + created_at: created_at + serial_number: serial_number + properties: + items: + items: + $ref: '#/components/schemas/MeasurementSectionGetResponse' + type: array + total_count: + description: 取得対象の総件数 + type: integer + required: + - items + - total_count + type: object + MeasurementSequenceGroup: + example: + updated_at: 2000-01-01T00:00:00Z + expected_data_points: 123456789 + created_at: 2000-01-01T00:00:00Z + uuid: 0b849907-9f04-4c87-b176-b73fb527e935 + final_sequence_number: 10 + properties: + uuid: + description: 計測シーケンスのUUID + example: 0b849907-9f04-4c87-b176-b73fb527e935 + type: string + expected_data_points: + description: この計測シーケンスでサーバーが受信することが想定されるデータポイントの総数 (既に受信済みのデータポイントを含む) 符号なし64bit整数。 + example: 123456789 + format: int64 + maximum: 18446744073709552000 + minimum: 0 + type: integer + final_sequence_number: + description: 最後の計測シーケンスの番号。 + example: 10 + format: int64 + maximum: 4294967295 + minimum: 0 + type: integer + created_at: + description: 作成日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + updated_at: + description: 最終更新日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + required: + - created_at + - updated_at + - uuid + type: object + PageV2: + example: + total_count: 0 + properties: + total_count: + description: 取得対象の総件数 + format: int64 + type: integer + required: + - total_count + type: object + MeasurementSequenceGroups: + example: + page: + total_count: 0 + items: + - updated_at: 2000-01-01T00:00:00Z + expected_data_points: 123456789 + created_at: 2000-01-01T00:00:00Z + uuid: 0b849907-9f04-4c87-b176-b73fb527e935 + final_sequence_number: 10 + - updated_at: 2000-01-01T00:00:00Z + expected_data_points: 123456789 + created_at: 2000-01-01T00:00:00Z + uuid: 0b849907-9f04-4c87-b176-b73fb527e935 + final_sequence_number: 10 + properties: + items: + items: + $ref: '#/components/schemas/MeasurementSequenceGroup' + type: array + page: + $ref: '#/components/schemas/PageV2' + required: + - items + - page + type: object + MeasurementSequenceGroupReplace: + example: + expected_data_points: 123456789 + final_sequence_number: 10 + properties: + expected_data_points: + description: この計測シーケンスでサーバーが受信することが想定されるデータポイントの総数 (既に受信済みのデータポイントを含む) 符号なし64bit整数。 + example: 123456789 + format: int64 + maximum: 18446744073709552000 + minimum: 0 + type: integer + final_sequence_number: + description: 最後の計測シーケンスの番号 + example: 10 + format: int64 + maximum: 4294967295 + minimum: 0 + type: integer + type: object + CreateMeasurementChunksResult: + description: シーケンスチャンクの登録結果 + example: + total_count: 1 + items: + - sequence_number: 1 + result: ok + - sequence_number: 1 + result: ok + properties: + items: + description: 登録結果のリスト + items: + $ref: '#/components/schemas/CreateMeasurementChunksResult_items_inner' + type: array + total_count: + description: 登録結果の総件数 + example: 1 + format: int64 + type: integer + required: + - items + - total_count + type: object + MeasurementJobStatus: + description: ジョブのステータス + enum: + - ready + - processing + - succeeded + - failed + - cancelled + type: string + MeasurementJob: + example: + updated_at: updated_at + meas_uuid: meas_uuid + file_name: file_name + created_at: created_at + message: message + uuid: uuid + measurement: + basetime_type: edge_rtc + description: description of measurement + created_at: 2017-02-11T01:23:45Z + completed: true + processed_ratio: 0.9 + basetime: basetime + sequences: + received_chunks_ratio: 0.5 + expected_data_points: 123456789 + received_data_points: 123456789 + status: measuring + uuid: 2cc7de37-6f71-4458-887e-10e618a6fcfb + duration: 100000000 + protected: true + updated_at: 2017-02-11T01:23:45Z + max_elapsed_time: 100000000 + name: meas1 + ended: true + markers: + - null + - null + edge_uuid: 00de1861-6614-4435-af07-da9b4338d57c + status: measuring + status: null + properties: + uuid: + description: ジョブのUUID + type: string + meas_uuid: + deprecated: true + description: 計測のUUID + type: string + measurement: + $ref: '#/components/schemas/Measurement' + status: + $ref: '#/components/schemas/MeasurementJobStatus' + message: + description: |- + ジョブの結果を表すメッセージ。 ジョブのステータスが `failed` の場合、メッセージが以下の形式で表示されます。 + + `::::` + + 行番号や列番号が不明の場合は `0` が出力されます。 + * ex.1 `2:1:time:1539263580:A time must be after the base_time\: BaseTime=2018-10-11 13\:13\:03 +0000 UTC` + * ex.2 `4:0:::Wrong number of fields` + * ex.3 `0:0:::Unexpected Error` + + `:` と `\` はエスケープされ、 `\:` と `\\` として出力されます。 + type: string + file_name: + description: ジョブの対象のファイル名。 同じ日に同じ名前のファイルがアップロードされた場合は、ランダムな接頭辞が付与されます。 + type: string + created_at: + description: ジョブの作成日時 + type: string + updated_at: + description: ジョブの最終更新日時 + type: string + required: + - created_at + - file_name + - meas_uuid + - measurement + - message + - status + - updated_at + - uuid + type: object + MeasurementJobs: + example: + page: + next: next + last: true + previous: previous + total_count: 0 + first: true + items: + - updated_at: updated_at + meas_uuid: meas_uuid + file_name: file_name + created_at: created_at + message: message + uuid: uuid + measurement: + basetime_type: edge_rtc + description: description of measurement + created_at: 2017-02-11T01:23:45Z + completed: true + processed_ratio: 0.9 + basetime: basetime + sequences: + received_chunks_ratio: 0.5 + expected_data_points: 123456789 + received_data_points: 123456789 + status: measuring + uuid: 2cc7de37-6f71-4458-887e-10e618a6fcfb + duration: 100000000 + protected: true + updated_at: 2017-02-11T01:23:45Z + max_elapsed_time: 100000000 + name: meas1 + ended: true + markers: + - null + - null + edge_uuid: 00de1861-6614-4435-af07-da9b4338d57c + status: measuring + status: null + - updated_at: updated_at + meas_uuid: meas_uuid + file_name: file_name + created_at: created_at + message: message + uuid: uuid + measurement: + basetime_type: edge_rtc + description: description of measurement + created_at: 2017-02-11T01:23:45Z + completed: true + processed_ratio: 0.9 + basetime: basetime + sequences: + received_chunks_ratio: 0.5 + expected_data_points: 123456789 + received_data_points: 123456789 + status: measuring + uuid: 2cc7de37-6f71-4458-887e-10e618a6fcfb + duration: 100000000 + protected: true + updated_at: 2017-02-11T01:23:45Z + max_elapsed_time: 100000000 + name: meas1 + ended: true + markers: + - null + - null + edge_uuid: 00de1861-6614-4435-af07-da9b4338d57c + status: measuring + status: null + properties: + items: + items: + $ref: '#/components/schemas/MeasurementJob' + type: array + page: + $ref: '#/components/schemas/PageDetail' + required: + - items + - page + type: object + MeasurementMarkers: + example: + page: + next: next + last: true + previous: previous + total_count: 0 + first: true + items: + - null + - null + properties: + items: + items: + $ref: '#/components/schemas/MeasurementMarker' + type: array + page: + $ref: '#/components/schemas/PageDetail' + required: + - items + - page + type: object + MeasurementMarkerPutRequestBase: + properties: + name: + description: 計測マーカーの名前 + type: string + description: + description: 計測マーカーの説明 + type: string + type: + description: |- + 計測マーカーのタイプ + - `point` : ポイントマーカー + - `range` : 範囲マーカー + enum: + - point + - range + type: string + tag: + description: |- + この計測マーカーに付与するタグ。タグはキーと値からなるペア(いずれもstring)で設定します。 + 複数のタグを一度に設定することができます。 + 値の中にオブジェクトを入れる(ネストする)ことはできません。 + ``` + // Not good + { + "tagkey" : { + "nestKey": "not allowed" + } + } + ``` + + ``` + // OK + { + "tagkey1" : "ok1", + "tagkey2" : "ok2" + } + ``` + type: object + MeasurementMarkerPutRequestPoint: + allOf: + - $ref: '#/components/schemas/MeasurementMarkerPutRequestBase' + - $ref: '#/components/schemas/MeasurementMarkerPoint_allOf' + MeasurementMarkerPutRequestRange: + allOf: + - $ref: '#/components/schemas/MeasurementMarkerPutRequestBase' + - $ref: '#/components/schemas/MeasurementMarkerRange_allOf' + MeasurementMarkerPutRequest: + discriminator: + mapping: + point: '#/components/schemas/MeasurementMarkerPutRequestPoint' + range: '#/components/schemas/MeasurementMarkerPutRequestRange' + propertyName: type + oneOf: + - $ref: '#/components/schemas/MeasurementMarkerPutRequestPoint' + - $ref: '#/components/schemas/MeasurementMarkerPutRequestRange' + MeasurementUploadStatusGetResponse: + example: + updated_at: updated_at + meas_uuid: meas_uuid + file_name: file_name + created_at: created_at + state: ready + message: message + uuid: uuid + properties: + uuid: + description: 計測アップロードのUUID + type: string + meas_uuid: + description: 計測のUUID + type: string + state: + description: 計測への変換ジョブのステータス + enum: + - ready + - processing + - succeed + - failed + - canceled + type: string + message: + description: 計測への変換ジョブの結果 + type: string + file_name: + description: 計測に変換する対象のファイル名。 同じ日に同じ名前のファイルがアップロードされた場合は、 ランダムな接頭辞が付与されます。 + type: string + created_at: + description: 計測アップロードの作成日時 + type: string + updated_at: + description: 計測アップロードの最終更新日時 + type: string + required: + - created_at + - file_name + - meas_uuid + - message + - state + - updated_at + - uuid + type: object + MeasurementUploadStatusesGetResponse: + example: + page: + next: next + last: true + previous: previous + total_count: 0 + first: true + items: + - updated_at: updated_at + meas_uuid: meas_uuid + file_name: file_name + created_at: created_at + state: ready + message: message + uuid: uuid + - updated_at: updated_at + meas_uuid: meas_uuid + file_name: file_name + created_at: created_at + state: ready + message: message + uuid: uuid + properties: + items: + items: + $ref: '#/components/schemas/MeasurementUploadStatusGetResponse' + type: array + page: + $ref: '#/components/schemas/PageDetail' + required: + - items + - page + type: object + LabelDataType: + description: |- + 列名とデータタイプの対応。 データタイプは、 `int` 、` string` 、 `float` のいずれかを指定してください。 + 例: + ``` + { + "column_1": "float", + "column_2": "string", + "column_3": "int" + } + ``` + format: json + type: string + MeasurementUploadPostRequest: + properties: + edge_uuid: + description: エッジのUUID + format: uuid + type: string + base_time: + description: 計測の基準時刻。MP4ファイルをアップロードする場合は必須です。 + format: date-time + type: string + base_time_type: + default: edge_rtc + description: 基準時刻のタイプ + enum: + - edge_rtc + - ntp + - gps + - api_first_received + - volatile + - manual + - undefined + type: string + channel: + description: 計測のチャンネル(十進表記の文字列) + type: integer + meas_end: + description: '`true` にすると、計測は終了したものとして扱われます。' + type: boolean + label_data_type: + $ref: '#/components/schemas/LabelDataType' + data_file: + description: アップロードするファイル + format: binary + type: string + required: + - data_file + - edge_uuid + type: object + MeasurementUploadPostResponse: + example: + job_uuid: job_uuid + file_name: file_name + meas_upload_uuid: meas_upload_uuid + properties: + meas_upload_uuid: + deprecated: true + description: 計測アップロードのUUID + type: string + job_uuid: + description: 計測への変換ジョブのUUID + type: string + file_name: + description: アップロードされたファイルのファイル名 + type: string + required: + - file_name + - meas_upload_uuid + type: object + MeasurementUploadPostRequestAppend: + properties: + channel: + description: 作成された計測のチャンネル + type: integer + meas_end: + description: |- + * `true` : 終了した計測 + * `false` : 終了していない計測 + type: boolean + label_data_type: + $ref: '#/components/schemas/LabelDataType' + data_file: + description: アップロードするファイル + format: binary + type: string + required: + - data_file + type: object + MeasurementMarkersWithoutPage: + example: + items: + - null + - null + properties: + items: + items: + $ref: '#/components/schemas/MeasurementMarker' + type: array + required: + - items + type: object + MeasurementMarkerPostRequestPoint: + allOf: + - $ref: '#/components/schemas/MeasurementMarkerPutRequestPoint' + - required: + - detail + - type + MeasurementMarkerPostRequestRange: + allOf: + - $ref: '#/components/schemas/MeasurementMarkerPutRequestRange' + - required: + - detail + - type + MeasurementMarkerPostRequest: + discriminator: + mapping: + point: '#/components/schemas/MeasurementMarkerPostRequestPoint' + range: '#/components/schemas/MeasurementMarkerPostRequestRange' + propertyName: type + oneOf: + - $ref: '#/components/schemas/MeasurementMarkerPostRequestPoint' + - $ref: '#/components/schemas/MeasurementMarkerPostRequestRange' + SignalConversionOptionType: + description: 変換タイプ + enum: + - none + - num_fixed_point + - num_floating_point + - csv + - json + - sub_bytes + - sub_string + type: string + SignalConversionOptionNumFixedPoint: + properties: + startbit: + description: 開始ビット位置 + format: int32 + type: integer + bitsize: + description: ビットサイズ + format: int32 + type: integer + endian: + description: エンディアン + enum: + - big + - little + type: string + sign: + description: 符号有無 + enum: + - signed + - unsigned + type: string + scale: + description: スケールファクター + type: number + offset: + description: オフセット + type: number + required: + - bitsize + - endian + - offset + - scale + - sign + - startbit + type: object + SignalConversionNumFixedPoint: + properties: + type: + $ref: '#/components/schemas/SignalConversionOptionType' + options: + $ref: '#/components/schemas/SignalConversionOptionNumFixedPoint' + required: + - options + - type + type: object + SignalConversionOptionNumFloatingPoint: + properties: + startbyte: + description: 開始バイト位置 + format: int32 + type: integer + endian: + description: エンディアン + enum: + - big + - little + type: string + precision: + enum: + - 32 + - 64 + type: integer + required: + - endian + - precision + - startbyte + type: object + SignalConversionNumFloatingPoint: + properties: + type: + $ref: '#/components/schemas/SignalConversionOptionType' + options: + $ref: '#/components/schemas/SignalConversionOptionNumFloatingPoint' + required: + - options + - type + type: object + SignalConversionOptionCSV: + properties: + delimiters: + description: デリミタ + items: + type: string + type: array + index: + description: インデックス(左端を0とする列番号) + format: int32 + type: integer + value_type: + enum: + - str + - num + type: string + required: + - delimiters + - index + - value_type + type: object + SignalConversionCSV: + properties: + type: + $ref: '#/components/schemas/SignalConversionOptionType' + options: + $ref: '#/components/schemas/SignalConversionOptionCSV' + required: + - options + - type + type: object + SignalConversionOptionJSON: + properties: + fieldpath: + description: 抽出したいフィールドのパス + type: string + value_type: + description: 値のタイプ + enum: + - str + - num + type: string + required: + - fieldpath + - value_type + type: object + SignalConversionJSON: + properties: + type: + $ref: '#/components/schemas/SignalConversionOptionType' + options: + $ref: '#/components/schemas/SignalConversionOptionJSON' + required: + - options + - type + type: object + SignalConversionOptionSubBytes: + properties: + startbyte: + description: 開始バイト位置 + format: int64 + type: integer + bytesize: + description: バイトサイズ + format: int64 + type: integer + required: + - bytesize + - startbyte + type: object + SignalConversionSubBytes: + properties: + type: + $ref: '#/components/schemas/SignalConversionOptionType' + options: + $ref: '#/components/schemas/SignalConversionOptionSubBytes' + required: + - options + - type + type: object + SignalConversionOptionSubString: + properties: + startbyte: + description: 開始バイト位置 + format: int64 + type: integer + bytesize: + description: バイトサイズ + format: int64 + type: integer + required: + - bytesize + - startbyte + type: object + SignalConversionSubString: + properties: + type: + $ref: '#/components/schemas/SignalConversionOptionType' + options: + $ref: '#/components/schemas/SignalConversionOptionSubString' + required: + - options + - type + type: object + SignalConversion: + discriminator: + mapping: + num_fixed_point: '#/components/schemas/SignalConversionNumFixedPoint' + num_floating_point: '#/components/schemas/SignalConversionNumFloatingPoint' + csv: '#/components/schemas/SignalConversionCSV' + json: '#/components/schemas/SignalConversionJSON' + sub_bytes: '#/components/schemas/SignalConversionSubBytes' + sub_string: '#/components/schemas/SignalConversionSubString' + propertyName: type + oneOf: + - $ref: '#/components/schemas/SignalConversionNumFixedPoint' + - $ref: '#/components/schemas/SignalConversionNumFloatingPoint' + - $ref: '#/components/schemas/SignalConversionCSV' + - $ref: '#/components/schemas/SignalConversionJSON' + - $ref: '#/components/schemas/SignalConversionSubBytes' + - $ref: '#/components/schemas/SignalConversionSubString' + SignalDisplay: + example: + unit: unit + min: 1 + max: 5 + format: format + properties: + unit: + description: 単位 + type: string + min: + description: 最小値 + format: int64 + type: integer + max: + description: 最大値 + format: int64 + type: integer + format: + description: 表示用のフォーマット + type: string + required: + - format + - max + - min + - unit + type: object + Signal: + example: + updated_at: updated_at + data_id: data_id + display: + unit: unit + min: 1 + max: 5 + format: format + data_type: 0 + channel: 6 + description: description + created_at: created_at + label: label + uuid: uuid + hash: hash + conversion: null + properties: + uuid: + description: 信号定義のUUID + type: string + label: + description: 信号定義のラベル + type: string + description: + description: 信号定義の説明 + type: string + data_type: + description: データタイプ + format: int32 + type: integer + data_id: + description: データID + type: string + channel: + description: チャンネル + format: int32 + type: integer + conversion: + $ref: '#/components/schemas/SignalConversion' + display: + $ref: '#/components/schemas/SignalDisplay' + hash: + description: 信号定義のハッシュ値 + type: string + created_at: + description: 信号定義の作成日時 + type: string + updated_at: + description: 信号定義の最終更新日時 + type: string + required: + - channel + - conversion + - created_at + - data_id + - data_type + - description + - display + - hash + - label + - updated_at + - uuid + type: object + Signals: + example: + page: + next: next + last: true + previous: previous + total_count: 0 + first: true + items: + - updated_at: updated_at + data_id: data_id + display: + unit: unit + min: 1 + max: 5 + format: format + data_type: 0 + channel: 6 + description: description + created_at: created_at + label: label + uuid: uuid + hash: hash + conversion: null + - updated_at: updated_at + data_id: data_id + display: + unit: unit + min: 1 + max: 5 + format: format + data_type: 0 + channel: 6 + description: description + created_at: created_at + label: label + uuid: uuid + hash: hash + conversion: null + properties: + items: + items: + $ref: '#/components/schemas/Signal' + type: array + page: + $ref: '#/components/schemas/PageDetail' + required: + - items + - page + type: object + CreateSignalRequest: + example: + data_id: data_id + display: + unit: unit + min: 1 + max: 5 + format: format + channel: 0 + data_type: 6 + description: description + label: label + uuid: uuid + conversion: null + properties: + channel: + description: チャンネル + format: int32 + type: integer + conversion: + $ref: '#/components/schemas/SignalConversion' + data_id: + description: データID + type: string + data_type: + description: データタイプ + format: int32 + type: integer + description: + description: 信号定義の説明 + type: string + display: + $ref: '#/components/schemas/SignalDisplay' + label: + description: 信号定義のラベル + type: string + uuid: + description: 信号定義のUUID + type: string + type: object + UpdateSignalRequest: + example: + data_id: data_id + display: + unit: unit + min: 1 + max: 5 + format: format + channel: 0 + data_type: 6 + description: description + label: label + conversion: null + properties: + channel: + description: チャンネル + format: int32 + type: integer + conversion: + $ref: '#/components/schemas/SignalConversion' + data_id: + description: データID + type: string + data_type: + description: データタイプ + format: int32 + type: integer + description: + description: 信号定義の説明 + type: string + display: + $ref: '#/components/schemas/SignalDisplay' + label: + description: 信号定義のラベル + type: string + type: object + TrashedMeasurements: + example: + total_count: 10 + items: + - basetime_type: edge_rtc + description: description of measurement + created_at: 2017-02-11T01:23:45Z + completed: true + processed_ratio: 0.9 + basetime: basetime + sequences: + received_chunks_ratio: 0.5 + expected_data_points: 123456789 + received_data_points: 123456789 + status: measuring + uuid: 2cc7de37-6f71-4458-887e-10e618a6fcfb + duration: 100000000 + protected: true + updated_at: 2017-02-11T01:23:45Z + max_elapsed_time: 100000000 + name: meas1 + ended: true + markers: + - null + - null + edge_uuid: 00de1861-6614-4435-af07-da9b4338d57c + status: measuring + - basetime_type: edge_rtc + description: description of measurement + created_at: 2017-02-11T01:23:45Z + completed: true + processed_ratio: 0.9 + basetime: basetime + sequences: + received_chunks_ratio: 0.5 + expected_data_points: 123456789 + received_data_points: 123456789 + status: measuring + uuid: 2cc7de37-6f71-4458-887e-10e618a6fcfb + duration: 100000000 + protected: true + updated_at: 2017-02-11T01:23:45Z + max_elapsed_time: 100000000 + name: meas1 + ended: true + markers: + - null + - null + edge_uuid: 00de1861-6614-4435-af07-da9b4338d57c + status: measuring + properties: + items: + items: + $ref: '#/components/schemas/Measurement' + type: array + total_count: + description: 取得対象の総件数 + example: 10 + type: integer + type: object + DataPointTime: + oneOf: + - description: 時刻。クエリパラメーターの `time_format` が `rfc3339` の場合はstring、それ以外の場合はintegerです。 + format: int64 + type: integer + - description: 時刻。クエリパラメーターの `time_format` が `rfc3339` の場合はstring、それ以外の場合はintegerです。 + type: string + DataPointDataMap: + description: |- + データのペイロード。ペイロードのJSON表現はデータタイプによって異なります。 [詳説iSCP 1.0](https://docs.intdash.jp/manual/iscp1-essentials/latest/ja/iscp1-essentials-ja.pdf) の「付録: データタイプとペイロードの定義」を参照してください。 iscpv1に当てはまらない場合、下記のフォーマットで固定となります。 + + ``` + { + "d": "データ本体のBase64表記" + } + ``` + type: object + DataPointNormal: + description: 改行で区切られたJSON文字列です。 + properties: + time: + $ref: '#/components/schemas/DataPointTime' + measurement_uuid: + description: このデータポイントが含まれる計測のUUID + type: string + created_at: + description: このデータポイントが作成された日時 + type: string + data_type: + description: データタイプ + type: string + data_id: + description: データID + type: string + data: + description: |- + データのペイロード。ペイロードのJSON表現はデータタイプによって異なります。 [詳説iSCP 1.0](https://docs.intdash.jp/manual/iscp1-essentials/latest/ja/iscp1-essentials-ja.pdf) の「付録: データタイプとペイロードの定義」を参照してください。 iscpv1に当てはまらない場合、下記のフォーマットで固定となります。 + + ``` + { + "d": "データ本体のBase64表記" + } + ``` + type: object + required: + - created_at + - data + - data_id + - data_type + - measurement_uuid + - time + type: object + ErrorExtraEmpty: + properties: + error: + description: エラーのタイプ。エラーのタイプが `unexpected` の場合は、直ちに処理が中断されます。 + enum: + - converted_error + - unexpected + type: string + error_description: + description: エラーの説明 + type: string + required: + - error + - error_description + type: object + ErrorConverted: + allOf: + - $ref: '#/components/schemas/ErrorExtraEmpty' + - $ref: '#/components/schemas/ErrorConverted_allOf' + DataPointDataErrorData: + discriminator: + mapping: + '*': '#/components/schemas/ErrorExtraEmpty' + converted_error: '#/components/schemas/ErrorConverted' + propertyName: error + oneOf: + - $ref: '#/components/schemas/ErrorExtraEmpty' + - $ref: '#/components/schemas/ErrorConverted' + type: object + DataPointDataError: + description: データのペイロード + properties: + i: + description: 固定値 `intdash/measurement/get/data/error` + type: string + d: + $ref: '#/components/schemas/DataPointDataErrorData' + required: + - d + - i + type: object + DataPointError: + allOf: + - $ref: '#/components/schemas/DataPointNormal' + - $ref: '#/components/schemas/DataPointError_allOf' + HLS: + example: + measurement_uuid: 507032c5-c4fb-493b-aef3-ecf6fd67df00 + duration: 12345678 + playlist: playlist.m3u8 + basetime_type: ntp + channel: 1 + offset_time: 123456 + basetime: 2000-01-02T03:04:05Z + edge_uuid: 6e180e5a-3d7e-476c-907d-3c71bceb8a98 + properties: + edge_uuid: + description: エッジのUUID + example: 6e180e5a-3d7e-476c-907d-3c71bceb8a98 + type: string + measurement_uuid: + description: 計測のUUID + example: 507032c5-c4fb-493b-aef3-ecf6fd67df00 + type: string + basetime: + description: 基準時刻 + example: 2000-01-02T03:04:05Z + format: data-time + type: string + basetime_type: + description: 基準時刻タイプ + example: ntp + type: string + playlist: + description: プレイリスト + example: playlist.m3u8 + type: string + channel: + description: チャンネル + example: 1 + type: integer + offset_time: + description: 計測開始から動画の開始までのオフセット(マイクロ秒) + example: 123456 + type: integer + duration: + description: 長さ(マイクロ秒) + example: 12345678 + type: integer + required: + - basetime + - basetime_type + - channel + - duration + - edge_uuid + - measurement_uuid + - offset_time + - playlist + type: object + HLSList: + example: + items: + - measurement_uuid: 507032c5-c4fb-493b-aef3-ecf6fd67df00 + duration: 12345678 + playlist: playlist.m3u8 + basetime_type: ntp + channel: 1 + offset_time: 123456 + basetime: 2000-01-02T03:04:05Z + edge_uuid: 6e180e5a-3d7e-476c-907d-3c71bceb8a98 + - measurement_uuid: 507032c5-c4fb-493b-aef3-ecf6fd67df00 + duration: 12345678 + playlist: playlist.m3u8 + basetime_type: ntp + channel: 1 + offset_time: 123456 + basetime: 2000-01-02T03:04:05Z + edge_uuid: 6e180e5a-3d7e-476c-907d-3c71bceb8a98 + properties: + items: + items: + $ref: '#/components/schemas/HLS' + type: array + required: + - items + type: object + JobType: + description: |- + - update + - 計測内の動画データのうち、新しくサーバーが受信した部分(HLSにまだ変換されていない部分)を + HLSに変換するジョブ。通常は計測実行中に行います。 + - finalize + - 計測全体をサーバーに回収した後に、動画データ全体をHLSに変換するジョブ + - delete + - 変換によって作成されたHLSデータを削除するジョブ。 + このジョブを実行すると、HLSプレイリスト、セグメントファイル、 + データベース内のHLSに関する情報が削除され、この動画のHLSによる再生はできなくなります。 + enum: + - update + - finalize + - delete + example: update + type: string + JobStatus: + description: ジョブのステータス + enum: + - unprocessed + - processing + - succeeded + - failed + type: string + Job: + example: + updated_at: 2000-01-23T04:56:07.000+00:00 + meas_uuid: a5170afc-9cc2-5327-e0e1-32746b5a7977 + created_at: 2000-01-23T04:56:07.000+00:00 + type: update + message: ok + uuid: ade4eea8-edc6-3ca5-c557-12a616c2028a + status: null + properties: + uuid: + description: ジョブのUUID + example: ade4eea8-edc6-3ca5-c557-12a616c2028a + type: string + meas_uuid: + description: 計測のUUID + example: a5170afc-9cc2-5327-e0e1-32746b5a7977 + type: string + type: + $ref: '#/components/schemas/JobType' + status: + $ref: '#/components/schemas/JobStatus' + message: + description: ステータスの説明 + example: ok + type: string + created_at: + description: ジョブが作成された日時 + format: date-time + type: string + updated_at: + description: ジョブの最終更新日時 + format: date-time + type: string + required: + - created_at + - meas_uuid + - message + - status + - type + - updated_at + - uuid + type: object + JobList: + example: + total_count: 100 + items: + - updated_at: 2000-01-23T04:56:07.000+00:00 + meas_uuid: a5170afc-9cc2-5327-e0e1-32746b5a7977 + created_at: 2000-01-23T04:56:07.000+00:00 + type: update + message: ok + uuid: ade4eea8-edc6-3ca5-c557-12a616c2028a + status: null + - updated_at: 2000-01-23T04:56:07.000+00:00 + meas_uuid: a5170afc-9cc2-5327-e0e1-32746b5a7977 + created_at: 2000-01-23T04:56:07.000+00:00 + type: update + message: ok + uuid: ade4eea8-edc6-3ca5-c557-12a616c2028a + status: null + properties: + items: + items: + $ref: '#/components/schemas/Job' + type: array + total_count: + description: 取得対象の総件数 + example: 100 + type: number + required: + - items + - total_count + type: object + ErrorProblemMedia: + properties: + type: + description: エラーのタイプ + enum: + - about:blank + - invalid_request + - conflict + - forbidden + - account_locked + type: string + title: + description: エラーのタイトル + type: string + properties: + description: 無効なパラメーターについての情報 + type: object + required: + - title + - type + type: object + CreateJobRequest: + example: + meas_uuid: a5170afc-9cc2-5327-e0e1-32746b5a7977 + type: update + properties: + meas_uuid: + description: 計測のUUID + example: a5170afc-9cc2-5327-e0e1-32746b5a7977 + type: string + type: + $ref: '#/components/schemas/JobType' + required: + - meas_uuid + - type + type: object + MediaMeasurementBaseTimeType: + description: 計測の基準時刻タイプ + enum: + - edge_rtc + - ntp + - gps + - api_first_received + - volatile + - manual + - undefined + example: edge_rtc + type: string + MediaMeasurement: + example: + basetime_type: edge_rtc + description: description of measurement + created_at: 2017-02-11T01:23:45Z + processed_ratio: 0.9 + basetime: basetime + uuid: 2cc7de37-6f71-4458-887e-10e618a6fcfb + duration: 100000000 + protected: true + updated_at: 2017-02-11T01:23:45Z + max_elapsed_time: 100000000 + name: meas1 + ended: true + edge_uuid: 00de1861-6614-4435-af07-da9b4338d57c + status: measuring + properties: + uuid: + description: 計測のUUID + example: 2cc7de37-6f71-4458-887e-10e618a6fcfb + type: string + name: + description: 計測の名前 + example: meas1 + type: string + description: + description: 計測の説明 + example: description of measurement + type: string + basetime: + description: 計測の基準時刻(RFC3339形式) + type: string + basetime_type: + $ref: '#/components/schemas/MediaMeasurementBaseTimeType' + edge_uuid: + description: エッジのUUID + example: 00de1861-6614-4435-af07-da9b4338d57c + type: string + duration: + deprecated: true + description: 計測時間( `max_elapsed_time` を使用してください) + example: 100000000 + format: int64 + type: integer + max_elapsed_time: + description: 計測時間(マイクロ秒) + example: 100000000 + format: int64 + type: integer + protected: + description: |- + `true` の場合、計測は保護されています。保護されている計測は削除できません。 + 保護されている計測を削除したい場合は、まず保護を解除してください。 + example: true + type: boolean + created_at: + description: 計測の作成日時 + example: 2017-02-11T01:23:45Z + format: date-time + type: string + updated_at: + description: 計測の最終更新日時 + example: 2017-02-11T01:23:45Z + format: date-time + type: string + processed_ratio: + deprecated: true + description: 代わりに `sequences.received_sequence_numbers_ratio` を使用してください。処理済み率を表します。 + example: 0.9 + type: number + ended: + deprecated: true + description: 代わりに `sequences.status` を使用してください。エッジにおいてデータの取得が終了しているかどうかを示します。 + example: true + type: boolean + status: + deprecated: true + description: |- + 代わりに `sequences.status` を使用してください。 + 計測のステータスを表します: + - measuring + - 計測中 + - resending + - 再送中。計測(エッジにおけるデータの取得)は終了しましたが、エッジにデータが残っており、サーバーに再送中です。 + - finished + - 完了。サーバーへのデータの回収が完了しています。 + enum: + - measuring + - resending + - finished + type: string + required: + - basetime + - basetime_type + - created_at + - description + - duration + - edge_uuid + - ended + - name + - processed_ratio + - protected + - sequences + - status + - updated_at + - uuid + type: object + VideoCodecs: + enum: + - h264 + - vp9 + example: h264 + type: string + VideoSourceDataType: + enum: + - h264 + - jpeg + - ivf + example: h264 + type: string + VideoStatus: + description: ステータス + enum: + - live + - unprocessed + - processing + - succeeded + - failed + example: succeeded + type: string + Playlist: + example: + playlist: /path-to/playlist.m3u8 + playlist_with_endlist_tag: /path-to/playlist_with_endlist_tag.m3u8 + properties: + playlist: + description: プレイリスト + example: /path-to/playlist.m3u8 + type: string + playlist_with_endlist_tag: + description: EXT-X-ENDLISTタグが付いたプレイリスト + example: /path-to/playlist_with_endlist_tag.m3u8 + type: string + required: + - playlist + - playlist_with_endlist_tag + type: object + MP4Status: + description: ステータス + enum: + - unprocessed + - processing + - succeeded + - failed + - canceled + type: string + MP4: + example: + duration: 10000 + file_path: /api/media/68b91013-47e9-4e68-a965-892549587dfa/mp4s/0108aeb1-f486-400f-9bcd-f176eee8b7e3/measurement.mp4 + updated_at: 2000-01-01T00:00:00Z + created_at: 2000-01-01T00:00:00Z + start_offset: 0 + trimmed: false + uuid: 0108aeb1-f486-400f-9bcd-f176eee8b7e3 + status: null + properties: + uuid: + description: MP4のUUID + example: 0108aeb1-f486-400f-9bcd-f176eee8b7e3 + format: uuid + type: string + start_offset: + description: 動画の開始時刻からのオフセット(マイクロ秒) + example: 0 + type: integer + duration: + description: 長さ(マイクロ秒) + example: 10000 + type: integer + trimmed: + description: 指定された時間範囲のみを抽出したものである場合は `true` 。 + example: false + type: boolean + file_path: + description: メディアファイルのパス + example: /api/media/68b91013-47e9-4e68-a965-892549587dfa/mp4s/0108aeb1-f486-400f-9bcd-f176eee8b7e3/measurement.mp4 + type: string + status: + $ref: '#/components/schemas/MP4Status' + created_at: + description: 作成された日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + updated_at: + description: 最終更新日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + required: + - created_at + - duration + - start_offset + - status + - trimmed + - updated_at + - uuid + type: object + JpegQuality: + description: |- + JPEGの品質。デフォルトは 'middle' です。 + - high + - middle + - low + enum: + - high + - middle + - low + type: string + JpegStatus: + description: ステータス + enum: + - unprocessed + - processing + - succeeded + - failed + - canceled + example: succeeded + type: string + Jpeg: + example: + duration: 10000 + updated_at: 2000-01-01T00:00:00Z + fps: 15 + created_at: 2000-01-01T00:00:00Z + start_offset: 5000 + trimmed: true + uuid: 3279bdfb-9079-417e-8f94-ee8126da5933 + quality: null + status: succeeded + properties: + uuid: + description: JPEGのUUID + example: 3279bdfb-9079-417e-8f94-ee8126da5933 + format: uuid + type: string + start_offset: + description: 計測開始からのオフセット(マイクロ秒) + example: 5000 + type: integer + duration: + description: 長さ(マイクロ秒) + example: 10000 + type: integer + trimmed: + description: 指定された時間範囲のみを抽出したものである場合は `true` 。 + example: true + type: boolean + fps: + description: フレームレート(fps) + example: 15 + format: float + type: number + quality: + $ref: '#/components/schemas/JpegQuality' + status: + $ref: '#/components/schemas/JpegStatus' + created_at: + description: 作成された日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + updated_at: + description: 最終更新日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + required: + - created_at + - created_by + - duration + - fps + - quality + - start_offset + - status + - trimmed + - updated_at + - uuid + type: object + Video: + example: + measurement_uuid: d299eea4-d02c-4742-a97a-795346a0c005 + jpegs: + - duration: 10000 + updated_at: 2000-01-01T00:00:00Z + fps: 15 + created_at: 2000-01-01T00:00:00Z + start_offset: 5000 + trimmed: true + uuid: 3279bdfb-9079-417e-8f94-ee8126da5933 + quality: null + status: succeeded + - duration: 10000 + updated_at: 2000-01-01T00:00:00Z + fps: 15 + created_at: 2000-01-01T00:00:00Z + start_offset: 5000 + trimmed: true + uuid: 3279bdfb-9079-417e-8f94-ee8126da5933 + quality: null + status: succeeded + channel: 1 + fps: 29.98 + offset_time: 0 + created_at: 2000-01-01T00:00:00Z + uuid: 68b91013-47e9-4e68-a965-892549587dfa + measurement: + basetime_type: edge_rtc + description: description of measurement + created_at: 2017-02-11T01:23:45Z + processed_ratio: 0.9 + basetime: basetime + uuid: 2cc7de37-6f71-4458-887e-10e618a6fcfb + duration: 100000000 + protected: true + updated_at: 2017-02-11T01:23:45Z + max_elapsed_time: 100000000 + name: meas1 + ended: true + edge_uuid: 00de1861-6614-4435-af07-da9b4338d57c + status: measuring + source_data_type: h264 + hls: + playlist: /path-to/playlist.m3u8 + playlist_with_endlist_tag: /path-to/playlist_with_endlist_tag.m3u8 + duration: 10000 + codec: h264 + mp4s: + - duration: 10000 + file_path: /api/media/68b91013-47e9-4e68-a965-892549587dfa/mp4s/0108aeb1-f486-400f-9bcd-f176eee8b7e3/measurement.mp4 + updated_at: 2000-01-01T00:00:00Z + created_at: 2000-01-01T00:00:00Z + start_offset: 0 + trimmed: false + uuid: 0108aeb1-f486-400f-9bcd-f176eee8b7e3 + status: null + - duration: 10000 + file_path: /api/media/68b91013-47e9-4e68-a965-892549587dfa/mp4s/0108aeb1-f486-400f-9bcd-f176eee8b7e3/measurement.mp4 + updated_at: 2000-01-01T00:00:00Z + created_at: 2000-01-01T00:00:00Z + start_offset: 0 + trimmed: false + uuid: 0108aeb1-f486-400f-9bcd-f176eee8b7e3 + status: null + updated_at: 2000-01-01T00:00:00Z + width: 1920 + edge_uuid: a8afa022-7e60-4f6a-8686-5b99d8785d25 + height: 1080 + status: succeeded + properties: + uuid: + description: 動画(video)のUUID + example: 68b91013-47e9-4e68-a965-892549587dfa + format: uuid + type: string + measurement_uuid: + description: 計測のUUID + example: d299eea4-d02c-4742-a97a-795346a0c005 + format: uuid + type: string + measurement: + $ref: '#/components/schemas/MediaMeasurement' + edge_uuid: + description: エッジのUUID + example: a8afa022-7e60-4f6a-8686-5b99d8785d25 + format: uuid + type: string + channel: + description: チャンネル + example: 1 + type: integer + codec: + $ref: '#/components/schemas/VideoCodecs' + source_data_type: + $ref: '#/components/schemas/VideoSourceDataType' + offset_time: + description: 計測開始からのオフセット(マイクロ秒) + example: 0 + type: integer + duration: + description: 長さ(マイクロ秒) + example: 10000 + type: integer + fps: + description: フレームレート(fps) + example: 29.98 + type: number + width: + description: 動画の幅 + example: 1920 + type: integer + height: + description: 動画の高さ + example: 1080 + type: integer + status: + $ref: '#/components/schemas/VideoStatus' + hls: + $ref: '#/components/schemas/Playlist' + mp4s: + description: この動画を変換して作成されたMP4のリスト + items: + $ref: '#/components/schemas/MP4' + type: array + jpegs: + description: この動画を変換して作成されたJPEGのリスト + items: + $ref: '#/components/schemas/Jpeg' + type: array + created_at: + description: 作成された日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + updated_at: + description: 最終更新日時 + example: 2000-01-01T00:00:00Z + format: date-time + type: string + required: + - channel + - codec + - created_at + - duration + - edge_uuid + - fps + - height + - jpegs + - measurement_uuid + - mp4s + - offset_time + - source_data_type + - status + - updated_at + - uuid + - width + type: object + Page: + example: + total_count: 1 + properties: + total_count: + description: 取得対象の総件数 + example: 1 + format: int64 + type: integer + required: + - total_count + type: object + Videos: + example: + page: + total_count: 1 + items: + - measurement_uuid: d299eea4-d02c-4742-a97a-795346a0c005 + jpegs: + - duration: 10000 + updated_at: 2000-01-01T00:00:00Z + fps: 15 + created_at: 2000-01-01T00:00:00Z + start_offset: 5000 + trimmed: true + uuid: 3279bdfb-9079-417e-8f94-ee8126da5933 + quality: null + status: succeeded + - duration: 10000 + updated_at: 2000-01-01T00:00:00Z + fps: 15 + created_at: 2000-01-01T00:00:00Z + start_offset: 5000 + trimmed: true + uuid: 3279bdfb-9079-417e-8f94-ee8126da5933 + quality: null + status: succeeded + channel: 1 + fps: 29.98 + offset_time: 0 + created_at: 2000-01-01T00:00:00Z + uuid: 68b91013-47e9-4e68-a965-892549587dfa + measurement: + basetime_type: edge_rtc + description: description of measurement + created_at: 2017-02-11T01:23:45Z + processed_ratio: 0.9 + basetime: basetime + uuid: 2cc7de37-6f71-4458-887e-10e618a6fcfb + duration: 100000000 + protected: true + updated_at: 2017-02-11T01:23:45Z + max_elapsed_time: 100000000 + name: meas1 + ended: true + edge_uuid: 00de1861-6614-4435-af07-da9b4338d57c + status: measuring + source_data_type: h264 + hls: + playlist: /path-to/playlist.m3u8 + playlist_with_endlist_tag: /path-to/playlist_with_endlist_tag.m3u8 + duration: 10000 + codec: h264 + mp4s: + - duration: 10000 + file_path: /api/media/68b91013-47e9-4e68-a965-892549587dfa/mp4s/0108aeb1-f486-400f-9bcd-f176eee8b7e3/measurement.mp4 + updated_at: 2000-01-01T00:00:00Z + created_at: 2000-01-01T00:00:00Z + start_offset: 0 + trimmed: false + uuid: 0108aeb1-f486-400f-9bcd-f176eee8b7e3 + status: null + - duration: 10000 + file_path: /api/media/68b91013-47e9-4e68-a965-892549587dfa/mp4s/0108aeb1-f486-400f-9bcd-f176eee8b7e3/measurement.mp4 + updated_at: 2000-01-01T00:00:00Z + created_at: 2000-01-01T00:00:00Z + start_offset: 0 + trimmed: false + uuid: 0108aeb1-f486-400f-9bcd-f176eee8b7e3 + status: null + updated_at: 2000-01-01T00:00:00Z + width: 1920 + edge_uuid: a8afa022-7e60-4f6a-8686-5b99d8785d25 + height: 1080 + status: succeeded + - measurement_uuid: d299eea4-d02c-4742-a97a-795346a0c005 + jpegs: + - duration: 10000 + updated_at: 2000-01-01T00:00:00Z + fps: 15 + created_at: 2000-01-01T00:00:00Z + start_offset: 5000 + trimmed: true + uuid: 3279bdfb-9079-417e-8f94-ee8126da5933 + quality: null + status: succeeded + - duration: 10000 + updated_at: 2000-01-01T00:00:00Z + fps: 15 + created_at: 2000-01-01T00:00:00Z + start_offset: 5000 + trimmed: true + uuid: 3279bdfb-9079-417e-8f94-ee8126da5933 + quality: null + status: succeeded + channel: 1 + fps: 29.98 + offset_time: 0 + created_at: 2000-01-01T00:00:00Z + uuid: 68b91013-47e9-4e68-a965-892549587dfa + measurement: + basetime_type: edge_rtc + description: description of measurement + created_at: 2017-02-11T01:23:45Z + processed_ratio: 0.9 + basetime: basetime + uuid: 2cc7de37-6f71-4458-887e-10e618a6fcfb + duration: 100000000 + protected: true + updated_at: 2017-02-11T01:23:45Z + max_elapsed_time: 100000000 + name: meas1 + ended: true + edge_uuid: 00de1861-6614-4435-af07-da9b4338d57c + status: measuring + source_data_type: h264 + hls: + playlist: /path-to/playlist.m3u8 + playlist_with_endlist_tag: /path-to/playlist_with_endlist_tag.m3u8 + duration: 10000 + codec: h264 + mp4s: + - duration: 10000 + file_path: /api/media/68b91013-47e9-4e68-a965-892549587dfa/mp4s/0108aeb1-f486-400f-9bcd-f176eee8b7e3/measurement.mp4 + updated_at: 2000-01-01T00:00:00Z + created_at: 2000-01-01T00:00:00Z + start_offset: 0 + trimmed: false + uuid: 0108aeb1-f486-400f-9bcd-f176eee8b7e3 + status: null + - duration: 10000 + file_path: /api/media/68b91013-47e9-4e68-a965-892549587dfa/mp4s/0108aeb1-f486-400f-9bcd-f176eee8b7e3/measurement.mp4 + updated_at: 2000-01-01T00:00:00Z + created_at: 2000-01-01T00:00:00Z + start_offset: 0 + trimmed: false + uuid: 0108aeb1-f486-400f-9bcd-f176eee8b7e3 + status: null + updated_at: 2000-01-01T00:00:00Z + width: 1920 + edge_uuid: a8afa022-7e60-4f6a-8686-5b99d8785d25 + height: 1080 + status: succeeded + properties: + items: + items: + $ref: '#/components/schemas/Video' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - items + - page + type: object + Jpegs: + example: + page: + total_count: 1 + items: + - duration: 10000 + updated_at: 2000-01-01T00:00:00Z + fps: 15 + created_at: 2000-01-01T00:00:00Z + start_offset: 5000 + trimmed: true + uuid: 3279bdfb-9079-417e-8f94-ee8126da5933 + quality: null + status: succeeded + - duration: 10000 + updated_at: 2000-01-01T00:00:00Z + fps: 15 + created_at: 2000-01-01T00:00:00Z + start_offset: 5000 + trimmed: true + uuid: 3279bdfb-9079-417e-8f94-ee8126da5933 + quality: null + status: succeeded + properties: + items: + items: + $ref: '#/components/schemas/Jpeg' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - items + - page + type: object + CreateJpegRequest: + example: + duration: 10000 + trim: false + fps: 15 + start_offset: 0 + quality: null + properties: + trim: + description: 時間範囲を指定してその部分のJPEGを作成する場合は `true` にします。 + example: false + type: boolean + start_offset: + description: 計測開始からのオフセット(マイクロ秒)。trimがtrueの場合は必須です。 + example: 0 + type: integer + duration: + description: 長さ(マイクロ秒)。trimがtrueの場合は必須です。 + example: 10000 + type: integer + fps: + description: フレームレート。値が省略された場合は、元のデータと同じフレームレートが使用されます。 + example: 15 + format: float + type: number + quality: + $ref: '#/components/schemas/JpegQuality' + type: object + MP4s: + example: + page: + total_count: 1 + items: + - duration: 10000 + file_path: /api/media/68b91013-47e9-4e68-a965-892549587dfa/mp4s/0108aeb1-f486-400f-9bcd-f176eee8b7e3/measurement.mp4 + updated_at: 2000-01-01T00:00:00Z + created_at: 2000-01-01T00:00:00Z + start_offset: 0 + trimmed: false + uuid: 0108aeb1-f486-400f-9bcd-f176eee8b7e3 + status: null + - duration: 10000 + file_path: /api/media/68b91013-47e9-4e68-a965-892549587dfa/mp4s/0108aeb1-f486-400f-9bcd-f176eee8b7e3/measurement.mp4 + updated_at: 2000-01-01T00:00:00Z + created_at: 2000-01-01T00:00:00Z + start_offset: 0 + trimmed: false + uuid: 0108aeb1-f486-400f-9bcd-f176eee8b7e3 + status: null + properties: + items: + items: + $ref: '#/components/schemas/MP4' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - items + - page + type: object + CreateMP4Request: + example: + duration: 10000 + start_offset: 0 + trimmed: false + properties: + trimmed: + description: 時間範囲を指定してその部分のMP4を作成する場合は `true` にします。 + example: false + type: boolean + start_offset: + description: 動画の開始時刻からのオフセット(マイクロ秒)。trimmedがtrueの場合は必須です。 + example: 0 + type: integer + duration: + description: 長さ(マイクロ秒)。trimmedがtrueの場合は必須です。 + example: 10000 + type: integer + type: object + TokenRequest: + properties: + grant_type: + description: グラントタイプ + enum: + - password + - authorization_code + - refresh_token + - client_credentials + type: string + refresh_token: + description: 認可時に発行されたリフレッシュトークン。grant_typeが `refresh_token` の場合にだけ指定します。 + type: string + tenant_uuid: + default: 00000000-0000-0000-0000-000000000000 + description: テナントのUUID。grant_typeが `password` の場合にだけ指定します。 grant_typeが `password` + で、テナントUUIDを省略した場合は、デフォルトのテナントが使用されます。 + type: string + username: + description: ユーザーの名前。grant_typeが `password` の場合にだけ指定します。 + type: string + password: + description: パスワード。grant_typeが `password` の場合にだけ指定します。 + type: string + client_id: + description: OAuth2クライアントのID + type: string + client_secret: + description: OAuth2のクライアントシークレット。 OAuth2クライアントの `token_endpoint_auth_method` + が `client_secret_post` の場合にだけ指定します。 + type: string + client_certification: + description: OAuth2のクライアント証明書。 OAuth2クライアントの `token_endpoint_auth_method` + が `tls_client_auth` の場合にだけ指定します。 + type: string + redirect_uri: + description: 認可後のリダイレクト先URI。 grant_typeが `authorization_code` の場合にだけ必要です。 + type: string + code_verifier: + description: |- + PKCE code verifier. + * 使用可能な文字: `[a-Z] / [0-9] / "-" / "." / "_" / "~"` + * 長さ: 43文字以上、128文字以下 + type: string + code: + description: 認可コード + type: string + title: TokenRequest + type: object + issueToken_200_response: + example: + access_token: access_token + refresh_token_expires_in: 6 + refresh_token: refresh_token + scope: scope + token_type: token_type + expires_in: 0 + properties: + access_token: + description: アクセストークン + type: string + expires_in: + description: アクセストークンの有効期限(期限切れまでの秒数) + format: int64 + type: integer + refresh_token: + description: リフレッシュトークン + type: string + refresh_token_expires_in: + description: リフレッシュトークンの有効期限(期限切れまでの秒数) + format: int64 + type: integer + scope: + description: |- + スコープのリスト(スペース区切り)。 + - temporary + - 一時的なユーザーを表します。 + type: string + token_type: + description: トークンタイプ。 `Bearer` に固定。 + type: string + type: object + CheckPasswordRequest: + example: + password: password + properties: + password: + description: チェックしたいパスワード + example: password + maxLength: 512 + type: string + required: + - password + title: CheckPasswordRequest + type: object + getVersion_200_response: + example: + version: version + properties: + version: + description: APIのバージョン + type: string + required: + - version + type: object + CreateOAuth2ClientAuthorizationCodeRequest_allOf: + properties: + name: + description: 名前 + example: My Client + type: string + grant_type: + description: グラントタイプ + type: string + redirect_uris: + items: + description: グラントタイプが `authorization_code` の場合のみ必要です。 + example: http://localhost:8080 + maxLength: 256 + type: string + maximum: 10 + type: array + token_endpoint_auth_method: + default: client_secret_basic + description: トークンエンドポイントの認証方式 + enum: + - client_secret_basic + - none + type: string + tls_client_auth_subject_dn: + description: TLSクライアント認証のサブジェクトDN + type: string + required: + - redirect_uris + example: null + OAuth2ClientWithSecret_allOf: + properties: + client_id: + description: OAuth2クライアントID + type: string + client_secret: + description: token_endpoint_auth_methodが `none` 以外だったら required + type: string + name: + description: 名前 + type: string + grant_types: + description: グラントタイプ + items: + type: string + type: array + token_endpoint_auth_method: + description: トークンエンドポイントの認証方式 + type: string + redirect_uris: + description: 認可後のリダイレクト先URI + items: + type: string + type: array + response_types: + description: レスポンスタイプ + items: + type: string + type: array + scopes: + description: スコープ + items: + type: string + type: array + audiences: + description: オーディエンス + items: + type: string + type: array + tls_client_auth_subject_dn: + description: TLSクライアント認証のサブジェクトDN + example: "SERIALNUMBER=0001,CN=CommonName,OU=OrganizationalUnit,O=Organization,POSTALCODE=PostalCode,STREET=StreetAddress,L=Locality,ST=Province,C=COUNTRY" + type: string + type: object + example: null + CheckPasswordResult_errors_inner: + example: + type: min_length + message: messsage + value: "10" + properties: + type: + description: ポリシーの種類 + enum: + - min_length + - max_length + - min_symbol_num + - min_uppercase_alphabet_num + - min_lowercase_alphabet_num + - min_number_num + - min_lengthmin_alphabet_num + - allowed_same_username + - allowed_same_previous_password + type: string + value: + description: ポリシーで指定されている数値 + example: "10" + type: string + message: + description: ポリシーに関する説明 + example: messsage + type: string + required: + - message + - type + type: object + EdgeConnectionList_page: + example: + next: next + last: true + previous: previous + total_count: 0 + first: true + properties: + first: + description: '`true` の場合、現在のページが最初のページです。' + type: boolean + last: + description: '`true` の場合、現在のページが最後のページです。' + type: boolean + next: + description: 次のページのパス。現在のページが最後のページの場合は空文字列です。 + type: string + previous: + description: 前のページのパス。現在のページが最初のページの場合は空文字列です。 + type: string + total_count: + description: 取得対象の総件数 + type: integer + required: + - first + - last + - next + - previous + - total_count + type: object + EdgeConnection_allOf: + properties: + downstreams: + description: ダウンストリームについての情報 + items: + $ref: '#/components/schemas/EdgeConnectionDownstream' + type: array + upstreams: + description: アップストリームについての情報 + items: + $ref: '#/components/schemas/EdgeConnectionUpstream' + type: array + required: + - downstreams + - upstreams + type: object + example: null + MeasurementMarkerPoint_allOf: + properties: + detail: + $ref: '#/components/schemas/MeasurementMarkerDetailPoint' + example: null + MeasurementMarkerRange_allOf: + properties: + detail: + $ref: '#/components/schemas/MeasurementMarkerDetailRange' + example: null + CreateMeasurementChunksResult_items_inner: + example: + sequence_number: 1 + result: ok + properties: + sequence_number: + description: シーケンスナンバー。符号無し32bit整数。 + example: 1 + format: int64 + type: integer + result: + description: |- + 登録結果を表します: + - ok + - 登録成功。 + - skipped + - スキップ。既に登録されています。 + enum: + - ok + - skipped + example: ok + type: string + required: + - result + - sequence_number + type: object + ErrorConverted_allOf_error_extra: + description: '`error_type` が `converted_error` である場合の追加情報' + properties: + signal_label: + description: 信号定義のラベル + type: string + signal_data_id: + description: 信号定義のデータID + type: string + signal_channel: + description: 信号定義のチャンネル + format: int32 + type: integer + signal_data_type: + description: 信号定義のデータタイプ + format: int32 + type: integer + required: + - signal_channel + - signal_data_id + - signal_data_type + - signal_label + type: object + example: null + ErrorConverted_allOf: + properties: + error_extra: + $ref: '#/components/schemas/ErrorConverted_allOf_error_extra' + required: + - error_extra + example: null + DataPointError_allOf: + properties: + data_id: + description: エラーが発生した場合、 `/intdash/measurement/get/data/error` + type: string + data: + $ref: '#/components/schemas/DataPointDataError' + example: null + securitySchemes: + BasicAuthForTenantAPI: + description: |2- + + テナント管理APIを利用するためのベーシック認証です。サーバーに配置された設定ファイルに記述したユーザー情報を指定します。 + 詳細はサーバー管理者にお問い合わせ下さい。 + scheme: basic + type: http + IntdashToken: + description: |2- + + APIトークンを使用する場合は、[トークンを作成](#operation/createAPIToken)し、そのトークンをX-Intdash-Tokenヘッダーにセットします。 + + ``` + X-Intdash-Token: XXXXXX...XXXXXX + ``` + in: header + name: X-Intdash-Token + type: apiKey + OAuth2: + description: OAuth2のトークン交換を使用することができます。取得したトークンは、以下の `OAuth2TokenInHeader` か + `OAuth2TokenInCookie` で利用します。 + flows: + authorizationCode: + authorizationUrl: /api/auth/oauth2/authorization + refreshUrl: /api/auth/oauth2/token + scopes: + : OAuth2のスコープ(権限を制御するために使用される、サーバーによって決められた文字列) + tokenUrl: /api/auth/oauth2/token + clientCredentials: + scopes: + : OAuth2のスコープ(権限を制御するために使用される、サーバーによって決められた文字列) + tokenUrl: /api/auth/oauth2/token + password: + refreshUrl: /api/auth/oauth2/token + scopes: + : OAuth2のスコープ(権限を制御するために使用される、サーバーによって決められた文字列) + tokenUrl: /api/auth/oauth2/token + type: oauth2 + OAuth2TokenInHeader: + bearerFormat: JWT + description: |2- + + OAuth2で取得したトークンを `Bearer` トークンとして利用します。 + ``` + Authrization: Bearer xxx... + ``` + scheme: bearer + type: http + OAuth2TokenInCookie: + description: |- + **アクセストークン(JSON Web Token)** + + OAuth2を使って取得したトークンを、`_bearer_token` という名前でCookieにセットします。 + + リクエストヘッダーは以下のようになります: + + ``` + Cookie: _bearer_token=eyJhbGci... + ``` + in: cookie + name: _bearer_token + type: apiKey +x-tagGroups: +- name: auth + tags: + - auth_Clients + - auth_Authorization + - auth_Edges + - auth_OAuth2 + - auth_Me + - auth_Users + - auth_Projects + - auth_Groups + - auth_Group Members + - auth_Project Edges + - auth_Project Members + - auth_Roles + - auth_Scopes +- name: broker + tags: + - broker_Edge Connections + - broker_Stream + - broker_iSCP + description: intdash broker service +- name: meas + tags: + - meas_data_model + - meas_DataPoints + - meas_DataPointIDs + - meas_Measurements + - meas_Measurement Jobs + - meas_Measurement Markers + - meas_Uploading Measurements + - meas_Signals + - meas_Trashed Measurements + description: Measurements service API specification +- name: media + tags: + - media_HLS + - media_Jobs + - media_Videos + - media_Live +- name: versions + tags: + - versions_Version + diff --git a/intdash/build.gradle b/intdash/build.gradle new file mode 100644 index 0000000..3928eec --- /dev/null +++ b/intdash/build.gradle @@ -0,0 +1,169 @@ +apply plugin: 'idea' +apply plugin: 'eclipse' +apply plugin: 'java' +apply plugin: 'com.diffplug.spotless' + +group = 'com.aptpod' +version = 'v2.4.0-next-4a4316946' + +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:2.3.+' + classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' + classpath 'com.diffplug.spotless:spotless-plugin-gradle:6.11.0' + } +} + +repositories { + mavenCentral() +} +sourceSets { + main.java.srcDirs = ['src/main/java'] +} + +if(hasProperty('target') && target == 'android') { + + apply plugin: 'com.android.library' + apply plugin: 'com.github.dcendents.android-maven' + + android { + compileSdkVersion 25 + buildToolsVersion '25.0.2' + defaultConfig { + minSdkVersion 14 + targetSdkVersion 25 + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + // Rename the aar correctly + libraryVariants.all { variant -> + variant.outputs.each { output -> + def outputFile = output.outputFile + if (outputFile != null && outputFile.name.endsWith('.aar')) { + def fileName = "${project.name}-${variant.baseName}-${version}.aar" + output.outputFile = new File(outputFile.parent, fileName) + } + } + } + + dependencies { + provided "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" + } + } + + afterEvaluate { + android.libraryVariants.all { variant -> + def task = project.tasks.create "jar${variant.name.capitalize()}", Jar + task.description = "Create jar artifact for ${variant.name}" + task.dependsOn variant.javaCompile + task.from variant.javaCompile.destinationDir + task.destinationDir = project.file("${project.buildDir}/outputs/jar") + task.archiveName = "${project.name}-${variant.baseName}-${version}.jar" + artifacts.add('archives', task) + } + } + + task sourcesJar(type: Jar) { + from android.sourceSets.main.java.srcDirs + classifier = 'sources' + } + + artifacts { + archives sourcesJar + } + +} else { + + apply plugin: 'java' + apply plugin: 'maven-publish' + + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 + + publishing { + publications { + maven(MavenPublication) { + artifactId = 'intdash' + from components.java + } + } + } + + task execute(type:JavaExec) { + main = System.getProperty('mainClass') + classpath = sourceSets.main.runtimeClasspath + } +} + +ext { + jakarta_annotation_version = "1.3.5" +} + +dependencies { + implementation 'io.swagger:swagger-annotations:1.6.8' + implementation "com.google.code.findbugs:jsr305:3.0.2" + implementation 'com.squareup.okhttp3:okhttp:4.10.0' + implementation 'com.squareup.okhttp3:logging-interceptor:4.10.0' + implementation 'com.google.code.gson:gson:2.9.1' + implementation 'io.gsonfire:gson-fire:1.8.5' + implementation 'javax.ws.rs:jsr311-api:1.1.1' + implementation 'javax.ws.rs:javax.ws.rs-api:2.1.1' + implementation 'org.openapitools:jackson-databind-nullable:0.2.6' + implementation group: 'org.apache.oltu.oauth2', name: 'org.apache.oltu.oauth2.client', version: '1.0.2' + implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0' + implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" + testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.1' + testImplementation 'org.mockito:mockito-core:3.12.4' + testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.1' +} + +javadoc { + options.tags = [ "http.response.details:a:Http Response Details" ] +} + +// Use spotless plugin to automatically format code, remove unused import, etc +// To apply changes directly to the file, run `gradlew spotlessApply` +// Ref: https://github.com/diffplug/spotless/tree/main/plugin-gradle +spotless { + // comment out below to run spotless as part of the `check` task + enforceCheck false + + format 'misc', { + // define the files (e.g. '*.gradle', '*.md') to apply `misc` to + target '.gitignore' + + // define the steps to apply to those files + trimTrailingWhitespace() + indentWithSpaces() // Takes an integer argument if you don't like 4 + endWithNewline() + } + java { + // don't need to set target, it is inferred from java + + // apply a specific flavor of google-java-format + googleJavaFormat('1.8').aosp().reflowLongStrings() + + removeUnusedImports() + importOrder() + } +} + +test { + // Enable JUnit 5 (Gradle 4.6+). + useJUnitPlatform() + + // Always run tests, even when nothing changed. + dependsOn 'cleanTest' + + // Show test results. + testLogging { + events "passed", "skipped", "failed" + } + +} diff --git a/intdash/build.sbt b/intdash/build.sbt new file mode 100644 index 0000000..bfb4f37 --- /dev/null +++ b/intdash/build.sbt @@ -0,0 +1,29 @@ +lazy val root = (project in file(".")). + settings( + organization := "com.aptpod", + name := "intdash", + version := "v2.4.0-next-4a4316946", + scalaVersion := "2.11.4", + scalacOptions ++= Seq("-feature"), + javacOptions in compile ++= Seq("-Xlint:deprecation"), + publishArtifact in (Compile, packageDoc) := false, + resolvers += Resolver.mavenLocal, + libraryDependencies ++= Seq( + "io.swagger" % "swagger-annotations" % "1.6.5", + "com.squareup.okhttp3" % "okhttp" % "4.10.0", + "com.squareup.okhttp3" % "logging-interceptor" % "4.10.0", + "com.google.code.gson" % "gson" % "2.9.1", + "org.apache.commons" % "commons-lang3" % "3.12.0", + "javax.ws.rs" % "jsr311-api" % "1.1.1", + "javax.ws.rs" % "javax.ws.rs-api" % "2.1.1", + "org.openapitools" % "jackson-databind-nullable" % "0.2.6", + "org.apache.oltu.oauth2" % "org.apache.oltu.oauth2.client" % "1.0.2", + "io.gsonfire" % "gson-fire" % "1.8.5" % "compile", + "jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile", + "com.google.code.findbugs" % "jsr305" % "3.0.2" % "compile", + "jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile", + "org.junit.jupiter" % "junit-jupiter-api" % "5.9.1" % "test", + "com.novocode" % "junit-interface" % "0.10" % "test", + "org.mockito" % "mockito-core" % "3.12.4" % "test" + ) + ) diff --git a/intdash/docs/APITokenIntrospectionRequest.md b/intdash/docs/APITokenIntrospectionRequest.md new file mode 100644 index 0000000..be131be --- /dev/null +++ b/intdash/docs/APITokenIntrospectionRequest.md @@ -0,0 +1,13 @@ + + +# APITokenIntrospectionRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**token** | **String** | APIトークン | | + + + diff --git a/intdash/docs/APITokenIntrospectionResponse.md b/intdash/docs/APITokenIntrospectionResponse.md new file mode 100644 index 0000000..099faa5 --- /dev/null +++ b/intdash/docs/APITokenIntrospectionResponse.md @@ -0,0 +1,18 @@ + + +# APITokenIntrospectionResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**active** | **Boolean** | `true` の場合、このAPIトークンは有効です。 | | +|**tenantId** | **Long** | テナントID。デフォルトテナント以外を対象とする場合にのみ返されます。 | [optional] | +|**userUuid** | **String** | ユーザーのUUID | [optional] | +|**scopes** | [**List<Scope>**](Scope.md) | APIトークンが認可されているスコープ | [optional] | +|**expiredAt** | **Date** | APIトークンの有効期限 | [optional] | +|**createdAt** | **Date** | APIトークンの作成日時 | [optional] | + + + diff --git a/intdash/docs/AddGroupMemberRequest.md b/intdash/docs/AddGroupMemberRequest.md new file mode 100644 index 0000000..cda7bc1 --- /dev/null +++ b/intdash/docs/AddGroupMemberRequest.md @@ -0,0 +1,15 @@ + + +# AddGroupMemberRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**userEmailAddress** | **String** | ユーザーのメールアドレス。`user_uuid` といずれか必須です。`user_uuid` を優先します。 | [optional] | +|**userUuid** | **String** | ユーザーのUUID。`user_email_address` といずれか必須です。`user_uuid` を優先します。 | [optional] | +|**roleUuids** | **List<String>** | ユーザーに割り当てるロールのUUID。オーナーのロールUUIDは変更できません。 | | + + + diff --git a/intdash/docs/AddProjectEdgeRequest.md b/intdash/docs/AddProjectEdgeRequest.md new file mode 100644 index 0000000..16b6508 --- /dev/null +++ b/intdash/docs/AddProjectEdgeRequest.md @@ -0,0 +1,14 @@ + + +# AddProjectEdgeRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**edgeName** | **String** | 追加したいエッジの名前 | | +|**nickname** | **String** | プロジェクトにおけるエッジのニックネーム | | + + + diff --git a/intdash/docs/AddProjectMemberRequest.md b/intdash/docs/AddProjectMemberRequest.md new file mode 100644 index 0000000..91e2f75 --- /dev/null +++ b/intdash/docs/AddProjectMemberRequest.md @@ -0,0 +1,15 @@ + + +# AddProjectMemberRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**userEmailAddress** | **String** | ユーザーのメールアドレス。`user_uuid` といずれか必須です。`user_uuid` を優先します。 | [optional] | +|**userUuid** | **String** | ユーザーのUUID。`user_email_address` といずれか必須です。`user_uuid` を優先します。 | [optional] | +|**roleUuids** | **List<String>** | ユーザーに割り当てるロールのUUID | | + + + diff --git a/intdash/docs/AllowedEndpoint.md b/intdash/docs/AllowedEndpoint.md new file mode 100644 index 0000000..2d61718 --- /dev/null +++ b/intdash/docs/AllowedEndpoint.md @@ -0,0 +1,14 @@ + + +# AllowedEndpoint + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**path** | **String** | リソースパス。グロブを使って指定可能です。 | | +|**method** | **String** | HTTPメソッド。グロブを使って指定可能です。 | | + + + diff --git a/intdash/docs/AllowedISCPMessage.md b/intdash/docs/AllowedISCPMessage.md new file mode 100644 index 0000000..650b544 --- /dev/null +++ b/intdash/docs/AllowedISCPMessage.md @@ -0,0 +1,13 @@ + + +# AllowedISCPMessage + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **ISCPMessageType** | | | + + + diff --git a/intdash/docs/AssignOwnerRequest.md b/intdash/docs/AssignOwnerRequest.md new file mode 100644 index 0000000..db12700 --- /dev/null +++ b/intdash/docs/AssignOwnerRequest.md @@ -0,0 +1,13 @@ + + +# AssignOwnerRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**userUuid** | **String** | 所有者とするユーザーのUUID | | + + + diff --git a/intdash/docs/AuthAuthorizationApi.md b/intdash/docs/AuthAuthorizationApi.md new file mode 100644 index 0000000..6be22b9 --- /dev/null +++ b/intdash/docs/AuthAuthorizationApi.md @@ -0,0 +1,164 @@ +# AuthAuthorizationApi + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**checkHTTPAuthorization**](AuthAuthorizationApi.md#checkHTTPAuthorization) | **POST** /auth/authorize/http | Check HTTP Authorization | +| [**checkMeHTTPAuthorization**](AuthAuthorizationApi.md#checkMeHTTPAuthorization) | **POST** /auth/users/me/authorize/http | Check Me HTTP Authorization | + + + +# **checkHTTPAuthorization** +> CheckAuthorizationResponse checkHTTPAuthorization(checkHTTPAuthorizationRequest) + +Check HTTP Authorization + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthAuthorizationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthAuthorizationApi apiInstance = new AuthAuthorizationApi(defaultClient); + CheckHTTPAuthorizationRequest checkHTTPAuthorizationRequest = new CheckHTTPAuthorizationRequest(); // CheckHTTPAuthorizationRequest | + try { + CheckAuthorizationResponse result = apiInstance.checkHTTPAuthorization(checkHTTPAuthorizationRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthAuthorizationApi#checkHTTPAuthorization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **checkHTTPAuthorizationRequest** | [**CheckHTTPAuthorizationRequest**](CheckHTTPAuthorizationRequest.md)| | [optional] | + +### Return type + +[**CheckAuthorizationResponse**](CheckAuthorizationResponse.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **checkMeHTTPAuthorization** +> CheckAuthorizationResponse checkMeHTTPAuthorization(checkMeHTTPAuthorizationRequest) + +Check Me HTTP Authorization + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthAuthorizationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthAuthorizationApi apiInstance = new AuthAuthorizationApi(defaultClient); + CheckMeHTTPAuthorizationRequest checkMeHTTPAuthorizationRequest = new CheckMeHTTPAuthorizationRequest(); // CheckMeHTTPAuthorizationRequest | + try { + CheckAuthorizationResponse result = apiInstance.checkMeHTTPAuthorization(checkMeHTTPAuthorizationRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthAuthorizationApi#checkMeHTTPAuthorization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **checkMeHTTPAuthorizationRequest** | [**CheckMeHTTPAuthorizationRequest**](CheckMeHTTPAuthorizationRequest.md)| | [optional] | + +### Return type + +[**CheckAuthorizationResponse**](CheckAuthorizationResponse.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + diff --git a/intdash/docs/AuthClientsApi.md b/intdash/docs/AuthClientsApi.md new file mode 100644 index 0000000..8ba718f --- /dev/null +++ b/intdash/docs/AuthClientsApi.md @@ -0,0 +1,815 @@ +# AuthClientsApi + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createMyOAuth2Clients**](AuthClientsApi.md#createMyOAuth2Clients) | **POST** /auth/users/me/clients | Create My OAuth2Client | +| [**deleteMyOAuth2Client**](AuthClientsApi.md#deleteMyOAuth2Client) | **DELETE** /auth/users/me/clients/{client_id} | Delete My OAuth2Client | +| [**deleteOAuth2Client**](AuthClientsApi.md#deleteOAuth2Client) | **DELETE** /auth/clients/{client_id} | Delete OAuth2Client | +| [**getMyOAuth2Client**](AuthClientsApi.md#getMyOAuth2Client) | **GET** /auth/users/me/clients/{client_id} | Get My OAuth2Client | +| [**getOAuth2Client**](AuthClientsApi.md#getOAuth2Client) | **GET** /auth/clients/{client_id} | Get OAuth2Client | +| [**listMyOAuth2Clients**](AuthClientsApi.md#listMyOAuth2Clients) | **GET** /auth/users/me/clients | List My OAuth2Clients | +| [**listOAuth2Clients**](AuthClientsApi.md#listOAuth2Clients) | **GET** /auth/clients | List OAuth2Clients | +| [**listUsersOAuth2Clients**](AuthClientsApi.md#listUsersOAuth2Clients) | **GET** /auth/users/{user_uuid}/clients | List User's OAuth2Clients | +| [**updateMyOAuth2Client**](AuthClientsApi.md#updateMyOAuth2Client) | **PATCH** /auth/users/me/clients/{client_id} | Update My OAuth2Client | +| [**updateOAuth2Client**](AuthClientsApi.md#updateOAuth2Client) | **PATCH** /auth/clients/{client_id} | Update OAuth2Client | + + + +# **createMyOAuth2Clients** +> OAuth2ClientWithSecret createMyOAuth2Clients(createMyOAuth2ClientRequest) + +Create My OAuth2Client + +自分(ユーザー)のOAuth2クライアントを作成します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthClientsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthClientsApi apiInstance = new AuthClientsApi(defaultClient); + CreateMyOAuth2ClientRequest createMyOAuth2ClientRequest = new CreateMyOAuth2ClientRequest(); // CreateMyOAuth2ClientRequest | + try { + OAuth2ClientWithSecret result = apiInstance.createMyOAuth2Clients(createMyOAuth2ClientRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthClientsApi#createMyOAuth2Clients"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **createMyOAuth2ClientRequest** | [**CreateMyOAuth2ClientRequest**](CreateMyOAuth2ClientRequest.md)| | [optional] | + +### Return type + +[**OAuth2ClientWithSecret**](OAuth2ClientWithSecret.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + + +# **deleteMyOAuth2Client** +> deleteMyOAuth2Client(clientId) + +Delete My OAuth2Client + +自分(ユーザー)のOAuth2クライアントを削除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthClientsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthClientsApi apiInstance = new AuthClientsApi(defaultClient); + String clientId = "039b8ee2-8edc-46e4-9a88-4d03bac142f7"; // String | OAuth2クライアントID + try { + apiInstance.deleteMyOAuth2Client(clientId); + } catch (ApiException e) { + System.err.println("Exception when calling AuthClientsApi#deleteMyOAuth2Client"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **clientId** | **String**| OAuth2クライアントID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **deleteOAuth2Client** +> deleteOAuth2Client(clientId) + +Delete OAuth2Client + +OAuth2クライアントを削除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthClientsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthClientsApi apiInstance = new AuthClientsApi(defaultClient); + String clientId = "039b8ee2-8edc-46e4-9a88-4d03bac142f7"; // String | OAuth2クライアントID + try { + apiInstance.deleteOAuth2Client(clientId); + } catch (ApiException e) { + System.err.println("Exception when calling AuthClientsApi#deleteOAuth2Client"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **clientId** | **String**| OAuth2クライアントID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **getMyOAuth2Client** +> OAuth2Client getMyOAuth2Client(clientId) + +Get My OAuth2Client + +自分(ユーザー)のOAuth2クライアントを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthClientsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthClientsApi apiInstance = new AuthClientsApi(defaultClient); + String clientId = "039b8ee2-8edc-46e4-9a88-4d03bac142f7"; // String | OAuth2クライアントID + try { + OAuth2Client result = apiInstance.getMyOAuth2Client(clientId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthClientsApi#getMyOAuth2Client"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **clientId** | **String**| OAuth2クライアントID | | + +### Return type + +[**OAuth2Client**](OAuth2Client.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getOAuth2Client** +> OAuth2Client getOAuth2Client(clientId) + +Get OAuth2Client + +OAuth2クライアントを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthClientsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthClientsApi apiInstance = new AuthClientsApi(defaultClient); + String clientId = "039b8ee2-8edc-46e4-9a88-4d03bac142f7"; // String | OAuth2クライアントID + try { + OAuth2Client result = apiInstance.getOAuth2Client(clientId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthClientsApi#getOAuth2Client"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **clientId** | **String**| OAuth2クライアントID | | + +### Return type + +[**OAuth2Client**](OAuth2Client.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listMyOAuth2Clients** +> OAuth2Clients listMyOAuth2Clients() + +List My OAuth2Clients + +自分(ユーザー)のOAuth2クライアントのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthClientsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthClientsApi apiInstance = new AuthClientsApi(defaultClient); + try { + OAuth2Clients result = apiInstance.listMyOAuth2Clients(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthClientsApi#listMyOAuth2Clients"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**OAuth2Clients**](OAuth2Clients.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listOAuth2Clients** +> OAuth2Clients listOAuth2Clients(id, name, sort, page, perPage) + +List OAuth2Clients + +OAuth2クライアントのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthClientsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthClientsApi apiInstance = new AuthClientsApi(defaultClient); + List id = Arrays.asList(); // List | OAuth2クライアントID + List name = Arrays.asList(); // List | 名前による部分一致検索 + String sort = "name+"; // String | 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 - name - created_at - updated_at + Integer page = 1; // Integer | 取得するページの番号 + Integer perPage = 30; // Integer | 1回のリクエストで取得する件数 + try { + OAuth2Clients result = apiInstance.listOAuth2Clients(id, name, sort, page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthClientsApi#listOAuth2Clients"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **id** | [**List<String>**](String.md)| OAuth2クライアントID | [optional] | +| **name** | [**List<String>**](String.md)| 名前による部分一致検索 | [optional] | +| **sort** | **String**| 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 - name - created_at - updated_at | [optional] [default to name+] | +| **page** | **Integer**| 取得するページの番号 | [optional] [default to 1] | +| **perPage** | **Integer**| 1回のリクエストで取得する件数 | [optional] [default to 30] | + +### Return type + +[**OAuth2Clients**](OAuth2Clients.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listUsersOAuth2Clients** +> OAuth2Clients listUsersOAuth2Clients(userUuid) + +List User's OAuth2Clients + +ユーザーのOAuth2クライアントのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthClientsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthClientsApi apiInstance = new AuthClientsApi(defaultClient); + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + try { + OAuth2Clients result = apiInstance.listUsersOAuth2Clients(userUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthClientsApi#listUsersOAuth2Clients"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userUuid** | **String**| | | + +### Return type + +[**OAuth2Clients**](OAuth2Clients.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **updateMyOAuth2Client** +> OAuth2Client updateMyOAuth2Client(clientId, updateOAuth2ClientRequest) + +Update My OAuth2Client + +自分(ユーザー)のOAuth2クライアントを更新します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthClientsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthClientsApi apiInstance = new AuthClientsApi(defaultClient); + String clientId = "039b8ee2-8edc-46e4-9a88-4d03bac142f7"; // String | OAuth2クライアントID + UpdateOAuth2ClientRequest updateOAuth2ClientRequest = new UpdateOAuth2ClientRequest(); // UpdateOAuth2ClientRequest | + try { + OAuth2Client result = apiInstance.updateMyOAuth2Client(clientId, updateOAuth2ClientRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthClientsApi#updateMyOAuth2Client"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **clientId** | **String**| OAuth2クライアントID | | +| **updateOAuth2ClientRequest** | [**UpdateOAuth2ClientRequest**](UpdateOAuth2ClientRequest.md)| | [optional] | + +### Return type + +[**OAuth2Client**](OAuth2Client.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **304** | Not Modified | - | + + +# **updateOAuth2Client** +> OAuth2Client updateOAuth2Client(clientId, updateOAuth2ClientRequest) + +Update OAuth2Client + +OAuth2クライアントを更新します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthClientsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthClientsApi apiInstance = new AuthClientsApi(defaultClient); + String clientId = "039b8ee2-8edc-46e4-9a88-4d03bac142f7"; // String | OAuth2クライアントID + UpdateOAuth2ClientRequest updateOAuth2ClientRequest = new UpdateOAuth2ClientRequest(); // UpdateOAuth2ClientRequest | + try { + OAuth2Client result = apiInstance.updateOAuth2Client(clientId, updateOAuth2ClientRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthClientsApi#updateOAuth2Client"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **clientId** | **String**| OAuth2クライアントID | | +| **updateOAuth2ClientRequest** | [**UpdateOAuth2ClientRequest**](UpdateOAuth2ClientRequest.md)| | [optional] | + +### Return type + +[**OAuth2Client**](OAuth2Client.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + diff --git a/intdash/docs/AuthEdgesApi.md b/intdash/docs/AuthEdgesApi.md new file mode 100644 index 0000000..ac2e9c4 --- /dev/null +++ b/intdash/docs/AuthEdgesApi.md @@ -0,0 +1,1549 @@ +# AuthEdgesApi + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**assignOwner**](AuthEdgesApi.md#assignOwner) | **POST** /auth/edges/{edge_uuid}/owner | Assign Owner | +| [**createEdge**](AuthEdgesApi.md#createEdge) | **POST** /auth/edges | Create Edge | +| [**createMyEdge**](AuthEdgesApi.md#createMyEdge) | **POST** /auth/users/me/edges | Create My Edge | +| [**createMyEdgeWithUUID**](AuthEdgesApi.md#createMyEdgeWithUUID) | **PUT** /auth/users/me/edges/{edge_uuid} | Create My Edge With UUID | +| [**createUsersEdge**](AuthEdgesApi.md#createUsersEdge) | **POST** /auth/users/{user_uuid}/edges | Create User's Edge | +| [**deleteEdge**](AuthEdgesApi.md#deleteEdge) | **DELETE** /auth/edges/{edge_uuid} | Delete Edge | +| [**deleteMyEdge**](AuthEdgesApi.md#deleteMyEdge) | **DELETE** /auth/users/me/edges/{edge_uuid} | Delete My Edge | +| [**deleteUsersEdge**](AuthEdgesApi.md#deleteUsersEdge) | **DELETE** /auth/users/{user_uuid}/edges/{edge_uuid} | Delete User's Edge | +| [**getEdge**](AuthEdgesApi.md#getEdge) | **GET** /auth/edges/{edge_uuid} | Get Edge | +| [**getMeAsEdge**](AuthEdgesApi.md#getMeAsEdge) | **GET** /auth/edges/me | Get Edge having the same UUID as Me | +| [**getMyEdge**](AuthEdgesApi.md#getMyEdge) | **GET** /auth/users/me/edges/{edge_uuid} | Get My Edge | +| [**getUsersEdge**](AuthEdgesApi.md#getUsersEdge) | **GET** /auth/users/{user_uuid}/edges/{edge_uuid} | Get User's Edge | +| [**listEdges**](AuthEdgesApi.md#listEdges) | **GET** /auth/edges | List Edges | +| [**listMyEdges**](AuthEdgesApi.md#listMyEdges) | **GET** /auth/users/me/edges | List My Edges | +| [**listUsersEdges**](AuthEdgesApi.md#listUsersEdges) | **GET** /auth/users/{user_uuid}/edges | List User's Edges | +| [**removeOwner**](AuthEdgesApi.md#removeOwner) | **DELETE** /auth/edges/{edge_uuid}/owner | Unassign Owner | +| [**updateEdge**](AuthEdgesApi.md#updateEdge) | **PATCH** /auth/edges/{edge_uuid} | Update Edge | +| [**updateMyEdge**](AuthEdgesApi.md#updateMyEdge) | **PATCH** /auth/users/me/edges/{edge_uuid} | Update My Edge | +| [**updateUsersEdge**](AuthEdgesApi.md#updateUsersEdge) | **PATCH** /auth/users/{user_uuid}/edges/{edge_uuid} | Update User's Edge | + + + +# **assignOwner** +> EdgeOwner assignOwner(edgeUuid, assignOwnerRequest) + +Assign Owner + +エッジに所有者を割り当てます。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthEdgesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthEdgesApi apiInstance = new AuthEdgesApi(defaultClient); + String edgeUuid = "e920a50c-ddde-4571-b066-b568340de7cf"; // String | エッジのUUID + AssignOwnerRequest assignOwnerRequest = new AssignOwnerRequest(); // AssignOwnerRequest | + try { + EdgeOwner result = apiInstance.assignOwner(edgeUuid, assignOwnerRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthEdgesApi#assignOwner"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **edgeUuid** | **String**| エッジのUUID | | +| **assignOwnerRequest** | [**AssignOwnerRequest**](AssignOwnerRequest.md)| | [optional] | + +### Return type + +[**EdgeOwner**](EdgeOwner.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **409** | Conflict | - | + + +# **createEdge** +> Edge createEdge(createEdgeRequest) + +Create Edge + +所有者がない状態でエッジを作成します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthEdgesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthEdgesApi apiInstance = new AuthEdgesApi(defaultClient); + CreateEdgeRequest createEdgeRequest = new CreateEdgeRequest(); // CreateEdgeRequest | + try { + Edge result = apiInstance.createEdge(createEdgeRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthEdgesApi#createEdge"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **createEdgeRequest** | [**CreateEdgeRequest**](CreateEdgeRequest.md)| | [optional] | + +### Return type + +[**Edge**](Edge.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + + +# **createMyEdge** +> Edge createMyEdge(createEdgeRequest) + +Create My Edge + +新しいエッジを作成し、自分(ユーザー)を所有者に設定します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthEdgesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthEdgesApi apiInstance = new AuthEdgesApi(defaultClient); + CreateEdgeRequest createEdgeRequest = new CreateEdgeRequest(); // CreateEdgeRequest | + try { + Edge result = apiInstance.createMyEdge(createEdgeRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthEdgesApi#createMyEdge"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **createEdgeRequest** | [**CreateEdgeRequest**](CreateEdgeRequest.md)| | [optional] | + +### Return type + +[**Edge**](Edge.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + + +# **createMyEdgeWithUUID** +> Edge createMyEdgeWithUUID(edgeUuid, createEdgeRequest) + +Create My Edge With UUID + +指定したUUIDを持つ新しいエッジを作成し、自分を所有者に設定します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthEdgesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthEdgesApi apiInstance = new AuthEdgesApi(defaultClient); + String edgeUuid = "e920a50c-ddde-4571-b066-b568340de7cf"; // String | エッジのUUID + CreateEdgeRequest createEdgeRequest = new CreateEdgeRequest(); // CreateEdgeRequest | + try { + Edge result = apiInstance.createMyEdgeWithUUID(edgeUuid, createEdgeRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthEdgesApi#createMyEdgeWithUUID"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **edgeUuid** | **String**| エッジのUUID | | +| **createEdgeRequest** | [**CreateEdgeRequest**](CreateEdgeRequest.md)| | [optional] | + +### Return type + +[**Edge**](Edge.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + + +# **createUsersEdge** +> Edge createUsersEdge(userUuid, createEdgeRequest) + +Create User's Edge + +指定されたユーザーを所有者とするエッジを作成します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthEdgesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthEdgesApi apiInstance = new AuthEdgesApi(defaultClient); + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + CreateEdgeRequest createEdgeRequest = new CreateEdgeRequest(); // CreateEdgeRequest | + try { + Edge result = apiInstance.createUsersEdge(userUuid, createEdgeRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthEdgesApi#createUsersEdge"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userUuid** | **String**| | | +| **createEdgeRequest** | [**CreateEdgeRequest**](CreateEdgeRequest.md)| | [optional] | + +### Return type + +[**Edge**](Edge.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + + +# **deleteEdge** +> deleteEdge(edgeUuid) + +Delete Edge + +エッジを削除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthEdgesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthEdgesApi apiInstance = new AuthEdgesApi(defaultClient); + String edgeUuid = "e920a50c-ddde-4571-b066-b568340de7cf"; // String | エッジのUUID + try { + apiInstance.deleteEdge(edgeUuid); + } catch (ApiException e) { + System.err.println("Exception when calling AuthEdgesApi#deleteEdge"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **edgeUuid** | **String**| エッジのUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **deleteMyEdge** +> deleteMyEdge(edgeUuid) + +Delete My Edge + +自分(ユーザー)が所有するエッジを削除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthEdgesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthEdgesApi apiInstance = new AuthEdgesApi(defaultClient); + String edgeUuid = "e920a50c-ddde-4571-b066-b568340de7cf"; // String | エッジのUUID + try { + apiInstance.deleteMyEdge(edgeUuid); + } catch (ApiException e) { + System.err.println("Exception when calling AuthEdgesApi#deleteMyEdge"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **edgeUuid** | **String**| エッジのUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **deleteUsersEdge** +> deleteUsersEdge(userUuid, edgeUuid) + +Delete User's Edge + +ユーザーが所有するエッジを削除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthEdgesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthEdgesApi apiInstance = new AuthEdgesApi(defaultClient); + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + String edgeUuid = "e920a50c-ddde-4571-b066-b568340de7cf"; // String | エッジのUUID + try { + apiInstance.deleteUsersEdge(userUuid, edgeUuid); + } catch (ApiException e) { + System.err.println("Exception when calling AuthEdgesApi#deleteUsersEdge"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userUuid** | **String**| | | +| **edgeUuid** | **String**| エッジのUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **getEdge** +> Edge getEdge(edgeUuid) + +Get Edge + +エッジを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthEdgesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthEdgesApi apiInstance = new AuthEdgesApi(defaultClient); + String edgeUuid = "e920a50c-ddde-4571-b066-b568340de7cf"; // String | エッジのUUID + try { + Edge result = apiInstance.getEdge(edgeUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthEdgesApi#getEdge"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **edgeUuid** | **String**| エッジのUUID | | + +### Return type + +[**Edge**](Edge.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getMeAsEdge** +> Edge getMeAsEdge() + +Get Edge having the same UUID as Me + +自分のUUIDと同じエッジUUIDを持つエッジを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthEdgesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthEdgesApi apiInstance = new AuthEdgesApi(defaultClient); + try { + Edge result = apiInstance.getMeAsEdge(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthEdgesApi#getMeAsEdge"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**Edge**](Edge.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getMyEdge** +> Edge getMyEdge(edgeUuid) + +Get My Edge + +自分(ユーザー)が所有するエッジを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthEdgesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthEdgesApi apiInstance = new AuthEdgesApi(defaultClient); + String edgeUuid = "e920a50c-ddde-4571-b066-b568340de7cf"; // String | エッジのUUID + try { + Edge result = apiInstance.getMyEdge(edgeUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthEdgesApi#getMyEdge"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **edgeUuid** | **String**| エッジのUUID | | + +### Return type + +[**Edge**](Edge.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getUsersEdge** +> Edge getUsersEdge(userUuid, edgeUuid) + +Get User's Edge + +ユーザーが所有するエッジを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthEdgesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthEdgesApi apiInstance = new AuthEdgesApi(defaultClient); + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + String edgeUuid = "e920a50c-ddde-4571-b066-b568340de7cf"; // String | エッジのUUID + try { + Edge result = apiInstance.getUsersEdge(userUuid, edgeUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthEdgesApi#getUsersEdge"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userUuid** | **String**| | | +| **edgeUuid** | **String**| エッジのUUID | | + +### Return type + +[**Edge**](Edge.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listEdges** +> Edges listEdges(uuid, name, nickname, ownerUuid, hasOwner, sort, page, perPage) + +List Edges + +エッジのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthEdgesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthEdgesApi apiInstance = new AuthEdgesApi(defaultClient); + List uuid = Arrays.asList(); // List | エッジのUUID + List name = Arrays.asList(); // List | 名前による部分一致検索 + List nickname = Arrays.asList(); // List | 表示名による部分一致検索 + List ownerUuid = Arrays.asList(); // List | 所有者ユーザーのUUID + String hasOwner = "true"; // String | 所有者の有無。 * `true` : 所有者が設定されているエッジを取得します。 * `false` : 所有者が設定されていないエッジを取得します。 + String sort = "name+"; // String | 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 - name - created_at - updated_at + Integer page = 1; // Integer | 取得するページの番号 + Integer perPage = 30; // Integer | 1回のリクエストで取得する件数 + try { + Edges result = apiInstance.listEdges(uuid, name, nickname, ownerUuid, hasOwner, sort, page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthEdgesApi#listEdges"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **uuid** | [**List<String>**](String.md)| エッジのUUID | [optional] | +| **name** | [**List<String>**](String.md)| 名前による部分一致検索 | [optional] | +| **nickname** | [**List<String>**](String.md)| 表示名による部分一致検索 | [optional] | +| **ownerUuid** | [**List<String>**](String.md)| 所有者ユーザーのUUID | [optional] | +| **hasOwner** | **String**| 所有者の有無。 * `true` : 所有者が設定されているエッジを取得します。 * `false` : 所有者が設定されていないエッジを取得します。 | [optional] [enum: true, false] | +| **sort** | **String**| 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 - name - created_at - updated_at | [optional] [default to name+] | +| **page** | **Integer**| 取得するページの番号 | [optional] [default to 1] | +| **perPage** | **Integer**| 1回のリクエストで取得する件数 | [optional] [default to 30] | + +### Return type + +[**Edges**](Edges.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listMyEdges** +> Edges listMyEdges() + +List My Edges + +自分(ユーザー)が所有するエッジのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthEdgesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthEdgesApi apiInstance = new AuthEdgesApi(defaultClient); + try { + Edges result = apiInstance.listMyEdges(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthEdgesApi#listMyEdges"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**Edges**](Edges.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listUsersEdges** +> Edges listUsersEdges(userUuid) + +List User's Edges + +指定されたユーザーが所有するエッジのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthEdgesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthEdgesApi apiInstance = new AuthEdgesApi(defaultClient); + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + try { + Edges result = apiInstance.listUsersEdges(userUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthEdgesApi#listUsersEdges"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userUuid** | **String**| | | + +### Return type + +[**Edges**](Edges.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **removeOwner** +> removeOwner(edgeUuid) + +Unassign Owner + +エッジに所有者がない状態にします。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthEdgesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthEdgesApi apiInstance = new AuthEdgesApi(defaultClient); + String edgeUuid = "e920a50c-ddde-4571-b066-b568340de7cf"; // String | エッジのUUID + try { + apiInstance.removeOwner(edgeUuid); + } catch (ApiException e) { + System.err.println("Exception when calling AuthEdgesApi#removeOwner"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **edgeUuid** | **String**| エッジのUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **updateEdge** +> Edge updateEdge(edgeUuid, patchEdgeRequest) + +Update Edge + +エッジを更新します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthEdgesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthEdgesApi apiInstance = new AuthEdgesApi(defaultClient); + String edgeUuid = "e920a50c-ddde-4571-b066-b568340de7cf"; // String | エッジのUUID + PatchEdgeRequest patchEdgeRequest = new PatchEdgeRequest(); // PatchEdgeRequest | + try { + Edge result = apiInstance.updateEdge(edgeUuid, patchEdgeRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthEdgesApi#updateEdge"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **edgeUuid** | **String**| エッジのUUID | | +| **patchEdgeRequest** | [**PatchEdgeRequest**](PatchEdgeRequest.md)| | [optional] | + +### Return type + +[**Edge**](Edge.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **updateMyEdge** +> Edge updateMyEdge(edgeUuid, patchEdgeRequest) + +Update My Edge + +自分(ユーザー)が所有するエッジを更新します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthEdgesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthEdgesApi apiInstance = new AuthEdgesApi(defaultClient); + String edgeUuid = "e920a50c-ddde-4571-b066-b568340de7cf"; // String | エッジのUUID + PatchEdgeRequest patchEdgeRequest = new PatchEdgeRequest(); // PatchEdgeRequest | + try { + Edge result = apiInstance.updateMyEdge(edgeUuid, patchEdgeRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthEdgesApi#updateMyEdge"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **edgeUuid** | **String**| エッジのUUID | | +| **patchEdgeRequest** | [**PatchEdgeRequest**](PatchEdgeRequest.md)| | [optional] | + +### Return type + +[**Edge**](Edge.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **updateUsersEdge** +> Edge updateUsersEdge(userUuid, edgeUuid, patchEdgeRequest) + +Update User's Edge + +ユーザーが所有するエッジを更新します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthEdgesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthEdgesApi apiInstance = new AuthEdgesApi(defaultClient); + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + String edgeUuid = "e920a50c-ddde-4571-b066-b568340de7cf"; // String | エッジのUUID + PatchEdgeRequest patchEdgeRequest = new PatchEdgeRequest(); // PatchEdgeRequest | + try { + Edge result = apiInstance.updateUsersEdge(userUuid, edgeUuid, patchEdgeRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthEdgesApi#updateUsersEdge"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userUuid** | **String**| | | +| **edgeUuid** | **String**| エッジのUUID | | +| **patchEdgeRequest** | [**PatchEdgeRequest**](PatchEdgeRequest.md)| | [optional] | + +### Return type + +[**Edge**](Edge.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + diff --git a/intdash/docs/AuthGroupMembersApi.md b/intdash/docs/AuthGroupMembersApi.md new file mode 100644 index 0000000..811b909 --- /dev/null +++ b/intdash/docs/AuthGroupMembersApi.md @@ -0,0 +1,597 @@ +# AuthGroupMembersApi + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**addGroupMember**](AuthGroupMembersApi.md#addGroupMember) | **POST** /auth/groups/{group_uuid}/members | Add Group Member | +| [**addGroupOwnerAttribute**](AuthGroupMembersApi.md#addGroupOwnerAttribute) | **PUT** /auth/groups/{group_uuid}/members/{user_uuid}/owner | Add Group Owner Attribute | +| [**getGroupMember**](AuthGroupMembersApi.md#getGroupMember) | **GET** /auth/groups/{group_uuid}/members/{user_uuid} | Get Group Member | +| [**listGroupMembers**](AuthGroupMembersApi.md#listGroupMembers) | **GET** /auth/groups/{group_uuid}/members | List Group Members | +| [**removeGroupMember**](AuthGroupMembersApi.md#removeGroupMember) | **DELETE** /auth/groups/{group_uuid}/members/{user_uuid} | Remove Group Member | +| [**removeGroupOwnerAttribute**](AuthGroupMembersApi.md#removeGroupOwnerAttribute) | **DELETE** /auth/groups/{group_uuid}/members/{user_uuid}/owner | Remove Group Owner Attribute | +| [**updateGroupMember**](AuthGroupMembersApi.md#updateGroupMember) | **PATCH** /auth/groups/{group_uuid}/members/{user_uuid} | Update Group Member | + + + +# **addGroupMember** +> Member addGroupMember(groupUuid, addGroupMemberRequest) + +Add Group Member + +グループメンバーを追加します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthGroupMembersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthGroupMembersApi apiInstance = new AuthGroupMembersApi(defaultClient); + String groupUuid = "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee"; // String | グループのUUID + AddGroupMemberRequest addGroupMemberRequest = new AddGroupMemberRequest(); // AddGroupMemberRequest | + try { + Member result = apiInstance.addGroupMember(groupUuid, addGroupMemberRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthGroupMembersApi#addGroupMember"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **groupUuid** | **String**| グループのUUID | | +| **addGroupMemberRequest** | [**AddGroupMemberRequest**](AddGroupMemberRequest.md)| | [optional] | + +### Return type + +[**Member**](Member.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad Request | - | +| **409** | Conflict | - | + + +# **addGroupOwnerAttribute** +> Member addGroupOwnerAttribute(groupUuid, userUuid) + +Add Group Owner Attribute + +オーナー属性を追加します。オーナー属性を追加したメンバーは自動的にそのグループにおける全ての権限が付与されます。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthGroupMembersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthGroupMembersApi apiInstance = new AuthGroupMembersApi(defaultClient); + String groupUuid = "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee"; // String | グループのUUID + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + try { + Member result = apiInstance.addGroupOwnerAttribute(groupUuid, userUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthGroupMembersApi#addGroupOwnerAttribute"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **groupUuid** | **String**| グループのUUID | | +| **userUuid** | **String**| | | + +### Return type + +[**Member**](Member.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **304** | Not Modified | - | + + +# **getGroupMember** +> Member getGroupMember(groupUuid, userUuid) + +Get Group Member + +グループメンバーを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthGroupMembersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthGroupMembersApi apiInstance = new AuthGroupMembersApi(defaultClient); + String groupUuid = "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee"; // String | グループのUUID + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + try { + Member result = apiInstance.getGroupMember(groupUuid, userUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthGroupMembersApi#getGroupMember"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **groupUuid** | **String**| グループのUUID | | +| **userUuid** | **String**| | | + +### Return type + +[**Member**](Member.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **404** | Not Found | - | + + +# **listGroupMembers** +> Members listGroupMembers(groupUuid, isOwner, userUuid, page, perPage, sort) + +List Group Members + +グループメンバーリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthGroupMembersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthGroupMembersApi apiInstance = new AuthGroupMembersApi(defaultClient); + String groupUuid = "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee"; // String | グループのUUID + Boolean isOwner = false; // Boolean | * `true` を指定した場合、オーナーのみを取得します。 * `false` を指定した場合、オーナー以外を取得します。 * 指定を省略した場合、オーナーであるかにかかわらずメンバーを取得します。 + List userUuid = Arrays.asList(); // List | ユーザーのUUID + Integer page = 1; // Integer | 取得するページの番号 + Integer perPage = 30; // Integer | 1回のリクエストで取得する件数 + String sort = "created_at"; // String | 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 + try { + Members result = apiInstance.listGroupMembers(groupUuid, isOwner, userUuid, page, perPage, sort); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthGroupMembersApi#listGroupMembers"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **groupUuid** | **String**| グループのUUID | | +| **isOwner** | **Boolean**| * `true` を指定した場合、オーナーのみを取得します。 * `false` を指定した場合、オーナー以外を取得します。 * 指定を省略した場合、オーナーであるかにかかわらずメンバーを取得します。 | [optional] | +| **userUuid** | [**List<String>**](String.md)| ユーザーのUUID | [optional] | +| **page** | **Integer**| 取得するページの番号 | [optional] [default to 1] | +| **perPage** | **Integer**| 1回のリクエストで取得する件数 | [optional] [default to 30] | +| **sort** | **String**| 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 | [optional] [enum: created_at, created_at+, created_at-, updated_at, updated_at+, updated_at-, name, name+, name-] | + +### Return type + +[**Members**](Members.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **removeGroupMember** +> removeGroupMember(groupUuid, userUuid) + +Remove Group Member + +グループメンバーを除名します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthGroupMembersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthGroupMembersApi apiInstance = new AuthGroupMembersApi(defaultClient); + String groupUuid = "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee"; // String | グループのUUID + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + try { + apiInstance.removeGroupMember(groupUuid, userUuid); + } catch (ApiException e) { + System.err.println("Exception when calling AuthGroupMembersApi#removeGroupMember"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **groupUuid** | **String**| グループのUUID | | +| **userUuid** | **String**| | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | +| **403** | Forbidden | - | + + +# **removeGroupOwnerAttribute** +> removeGroupOwnerAttribute(groupUuid, userUuid) + +Remove Group Owner Attribute + +オーナー属性を取り除きます。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthGroupMembersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthGroupMembersApi apiInstance = new AuthGroupMembersApi(defaultClient); + String groupUuid = "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee"; // String | グループのUUID + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + try { + apiInstance.removeGroupOwnerAttribute(groupUuid, userUuid); + } catch (ApiException e) { + System.err.println("Exception when calling AuthGroupMembersApi#removeGroupOwnerAttribute"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **groupUuid** | **String**| グループのUUID | | +| **userUuid** | **String**| | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | +| **304** | Not Modified | - | +| **403** | Forbidden | - | + + +# **updateGroupMember** +> Member updateGroupMember(groupUuid, userUuid, updateGroupMemberRequest) + +Update Group Member + +グループメンバーを更新します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthGroupMembersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthGroupMembersApi apiInstance = new AuthGroupMembersApi(defaultClient); + String groupUuid = "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee"; // String | グループのUUID + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + UpdateGroupMemberRequest updateGroupMemberRequest = new UpdateGroupMemberRequest(); // UpdateGroupMemberRequest | + try { + Member result = apiInstance.updateGroupMember(groupUuid, userUuid, updateGroupMemberRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthGroupMembersApi#updateGroupMember"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **groupUuid** | **String**| グループのUUID | | +| **userUuid** | **String**| | | +| **updateGroupMemberRequest** | [**UpdateGroupMemberRequest**](UpdateGroupMemberRequest.md)| | [optional] | + +### Return type + +[**Member**](Member.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + diff --git a/intdash/docs/AuthGroupsApi.md b/intdash/docs/AuthGroupsApi.md new file mode 100644 index 0000000..738a884 --- /dev/null +++ b/intdash/docs/AuthGroupsApi.md @@ -0,0 +1,668 @@ +# AuthGroupsApi + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createGroup**](AuthGroupsApi.md#createGroup) | **POST** /auth/groups | Create Group | +| [**createSubGroup**](AuthGroupsApi.md#createSubGroup) | **POST** /auth/groups/{group_uuid}/groups | Create Sub Group | +| [**deleteGroup**](AuthGroupsApi.md#deleteGroup) | **DELETE** /auth/groups/{group_uuid} | Delete Group | +| [**getGroup**](AuthGroupsApi.md#getGroup) | **GET** /auth/groups/{group_uuid} | Get Group | +| [**listGroups**](AuthGroupsApi.md#listGroups) | **GET** /auth/groups | List Groups | +| [**listMyGroups**](AuthGroupsApi.md#listMyGroups) | **GET** /auth/users/me/groups | List My Groups | +| [**listSubGroup**](AuthGroupsApi.md#listSubGroup) | **GET** /auth/groups/{group_uuid}/groups | List Sub Groups | +| [**updateGroup**](AuthGroupsApi.md#updateGroup) | **PATCH** /auth/groups/{group_uuid} | Update Group | + + + +# **createGroup** +> Group createGroup(createGroupRequest) + +Create Group + +グループを作成します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthGroupsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthGroupsApi apiInstance = new AuthGroupsApi(defaultClient); + CreateGroupRequest createGroupRequest = new CreateGroupRequest(); // CreateGroupRequest | + try { + Group result = apiInstance.createGroup(createGroupRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthGroupsApi#createGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **createGroupRequest** | [**CreateGroupRequest**](CreateGroupRequest.md)| | [optional] | + +### Return type + +[**Group**](Group.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | +| **409** | Conflict | - | + + +# **createSubGroup** +> Group createSubGroup(groupUuid, createGroupRequest) + +Create Sub Group + +サブグループを作成します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthGroupsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthGroupsApi apiInstance = new AuthGroupsApi(defaultClient); + String groupUuid = "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee"; // String | グループのUUID + CreateGroupRequest createGroupRequest = new CreateGroupRequest(); // CreateGroupRequest | + try { + Group result = apiInstance.createSubGroup(groupUuid, createGroupRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthGroupsApi#createSubGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **groupUuid** | **String**| グループのUUID | | +| **createGroupRequest** | [**CreateGroupRequest**](CreateGroupRequest.md)| | [optional] | + +### Return type + +[**Group**](Group.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | +| **403** | Forbidden | - | +| **409** | Conflict | - | + + +# **deleteGroup** +> deleteGroup(groupUuid) + +Delete Group + +グループを削除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthGroupsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthGroupsApi apiInstance = new AuthGroupsApi(defaultClient); + String groupUuid = "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee"; // String | グループのUUID + try { + apiInstance.deleteGroup(groupUuid); + } catch (ApiException e) { + System.err.println("Exception when calling AuthGroupsApi#deleteGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **groupUuid** | **String**| グループのUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **getGroup** +> Group getGroup(groupUuid) + +Get Group + +グループを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthGroupsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthGroupsApi apiInstance = new AuthGroupsApi(defaultClient); + String groupUuid = "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee"; // String | グループのUUID + try { + Group result = apiInstance.getGroup(groupUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthGroupsApi#getGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **groupUuid** | **String**| グループのUUID | | + +### Return type + +[**Group**](Group.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listGroups** +> Groups listGroups(page, perPage, sort) + +List Groups + +グループのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthGroupsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthGroupsApi apiInstance = new AuthGroupsApi(defaultClient); + Integer page = 1; // Integer | 取得するページの番号 + Integer perPage = 30; // Integer | 1回のリクエストで取得する件数 + String sort = "created_at"; // String | 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 + try { + Groups result = apiInstance.listGroups(page, perPage, sort); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthGroupsApi#listGroups"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **page** | **Integer**| 取得するページの番号 | [optional] [default to 1] | +| **perPage** | **Integer**| 1回のリクエストで取得する件数 | [optional] [default to 30] | +| **sort** | **String**| 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 | [optional] [enum: created_at, created_at+, created_at-, updated_at, updated_at+, updated_at-, name, name+, name-] | + +### Return type + +[**Groups**](Groups.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listMyGroups** +> Groups listMyGroups(page, perPage, sort) + +List My Groups + +自分(ユーザー)が所属するグループのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthGroupsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthGroupsApi apiInstance = new AuthGroupsApi(defaultClient); + Integer page = 1; // Integer | 取得するページの番号 + Integer perPage = 30; // Integer | 1回のリクエストで取得する件数 + String sort = "created_at"; // String | 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 + try { + Groups result = apiInstance.listMyGroups(page, perPage, sort); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthGroupsApi#listMyGroups"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **page** | **Integer**| 取得するページの番号 | [optional] [default to 1] | +| **perPage** | **Integer**| 1回のリクエストで取得する件数 | [optional] [default to 30] | +| **sort** | **String**| 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 | [optional] [enum: created_at, created_at+, created_at-, updated_at, updated_at+, updated_at-, name, name+, name-] | + +### Return type + +[**Groups**](Groups.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listSubGroup** +> Groups listSubGroup(groupUuid, page, perPage, sort) + +List Sub Groups + +サブグループを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthGroupsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthGroupsApi apiInstance = new AuthGroupsApi(defaultClient); + String groupUuid = "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee"; // String | グループのUUID + Integer page = 1; // Integer | 取得するページの番号 + Integer perPage = 30; // Integer | 1回のリクエストで取得する件数 + String sort = "created_at"; // String | 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 + try { + Groups result = apiInstance.listSubGroup(groupUuid, page, perPage, sort); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthGroupsApi#listSubGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **groupUuid** | **String**| グループのUUID | | +| **page** | **Integer**| 取得するページの番号 | [optional] [default to 1] | +| **perPage** | **Integer**| 1回のリクエストで取得する件数 | [optional] [default to 30] | +| **sort** | **String**| 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 | [optional] [enum: created_at, created_at+, created_at-, updated_at, updated_at+, updated_at-, name, name+, name-] | + +### Return type + +[**Groups**](Groups.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **updateGroup** +> Group updateGroup(groupUuid, updateGroupRequest) + +Update Group + +グループを更新します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthGroupsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthGroupsApi apiInstance = new AuthGroupsApi(defaultClient); + String groupUuid = "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee"; // String | グループのUUID + UpdateGroupRequest updateGroupRequest = new UpdateGroupRequest(); // UpdateGroupRequest | + try { + Group result = apiInstance.updateGroup(groupUuid, updateGroupRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthGroupsApi#updateGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **groupUuid** | **String**| グループのUUID | | +| **updateGroupRequest** | [**UpdateGroupRequest**](UpdateGroupRequest.md)| | [optional] | + +### Return type + +[**Group**](Group.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + diff --git a/intdash/docs/AuthMeApi.md b/intdash/docs/AuthMeApi.md new file mode 100644 index 0000000..901d7ff --- /dev/null +++ b/intdash/docs/AuthMeApi.md @@ -0,0 +1,1127 @@ +# AuthMeApi + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**changePassword**](AuthMeApi.md#changePassword) | **PUT** /auth/users/me/password | Change Password | +| [**checkPassword**](AuthMeApi.md#checkPassword) | **POST** /auth/users/me/password/check | Check Password | +| [**createMyAPIToken**](AuthMeApi.md#createMyAPIToken) | **POST** /auth/users/me/tokens | Create My API Token | +| [**createMyEmail**](AuthMeApi.md#createMyEmail) | **POST** /auth/users/me/emails | Create My Email | +| [**deleteMyAPIToken**](AuthMeApi.md#deleteMyAPIToken) | **DELETE** /auth/users/me/tokens/{user_api_token_id} | Delete My API Token | +| [**deleteMyEmail**](AuthMeApi.md#deleteMyEmail) | **DELETE** /auth/users/me/emails/{user_email_id} | Delete My Email | +| [**getMe**](AuthMeApi.md#getMe) | **GET** /auth/users/me | Get Me | +| [**listMyAPITokens**](AuthMeApi.md#listMyAPITokens) | **GET** /auth/users/me/tokens | List My API Tokens | +| [**listMyRoles**](AuthMeApi.md#listMyRoles) | **GET** /auth/users/me/roles | List My Roles | +| [**sendVerificationEmailToMyAddress**](AuthMeApi.md#sendVerificationEmailToMyAddress) | **PUT** /auth/users/me/emails/{user_email_id}/verification | Send Verification Email to Me | +| [**updateMe**](AuthMeApi.md#updateMe) | **PATCH** /auth/users/me | Update Me | +| [**updateMyAPIToken**](AuthMeApi.md#updateMyAPIToken) | **PATCH** /auth/users/me/tokens/{user_api_token_id} | Update My API Token | +| [**updateMyAddressToVerified**](AuthMeApi.md#updateMyAddressToVerified) | **PUT** /auth/users/me/emails/{user_email_id}/verified | Set My Email as Verified | +| [**updateMyEmail**](AuthMeApi.md#updateMyEmail) | **PATCH** /auth/users/me/emails/{user_email_id} | Update My Email | + + + +# **changePassword** +> UserPassword changePassword(changePasswordRequest) + +Change Password + +パスワードを変更します。 現在のパスワード `old_password` または `recovery_token` が必要です。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthMeApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthMeApi apiInstance = new AuthMeApi(defaultClient); + ChangePasswordRequest changePasswordRequest = new ChangePasswordRequest(); // ChangePasswordRequest | + try { + UserPassword result = apiInstance.changePassword(changePasswordRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthMeApi#changePassword"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **changePasswordRequest** | [**ChangePasswordRequest**](ChangePasswordRequest.md)| | [optional] | + +### Return type + +[**UserPassword**](UserPassword.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad Request | - | + + +# **checkPassword** +> CheckPasswordResult checkPassword(checkPasswordRequest) + +Check Password + +パスワードがポリシーに適合しているかをチェックします。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthMeApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthMeApi apiInstance = new AuthMeApi(defaultClient); + CheckPasswordRequest checkPasswordRequest = new CheckPasswordRequest(); // CheckPasswordRequest | + try { + CheckPasswordResult result = apiInstance.checkPassword(checkPasswordRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthMeApi#checkPassword"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **checkPasswordRequest** | [**CheckPasswordRequest**](CheckPasswordRequest.md)| | [optional] | + +### Return type + +[**CheckPasswordResult**](CheckPasswordResult.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json; charset=utf-8 + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **createMyAPIToken** +> UserAPIToken createMyAPIToken(createUserAPITokenRequest) + +Create My API Token + +自分(ユーザー)のAPIトークンを作成します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthMeApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthMeApi apiInstance = new AuthMeApi(defaultClient); + CreateUserAPITokenRequest createUserAPITokenRequest = new CreateUserAPITokenRequest(); // CreateUserAPITokenRequest | + try { + UserAPIToken result = apiInstance.createMyAPIToken(createUserAPITokenRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthMeApi#createMyAPIToken"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **createUserAPITokenRequest** | [**CreateUserAPITokenRequest**](CreateUserAPITokenRequest.md)| | [optional] | + +### Return type + +[**UserAPIToken**](UserAPIToken.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | +| **409** | Conflict | - | + + +# **createMyEmail** +> UserEmail createMyEmail(createEmailRequest) + +Create My Email + +自分(ユーザー)のメールアドレスを設定します。 メールアドレスの設定が成功すると、確認用URLを含むメールがそのアドレスに送信されます。 確認用URLには、メールアドレス確認用トークンとメールアドレスのIDが含まれます。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthMeApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthMeApi apiInstance = new AuthMeApi(defaultClient); + CreateEmailRequest createEmailRequest = new CreateEmailRequest(); // CreateEmailRequest | + try { + UserEmail result = apiInstance.createMyEmail(createEmailRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthMeApi#createMyEmail"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **createEmailRequest** | [**CreateEmailRequest**](CreateEmailRequest.md)| | [optional] | + +### Return type + +[**UserEmail**](UserEmail.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | +| **409** | Conflict | - | + + +# **deleteMyAPIToken** +> deleteMyAPIToken(userApiTokenId) + +Delete My API Token + +自分(ユーザー)のAPIトークンを削除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthMeApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthMeApi apiInstance = new AuthMeApi(defaultClient); + Long userApiTokenId = 1L; // Long | APIトークンのID + try { + apiInstance.deleteMyAPIToken(userApiTokenId); + } catch (ApiException e) { + System.err.println("Exception when calling AuthMeApi#deleteMyAPIToken"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userApiTokenId** | **Long**| APIトークンのID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **deleteMyEmail** +> deleteMyEmail(userEmailId) + +Delete My Email + +自分(ユーザー)のメールアドレスを削除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthMeApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthMeApi apiInstance = new AuthMeApi(defaultClient); + Long userEmailId = 1L; // Long | ユーザーのメールアドレスのID + try { + apiInstance.deleteMyEmail(userEmailId); + } catch (ApiException e) { + System.err.println("Exception when calling AuthMeApi#deleteMyEmail"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userEmailId** | **Long**| ユーザーのメールアドレスのID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **getMe** +> User getMe() + +Get Me + +自分(ユーザー)を取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthMeApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthMeApi apiInstance = new AuthMeApi(defaultClient); + try { + User result = apiInstance.getMe(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthMeApi#getMe"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**User**](User.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listMyAPITokens** +> UserAPITokens listMyAPITokens() + +List My API Tokens + +自分(ユーザー)のAPIトークンのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthMeApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthMeApi apiInstance = new AuthMeApi(defaultClient); + try { + UserAPITokens result = apiInstance.listMyAPITokens(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthMeApi#listMyAPITokens"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UserAPITokens**](UserAPITokens.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listMyRoles** +> Roles listMyRoles() + +List My Roles + +自分(ユーザー)に割り当てられたロールのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthMeApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthMeApi apiInstance = new AuthMeApi(defaultClient); + try { + Roles result = apiInstance.listMyRoles(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthMeApi#listMyRoles"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**Roles**](Roles.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **sendVerificationEmailToMyAddress** +> UserEmailVerification sendVerificationEmailToMyAddress(userEmailId) + +Send Verification Email to Me + +メールアドレスを確認するための確認メールを送信します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthMeApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthMeApi apiInstance = new AuthMeApi(defaultClient); + Long userEmailId = 1L; // Long | ユーザーのメールアドレスのID + try { + UserEmailVerification result = apiInstance.sendVerificationEmailToMyAddress(userEmailId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthMeApi#sendVerificationEmailToMyAddress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userEmailId** | **Long**| ユーザーのメールアドレスのID | | + +### Return type + +[**UserEmailVerification**](UserEmailVerification.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad Request | - | + + +# **updateMe** +> User updateMe(patchUserRequest) + +Update Me + +自分(ユーザー)を更新します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthMeApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthMeApi apiInstance = new AuthMeApi(defaultClient); + PatchUserRequest patchUserRequest = new PatchUserRequest(); // PatchUserRequest | + try { + User result = apiInstance.updateMe(patchUserRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthMeApi#updateMe"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **patchUserRequest** | [**PatchUserRequest**](PatchUserRequest.md)| | [optional] | + +### Return type + +[**User**](User.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **403** | Forbidden | - | +| **409** | Conflict | - | + + +# **updateMyAPIToken** +> UserAPIToken updateMyAPIToken(userApiTokenId, updateUserAPITokenRequest) + +Update My API Token + +自分(ユーザー)のAPIトークンを作成します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthMeApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthMeApi apiInstance = new AuthMeApi(defaultClient); + Long userApiTokenId = 1L; // Long | APIトークンのID + UpdateUserAPITokenRequest updateUserAPITokenRequest = new UpdateUserAPITokenRequest(); // UpdateUserAPITokenRequest | + try { + UserAPIToken result = apiInstance.updateMyAPIToken(userApiTokenId, updateUserAPITokenRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthMeApi#updateMyAPIToken"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userApiTokenId** | **Long**| APIトークンのID | | +| **updateUserAPITokenRequest** | [**UpdateUserAPITokenRequest**](UpdateUserAPITokenRequest.md)| | [optional] | + +### Return type + +[**UserAPIToken**](UserAPIToken.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json; charset=utf-8 + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **updateMyAddressToVerified** +> UserEmail updateMyAddressToVerified(userEmailId, updateEmailVerifiedRequest) + +Set My Email as Verified + +自分(ユーザー)のメールアドレスを確認済みにします。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthMeApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthMeApi apiInstance = new AuthMeApi(defaultClient); + Long userEmailId = 1L; // Long | ユーザーのメールアドレスのID + UpdateEmailVerifiedRequest updateEmailVerifiedRequest = new UpdateEmailVerifiedRequest(); // UpdateEmailVerifiedRequest | + try { + UserEmail result = apiInstance.updateMyAddressToVerified(userEmailId, updateEmailVerifiedRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthMeApi#updateMyAddressToVerified"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userEmailId** | **Long**| ユーザーのメールアドレスのID | | +| **updateEmailVerifiedRequest** | [**UpdateEmailVerifiedRequest**](UpdateEmailVerifiedRequest.md)| | [optional] | + +### Return type + +[**UserEmail**](UserEmail.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **updateMyEmail** +> UserEmail updateMyEmail(userEmailId, patchEmailRequest) + +Update My Email + +自分(ユーザー)のメールアドレスを更新します。 メールアドレスの設定が成功すると、確認用URLを含むメールがそのアドレスに送信されます。 確認用URLには、メールアドレス確認用トークンとメールアドレスのIDが含まれます。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthMeApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthMeApi apiInstance = new AuthMeApi(defaultClient); + Long userEmailId = 1L; // Long | ユーザーのメールアドレスのID + PatchEmailRequest patchEmailRequest = new PatchEmailRequest(); // PatchEmailRequest | + try { + UserEmail result = apiInstance.updateMyEmail(userEmailId, patchEmailRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthMeApi#updateMyEmail"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userEmailId** | **Long**| ユーザーのメールアドレスのID | | +| **patchEmailRequest** | [**PatchEmailRequest**](PatchEmailRequest.md)| | [optional] | + +### Return type + +[**UserEmail**](UserEmail.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **409** | Conflict | - | + diff --git a/intdash/docs/AuthOAuth2Api.md b/intdash/docs/AuthOAuth2Api.md new file mode 100644 index 0000000..840c764 --- /dev/null +++ b/intdash/docs/AuthOAuth2Api.md @@ -0,0 +1,356 @@ +# AuthOAuth2Api + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**authOauth2JwksGet**](AuthOAuth2Api.md#authOauth2JwksGet) | **GET** /auth/oauth2/jwks | List JSON Web Keys | +| [**issueToken**](AuthOAuth2Api.md#issueToken) | **POST** /auth/oauth2/token | Token Endpoint | +| [**oauth2Authorization**](AuthOAuth2Api.md#oauth2Authorization) | **GET** /auth/oauth2/authorization | Authorization Endpoint | +| [**reovokeToken**](AuthOAuth2Api.md#reovokeToken) | **POST** /auth/oauth2/revocation | Revoke Token | + + + +# **authOauth2JwksGet** +> OAuth2JWKs authOauth2JwksGet() + +List JSON Web Keys + +JSON Web Keysのリストを取得します。 [RFC7517:JSON Web Key](https://tools.ietf.org/html/rfc7517) + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthOAuth2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthOAuth2Api apiInstance = new AuthOAuth2Api(defaultClient); + try { + OAuth2JWKs result = apiInstance.authOauth2JwksGet(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthOAuth2Api#authOauth2JwksGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**OAuth2JWKs**](OAuth2JWKs.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/jwk-set+json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **issueToken** +> IssueToken200Response issueToken(grantType, refreshToken, tenantUuid, username, password, clientId, clientSecret, clientCertification, redirectUri, codeVerifier, code) + +Token Endpoint + +OAuth2のアクセストークンを取得します。 [RFC6749:The OAuth 2.0 Authorization Framework](https://tools.ietf.org/html/rfc6749) + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthOAuth2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthOAuth2Api apiInstance = new AuthOAuth2Api(defaultClient); + String grantType = "password"; // String | グラントタイプ + String refreshToken = "refreshToken_example"; // String | 認可時に発行されたリフレッシュトークン。grant_typeが `refresh_token` の場合にだけ指定します。 + String tenantUuid = "00000000-0000-0000-0000-000000000000"; // String | テナントのUUID。grant_typeが `password` の場合にだけ指定します。 grant_typeが `password` で、テナントUUIDを省略した場合は、デフォルトのテナントが使用されます。 + String username = "username_example"; // String | ユーザーの名前。grant_typeが `password` の場合にだけ指定します。 + String password = "password_example"; // String | パスワード。grant_typeが `password` の場合にだけ指定します。 + String clientId = "clientId_example"; // String | OAuth2クライアントのID + String clientSecret = "clientSecret_example"; // String | OAuth2のクライアントシークレット。 OAuth2クライアントの `token_endpoint_auth_method` が `client_secret_post` の場合にだけ指定します。 + String clientCertification = "clientCertification_example"; // String | OAuth2のクライアント証明書。 OAuth2クライアントの `token_endpoint_auth_method` が `tls_client_auth` の場合にだけ指定します。 + String redirectUri = "redirectUri_example"; // String | 認可後のリダイレクト先URI。 grant_typeが `authorization_code` の場合にだけ必要です。 + String codeVerifier = "codeVerifier_example"; // String | PKCE code verifier. * 使用可能な文字: `[a-Z] / [0-9] / \\\"-\\\" / \\\".\\\" / \\\"_\\\" / \\\"~\\\"` * 長さ: 43文字以上、128文字以下 + String code = "code_example"; // String | 認可コード + try { + IssueToken200Response result = apiInstance.issueToken(grantType, refreshToken, tenantUuid, username, password, clientId, clientSecret, clientCertification, redirectUri, codeVerifier, code); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthOAuth2Api#issueToken"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **grantType** | **String**| グラントタイプ | [optional] [enum: password, authorization_code, refresh_token, client_credentials] | +| **refreshToken** | **String**| 認可時に発行されたリフレッシュトークン。grant_typeが `refresh_token` の場合にだけ指定します。 | [optional] | +| **tenantUuid** | **String**| テナントのUUID。grant_typeが `password` の場合にだけ指定します。 grant_typeが `password` で、テナントUUIDを省略した場合は、デフォルトのテナントが使用されます。 | [optional] [default to 00000000-0000-0000-0000-000000000000] | +| **username** | **String**| ユーザーの名前。grant_typeが `password` の場合にだけ指定します。 | [optional] | +| **password** | **String**| パスワード。grant_typeが `password` の場合にだけ指定します。 | [optional] | +| **clientId** | **String**| OAuth2クライアントのID | [optional] | +| **clientSecret** | **String**| OAuth2のクライアントシークレット。 OAuth2クライアントの `token_endpoint_auth_method` が `client_secret_post` の場合にだけ指定します。 | [optional] | +| **clientCertification** | **String**| OAuth2のクライアント証明書。 OAuth2クライアントの `token_endpoint_auth_method` が `tls_client_auth` の場合にだけ指定します。 | [optional] | +| **redirectUri** | **String**| 認可後のリダイレクト先URI。 grant_typeが `authorization_code` の場合にだけ必要です。 | [optional] | +| **codeVerifier** | **String**| PKCE code verifier. * 使用可能な文字: `[a-Z] / [0-9] / \\\"-\\\" / \\\".\\\" / \\\"_\\\" / \\\"~\\\"` * 長さ: 43文字以上、128文字以下 | [optional] | +| **code** | **String**| 認可コード | [optional] | + +### Return type + +[**IssueToken200Response**](IssueToken200Response.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **oauth2Authorization** +> oauth2Authorization(clientId, responseType, redirectUri, state, codeChallenge, codeChallengeMethod) + +Authorization Endpoint + +OAuth2認可エンドポイント。 [RFC6749:The OAuth 2.0 Authorization Framework](https://tools.ietf.org/html/rfc6749) + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthOAuth2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthOAuth2Api apiInstance = new AuthOAuth2Api(defaultClient); + String clientId = "client_id"; // String | OAuth2クライアントID + String responseType = "code"; // String | OAuth2のresponse_type。 `code` のみサポートされています。 + String redirectUri = "http://localhost:8080/"; // String | 認可後のリダイレクト先URI + String state = "05d54c58385046dd822d233c6adfb9e9"; // String | CSRF対策のためのstate + String codeChallenge = "ZtNPunH49FD35FWYhT5Tv8I7vRKQJ8uxMaL0_9eHjNA"; // String | PKCEコードチャレンジ。 `code_verifier` から計算したSHA-256ハッシュを、Base64 URLエンコードしたもの。 + String codeChallengeMethod = "S256"; // String | PKCEコードチャレンジの方式。 `S256` (SHA-256)のみサポートされます。 + try { + apiInstance.oauth2Authorization(clientId, responseType, redirectUri, state, codeChallenge, codeChallengeMethod); + } catch (ApiException e) { + System.err.println("Exception when calling AuthOAuth2Api#oauth2Authorization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **clientId** | **String**| OAuth2クライアントID | | +| **responseType** | **String**| OAuth2のresponse_type。 `code` のみサポートされています。 | [enum: code] | +| **redirectUri** | **String**| 認可後のリダイレクト先URI | | +| **state** | **String**| CSRF対策のためのstate | | +| **codeChallenge** | **String**| PKCEコードチャレンジ。 `code_verifier` から計算したSHA-256ハッシュを、Base64 URLエンコードしたもの。 | [optional] | +| **codeChallengeMethod** | **String**| PKCEコードチャレンジの方式。 `S256` (SHA-256)のみサポートされます。 | [optional] [enum: S256] | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **302** | APIサーバーで設定されているログインページや同意ページへのリダイレクト | - | + + +# **reovokeToken** +> reovokeToken(clientId, tokenTypeHint, token) + +Revoke Token + +トークンを無効化します。 このエンドポイントをコールしてからトークンが無効化されるまで、通常数秒程度かかります。 [RFC7009:OAuth 2.0 Token Revocation](https://tools.ietf.org/html/rfc7009) + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthOAuth2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthOAuth2Api apiInstance = new AuthOAuth2Api(defaultClient); + String clientId = "clientId_example"; // String | OAuth2クライアントID + String tokenTypeHint = "access_token"; // String | OAuth2トークンタイプについてのヒント + String token = "token_example"; // String | 無効化したいリフレッシュトークンまたはアクセストークン。 指定を省略した場合、サーバーは、cookieの `_bearer_token` に指定されたアクセストークン、または、Authorizationヘッダーに指定されたアクセストークン( `Bearer` トークン)を無効化します。 + try { + apiInstance.reovokeToken(clientId, tokenTypeHint, token); + } catch (ApiException e) { + System.err.println("Exception when calling AuthOAuth2Api#reovokeToken"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **clientId** | **String**| OAuth2クライアントID | | +| **tokenTypeHint** | **String**| OAuth2トークンタイプについてのヒント | [optional] [default to refresh_token] [enum: access_token, refresh_token] | +| **token** | **String**| 無効化したいリフレッシュトークンまたはアクセストークン。 指定を省略した場合、サーバーは、cookieの `_bearer_token` に指定されたアクセストークン、または、Authorizationヘッダーに指定されたアクセストークン( `Bearer` トークン)を無効化します。 | [optional] | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/x-www-form-urlencoded + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + diff --git a/intdash/docs/AuthPage.md b/intdash/docs/AuthPage.md new file mode 100644 index 0000000..e57ce61 --- /dev/null +++ b/intdash/docs/AuthPage.md @@ -0,0 +1,18 @@ + + +# AuthPage + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**next** | **Boolean** | 次のページがあるかどうか | | +|**prev** | **Boolean** | 前のページがあるかどうか | | +|**nextPage** | **Long** | 取得対象の次のページ番号。`next` がtrueの場合のみ表示。 | [optional] | +|**prevPage** | **Long** | 取得対象の前のページ番号。`next` がtrueの場合のみ表示。 | [optional] | +|**totalPage** | **Long** | 取得対象の総ページ数 | | +|**totalCount** | **Long** | 取得対象の総件数 | | + + + diff --git a/intdash/docs/AuthProjectEdgesApi.md b/intdash/docs/AuthProjectEdgesApi.md new file mode 100644 index 0000000..af040d3 --- /dev/null +++ b/intdash/docs/AuthProjectEdgesApi.md @@ -0,0 +1,428 @@ +# AuthProjectEdgesApi + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**addProjectEdges**](AuthProjectEdgesApi.md#addProjectEdges) | **POST** /auth/projects/{project_uuid}/edges | Add Project Edge | +| [**getProjectEdge**](AuthProjectEdgesApi.md#getProjectEdge) | **GET** /auth/projects/{project_uuid}/edges/{edge_uuid} | Get Project Edge | +| [**listProjectEdges**](AuthProjectEdgesApi.md#listProjectEdges) | **GET** /auth/projects/{project_uuid}/edges | List Project Edges | +| [**removeProjectEdge**](AuthProjectEdgesApi.md#removeProjectEdge) | **DELETE** /auth/projects/{project_uuid}/edges/{edge_uuid} | Remove Project Edge | +| [**updateProjectEdge**](AuthProjectEdgesApi.md#updateProjectEdge) | **PATCH** /auth/projects/{project_uuid}/edges/{edge_uuid} | Update Project Edge | + + + +# **addProjectEdges** +> ProjectEdge addProjectEdges(projectUuid, addProjectEdgeRequest) + +Add Project Edge + +エッジをプロジェクトに追加します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthProjectEdgesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthProjectEdgesApi apiInstance = new AuthProjectEdgesApi(defaultClient); + String projectUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | プロジェクトのUUID + AddProjectEdgeRequest addProjectEdgeRequest = new AddProjectEdgeRequest(); // AddProjectEdgeRequest | + try { + ProjectEdge result = apiInstance.addProjectEdges(projectUuid, addProjectEdgeRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthProjectEdgesApi#addProjectEdges"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **addProjectEdgeRequest** | [**AddProjectEdgeRequest**](AddProjectEdgeRequest.md)| | [optional] | + +### Return type + +[**ProjectEdge**](ProjectEdge.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad Request | - | +| **409** | Conflict | - | + + +# **getProjectEdge** +> ProjectEdge getProjectEdge(projectUuid, edgeUuid) + +Get Project Edge + +プロジェクトに所属するエッジを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthProjectEdgesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthProjectEdgesApi apiInstance = new AuthProjectEdgesApi(defaultClient); + String projectUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | プロジェクトのUUID + String edgeUuid = "e920a50c-ddde-4571-b066-b568340de7cf"; // String | エッジのUUID + try { + ProjectEdge result = apiInstance.getProjectEdge(projectUuid, edgeUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthProjectEdgesApi#getProjectEdge"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **edgeUuid** | **String**| エッジのUUID | | + +### Return type + +[**ProjectEdge**](ProjectEdge.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listProjectEdges** +> ProjectEdges listProjectEdges(projectUuid, edgeUuid, page, perPage, sort) + +List Project Edges + +プロジェクトに所属するエッジのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthProjectEdgesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthProjectEdgesApi apiInstance = new AuthProjectEdgesApi(defaultClient); + String projectUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | プロジェクトのUUID + List edgeUuid = Arrays.asList(); // List | エッジのUUID + Integer page = 1; // Integer | 取得するページの番号 + Integer perPage = 30; // Integer | 1回のリクエストで取得する件数 + String sort = "created_at"; // String | 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 + try { + ProjectEdges result = apiInstance.listProjectEdges(projectUuid, edgeUuid, page, perPage, sort); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthProjectEdgesApi#listProjectEdges"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **edgeUuid** | [**List<String>**](String.md)| エッジのUUID | [optional] | +| **page** | **Integer**| 取得するページの番号 | [optional] [default to 1] | +| **perPage** | **Integer**| 1回のリクエストで取得する件数 | [optional] [default to 30] | +| **sort** | **String**| 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 | [optional] [enum: created_at, created_at+, created_at-, updated_at, updated_at+, updated_at-, nickname, nickname+, nickname-] | + +### Return type + +[**ProjectEdges**](ProjectEdges.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **removeProjectEdge** +> removeProjectEdge(projectUuid, edgeUuid) + +Remove Project Edge + +プロジェクトからエッジを外します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthProjectEdgesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthProjectEdgesApi apiInstance = new AuthProjectEdgesApi(defaultClient); + String projectUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | プロジェクトのUUID + String edgeUuid = "e920a50c-ddde-4571-b066-b568340de7cf"; // String | エッジのUUID + try { + apiInstance.removeProjectEdge(projectUuid, edgeUuid); + } catch (ApiException e) { + System.err.println("Exception when calling AuthProjectEdgesApi#removeProjectEdge"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **edgeUuid** | **String**| エッジのUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **updateProjectEdge** +> ProjectEdge updateProjectEdge(projectUuid, edgeUuid, updateProjectEdgeRequest) + +Update Project Edge + +プロジェクトエッジを更新します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthProjectEdgesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthProjectEdgesApi apiInstance = new AuthProjectEdgesApi(defaultClient); + String projectUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | プロジェクトのUUID + String edgeUuid = "e920a50c-ddde-4571-b066-b568340de7cf"; // String | エッジのUUID + UpdateProjectEdgeRequest updateProjectEdgeRequest = new UpdateProjectEdgeRequest(); // UpdateProjectEdgeRequest | + try { + ProjectEdge result = apiInstance.updateProjectEdge(projectUuid, edgeUuid, updateProjectEdgeRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthProjectEdgesApi#updateProjectEdge"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **edgeUuid** | **String**| エッジのUUID | | +| **updateProjectEdgeRequest** | [**UpdateProjectEdgeRequest**](UpdateProjectEdgeRequest.md)| | [optional] | + +### Return type + +[**ProjectEdge**](ProjectEdge.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **304** | Not Modified | - | + diff --git a/intdash/docs/AuthProjectMembersApi.md b/intdash/docs/AuthProjectMembersApi.md new file mode 100644 index 0000000..c2b4fdb --- /dev/null +++ b/intdash/docs/AuthProjectMembersApi.md @@ -0,0 +1,597 @@ +# AuthProjectMembersApi + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**addProjectMember**](AuthProjectMembersApi.md#addProjectMember) | **POST** /auth/projects/{project_uuid}/members | Add Project Member | +| [**addProjectOwnerAttribute**](AuthProjectMembersApi.md#addProjectOwnerAttribute) | **PUT** /auth/projects/{project_uuid}/members/{user_uuid}/owner | Add Project Owner Attribute | +| [**getProjectMember**](AuthProjectMembersApi.md#getProjectMember) | **GET** /auth/projects/{project_uuid}/members/{user_uuid} | Get Project Member | +| [**listProjectMembers**](AuthProjectMembersApi.md#listProjectMembers) | **GET** /auth/projects/{project_uuid}/members | List Project Members | +| [**removeProjectMember**](AuthProjectMembersApi.md#removeProjectMember) | **DELETE** /auth/projects/{project_uuid}/members/{user_uuid} | Remove Project Member | +| [**removeProjectOwnerAttribute**](AuthProjectMembersApi.md#removeProjectOwnerAttribute) | **DELETE** /auth/projects/{project_uuid}/members/{user_uuid}/owner | Remove Project Owner Attribute | +| [**updateProjectMember**](AuthProjectMembersApi.md#updateProjectMember) | **PATCH** /auth/projects/{project_uuid}/members/{user_uuid} | Update Project Member | + + + +# **addProjectMember** +> Member addProjectMember(projectUuid, addProjectMemberRequest) + +Add Project Member + +プロジェクトメンバーを追加します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthProjectMembersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthProjectMembersApi apiInstance = new AuthProjectMembersApi(defaultClient); + String projectUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | プロジェクトのUUID + AddProjectMemberRequest addProjectMemberRequest = new AddProjectMemberRequest(); // AddProjectMemberRequest | + try { + Member result = apiInstance.addProjectMember(projectUuid, addProjectMemberRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthProjectMembersApi#addProjectMember"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **addProjectMemberRequest** | [**AddProjectMemberRequest**](AddProjectMemberRequest.md)| | [optional] | + +### Return type + +[**Member**](Member.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad Request | - | +| **409** | Conflict | - | + + +# **addProjectOwnerAttribute** +> Member addProjectOwnerAttribute(projectUuid, userUuid) + +Add Project Owner Attribute + +オーナー属性を追加します。オーナー属性を追加したメンバーは自動的にそのプロジェクトにおける全ての権限が付与されます。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthProjectMembersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthProjectMembersApi apiInstance = new AuthProjectMembersApi(defaultClient); + String projectUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | プロジェクトのUUID + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + try { + Member result = apiInstance.addProjectOwnerAttribute(projectUuid, userUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthProjectMembersApi#addProjectOwnerAttribute"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **userUuid** | **String**| | | + +### Return type + +[**Member**](Member.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **304** | Not Modified | - | + + +# **getProjectMember** +> Member getProjectMember(projectUuid, userUuid) + +Get Project Member + +プロジェクトメンバーを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthProjectMembersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthProjectMembersApi apiInstance = new AuthProjectMembersApi(defaultClient); + String projectUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | プロジェクトのUUID + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + try { + Member result = apiInstance.getProjectMember(projectUuid, userUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthProjectMembersApi#getProjectMember"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **userUuid** | **String**| | | + +### Return type + +[**Member**](Member.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **404** | Not Found | - | + + +# **listProjectMembers** +> Members listProjectMembers(projectUuid, userUuid, isOwner, page, perPage, sort) + +List Project Members + +プロジェクトメンバーリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthProjectMembersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthProjectMembersApi apiInstance = new AuthProjectMembersApi(defaultClient); + String projectUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | プロジェクトのUUID + List userUuid = Arrays.asList(); // List | ユーザーのUUID + Boolean isOwner = false; // Boolean | * `true` を指定した場合、オーナーのみを取得します。 * `false` を指定した場合、オーナー以外を取得します。 * 指定を省略した場合、オーナーであるかにかかわらずメンバーを取得します。 + Integer page = 1; // Integer | 取得するページの番号 + Integer perPage = 30; // Integer | 1回のリクエストで取得する件数 + String sort = "created_at"; // String | 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 + try { + Members result = apiInstance.listProjectMembers(projectUuid, userUuid, isOwner, page, perPage, sort); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthProjectMembersApi#listProjectMembers"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **userUuid** | [**List<String>**](String.md)| ユーザーのUUID | [optional] | +| **isOwner** | **Boolean**| * `true` を指定した場合、オーナーのみを取得します。 * `false` を指定した場合、オーナー以外を取得します。 * 指定を省略した場合、オーナーであるかにかかわらずメンバーを取得します。 | [optional] | +| **page** | **Integer**| 取得するページの番号 | [optional] [default to 1] | +| **perPage** | **Integer**| 1回のリクエストで取得する件数 | [optional] [default to 30] | +| **sort** | **String**| 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 | [optional] [enum: created_at, created_at+, created_at-, updated_at, updated_at+, updated_at-, name, name+, name-] | + +### Return type + +[**Members**](Members.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **removeProjectMember** +> removeProjectMember(projectUuid, userUuid) + +Remove Project Member + +プロジェクトからメンバーを外します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthProjectMembersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthProjectMembersApi apiInstance = new AuthProjectMembersApi(defaultClient); + String projectUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | プロジェクトのUUID + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + try { + apiInstance.removeProjectMember(projectUuid, userUuid); + } catch (ApiException e) { + System.err.println("Exception when calling AuthProjectMembersApi#removeProjectMember"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **userUuid** | **String**| | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | +| **403** | Forbidden | - | + + +# **removeProjectOwnerAttribute** +> removeProjectOwnerAttribute(projectUuid, userUuid) + +Remove Project Owner Attribute + +オーナー属性を取り除きます。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthProjectMembersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthProjectMembersApi apiInstance = new AuthProjectMembersApi(defaultClient); + String projectUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | プロジェクトのUUID + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + try { + apiInstance.removeProjectOwnerAttribute(projectUuid, userUuid); + } catch (ApiException e) { + System.err.println("Exception when calling AuthProjectMembersApi#removeProjectOwnerAttribute"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **userUuid** | **String**| | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | +| **304** | Not Modified | - | +| **403** | Forbidden | - | + + +# **updateProjectMember** +> Member updateProjectMember(projectUuid, userUuid, updateProjectMemberRequest) + +Update Project Member + +プロジェクトメンバーを更新します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthProjectMembersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthProjectMembersApi apiInstance = new AuthProjectMembersApi(defaultClient); + String projectUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | プロジェクトのUUID + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + UpdateProjectMemberRequest updateProjectMemberRequest = new UpdateProjectMemberRequest(); // UpdateProjectMemberRequest | + try { + Member result = apiInstance.updateProjectMember(projectUuid, userUuid, updateProjectMemberRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthProjectMembersApi#updateProjectMember"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **userUuid** | **String**| | | +| **updateProjectMemberRequest** | [**UpdateProjectMemberRequest**](UpdateProjectMemberRequest.md)| | [optional] | + +### Return type + +[**Member**](Member.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + diff --git a/intdash/docs/AuthProjectsApi.md b/intdash/docs/AuthProjectsApi.md new file mode 100644 index 0000000..7fd37d5 --- /dev/null +++ b/intdash/docs/AuthProjectsApi.md @@ -0,0 +1,591 @@ +# AuthProjectsApi + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createProject**](AuthProjectsApi.md#createProject) | **POST** /auth/groups/{group_uuid}/projects | Create Project | +| [**deleteProject**](AuthProjectsApi.md#deleteProject) | **DELETE** /auth/projects/{project_uuid} | Delete Project | +| [**getProject**](AuthProjectsApi.md#getProject) | **GET** /auth/projects/{project_uuid} | Get Project | +| [**listGroupProjects**](AuthProjectsApi.md#listGroupProjects) | **GET** /auth/groups/{group_uuid}/projects | List Group Projects | +| [**listMyProjects**](AuthProjectsApi.md#listMyProjects) | **GET** /auth/users/me/projects | List My Projects | +| [**listProjects**](AuthProjectsApi.md#listProjects) | **GET** /auth/projects | List Projects | +| [**updateProject**](AuthProjectsApi.md#updateProject) | **PATCH** /auth/projects/{project_uuid} | Update Project | + + + +# **createProject** +> Project createProject(groupUuid, createProjectRequest) + +Create Project + +プロジェクトを作成します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthProjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthProjectsApi apiInstance = new AuthProjectsApi(defaultClient); + String groupUuid = "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee"; // String | グループのUUID + CreateProjectRequest createProjectRequest = new CreateProjectRequest(); // CreateProjectRequest | + try { + Project result = apiInstance.createProject(groupUuid, createProjectRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthProjectsApi#createProject"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **groupUuid** | **String**| グループのUUID | | +| **createProjectRequest** | [**CreateProjectRequest**](CreateProjectRequest.md)| | [optional] | + +### Return type + +[**Project**](Project.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | +| **403** | Forbidden | - | +| **409** | Conflict | - | + + +# **deleteProject** +> deleteProject(projectUuid) + +Delete Project + +プロジェクトを削除します。プロジェクトを削除できるのはプロジェクトのオーナーのみです。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthProjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthProjectsApi apiInstance = new AuthProjectsApi(defaultClient); + String projectUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | プロジェクトのUUID + try { + apiInstance.deleteProject(projectUuid); + } catch (ApiException e) { + System.err.println("Exception when calling AuthProjectsApi#deleteProject"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | +| **403** | Forbidden | - | + + +# **getProject** +> Project getProject(projectUuid) + +Get Project + +プロジェクトを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthProjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthProjectsApi apiInstance = new AuthProjectsApi(defaultClient); + String projectUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | プロジェクトのUUID + try { + Project result = apiInstance.getProject(projectUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthProjectsApi#getProject"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | + +### Return type + +[**Project**](Project.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listGroupProjects** +> Projects listGroupProjects(groupUuid, page, perPage, sort) + +List Group Projects + +プロジェクトのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthProjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthProjectsApi apiInstance = new AuthProjectsApi(defaultClient); + String groupUuid = "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee"; // String | グループのUUID + Integer page = 1; // Integer | 取得するページの番号 + Integer perPage = 30; // Integer | 1回のリクエストで取得する件数 + String sort = "created_at"; // String | 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 + try { + Projects result = apiInstance.listGroupProjects(groupUuid, page, perPage, sort); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthProjectsApi#listGroupProjects"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **groupUuid** | **String**| グループのUUID | | +| **page** | **Integer**| 取得するページの番号 | [optional] [default to 1] | +| **perPage** | **Integer**| 1回のリクエストで取得する件数 | [optional] [default to 30] | +| **sort** | **String**| 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 | [optional] [enum: created_at, created_at+, created_at-, updated_at, updated_at+, updated_at-, name, name+, name-] | + +### Return type + +[**Projects**](Projects.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listMyProjects** +> Projects listMyProjects(page, perPage, sort) + +List My Projects + +自分(ユーザー)が所属するプロジェクトのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthProjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthProjectsApi apiInstance = new AuthProjectsApi(defaultClient); + Integer page = 1; // Integer | 取得するページの番号 + Integer perPage = 30; // Integer | 1回のリクエストで取得する件数 + String sort = "created_at"; // String | 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 + try { + Projects result = apiInstance.listMyProjects(page, perPage, sort); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthProjectsApi#listMyProjects"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **page** | **Integer**| 取得するページの番号 | [optional] [default to 1] | +| **perPage** | **Integer**| 1回のリクエストで取得する件数 | [optional] [default to 30] | +| **sort** | **String**| 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 | [optional] [enum: created_at, created_at+, created_at-, updated_at, updated_at+, updated_at-, name, name+, name-] | + +### Return type + +[**Projects**](Projects.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listProjects** +> Projects listProjects(sinceCreatedAt, page, perPage, sort) + +List Projects + +プロジェクトのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthProjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthProjectsApi apiInstance = new AuthProjectsApi(defaultClient); + Date sinceCreatedAt = new Date(); // Date | 指定した時刻より後に作成されたリソースを取得します。 + Integer page = 1; // Integer | 取得するページの番号 + Integer perPage = 30; // Integer | 1回のリクエストで取得する件数 + String sort = "created_at"; // String | 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 + try { + Projects result = apiInstance.listProjects(sinceCreatedAt, page, perPage, sort); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthProjectsApi#listProjects"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **sinceCreatedAt** | **Date**| 指定した時刻より後に作成されたリソースを取得します。 | [optional] | +| **page** | **Integer**| 取得するページの番号 | [optional] [default to 1] | +| **perPage** | **Integer**| 1回のリクエストで取得する件数 | [optional] [default to 30] | +| **sort** | **String**| 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 | [optional] [enum: created_at, created_at+, created_at-, updated_at, updated_at+, updated_at-, name, name+, name-] | + +### Return type + +[**Projects**](Projects.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **updateProject** +> Project updateProject(projectUuid, updateProjectRequest) + +Update Project + +プロジェクトを更新します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthProjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthProjectsApi apiInstance = new AuthProjectsApi(defaultClient); + String projectUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | プロジェクトのUUID + UpdateProjectRequest updateProjectRequest = new UpdateProjectRequest(); // UpdateProjectRequest | + try { + Project result = apiInstance.updateProject(projectUuid, updateProjectRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthProjectsApi#updateProject"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **updateProjectRequest** | [**UpdateProjectRequest**](UpdateProjectRequest.md)| | [optional] | + +### Return type + +[**Project**](Project.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **409** | Conflict | - | + diff --git a/intdash/docs/AuthRolesApi.md b/intdash/docs/AuthRolesApi.md new file mode 100644 index 0000000..7f65c5d --- /dev/null +++ b/intdash/docs/AuthRolesApi.md @@ -0,0 +1,175 @@ +# AuthRolesApi + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getRole**](AuthRolesApi.md#getRole) | **GET** /auth/roles/{role_uuid} | Get Role | +| [**listRoles**](AuthRolesApi.md#listRoles) | **GET** /auth/roles | List Roles | + + + +# **getRole** +> Role getRole(roleUuid) + +Get Role + +ロールを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthRolesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthRolesApi apiInstance = new AuthRolesApi(defaultClient); + String roleUuid = "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee"; // String | ロールのUUID + try { + Role result = apiInstance.getRole(roleUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthRolesApi#getRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **roleUuid** | **String**| ロールのUUID | | + +### Return type + +[**Role**](Role.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listRoles** +> Roles listRoles(uuid, name, page, perPage) + +List Roles + +ロールのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthRolesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthRolesApi apiInstance = new AuthRolesApi(defaultClient); + List uuid = Arrays.asList(); // List | ロールのUUID + List name = Arrays.asList(); // List | ロールの名前による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 + Integer page = 1; // Integer | 取得するページの番号 + Integer perPage = 30; // Integer | 1回のリクエストで取得する件数 + try { + Roles result = apiInstance.listRoles(uuid, name, page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthRolesApi#listRoles"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **uuid** | [**List<String>**](String.md)| ロールのUUID | [optional] | +| **name** | [**List<String>**](String.md)| ロールの名前による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 | [optional] | +| **page** | **Integer**| 取得するページの番号 | [optional] [default to 1] | +| **perPage** | **Integer**| 1回のリクエストで取得する件数 | [optional] [default to 30] | + +### Return type + +[**Roles**](Roles.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad Request | - | + diff --git a/intdash/docs/AuthScopesApi.md b/intdash/docs/AuthScopesApi.md new file mode 100644 index 0000000..4f6c76b --- /dev/null +++ b/intdash/docs/AuthScopesApi.md @@ -0,0 +1,175 @@ +# AuthScopesApi + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getScope**](AuthScopesApi.md#getScope) | **GET** /auth/scopes/{scope_uuid} | Get Scope | +| [**listScopes**](AuthScopesApi.md#listScopes) | **GET** /auth/scopes | List Scopes | + + + +# **getScope** +> Scope getScope(scopeUuid) + +Get Scope + +スコープを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthScopesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthScopesApi apiInstance = new AuthScopesApi(defaultClient); + String scopeUuid = "4688a07a-0cbc-4597-8c87-538e744bc90d"; // String | The Scope UUID. + try { + Scope result = apiInstance.getScope(scopeUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthScopesApi#getScope"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **scopeUuid** | **String**| The Scope UUID. | | + +### Return type + +[**Scope**](Scope.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listScopes** +> Scopes listScopes(uuid, name, page, perPage) + +List Scopes + +スコープのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthScopesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthScopesApi apiInstance = new AuthScopesApi(defaultClient); + List uuid = Arrays.asList(); // List | スコープのUUID + List name = Arrays.asList(); // List | スコープの名前による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 + Integer page = 1; // Integer | 取得するページの番号 + Integer perPage = 30; // Integer | 1回のリクエストで取得する件数 + try { + Scopes result = apiInstance.listScopes(uuid, name, page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthScopesApi#listScopes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **uuid** | [**List<String>**](String.md)| スコープのUUID | [optional] | +| **name** | [**List<String>**](String.md)| スコープの名前による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 | [optional] | +| **page** | **Integer**| 取得するページの番号 | [optional] [default to 1] | +| **perPage** | **Integer**| 1回のリクエストで取得する件数 | [optional] [default to 30] | + +### Return type + +[**Scopes**](Scopes.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad Request | - | + diff --git a/intdash/docs/AuthUsersApi.md b/intdash/docs/AuthUsersApi.md new file mode 100644 index 0000000..eb69022 --- /dev/null +++ b/intdash/docs/AuthUsersApi.md @@ -0,0 +1,1827 @@ +# AuthUsersApi + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**assignRole**](AuthUsersApi.md#assignRole) | **PUT** /auth/users/{user_uuid}/roles/{role_uuid} | Assign Role | +| [**createAPIToken**](AuthUsersApi.md#createAPIToken) | **POST** /auth/users/{user_uuid}/tokens | Create API Token | +| [**createEmail**](AuthUsersApi.md#createEmail) | **POST** /auth/users/{user_uuid}/emails | Create Email | +| [**createTemporaryPassword**](AuthUsersApi.md#createTemporaryPassword) | **PUT** /auth/users/{user_uuid}/password | Create Temporary Password | +| [**createUser**](AuthUsersApi.md#createUser) | **POST** /auth/users | Create User | +| [**deleteAPIToken**](AuthUsersApi.md#deleteAPIToken) | **DELETE** /auth/users/{user_uuid}/tokens/{user_api_token_id} | Delete API Token | +| [**deleteEmail**](AuthUsersApi.md#deleteEmail) | **DELETE** /auth/users/{user_uuid}/emails/{user_email_id} | Delete Email | +| [**deleteUser**](AuthUsersApi.md#deleteUser) | **DELETE** /auth/users/{user_uuid} | Delete User | +| [**disableUser**](AuthUsersApi.md#disableUser) | **PUT** /auth/users/{user_uuid}/disable | Disable User | +| [**enableUser**](AuthUsersApi.md#enableUser) | **PUT** /auth/users/{user_uuid}/enable | Enable User | +| [**getUser**](AuthUsersApi.md#getUser) | **GET** /auth/users/{user_uuid} | Get User | +| [**introspectAPIToken**](AuthUsersApi.md#introspectAPIToken) | **POST** /auth/users/tokens/introspection | Introspect API Token | +| [**listAPITokens**](AuthUsersApi.md#listAPITokens) | **GET** /auth/users/{user_uuid}/tokens | List API Tokens | +| [**listUsers**](AuthUsersApi.md#listUsers) | **GET** /auth/users | List Users | +| [**listUsersRoles**](AuthUsersApi.md#listUsersRoles) | **GET** /auth/users/{user_uuid}/roles | List User's Roles | +| [**sendVerificationEmail**](AuthUsersApi.md#sendVerificationEmail) | **PUT** /auth/users/{user_uuid}/emails/{user_email_id}/verification | Send Verification Email | +| [**unassignRole**](AuthUsersApi.md#unassignRole) | **DELETE** /auth/users/{user_uuid}/roles/{role_uuid} | Unassign Role | +| [**unlockPassword**](AuthUsersApi.md#unlockPassword) | **PUT** /auth/users/{user_uuid}/password/unlock | Unlock Password | +| [**updateAPIToken**](AuthUsersApi.md#updateAPIToken) | **PATCH** /auth/users/{user_uuid}/tokens/{user_api_token_id} | Update API Token | +| [**updateEmail**](AuthUsersApi.md#updateEmail) | **PATCH** /auth/users/{user_uuid}/emails/{user_email_id} | Update Email | +| [**updateToVerified**](AuthUsersApi.md#updateToVerified) | **PUT** /auth/users/{user_uuid}/emails/{user_email_id}/verified | Set Email as Verified | +| [**updateUser**](AuthUsersApi.md#updateUser) | **PATCH** /auth/users/{user_uuid} | Update User | + + + +# **assignRole** +> Role assignRole(userUuid, roleUuid) + +Assign Role + +ユーザーにロールを割り当てます。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthUsersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthUsersApi apiInstance = new AuthUsersApi(defaultClient); + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + String roleUuid = "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee"; // String | ロールのUUID + try { + Role result = apiInstance.assignRole(userUuid, roleUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthUsersApi#assignRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userUuid** | **String**| | | +| **roleUuid** | **String**| ロールのUUID | | + +### Return type + +[**Role**](Role.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **304** | Not Modified | - | + + +# **createAPIToken** +> UserAPIToken createAPIToken(userUuid, createUserAPITokenRequest) + +Create API Token + +ユーザーのAPIトークンを作成します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthUsersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthUsersApi apiInstance = new AuthUsersApi(defaultClient); + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + CreateUserAPITokenRequest createUserAPITokenRequest = new CreateUserAPITokenRequest(); // CreateUserAPITokenRequest | + try { + UserAPIToken result = apiInstance.createAPIToken(userUuid, createUserAPITokenRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthUsersApi#createAPIToken"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userUuid** | **String**| | | +| **createUserAPITokenRequest** | [**CreateUserAPITokenRequest**](CreateUserAPITokenRequest.md)| | [optional] | + +### Return type + +[**UserAPIToken**](UserAPIToken.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | +| **409** | Conflict | - | + + +# **createEmail** +> UserEmail createEmail(userUuid, createEmailRequest) + +Create Email + +ユーザーのメールアドレスを設定します。 メールアドレスの設定が成功すると、確認用URLを含むメールがそのアドレスに送信されます。 確認用URLには、メールアドレス確認用トークンとメールアドレスのIDが含まれます。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthUsersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthUsersApi apiInstance = new AuthUsersApi(defaultClient); + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + CreateEmailRequest createEmailRequest = new CreateEmailRequest(); // CreateEmailRequest | + try { + UserEmail result = apiInstance.createEmail(userUuid, createEmailRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthUsersApi#createEmail"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userUuid** | **String**| | | +| **createEmailRequest** | [**CreateEmailRequest**](CreateEmailRequest.md)| | [optional] | + +### Return type + +[**UserEmail**](UserEmail.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | +| **409** | Conflict | - | + + +# **createTemporaryPassword** +> UserPassword createTemporaryPassword(userUuid) + +Create Temporary Password + +ユーザーのパスワードを、ランダムな一時パスワードに変更します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthUsersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthUsersApi apiInstance = new AuthUsersApi(defaultClient); + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + try { + UserPassword result = apiInstance.createTemporaryPassword(userUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthUsersApi#createTemporaryPassword"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userUuid** | **String**| | | + +### Return type + +[**UserPassword**](UserPassword.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **createUser** +> User createUser(createUserRequest) + +Create User + +ユーザーを作成します。新しいユーザーには自動生成された一時パスワードが設定されます。 ユーザー作成のリクエストにメールアドレス( `email` )が含まれていた場合は、 そのメールアドレスに確認メールが送信されます。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthUsersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthUsersApi apiInstance = new AuthUsersApi(defaultClient); + CreateUserRequest createUserRequest = new CreateUserRequest(); // CreateUserRequest | + try { + User result = apiInstance.createUser(createUserRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthUsersApi#createUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **createUserRequest** | [**CreateUserRequest**](CreateUserRequest.md)| | [optional] | + +### Return type + +[**User**](User.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | +| **409** | Conflict | - | + + +# **deleteAPIToken** +> deleteAPIToken(userUuid, userApiTokenId) + +Delete API Token + +ユーザーのAPIトークンを削除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthUsersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthUsersApi apiInstance = new AuthUsersApi(defaultClient); + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + Long userApiTokenId = 1L; // Long | APIトークンのID + try { + apiInstance.deleteAPIToken(userUuid, userApiTokenId); + } catch (ApiException e) { + System.err.println("Exception when calling AuthUsersApi#deleteAPIToken"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userUuid** | **String**| | | +| **userApiTokenId** | **Long**| APIトークンのID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **deleteEmail** +> deleteEmail(userUuid, userEmailId) + +Delete Email + +ユーザーのメールアドレスを削除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthUsersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthUsersApi apiInstance = new AuthUsersApi(defaultClient); + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + Long userEmailId = 1L; // Long | ユーザーのメールアドレスのID + try { + apiInstance.deleteEmail(userUuid, userEmailId); + } catch (ApiException e) { + System.err.println("Exception when calling AuthUsersApi#deleteEmail"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userUuid** | **String**| | | +| **userEmailId** | **Long**| ユーザーのメールアドレスのID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **deleteUser** +> deleteUser(userUuid) + +Delete User + +ユーザーを削除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthUsersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthUsersApi apiInstance = new AuthUsersApi(defaultClient); + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + try { + apiInstance.deleteUser(userUuid); + } catch (ApiException e) { + System.err.println("Exception when calling AuthUsersApi#deleteUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userUuid** | **String**| | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | +| **403** | Forbidden | - | + + +# **disableUser** +> User disableUser(userUuid) + +Disable User + +ユーザーを無効化します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthUsersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthUsersApi apiInstance = new AuthUsersApi(defaultClient); + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + try { + User result = apiInstance.disableUser(userUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthUsersApi#disableUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userUuid** | **String**| | | + +### Return type + +[**User**](User.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **403** | Forbidden | - | + + +# **enableUser** +> User enableUser(userUuid) + +Enable User + +ユーザーを有効化します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthUsersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthUsersApi apiInstance = new AuthUsersApi(defaultClient); + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + try { + User result = apiInstance.enableUser(userUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthUsersApi#enableUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userUuid** | **String**| | | + +### Return type + +[**User**](User.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **403** | Forbidden | - | + + +# **getUser** +> User getUser(userUuid) + +Get User + +ユーザーを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthUsersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthUsersApi apiInstance = new AuthUsersApi(defaultClient); + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + try { + User result = apiInstance.getUser(userUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthUsersApi#getUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userUuid** | **String**| | | + +### Return type + +[**User**](User.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **introspectAPIToken** +> APITokenIntrospectionResponse introspectAPIToken(apITokenIntrospectionRequest) + +Introspect API Token + +APIトークンの検証を行います。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthUsersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthUsersApi apiInstance = new AuthUsersApi(defaultClient); + APITokenIntrospectionRequest apITokenIntrospectionRequest = new APITokenIntrospectionRequest(); // APITokenIntrospectionRequest | + try { + APITokenIntrospectionResponse result = apiInstance.introspectAPIToken(apITokenIntrospectionRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthUsersApi#introspectAPIToken"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **apITokenIntrospectionRequest** | [**APITokenIntrospectionRequest**](APITokenIntrospectionRequest.md)| | [optional] | + +### Return type + +[**APITokenIntrospectionResponse**](APITokenIntrospectionResponse.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json; charset=utf-8 + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listAPITokens** +> UserAPITokens listAPITokens(userUuid) + +List API Tokens + +ユーザーのAPIトークンのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthUsersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthUsersApi apiInstance = new AuthUsersApi(defaultClient); + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + try { + UserAPITokens result = apiInstance.listAPITokens(userUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthUsersApi#listAPITokens"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userUuid** | **String**| | | + +### Return type + +[**UserAPITokens**](UserAPITokens.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listUsers** +> Users listUsers(uuid, roleUuid, name, nickname, email, disabled, isSuper, isTemporary, minSignInAttemptCount, maxSignInAttemptCount, sort, page, perPage) + +List Users + +ユーザーのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthUsersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthUsersApi apiInstance = new AuthUsersApi(defaultClient); + List uuid = Arrays.asList(); // List | ユーザーのUUID + List roleUuid = Arrays.asList(); // List | ロールのUUID + List name = Arrays.asList(); // List | ユーザーの名前による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 + List nickname = Arrays.asList(); // List | ユーザーの表示名による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 + List email = Arrays.asList(); // List | メールアドレスによる部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 + Boolean disabled = false; // Boolean | * `true` を指定した場合、無効化されているユーザーのみを取得します。 * `false` を指定した場合、有効なユーザーのみを取得します。 * 指定を省略した場合、有効/無効にかかわらずユーザーを取得します。 + Boolean isSuper = false; // Boolean | * `true` を指定した場合、スーパーユーザーのみを取得します。 * `false` を指定した場合、スーパーユーザー以外を取得します。 * 指定を省略した場合、スーパーユーザーであるかにかかわらずユーザーを取得します。 + Boolean isTemporary = false; // Boolean | * `true` を指定した場合、一時パスワードを使用しているユーザーのみを取得します。 * `false` を指定した場合、パスワードを設定済みのユーザーのみを取得します。 * 指定を省略した場合、一時パスワードを使用しているかにかかわらずユーザーを取得します。 + Integer minSignInAttemptCount = 1; // Integer | ログイン失敗回数の最小値。ログイン失敗回数がこの数値以上のユーザーを取得します。 + Integer maxSignInAttemptCount = 10; // Integer | ログイン失敗回数の最大値。ログイン失敗回数がこの数値以下のユーザーを取得します。 + String sort = "name+"; // String | 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 - name - created_at - updated_at - last_sign_in_at + Integer page = 1; // Integer | 取得するページの番号 + Integer perPage = 30; // Integer | 1回のリクエストで取得する件数 + try { + Users result = apiInstance.listUsers(uuid, roleUuid, name, nickname, email, disabled, isSuper, isTemporary, minSignInAttemptCount, maxSignInAttemptCount, sort, page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthUsersApi#listUsers"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **uuid** | [**List<String>**](String.md)| ユーザーのUUID | [optional] | +| **roleUuid** | [**List<String>**](String.md)| ロールのUUID | [optional] | +| **name** | [**List<String>**](String.md)| ユーザーの名前による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 | [optional] | +| **nickname** | [**List<String>**](String.md)| ユーザーの表示名による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 | [optional] | +| **email** | [**List<String>**](String.md)| メールアドレスによる部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 | [optional] | +| **disabled** | **Boolean**| * `true` を指定した場合、無効化されているユーザーのみを取得します。 * `false` を指定した場合、有効なユーザーのみを取得します。 * 指定を省略した場合、有効/無効にかかわらずユーザーを取得します。 | [optional] | +| **isSuper** | **Boolean**| * `true` を指定した場合、スーパーユーザーのみを取得します。 * `false` を指定した場合、スーパーユーザー以外を取得します。 * 指定を省略した場合、スーパーユーザーであるかにかかわらずユーザーを取得します。 | [optional] | +| **isTemporary** | **Boolean**| * `true` を指定した場合、一時パスワードを使用しているユーザーのみを取得します。 * `false` を指定した場合、パスワードを設定済みのユーザーのみを取得します。 * 指定を省略した場合、一時パスワードを使用しているかにかかわらずユーザーを取得します。 | [optional] | +| **minSignInAttemptCount** | **Integer**| ログイン失敗回数の最小値。ログイン失敗回数がこの数値以上のユーザーを取得します。 | [optional] | +| **maxSignInAttemptCount** | **Integer**| ログイン失敗回数の最大値。ログイン失敗回数がこの数値以下のユーザーを取得します。 | [optional] | +| **sort** | **String**| 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 - name - created_at - updated_at - last_sign_in_at | [optional] [default to name+] | +| **page** | **Integer**| 取得するページの番号 | [optional] [default to 1] | +| **perPage** | **Integer**| 1回のリクエストで取得する件数 | [optional] [default to 30] | + +### Return type + +[**Users**](Users.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listUsersRoles** +> Roles listUsersRoles(userUuid) + +List User's Roles + +ユーザーのロールのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthUsersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthUsersApi apiInstance = new AuthUsersApi(defaultClient); + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + try { + Roles result = apiInstance.listUsersRoles(userUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthUsersApi#listUsersRoles"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userUuid** | **String**| | | + +### Return type + +[**Roles**](Roles.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **sendVerificationEmail** +> UserEmailVerification sendVerificationEmail(userUuid, userEmailId) + +Send Verification Email + +メールアドレスを確認するため確認メールを送信します。メールアドレス確認用トークンを使用します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthUsersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthUsersApi apiInstance = new AuthUsersApi(defaultClient); + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + Long userEmailId = 1L; // Long | ユーザーのメールアドレスのID + try { + UserEmailVerification result = apiInstance.sendVerificationEmail(userUuid, userEmailId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthUsersApi#sendVerificationEmail"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userUuid** | **String**| | | +| **userEmailId** | **Long**| ユーザーのメールアドレスのID | | + +### Return type + +[**UserEmailVerification**](UserEmailVerification.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad Request | - | + + +# **unassignRole** +> unassignRole(userUuid, roleUuid) + +Unassign Role + +ユーザーへのロールの割り当てを解除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthUsersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthUsersApi apiInstance = new AuthUsersApi(defaultClient); + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + String roleUuid = "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee"; // String | ロールのUUID + try { + apiInstance.unassignRole(userUuid, roleUuid); + } catch (ApiException e) { + System.err.println("Exception when calling AuthUsersApi#unassignRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userUuid** | **String**| | | +| **roleUuid** | **String**| ロールのUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **unlockPassword** +> UserPassword unlockPassword(userUuid) + +Unlock Password + +ユーザーのパスワードのロックを解除します。このユーザーのログイン失敗回数は0にリセットされます。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthUsersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthUsersApi apiInstance = new AuthUsersApi(defaultClient); + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + try { + UserPassword result = apiInstance.unlockPassword(userUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthUsersApi#unlockPassword"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userUuid** | **String**| | | + +### Return type + +[**UserPassword**](UserPassword.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **updateAPIToken** +> UserAPIToken updateAPIToken(userUuid, userApiTokenId, updateUserAPITokenRequest) + +Update API Token + +ユーザーのAPIトークンを更新します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthUsersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthUsersApi apiInstance = new AuthUsersApi(defaultClient); + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + Long userApiTokenId = 1L; // Long | APIトークンのID + UpdateUserAPITokenRequest updateUserAPITokenRequest = new UpdateUserAPITokenRequest(); // UpdateUserAPITokenRequest | + try { + UserAPIToken result = apiInstance.updateAPIToken(userUuid, userApiTokenId, updateUserAPITokenRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthUsersApi#updateAPIToken"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userUuid** | **String**| | | +| **userApiTokenId** | **Long**| APIトークンのID | | +| **updateUserAPITokenRequest** | [**UpdateUserAPITokenRequest**](UpdateUserAPITokenRequest.md)| | [optional] | + +### Return type + +[**UserAPIToken**](UserAPIToken.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json; charset=utf-8 + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **updateEmail** +> UserEmail updateEmail(userUuid, userEmailId, patchEmailRequest) + +Update Email + +ユーザーのメールアドレスを更新します。 メールアドレスの設定が成功すると、確認用URLを含むメールがそのアドレスに送信されます。 確認用URLには、メールアドレス確認用トークンとメールアドレスのIDが含まれます。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthUsersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthUsersApi apiInstance = new AuthUsersApi(defaultClient); + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + Long userEmailId = 1L; // Long | ユーザーのメールアドレスのID + PatchEmailRequest patchEmailRequest = new PatchEmailRequest(); // PatchEmailRequest | + try { + UserEmail result = apiInstance.updateEmail(userUuid, userEmailId, patchEmailRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthUsersApi#updateEmail"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userUuid** | **String**| | | +| **userEmailId** | **Long**| ユーザーのメールアドレスのID | | +| **patchEmailRequest** | [**PatchEmailRequest**](PatchEmailRequest.md)| | [optional] | + +### Return type + +[**UserEmail**](UserEmail.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **409** | Conflict | - | + + +# **updateToVerified** +> UserEmail updateToVerified(userUuid, userEmailId, updateEmailVerifiedRequest) + +Set Email as Verified + +ユーザーのメールアドレスを確認済みにします。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthUsersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthUsersApi apiInstance = new AuthUsersApi(defaultClient); + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + Long userEmailId = 1L; // Long | ユーザーのメールアドレスのID + UpdateEmailVerifiedRequest updateEmailVerifiedRequest = new UpdateEmailVerifiedRequest(); // UpdateEmailVerifiedRequest | + try { + UserEmail result = apiInstance.updateToVerified(userUuid, userEmailId, updateEmailVerifiedRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthUsersApi#updateToVerified"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userUuid** | **String**| | | +| **userEmailId** | **Long**| ユーザーのメールアドレスのID | | +| **updateEmailVerifiedRequest** | [**UpdateEmailVerifiedRequest**](UpdateEmailVerifiedRequest.md)| | [optional] | + +### Return type + +[**UserEmail**](UserEmail.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **updateUser** +> User updateUser(userUuid, patchUserRequest) + +Update User + +ユーザーを更新します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.AuthUsersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + AuthUsersApi apiInstance = new AuthUsersApi(defaultClient); + String userUuid = "0932ff17-567c-4ac8-a40d-136357890f7b"; // String | + PatchUserRequest patchUserRequest = new PatchUserRequest(); // PatchUserRequest | + try { + User result = apiInstance.updateUser(userUuid, patchUserRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthUsersApi#updateUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **userUuid** | **String**| | | +| **patchUserRequest** | [**PatchUserRequest**](PatchUserRequest.md)| | [optional] | + +### Return type + +[**User**](User.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **403** | Forbidden | - | +| **409** | Conflict | - | + diff --git a/intdash/docs/BrokerEdgeConnectionsApi.md b/intdash/docs/BrokerEdgeConnectionsApi.md new file mode 100644 index 0000000..189be1d --- /dev/null +++ b/intdash/docs/BrokerEdgeConnectionsApi.md @@ -0,0 +1,348 @@ +# BrokerEdgeConnectionsApi + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getEdgeConnection**](BrokerEdgeConnectionsApi.md#getEdgeConnection) | **GET** /v1/edge_connections/{edge_connection_uuid} | Get Edge Connection | +| [**getProjectEdgeConnection**](BrokerEdgeConnectionsApi.md#getProjectEdgeConnection) | **GET** /v1/projects/{project_uuid}/edge_connections/{edge_connection_uuid} | Get Project Edge Connection | +| [**listEdgeConnections**](BrokerEdgeConnectionsApi.md#listEdgeConnections) | **GET** /v1/edge_connections | List Edge Connections | +| [**listProjectEdgeConnections**](BrokerEdgeConnectionsApi.md#listProjectEdgeConnections) | **GET** /v1/projects/{project_uuid}/edge_connections | List Project Edge Connections | + + + +# **getEdgeConnection** +> EdgeConnection getEdgeConnection(edgeConnectionUuid) + +Get Edge Connection + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/edge_connection/{edge_connection_uuid}` を使用してください) エッジ接続( `/v1/ws/measurements` に接続されたエッジの接続情報)を取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.BrokerEdgeConnectionsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + BrokerEdgeConnectionsApi apiInstance = new BrokerEdgeConnectionsApi(defaultClient); + String edgeConnectionUuid = "e0326d93-6e94-4edf-92a2-961cc1c07414"; // String | エッジ接続のUUID + try { + EdgeConnection result = apiInstance.getEdgeConnection(edgeConnectionUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BrokerEdgeConnectionsApi#getEdgeConnection"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **edgeConnectionUuid** | **String**| エッジ接続のUUID | | + +### Return type + +[**EdgeConnection**](EdgeConnection.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getProjectEdgeConnection** +> EdgeConnection getProjectEdgeConnection(projectUuid, edgeConnectionUuid) + +Get Project Edge Connection + +エッジ接続( `/v1/ws/measurements` に接続されたエッジの接続情報)を取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.BrokerEdgeConnectionsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + BrokerEdgeConnectionsApi apiInstance = new BrokerEdgeConnectionsApi(defaultClient); + String projectUuid = "c78ce0c1-eb57-4f93-a087-ee3b7cee5e06"; // String | プロジェクトのUUID + String edgeConnectionUuid = "e0326d93-6e94-4edf-92a2-961cc1c07414"; // String | エッジ接続のUUID + try { + EdgeConnection result = apiInstance.getProjectEdgeConnection(projectUuid, edgeConnectionUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BrokerEdgeConnectionsApi#getProjectEdgeConnection"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **edgeConnectionUuid** | **String**| エッジ接続のUUID | | + +### Return type + +[**EdgeConnection**](EdgeConnection.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listEdgeConnections** +> EdgeConnectionList listEdgeConnections(edge, sort, order, limit, page) + +List Edge Connections + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/edge_connection` を使用してください) エッジ接続のリストを取得します。 エッジ接続は、エッジが `/v1/ws/measurements` エンドポイントに接続したときに新規作成され、 3日間更新がないと削除されます。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.BrokerEdgeConnectionsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + BrokerEdgeConnectionsApi apiInstance = new BrokerEdgeConnectionsApi(defaultClient); + List edge = Arrays.asList(); // List | エッジのUUID + String sort = "last_lived_at"; // String | 並べ替えに使用するキー + String order = "asc"; // String | 並べ替えの順序 + Integer limit = 100; // Integer | 1回のリクエストで取得する件数 + Integer page = 1; // Integer | 取得するページの番号 + try { + EdgeConnectionList result = apiInstance.listEdgeConnections(edge, sort, order, limit, page); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BrokerEdgeConnectionsApi#listEdgeConnections"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **edge** | [**List<String>**](String.md)| エッジのUUID | [optional] | +| **sort** | **String**| 並べ替えに使用するキー | [optional] [default to last_lived_at] [enum: last_lived_at, created_at, updated_at] | +| **order** | **String**| 並べ替えの順序 | [optional] [default to desc] [enum: asc, desc] | +| **limit** | **Integer**| 1回のリクエストで取得する件数 | [optional] [default to 100] | +| **page** | **Integer**| 取得するページの番号 | [optional] [default to 1] | + +### Return type + +[**EdgeConnectionList**](EdgeConnectionList.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listProjectEdgeConnections** +> EdgeConnectionList listProjectEdgeConnections(projectUuid, edge, sort, order, limit, page) + +List Project Edge Connections + +エッジ接続のリストを取得します。 エッジ接続は、エッジが `/v1/ws/measurements` エンドポイントに接続したときに新規作成され、 3日間更新がないと削除されます。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.BrokerEdgeConnectionsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + BrokerEdgeConnectionsApi apiInstance = new BrokerEdgeConnectionsApi(defaultClient); + String projectUuid = "c78ce0c1-eb57-4f93-a087-ee3b7cee5e06"; // String | プロジェクトのUUID + List edge = Arrays.asList(); // List | エッジのUUID + String sort = "last_lived_at"; // String | 並べ替えに使用するキー + String order = "asc"; // String | 並べ替えの順序 + Integer limit = 100; // Integer | 1回のリクエストで取得する件数 + Integer page = 1; // Integer | 取得するページの番号 + try { + EdgeConnectionList result = apiInstance.listProjectEdgeConnections(projectUuid, edge, sort, order, limit, page); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BrokerEdgeConnectionsApi#listProjectEdgeConnections"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **edge** | [**List<String>**](String.md)| エッジのUUID | [optional] | +| **sort** | **String**| 並べ替えに使用するキー | [optional] [default to last_lived_at] [enum: last_lived_at, created_at, updated_at] | +| **order** | **String**| 並べ替えの順序 | [optional] [default to desc] [enum: asc, desc] | +| **limit** | **Integer**| 1回のリクエストで取得する件数 | [optional] [default to 100] | +| **page** | **Integer**| 取得するページの番号 | [optional] [default to 1] | + +### Return type + +[**EdgeConnectionList**](EdgeConnectionList.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + diff --git a/intdash/docs/BrokerIScpApi.md b/intdash/docs/BrokerIScpApi.md new file mode 100644 index 0000000..14a7599 --- /dev/null +++ b/intdash/docs/BrokerIScpApi.md @@ -0,0 +1,313 @@ +# BrokerIScpApi + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**connectISCPV1**](BrokerIScpApi.md#connectISCPV1) | **GET** /v1/ws/measurements | Connect ISCPv1 | +| [**connectISCPV2**](BrokerIScpApi.md#connectISCPV2) | **GET** /iscp/connect | Connect ISCPv2 | +| [**connectProjectISCPV1**](BrokerIScpApi.md#connectProjectISCPV1) | **GET** /v1/projects/{project_uuid}/ws/measurements | Connect Project ISCPv1 | +| [**issueISCPTicket**](BrokerIScpApi.md#issueISCPTicket) | **POST** /iscp/tickets | Issue ISCP Ticket | + + + +# **connectISCPV1** +> connectISCPV1() + +Connect ISCPv1 + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/ws/measurements` を使用してください) iSCP v1(WebSocket上でリアルタイムデータを送受信するintdash独自プロトコル)の使用を開始するためのエンドポイントです。 このリクエストを送ることで、プロトコルがWebSocketに切り替えられ、iSCP v1を使用できます。 \"permessage-deflate\" (RFC 7692) が使用できます。 iSCP v1の詳細については、別ドキュメント [詳説iSCP 1.0](https://docs.intdash.jp/manual/iscp1-essentials/latest/ja/iscp1-essentials-ja.pdf) を参照してください。 「詳説iSCP 1.0」に記載されいていない事項ついては、 [アプトポッド](https://www.aptpod.co.jp/contact/) にお問い合わせください。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.BrokerIScpApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + BrokerIScpApi apiInstance = new BrokerIScpApi(defaultClient); + try { + apiInstance.connectISCPV1(); + } catch (ApiException e) { + System.err.println("Exception when calling BrokerIScpApi#connectISCPV1"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **101** | Switching Protocols | - | + + +# **connectISCPV2** +> connectISCPV2() + +Connect ISCPv2 + +iSCP v2(WebSocket上でリアルタイムデータを送受信するintdash独自プロトコル)の使用を開始するためのエンドポイントです。 このリクエストを送ることで、プロトコルがWebSocketに切り替えられ、iSCP v2を使用できます。 iSCP v2の詳細については、 [アプトポッド](https://www.aptpod.co.jp/contact/) にお問い合わせください。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.BrokerIScpApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + BrokerIScpApi apiInstance = new BrokerIScpApi(defaultClient); + try { + apiInstance.connectISCPV2(); + } catch (ApiException e) { + System.err.println("Exception when calling BrokerIScpApi#connectISCPV2"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **101** | Switching Protocols | - | + + +# **connectProjectISCPV1** +> connectProjectISCPV1(projectUuid) + +Connect Project ISCPv1 + +iSCP v1(WebSocket上でリアルタイムデータを送受信するintdash独自プロトコル)の使用を開始するためのエンドポイントです。 このリクエストを送ることで、プロトコルがWebSocketに切り替えられ、iSCP v1を使用できます。 \"permessage-deflate\" (RFC 7692) が使用できます。 iSCP v1の詳細については、別ドキュメント [詳説iSCP 1.0](https://docs.intdash.jp/manual/iscp1-essentials/latest/ja/iscp1-essentials-ja.pdf) を参照してください。 「詳説iSCP 1.0」に記載されいていない事項ついては、 [アプトポッド](https://www.aptpod.co.jp/contact/) にお問い合わせください。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.BrokerIScpApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + BrokerIScpApi apiInstance = new BrokerIScpApi(defaultClient); + String projectUuid = "c78ce0c1-eb57-4f93-a087-ee3b7cee5e06"; // String | プロジェクトのUUID + try { + apiInstance.connectProjectISCPV1(projectUuid); + } catch (ApiException e) { + System.err.println("Exception when calling BrokerIScpApi#connectProjectISCPV1"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **101** | Switching Protocols | - | + + +# **issueISCPTicket** +> ISCPTicket issueISCPTicket() + +Issue ISCP Ticket + +iSCPの認証チケットを発行します。 iSCPの認証チケットは、iSCPv2の接続リクエスト時の拡張用アクセストークンとして使用することができます。 また、認証チケットは有効期限内で一回のみ使用することができます。 一度使用した認証チケットは有効期限に関わらず使用することはできません。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.BrokerIScpApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + BrokerIScpApi apiInstance = new BrokerIScpApi(defaultClient); + try { + ISCPTicket result = apiInstance.issueISCPTicket(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BrokerIScpApi#issueISCPTicket"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ISCPTicket**](ISCPTicket.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + diff --git a/intdash/docs/BrokerStreamApi.md b/intdash/docs/BrokerStreamApi.md new file mode 100644 index 0000000..7bf37a0 --- /dev/null +++ b/intdash/docs/BrokerStreamApi.md @@ -0,0 +1,162 @@ +# BrokerStreamApi + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**projectStream**](BrokerStreamApi.md#projectStream) | **GET** /v1/projects/{project_uuid}/stream | Get Project Realtime Streaming Data | +| [**stream**](BrokerStreamApi.md#stream) | **GET** /v1/stream | Get Realtime Streaming Data | + + + +# **projectStream** +> projectStream(projectUuid) + +Get Project Realtime Streaming Data + +WebSocketを使ってリアルタイムデータを取得します。 同じくWebSocketを使ってリアルタイムデータを扱う `/v1/ws/measurements` では、 iSCP (intdash Stream Control Protocol)を使用しますが、 本エンドポイントではJSONとしてデータポイントを取得することができます。 ## クエリパラメータ | パラメータ名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | -------------------------- | ---------- | ---------- | ----- | | flush_interval | string | true | - | メッセージがフラッシュされる間隔を指定します。 単位は\"ns\"、\"us\" (または\"µs\")、\"ms\"、\"s\"、\"m\"、\"h\"のいずれかを使用してください (参考: [Goのtimeパッケージ](https://golang.org/pkg/time/#ParseDuration))。 指定がない場合は、メッセージごとにフラッシュされます。 | ## メッセージのフォーマット ### JSON Lines リクエストメッセージおよびレスポンスメッセージには [JSON lines](http://jsonlines.org/) 形式を使用します。 1つのメッセージが1行です。 例: ``` { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} . . ``` 注意: メッセージに改行を含むことはできません。 改行が入ったメッセージの例(悪い例): ``` { \"type\" : \"message_type\", \"contents\" : { depends on message_type } } ``` メッセージには、 `type` 属性および `contents` 属性が必要です。 `contents` のスキーマは、 `type` により決定されます。 ## ダウンストリーム開始リクエスト ### ダウンストリーム開始リクエストメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | | type | string | true | `\"open_downstream\"` | 固定値 | | contents | object(次の表を参照) | true | - | | ### ダウンストリーム開始リクエスト内 `contents` のスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ------------------ | ------ | | edge | string | true | - | データの送信元エッジを、エッジのUUIDまたはエッジの名前で指定します。 最初に、一致するエッジUUIDが検索され、一致するエッジUUIDがなければ一致する名前が検索されます。 | | filter | string array | false | `[]` | 「フィルター」を参照してください。 | ### フィルター データコードとデータ名を指定することにより、指定にマッチしたデータポイントだけを受信することができます。 ただし、メタデータのデータポイントは、フィルターの設定に関係なくすべて受信されます。 フィルターは以下のフォーマットで設定します: `<型コード>:<データ名>` データコードについては、後述の 時系列データのペイロードフォーマット を参照してください。 フィルター設定文字列の各セグメントにはワイルドカード( `**` )を使用することができます。 例: - 型コードが `can_data_field` のデータポイント(CAN)を受信する -> `can_data_field:**` - 型コードが `string/` で始まるデータポイントを受信する(`string/json` 、 `string/csv` など) -> `string/_**:**` - 文字列のデータポイントのうち、データ名が `my-string` のものを受信する -> `string:my-string` `filter` として空の配列が指定された場合は、すべてのデータポイントを受信します。 ### ダウンストリーム開始リクエストの例 リクエスト: ``` { \"type\" : \"open_downstream\", \"contents\" : { \"edge\" : \"edge_name_or_uuid\", \"filter\" : [\"string:a/b\"] } } ``` レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: open downstream\" } } ``` ## ダウンストリーム更新リクエスト ### ダウンストリーム更新リクエストメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | | type | string | true | `\"update_downstream\"` | 固定値 | | contents | object(次の表を参照) | true | - | | ### ダウンストリーム更新リクエスト内 `contents` のスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | filter | string array | true | - |「フィルター」を参照してください。 | ### ダウンストリーム更新リクエストの例 フィルターを指定する場合のリクエスト: ``` { \"type\" : \"update_downstream\", \"contents\" : { \"filter\" : [\"string:a/b\"] } } ``` フィルターを指定せずすべてのデータポイントを受信する場合のリクエスト: ``` { \"type\" : \"update_downstream\", \"contents\" : { \"filter\" : [] } } ``` レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: update downstream\" } } ``` ## ダウンストリーム終了リクエスト ### ダウンストリーム終了リクエストメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | | type | string | true | `\"close_downstream\"` | 固定値| ### ダウンストリーム終了リクエストの例 リクエスト: ``` { \"type\" : \"close_downstream\"} ``` レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: close downstream\" } } ``` ## レスポンスメッセージ リクエストの処理結果が返却されます。 ### レスポンスメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ----- | | type | string | true | `\"response\"` | 固定値| | ack | number | false | - | リクエストで `id` が指定されていた場合、その値 | | contents | object(次の表を参照) | true | - | | ### レスポンス内 `contents` のスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ----- | | code | number | true | - | 10000 < code < 20000 の場合、成功。 20000 < code < 30000 の場合、不正なリクエスト。50000 < code の場合、予期しないエラー | | message | string | true | - | リクエストで `id` が指定されていた場合、その値 | ### レスポンスの例 ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: open downstream\" } } ``` リクエストで `id` が指定されている場合のレスポンス例( `id` の値が `ack` として返ります): ``` { \"ack\": 1, \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: open downstream\" } } ``` # 時系列データのペイロードフォーマット 時系列データポイントが格納するペイロードのフォーマットです。各データ型に対する `contents`のフォーマットは [このページ](https://git.aptpod.co.jp/intdash-protocol/dataformat/-/tree/master/data) を参照してください。 ## データ型 各データバイナリには、ペイロードのフォーマットを示すデータ型が付与されます。各データ型には、型を識別するためのコード名が割り当てられます。 ## 標準データ型 単一のデータを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :---------------------- | :-------- | :------: | :--------------------------- | | Bytes | `bytes` | 可変 | フォーマットなしバイト列 | | String | `string` | 可変 | フォーマットなし文字列 | | Float64 | `float64` | 8 | IEEE754 64ビット浮動小数点数 | | Int64 | `int64` | 8 | 符号付き 64ビット整数 | | Bool | `bool` | 1 | 真偽値 | ## メディアデータ型 メディア(動画/音声)関連のデータを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :---------------------- | :----------- | :------: | :------------------------- | | JPEG | `video/jpeg` | 可変 | JPEG 形式の画像データ | | H264 | `video/h264` | 可変 | H264 形式の映像データ | ### 拡張バイナリ型 フォーマット付きのバイナリデータを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :------------------------------------------------ | :---------------- | :------: | :---------------------------------------- | | BSON | `bson` | 可変 | BSON フォーマット | | CAN Frame | `can_frame` | 可変 | CAN フレーム フォーマット | | CAN Data Field | `can_data_field` | 可変 | CAN データフィールド フォーマット | | MAVLink1 Packet | `mavlink1_packet` | 可変 | MAVLink パケット フォーマット | | Generic (非推奨) | `generic` | 可変 | iSCPv1互換 汎用フォーマット | | Controlpad (非推奨) | `control_pad` | 可変 | iSCPv1互換 コントロールパッドフォーマット | | GeneralSensor (非推奨) | `general_sensor` | 可変 | iSCPv1互換 汎用センサーフォーマット | ### 拡張文字列型 フォーマット付きの文字列データを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :----------------------- | :------------ | :------: | :---------------- | | JSON | `string/json` | 可変 | JSON フォーマット | | CSV | `string/csv` | 可変 | CSV フォーマット | | NMEA | `string/nmea` | 可変 | NMEA フォーマット | + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.BrokerStreamApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + BrokerStreamApi apiInstance = new BrokerStreamApi(defaultClient); + String projectUuid = "c78ce0c1-eb57-4f93-a087-ee3b7cee5e06"; // String | プロジェクトのUUID + try { + apiInstance.projectStream(projectUuid); + } catch (ApiException e) { + System.err.println("Exception when calling BrokerStreamApi#projectStream"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **101** | Switching Protocols. | - | + + +# **stream** +> stream() + +Get Realtime Streaming Data + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/stream` を使用してください) WebSocketを使ってリアルタイムデータを取得します。 同じくWebSocketを使ってリアルタイムデータを扱う `/v1/ws/measurements` では、 iSCP (intdash Stream Control Protocol)を使用しますが、 本エンドポイントではJSONとしてデータポイントを取得することができます。 ## クエリパラメータ | パラメータ名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | -------------------------- | ---------- | ---------- | ----- | | flush_interval | string | true | - | メッセージがフラッシュされる間隔を指定します。 単位は\"ns\"、\"us\" (または\"µs\")、\"ms\"、\"s\"、\"m\"、\"h\"のいずれかを使用してください (参考: [Goのtimeパッケージ](https://golang.org/pkg/time/#ParseDuration))。 指定がない場合は、メッセージごとにフラッシュされます。 | ## メッセージのフォーマット ### JSON Lines リクエストメッセージおよびレスポンスメッセージには [JSON lines](http://jsonlines.org/) 形式を使用します。 1つのメッセージが1行です。 例: ``` { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} . . ``` 注意: メッセージに改行を含むことはできません。 改行が入ったメッセージの例(悪い例): ``` { \"type\" : \"message_type\", \"contents\" : { depends on message_type } } ``` メッセージには、 `type` 属性および `contents` 属性が必要です。 `contents` のスキーマは、 `type` により決定されます。 ## ダウンストリーム開始リクエスト ### ダウンストリーム開始リクエストメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | | type | string | true | `\"open_downstream\"` | 固定値 | | contents | object(次の表を参照) | true | - | | ### ダウンストリーム開始リクエスト内 `contents` のスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ------------------ | ------ | | edge | string | true | - | データの送信元エッジを、エッジのUUIDまたはエッジの名前で指定します。 最初に、一致するエッジUUIDが検索され、一致するエッジUUIDがなければ一致する名前が検索されます。 | | filter | string array | false | `[]` | 「フィルター」を参照してください。 | ### フィルター データコードとデータ名を指定することにより、指定にマッチしたデータポイントだけを受信することができます。 ただし、メタデータのデータポイントは、フィルターの設定に関係なくすべて受信されます。 フィルターは以下のフォーマットで設定します: `<型コード>:<データ名>` データコードについては、後述の 時系列データのペイロードフォーマット を参照してください。 フィルター設定文字列の各セグメントにはワイルドカード( `**` )を使用することができます。 例: - 型コードが `can_data_field` のデータポイント(CAN)を受信する -> `can_data_field:**` - 型コードが `string/` で始まるデータポイントを受信する(`string/json` 、 `string/csv` など) -> `string/_**:**` - 文字列のデータポイントのうち、データ名が `my-string` のものを受信する -> `string:my-string` `filter` として空の配列が指定された場合は、すべてのデータポイントを受信します。 ### ダウンストリーム開始リクエストの例 リクエスト: ``` { \"type\" : \"open_downstream\", \"contents\" : { \"edge\" : \"edge_name_or_uuid\", \"filter\" : [\"string:a/b\"] } } ``` レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: open downstream\" } } ``` ## ダウンストリーム更新リクエスト ### ダウンストリーム更新リクエストメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | | type | string | true | `\"update_downstream\"` | 固定値 | | contents | object(次の表を参照) | true | - | | ### ダウンストリーム更新リクエスト内 `contents` のスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | filter | string array | true | - |「フィルター」を参照してください。 | ### ダウンストリーム更新リクエストの例 フィルターを指定する場合のリクエスト: ``` { \"type\" : \"update_downstream\", \"contents\" : { \"filter\" : [\"string:a/b\"] } } ``` フィルターを指定せずすべてのデータポイントを受信する場合のリクエスト: ``` { \"type\" : \"update_downstream\", \"contents\" : { \"filter\" : [] } } ``` レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: update downstream\" } } ``` ## ダウンストリーム終了リクエスト ### ダウンストリーム終了リクエストメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | | type | string | true | `\"close_downstream\"` | 固定値| ### ダウンストリーム終了リクエストの例 リクエスト: ``` { \"type\" : \"close_downstream\"} ``` レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: close downstream\" } } ``` ## レスポンスメッセージ リクエストの処理結果が返却されます。 ### レスポンスメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ----- | | type | string | true | `\"response\"` | 固定値| | ack | number | false | - | リクエストで `id` が指定されていた場合、その値 | | contents | object(次の表を参照) | true | - | | ### レスポンス内 `contents` のスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ----- | | code | number | true | - | 10000 < code < 20000 の場合、成功。 20000 < code < 30000 の場合、不正なリクエスト。50000 < code の場合、予期しないエラー | | message | string | true | - | リクエストで `id` が指定されていた場合、その値 | ### レスポンスの例 ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: open downstream\" } } ``` リクエストで `id` が指定されている場合のレスポンス例( `id` の値が `ack` として返ります): ``` { \"ack\": 1, \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: open downstream\" } } ``` # 時系列データのペイロードフォーマット 時系列データポイントが格納するペイロードのフォーマットです。各データ型に対する `contents`のフォーマットは [このページ](https://git.aptpod.co.jp/intdash-protocol/dataformat/-/tree/master/data) を参照してください。 ## データ型 各データバイナリには、ペイロードのフォーマットを示すデータ型が付与されます。各データ型には、型を識別するためのコード名が割り当てられます。 ## 標準データ型 単一のデータを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :---------------------- | :-------- | :------: | :--------------------------- | | Bytes | `bytes` | 可変 | フォーマットなしバイト列 | | String | `string` | 可変 | フォーマットなし文字列 | | Float64 | `float64` | 8 | IEEE754 64ビット浮動小数点数 | | Int64 | `int64` | 8 | 符号付き 64ビット整数 | | Bool | `bool` | 1 | 真偽値 | ## メディアデータ型 メディア(動画/音声)関連のデータを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :---------------------- | :----------- | :------: | :------------------------- | | JPEG | `video/jpeg` | 可変 | JPEG 形式の画像データ | | H264 | `video/h264` | 可変 | H264 形式の映像データ | ### 拡張バイナリ型 フォーマット付きのバイナリデータを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :------------------------------------------------ | :---------------- | :------: | :---------------------------------------- | | BSON | `bson` | 可変 | BSON フォーマット | | CAN Frame | `can_frame` | 可変 | CAN フレーム フォーマット | | CAN Data Field | `can_data_field` | 可変 | CAN データフィールド フォーマット | | MAVLink1 Packet | `mavlink1_packet` | 可変 | MAVLink パケット フォーマット | | Generic (非推奨) | `generic` | 可変 | iSCPv1互換 汎用フォーマット | | Controlpad (非推奨) | `control_pad` | 可変 | iSCPv1互換 コントロールパッドフォーマット | | GeneralSensor (非推奨) | `general_sensor` | 可変 | iSCPv1互換 汎用センサーフォーマット | ### 拡張文字列型 フォーマット付きの文字列データを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :----------------------- | :------------ | :------: | :---------------- | | JSON | `string/json` | 可変 | JSON フォーマット | | CSV | `string/csv` | 可変 | CSV フォーマット | | NMEA | `string/nmea` | 可変 | NMEA フォーマット | + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.BrokerStreamApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + BrokerStreamApi apiInstance = new BrokerStreamApi(defaultClient); + try { + apiInstance.stream(); + } catch (ApiException e) { + System.err.println("Exception when calling BrokerStreamApi#stream"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **101** | Switching Protocols. | - | + diff --git a/intdash/docs/ChangePasswordRequest.md b/intdash/docs/ChangePasswordRequest.md new file mode 100644 index 0000000..fa53a87 --- /dev/null +++ b/intdash/docs/ChangePasswordRequest.md @@ -0,0 +1,15 @@ + + +# ChangePasswordRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**password** | **String** | 新しいパスワード | | +|**oldPassword** | **String** | 現在のパスワード | [optional] | +|**recoveryToken** | **String** | リカバリートークン。パスワード再設定用の確認メールに含まれています。 | [optional] | + + + diff --git a/intdash/docs/CheckAuthorizationResponse.md b/intdash/docs/CheckAuthorizationResponse.md new file mode 100644 index 0000000..1a32b4a --- /dev/null +++ b/intdash/docs/CheckAuthorizationResponse.md @@ -0,0 +1,13 @@ + + +# CheckAuthorizationResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **Boolean** | | | + + + diff --git a/intdash/docs/CheckHTTPAuthorizationRequest.md b/intdash/docs/CheckHTTPAuthorizationRequest.md new file mode 100644 index 0000000..a2e6bbe --- /dev/null +++ b/intdash/docs/CheckHTTPAuthorizationRequest.md @@ -0,0 +1,29 @@ + + +# CheckHTTPAuthorizationRequest + +アクセス制御可能かどうかを判定します。 ### サブジェクト指定なしの場合 リクエストのスコープのみでアクセス判定を行います。 ### サブジェクト指定ありの場合 パスを分類し、分類した結果によって処理が変わります。 #### パスがプロジェクトコンテキストの場合 サブジェクトがプロジェクトに所属しているかを確認し、所属している場合は、サブジェクトがメンバーの場合そのプロジェクトにおけるスコープからアクセス判定を行います。サブジェクトがエッジの場合はリクエストのスコープからアクセス判定を行います。 ### パスがグループコンテキストの場合 サブジェクトがプロジェクトに所属しているかを確認し、所属している場合は、そのプロジェクトにおけるスコープからアクセス判定を行います。 ### パスがその他の場合 リクエストのスコープからアクセス判定を行います。 + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**subject** | **String** | 認証主体を指定します。通常アクセスユーザーのUUIDかアクセスエッジのUUIDを指定します。 | [optional] | +|**scopes** | **List<String>** | スコープを指定します。前述の説明を参照ください。 | | +|**path** | **String** | | | +|**method** | [**MethodEnum**](#MethodEnum) | | | + + + +## Enum: MethodEnum + +| Name | Value | +|---- | -----| +| GET | "GET" | +| POST | "POST" | +| PUT | "PUT" | +| PATCH | "PATCH" | +| DELETE | "DELETE" | + + + diff --git a/intdash/docs/CheckMeHTTPAuthorizationRequest.md b/intdash/docs/CheckMeHTTPAuthorizationRequest.md new file mode 100644 index 0000000..09b5e4e --- /dev/null +++ b/intdash/docs/CheckMeHTTPAuthorizationRequest.md @@ -0,0 +1,27 @@ + + +# CheckMeHTTPAuthorizationRequest + +認証ユーザー自身がアクセス可能かどうかを判定します。 + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**path** | **String** | | | +|**method** | [**MethodEnum**](#MethodEnum) | | | + + + +## Enum: MethodEnum + +| Name | Value | +|---- | -----| +| GET | "GET" | +| POST | "POST" | +| PUT | "PUT" | +| PATCH | "PATCH" | +| DELETE | "DELETE" | + + + diff --git a/intdash/docs/CheckPasswordRequest.md b/intdash/docs/CheckPasswordRequest.md new file mode 100644 index 0000000..5e884ac --- /dev/null +++ b/intdash/docs/CheckPasswordRequest.md @@ -0,0 +1,13 @@ + + +# CheckPasswordRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**password** | **String** | チェックしたいパスワード | | + + + diff --git a/intdash/docs/CheckPasswordResult.md b/intdash/docs/CheckPasswordResult.md new file mode 100644 index 0000000..1bfcc8a --- /dev/null +++ b/intdash/docs/CheckPasswordResult.md @@ -0,0 +1,14 @@ + + +# CheckPasswordResult + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**valid** | **Boolean** | `true` の場合、ポリシーに適合しています。 | | +|**errors** | [**List<CheckPasswordResultErrorsInner>**](CheckPasswordResultErrorsInner.md) | ポリシー不適合の場合、その詳細 | [optional] | + + + diff --git a/intdash/docs/CheckPasswordResultErrorsInner.md b/intdash/docs/CheckPasswordResultErrorsInner.md new file mode 100644 index 0000000..aa489d9 --- /dev/null +++ b/intdash/docs/CheckPasswordResultErrorsInner.md @@ -0,0 +1,31 @@ + + +# CheckPasswordResultErrorsInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | [**TypeEnum**](#TypeEnum) | ポリシーの種類 | | +|**value** | **String** | ポリシーで指定されている数値 | [optional] | +|**message** | **String** | ポリシーに関する説明 | | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| MIN_LENGTH | "min_length" | +| MAX_LENGTH | "max_length" | +| MIN_SYMBOL_NUM | "min_symbol_num" | +| MIN_UPPERCASE_ALPHABET_NUM | "min_uppercase_alphabet_num" | +| MIN_LOWERCASE_ALPHABET_NUM | "min_lowercase_alphabet_num" | +| MIN_NUMBER_NUM | "min_number_num" | +| MIN_LENGTHMIN_ALPHABET_NUM | "min_lengthmin_alphabet_num" | +| ALLOWED_SAME_USERNAME | "allowed_same_username" | +| ALLOWED_SAME_PREVIOUS_PASSWORD | "allowed_same_previous_password" | + + + diff --git a/intdash/docs/CreateEdgeRequest.md b/intdash/docs/CreateEdgeRequest.md new file mode 100644 index 0000000..03e326f --- /dev/null +++ b/intdash/docs/CreateEdgeRequest.md @@ -0,0 +1,15 @@ + + +# CreateEdgeRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | エッジの名前 | | +|**nickname** | **String** | エッジの表示名 | [optional] | +|**description** | **String** | エッジの説明 | [optional] | + + + diff --git a/intdash/docs/CreateEmailRequest.md b/intdash/docs/CreateEmailRequest.md new file mode 100644 index 0000000..0ed6e4e --- /dev/null +++ b/intdash/docs/CreateEmailRequest.md @@ -0,0 +1,13 @@ + + +# CreateEmailRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**address** | **String** | メールアドレス | | + + + diff --git a/intdash/docs/CreateGroupRequest.md b/intdash/docs/CreateGroupRequest.md new file mode 100644 index 0000000..21c8e60 --- /dev/null +++ b/intdash/docs/CreateGroupRequest.md @@ -0,0 +1,13 @@ + + +# CreateGroupRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | グループの名前 | | + + + diff --git a/intdash/docs/CreateJobRequest.md b/intdash/docs/CreateJobRequest.md new file mode 100644 index 0000000..fefa157 --- /dev/null +++ b/intdash/docs/CreateJobRequest.md @@ -0,0 +1,14 @@ + + +# CreateJobRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**measUuid** | **String** | 計測のUUID | | +|**type** | **JobType** | | | + + + diff --git a/intdash/docs/CreateJpegRequest.md b/intdash/docs/CreateJpegRequest.md new file mode 100644 index 0000000..091d4bc --- /dev/null +++ b/intdash/docs/CreateJpegRequest.md @@ -0,0 +1,17 @@ + + +# CreateJpegRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**trim** | **Boolean** | 時間範囲を指定してその部分のJPEGを作成する場合は `true` にします。 | [optional] | +|**startOffset** | **Integer** | 計測開始からのオフセット(マイクロ秒)。trimがtrueの場合は必須です。 | [optional] | +|**duration** | **Integer** | 長さ(マイクロ秒)。trimがtrueの場合は必須です。 | [optional] | +|**fps** | **Float** | フレームレート。値が省略された場合は、元のデータと同じフレームレートが使用されます。 | [optional] | +|**quality** | **JpegQuality** | | [optional] | + + + diff --git a/intdash/docs/CreateMP4Request.md b/intdash/docs/CreateMP4Request.md new file mode 100644 index 0000000..eb5fb52 --- /dev/null +++ b/intdash/docs/CreateMP4Request.md @@ -0,0 +1,15 @@ + + +# CreateMP4Request + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**trimmed** | **Boolean** | 時間範囲を指定してその部分のMP4を作成する場合は `true` にします。 | [optional] | +|**startOffset** | **Integer** | 動画の開始時刻からのオフセット(マイクロ秒)。trimmedがtrueの場合は必須です。 | [optional] | +|**duration** | **Integer** | 長さ(マイクロ秒)。trimmedがtrueの場合は必須です。 | [optional] | + + + diff --git a/intdash/docs/CreateMeasurementChunksResult.md b/intdash/docs/CreateMeasurementChunksResult.md new file mode 100644 index 0000000..80befa5 --- /dev/null +++ b/intdash/docs/CreateMeasurementChunksResult.md @@ -0,0 +1,15 @@ + + +# CreateMeasurementChunksResult + +シーケンスチャンクの登録結果 + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<CreateMeasurementChunksResultItemsInner>**](CreateMeasurementChunksResultItemsInner.md) | 登録結果のリスト | | +|**totalCount** | **Long** | 登録結果の総件数 | | + + + diff --git a/intdash/docs/CreateMeasurementChunksResultItemsInner.md b/intdash/docs/CreateMeasurementChunksResultItemsInner.md new file mode 100644 index 0000000..42f978e --- /dev/null +++ b/intdash/docs/CreateMeasurementChunksResultItemsInner.md @@ -0,0 +1,23 @@ + + +# CreateMeasurementChunksResultItemsInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**sequenceNumber** | **Long** | シーケンスナンバー。符号無し32bit整数。 | | +|**result** | [**ResultEnum**](#ResultEnum) | 登録結果を表します: - ok - 登録成功。 - skipped - スキップ。既に登録されています。 | | + + + +## Enum: ResultEnum + +| Name | Value | +|---- | -----| +| OK | "ok" | +| SKIPPED | "skipped" | + + + diff --git a/intdash/docs/CreateMyOAuth2ClientRequest.md b/intdash/docs/CreateMyOAuth2ClientRequest.md new file mode 100644 index 0000000..cae9035 --- /dev/null +++ b/intdash/docs/CreateMyOAuth2ClientRequest.md @@ -0,0 +1,35 @@ + + +# CreateMyOAuth2ClientRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | 名前 | | +|**grantType** | [**GrantTypeEnum**](#GrantTypeEnum) | グラントタイプ | | +|**redirectUris** | **List<String>** | | | +|**tokenEndpointAuthMethod** | [**TokenEndpointAuthMethodEnum**](#TokenEndpointAuthMethodEnum) | トークンエンドポイントの認証方式 | | +|**tlsClientAuthSubjectDn** | **String** | TLSクライアント認証のサブジェクトDN | [optional] | + + + +## Enum: GrantTypeEnum + +| Name | Value | +|---- | -----| +| AUTHORIZATION_CODE | "authorization_code" | +| CLIENT_CREDENTIALS | "client_credentials" | + + + +## Enum: TokenEndpointAuthMethodEnum + +| Name | Value | +|---- | -----| +| CLIENT_SECRET_POST | "client_secret_post" | +| TLS_CLIENT_AUTH | "tls_client_auth" | + + + diff --git a/intdash/docs/CreateOAuth2ClientAuthorizationCodeRequest.md b/intdash/docs/CreateOAuth2ClientAuthorizationCodeRequest.md new file mode 100644 index 0000000..13a44a0 --- /dev/null +++ b/intdash/docs/CreateOAuth2ClientAuthorizationCodeRequest.md @@ -0,0 +1,35 @@ + + +# CreateOAuth2ClientAuthorizationCodeRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | 名前 | | +|**grantType** | [**GrantTypeEnum**](#GrantTypeEnum) | グラントタイプ | | +|**redirectUris** | **List<String>** | | | +|**tokenEndpointAuthMethod** | [**TokenEndpointAuthMethodEnum**](#TokenEndpointAuthMethodEnum) | トークンエンドポイントの認証方式 | | +|**tlsClientAuthSubjectDn** | **String** | TLSクライアント認証のサブジェクトDN | [optional] | + + + +## Enum: GrantTypeEnum + +| Name | Value | +|---- | -----| +| AUTHORIZATION_CODE | "authorization_code" | +| CLIENT_CREDENTIALS | "client_credentials" | + + + +## Enum: TokenEndpointAuthMethodEnum + +| Name | Value | +|---- | -----| +| CLIENT_SECRET_POST | "client_secret_post" | +| TLS_CLIENT_AUTH | "tls_client_auth" | + + + diff --git a/intdash/docs/CreateOAuth2ClientAuthorizationCodeRequestAllOf.md b/intdash/docs/CreateOAuth2ClientAuthorizationCodeRequestAllOf.md new file mode 100644 index 0000000..c825ac4 --- /dev/null +++ b/intdash/docs/CreateOAuth2ClientAuthorizationCodeRequestAllOf.md @@ -0,0 +1,26 @@ + + +# CreateOAuth2ClientAuthorizationCodeRequestAllOf + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | 名前 | [optional] | +|**grantType** | **String** | グラントタイプ | [optional] | +|**redirectUris** | **List<String>** | | | +|**tokenEndpointAuthMethod** | [**TokenEndpointAuthMethodEnum**](#TokenEndpointAuthMethodEnum) | トークンエンドポイントの認証方式 | [optional] | +|**tlsClientAuthSubjectDn** | **String** | TLSクライアント認証のサブジェクトDN | [optional] | + + + +## Enum: TokenEndpointAuthMethodEnum + +| Name | Value | +|---- | -----| +| CLIENT_SECRET_BASIC | "client_secret_basic" | +| NONE | "none" | + + + diff --git a/intdash/docs/CreateOAuth2ClientClientCredentialsRequest.md b/intdash/docs/CreateOAuth2ClientClientCredentialsRequest.md new file mode 100644 index 0000000..f6270a5 --- /dev/null +++ b/intdash/docs/CreateOAuth2ClientClientCredentialsRequest.md @@ -0,0 +1,34 @@ + + +# CreateOAuth2ClientClientCredentialsRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | 名前 | | +|**grantType** | [**GrantTypeEnum**](#GrantTypeEnum) | グラントタイプ | | +|**tokenEndpointAuthMethod** | [**TokenEndpointAuthMethodEnum**](#TokenEndpointAuthMethodEnum) | トークンエンドポイントの認証方式 | | +|**tlsClientAuthSubjectDn** | **String** | TLSクライアント認証のサブジェクトDN | [optional] | + + + +## Enum: GrantTypeEnum + +| Name | Value | +|---- | -----| +| AUTHORIZATION_CODE | "authorization_code" | +| CLIENT_CREDENTIALS | "client_credentials" | + + + +## Enum: TokenEndpointAuthMethodEnum + +| Name | Value | +|---- | -----| +| CLIENT_SECRET_POST | "client_secret_post" | +| TLS_CLIENT_AUTH | "tls_client_auth" | + + + diff --git a/intdash/docs/CreateProjectRequest.md b/intdash/docs/CreateProjectRequest.md new file mode 100644 index 0000000..d672b06 --- /dev/null +++ b/intdash/docs/CreateProjectRequest.md @@ -0,0 +1,13 @@ + + +# CreateProjectRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | プロジェクトの名前 | | + + + diff --git a/intdash/docs/CreateSignalRequest.md b/intdash/docs/CreateSignalRequest.md new file mode 100644 index 0000000..289bc46 --- /dev/null +++ b/intdash/docs/CreateSignalRequest.md @@ -0,0 +1,20 @@ + + +# CreateSignalRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**channel** | **Integer** | チャンネル | [optional] | +|**conversion** | [**SignalConversion**](SignalConversion.md) | | [optional] | +|**dataId** | **String** | データID | [optional] | +|**dataType** | **Integer** | データタイプ | [optional] | +|**description** | **String** | 信号定義の説明 | [optional] | +|**display** | [**SignalDisplay**](SignalDisplay.md) | | [optional] | +|**label** | **String** | 信号定義のラベル | [optional] | +|**uuid** | **String** | 信号定義のUUID | [optional] | + + + diff --git a/intdash/docs/CreateUserAPITokenRequest.md b/intdash/docs/CreateUserAPITokenRequest.md new file mode 100644 index 0000000..462996f --- /dev/null +++ b/intdash/docs/CreateUserAPITokenRequest.md @@ -0,0 +1,14 @@ + + +# CreateUserAPITokenRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | APIトークンの名前 | | +|**expiredAt** | **Date** | 有効期限 | [optional] | + + + diff --git a/intdash/docs/CreateUserRequest.md b/intdash/docs/CreateUserRequest.md new file mode 100644 index 0000000..b5f34c4 --- /dev/null +++ b/intdash/docs/CreateUserRequest.md @@ -0,0 +1,17 @@ + + +# CreateUserRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | ユーザーの名前 | | +|**nickname** | **String** | ユーザーの表示名 | [optional] | +|**description** | **String** | ユーザーの説明 | [optional] | +|**roleUuids** | **List<String>** | ロールのUUID。指定したロールがユーザーに割り当てられます。 | | +|**email** | **String** | ユーザーのメールアドレス | [optional] | + + + diff --git a/intdash/docs/DataID.md b/intdash/docs/DataID.md new file mode 100644 index 0000000..97088a0 --- /dev/null +++ b/intdash/docs/DataID.md @@ -0,0 +1,16 @@ + + +# DataID + +データID + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**dataType** | **Integer** | データタイプ | | +|**channel** | **Long** | チャンネル | | +|**dataId** | **String** | データID | | + + + diff --git a/intdash/docs/DataIDs.md b/intdash/docs/DataIDs.md new file mode 100644 index 0000000..69eb340 --- /dev/null +++ b/intdash/docs/DataIDs.md @@ -0,0 +1,13 @@ + + +# DataIDs + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<DataID>**](DataID.md) | | | + + + diff --git a/intdash/docs/DataPoint.md b/intdash/docs/DataPoint.md new file mode 100644 index 0000000..934dfc0 --- /dev/null +++ b/intdash/docs/DataPoint.md @@ -0,0 +1,18 @@ + + +# DataPoint + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**time** | [**DataPointTime**](DataPointTime.md) | | | +|**measurementUuid** | **String** | このデータポイントが含まれる計測のUUID | | +|**createdAt** | **String** | このデータポイントが作成された日時 | | +|**dataType** | **String** | データタイプ | | +|**dataId** | **String** | エラーが発生した場合、 `<channel>/intdash/measurement/get/data/error` | | +|**data** | [**DataPointDataError**](DataPointDataError.md) | | | + + + diff --git a/intdash/docs/DataPointDataError.md b/intdash/docs/DataPointDataError.md new file mode 100644 index 0000000..31978bb --- /dev/null +++ b/intdash/docs/DataPointDataError.md @@ -0,0 +1,15 @@ + + +# DataPointDataError + +データのペイロード + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**i** | **String** | 固定値 `intdash/measurement/get/data/error` | | +|**d** | [**DataPointDataErrorData**](DataPointDataErrorData.md) | | | + + + diff --git a/intdash/docs/DataPointDataErrorData.md b/intdash/docs/DataPointDataErrorData.md new file mode 100644 index 0000000..7f821f6 --- /dev/null +++ b/intdash/docs/DataPointDataErrorData.md @@ -0,0 +1,24 @@ + + +# DataPointDataErrorData + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | [**ErrorEnum**](#ErrorEnum) | エラーのタイプ。エラーのタイプが `unexpected` の場合は、直ちに処理が中断されます。 | | +|**errorDescription** | **String** | エラーの説明 | | +|**errorExtra** | [**ErrorConvertedAllOfErrorExtra**](ErrorConvertedAllOfErrorExtra.md) | | | + + + +## Enum: ErrorEnum + +| Name | Value | +|---- | -----| +| CONVERTED_ERROR | "converted_error" | +| UNEXPECTED | "unexpected" | + + + diff --git a/intdash/docs/DataPointDataID.md b/intdash/docs/DataPointDataID.md new file mode 100644 index 0000000..eba29e2 --- /dev/null +++ b/intdash/docs/DataPointDataID.md @@ -0,0 +1,15 @@ + + +# DataPointDataID + +データID + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**dataType** | **String** | データタイプ | | +|**dataId** | **String** | データID | | + + + diff --git a/intdash/docs/DataPointDataIDs.md b/intdash/docs/DataPointDataIDs.md new file mode 100644 index 0000000..da67fee --- /dev/null +++ b/intdash/docs/DataPointDataIDs.md @@ -0,0 +1,13 @@ + + +# DataPointDataIDs + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<DataPointDataID>**](DataPointDataID.md) | | | + + + diff --git a/intdash/docs/DataPointError.md b/intdash/docs/DataPointError.md new file mode 100644 index 0000000..dfe866f --- /dev/null +++ b/intdash/docs/DataPointError.md @@ -0,0 +1,18 @@ + + +# DataPointError + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**time** | [**DataPointTime**](DataPointTime.md) | | | +|**measurementUuid** | **String** | このデータポイントが含まれる計測のUUID | | +|**createdAt** | **String** | このデータポイントが作成された日時 | | +|**dataType** | **String** | データタイプ | | +|**dataId** | **String** | エラーが発生した場合、 `<channel>/intdash/measurement/get/data/error` | | +|**data** | [**DataPointDataError**](DataPointDataError.md) | | | + + + diff --git a/intdash/docs/DataPointErrorAllOf.md b/intdash/docs/DataPointErrorAllOf.md new file mode 100644 index 0000000..d2be1a1 --- /dev/null +++ b/intdash/docs/DataPointErrorAllOf.md @@ -0,0 +1,14 @@ + + +# DataPointErrorAllOf + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**dataId** | **String** | エラーが発生した場合、 `<channel>/intdash/measurement/get/data/error` | [optional] | +|**data** | [**DataPointDataError**](DataPointDataError.md) | | [optional] | + + + diff --git a/intdash/docs/DataPointNormal.md b/intdash/docs/DataPointNormal.md new file mode 100644 index 0000000..d2132ec --- /dev/null +++ b/intdash/docs/DataPointNormal.md @@ -0,0 +1,19 @@ + + +# DataPointNormal + +改行で区切られたJSON文字列です。 + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**time** | [**DataPointTime**](DataPointTime.md) | | | +|**measurementUuid** | **String** | このデータポイントが含まれる計測のUUID | | +|**createdAt** | **String** | このデータポイントが作成された日時 | | +|**dataType** | **String** | データタイプ | | +|**dataId** | **String** | データID | | +|**data** | **Object** | データのペイロード。ペイロードのJSON表現はデータタイプによって異なります。 [詳説iSCP 1.0](https://docs.intdash.jp/manual/iscp1-essentials/latest/ja/iscp1-essentials-ja.pdf) の「付録: データタイプとペイロードの定義」を参照してください。 iscpv1に当てはまらない場合、下記のフォーマットで固定となります。 ``` { \"d\": \"データ本体のBase64表記\" } ``` | | + + + diff --git a/intdash/docs/DataPointTime.md b/intdash/docs/DataPointTime.md new file mode 100644 index 0000000..a155f98 --- /dev/null +++ b/intdash/docs/DataPointTime.md @@ -0,0 +1,12 @@ + + +# DataPointTime + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| + + + diff --git a/intdash/docs/DeniedEndpoint.md b/intdash/docs/DeniedEndpoint.md new file mode 100644 index 0000000..2143e42 --- /dev/null +++ b/intdash/docs/DeniedEndpoint.md @@ -0,0 +1,14 @@ + + +# DeniedEndpoint + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**path** | **String** | リソースパス。グロブを使って指定可能です。 | | +|**method** | **String** | HTTPメソッド。グロブを使って指定可能です。 | | + + + diff --git a/intdash/docs/Edge.md b/intdash/docs/Edge.md new file mode 100644 index 0000000..b0083de --- /dev/null +++ b/intdash/docs/Edge.md @@ -0,0 +1,20 @@ + + +# Edge + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uuid** | **String** | エッジのUUID | | +|**name** | **String** | エッジの名前 | | +|**nickname** | **String** | エッジの表示名 | | +|**description** | **String** | エッジの説明 | | +|**owner** | [**EdgeOwner**](EdgeOwner.md) | | [optional] | +|**createdAt** | **Date** | 作成日時 | | +|**updatedAt** | **Date** | 最終更新日時 | | +|**clientSecret** | **String** | エッジのクライアントシークレット | [optional] | + + + diff --git a/intdash/docs/EdgeConnection.md b/intdash/docs/EdgeConnection.md new file mode 100644 index 0000000..07084c8 --- /dev/null +++ b/intdash/docs/EdgeConnection.md @@ -0,0 +1,19 @@ + + +# EdgeConnection + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uuid** | **String** | エッジ接続のUUID | | +|**lastLivedAt** | **String** | サーバーがこのエッジ接続を確認できた最後の日時。 エッジとサーバーがWebSocketで接続されている間、この値は数秒おきに最新の日時に更新されます。 WebSocketが切断されると、それ以上更新されなくなります。 更新は数秒おきであるため、WebSocketが切断された場合に その切断の時刻が正確に記録されるわけではありません。 | | +|**edge** | [**EdgeConnectionEdge**](EdgeConnectionEdge.md) | | | +|**createdAt** | **String** | エッジ接続が作成された日時 | | +|**updatedAt** | **String** | エッジ接続の最終更新日時 | | +|**downstreams** | [**List<EdgeConnectionDownstream>**](EdgeConnectionDownstream.md) | ダウンストリームについての情報 | | +|**upstreams** | [**List<EdgeConnectionUpstream>**](EdgeConnectionUpstream.md) | アップストリームについての情報 | | + + + diff --git a/intdash/docs/EdgeConnectionAllOf.md b/intdash/docs/EdgeConnectionAllOf.md new file mode 100644 index 0000000..5712779 --- /dev/null +++ b/intdash/docs/EdgeConnectionAllOf.md @@ -0,0 +1,14 @@ + + +# EdgeConnectionAllOf + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**downstreams** | [**List<EdgeConnectionDownstream>**](EdgeConnectionDownstream.md) | ダウンストリームについての情報 | | +|**upstreams** | [**List<EdgeConnectionUpstream>**](EdgeConnectionUpstream.md) | アップストリームについての情報 | | + + + diff --git a/intdash/docs/EdgeConnectionDownstream.md b/intdash/docs/EdgeConnectionDownstream.md new file mode 100644 index 0000000..00c4367 --- /dev/null +++ b/intdash/docs/EdgeConnectionDownstream.md @@ -0,0 +1,19 @@ + + +# EdgeConnectionDownstream + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**streamId** | **Integer** | ダウンストリームのストリームID | | +|**srcEdgeUuid** | **String** | ダウンストリームの送信元エッジUUID | | +|**dstEdgeUuid** | **String** | ダウンストリームの宛先エッジUUID | | +|**lastReceivedAt** | **String** | ダウンストリームで最後にデータポイントが受信された日時。 実際の最後のデータポイントの受信よりも最大で10秒後の値となる場合があります。 | | +|**receivedCloseRequest** | **Boolean** | * `true` : このダウンストリームについてのclose requestを受信済みです。 * `false` : このダウンストリームについてのclose requestを受信していません。 | | +|**createdAt** | **String** | ダウンストリームが作成された日時 | | +|**updatedAt** | **String** | ダウンストリームの最終更新日時 | | + + + diff --git a/intdash/docs/EdgeConnectionEdge.md b/intdash/docs/EdgeConnectionEdge.md new file mode 100644 index 0000000..969db5b --- /dev/null +++ b/intdash/docs/EdgeConnectionEdge.md @@ -0,0 +1,33 @@ + + +# EdgeConnectionEdge + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uuid** | **String** | エッジのUUID | | +|**name** | **String** | エッジの名前 | | +|**nickname** | **String** | エッジの表示名 | | +|**description** | **String** | エッジの説明 | | +|**disabled** | **Boolean** | * `true` : このエッジは無効化されています。 * `false` : このエッジは有効です。 | | +|**internal** | **Boolean** | * `true` : このエッジは内部エッジ(システム内部で使用される特別なエッジ)です。 このエッジの変更や削除はできません。 * `false` : このエッジは内部エッジではありません。 | | +|**_protected** | **Boolean** | * `true` : このエッジは保護されています。このエッジの変更や削除はできません。 * `false` : このエッジは保護されていません。 | | +|**type** | [**TypeEnum**](#TypeEnum) | エッジのタイプ | | +|**lastLoginAt** | **String** | エッジが最後にログインした日時 | | +|**lastLivedAt** | **String** | サーバーがこのエッジ接続を確認できた最後の日時。 エッジとサーバーがWebSocketで接続されている間、この値は数秒おきに最新の日時に更新されます。 WebSocketが切断されると、それ以上更新されなくなります。 更新は数秒おきであるため、WebSocketが切断された場合に その切断の時刻が正確に記録されるわけではありません。 | | +|**createdAt** | **String** | エッジが作成された日時 | | +|**updatedAt** | **String** | エッジの最終更新日時 | | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| USER | "user" | +| DEVICE | "device" | + + + diff --git a/intdash/docs/EdgeConnectionItem.md b/intdash/docs/EdgeConnectionItem.md new file mode 100644 index 0000000..b00f090 --- /dev/null +++ b/intdash/docs/EdgeConnectionItem.md @@ -0,0 +1,17 @@ + + +# EdgeConnectionItem + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uuid** | **String** | エッジ接続のUUID | | +|**lastLivedAt** | **String** | サーバーがこのエッジ接続を確認できた最後の日時。 エッジとサーバーがWebSocketで接続されている間、この値は数秒おきに最新の日時に更新されます。 WebSocketが切断されると、それ以上更新されなくなります。 更新は数秒おきであるため、WebSocketが切断された場合に その切断の時刻が正確に記録されるわけではありません。 | | +|**edge** | [**EdgeConnectionEdge**](EdgeConnectionEdge.md) | | | +|**createdAt** | **String** | エッジ接続が作成された日時 | | +|**updatedAt** | **String** | エッジ接続の最終更新日時 | | + + + diff --git a/intdash/docs/EdgeConnectionList.md b/intdash/docs/EdgeConnectionList.md new file mode 100644 index 0000000..18001e1 --- /dev/null +++ b/intdash/docs/EdgeConnectionList.md @@ -0,0 +1,14 @@ + + +# EdgeConnectionList + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<EdgeConnectionItem>**](EdgeConnectionItem.md) | | | +|**page** | [**EdgeConnectionListPage**](EdgeConnectionListPage.md) | | | + + + diff --git a/intdash/docs/EdgeConnectionListPage.md b/intdash/docs/EdgeConnectionListPage.md new file mode 100644 index 0000000..59cf192 --- /dev/null +++ b/intdash/docs/EdgeConnectionListPage.md @@ -0,0 +1,17 @@ + + +# EdgeConnectionListPage + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**first** | **Boolean** | `true` の場合、現在のページが最初のページです。 | | +|**last** | **Boolean** | `true` の場合、現在のページが最後のページです。 | | +|**next** | **String** | 次のページのパス。現在のページが最後のページの場合は空文字列です。 | | +|**previous** | **String** | 前のページのパス。現在のページが最初のページの場合は空文字列です。 | | +|**totalCount** | **Integer** | 取得対象の総件数 | | + + + diff --git a/intdash/docs/EdgeConnectionUpstream.md b/intdash/docs/EdgeConnectionUpstream.md new file mode 100644 index 0000000..20e1c1b --- /dev/null +++ b/intdash/docs/EdgeConnectionUpstream.md @@ -0,0 +1,21 @@ + + +# EdgeConnectionUpstream + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**streamId** | **Integer** | アップストリームのストリームID | | +|**measurementUuid** | **String** | アップストリームの計測UUID | | +|**srcEdgeUuid** | **String** | アップストリームの送信元エッジUUID | | +|**resend** | **Boolean** | * `true` : このアップストリームは再送です。 * `false` : このアップストリームは再送ではありません。 | | +|**store** | **Boolean** | * `true` : このアップストリームで送信されたデータポイントはサーバーに保存されます。 * `false` : このアップストリームで送信されたデータポイントはサーバーに保存されません。 | | +|**lastReceivedAt** | **String** | アップストリームで最後にデータポイントが送信された日時。 実際の最後のデータポイント送信よりも最大で10秒後の値となる場合があります。 | | +|**receivedCloseRequest** | **Boolean** | * `true` : このアップストリームについてのclose requestを受信済みです。 * `false` : このアップストリームについてのclose requestは受信していません。 | | +|**createdAt** | **String** | アップストリームが作成された日時 | | +|**updatedAt** | **String** | アップストリームの最終更新日時 | | + + + diff --git a/intdash/docs/EdgeOwner.md b/intdash/docs/EdgeOwner.md new file mode 100644 index 0000000..c2ef917 --- /dev/null +++ b/intdash/docs/EdgeOwner.md @@ -0,0 +1,13 @@ + + +# EdgeOwner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**userUuid** | **String** | 所有者ユーザーのUUID | | + + + diff --git a/intdash/docs/Edges.md b/intdash/docs/Edges.md new file mode 100644 index 0000000..c68a398 --- /dev/null +++ b/intdash/docs/Edges.md @@ -0,0 +1,14 @@ + + +# Edges + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<Edge>**](Edge.md) | | | +|**page** | [**AuthPage**](AuthPage.md) | | | + + + diff --git a/intdash/docs/ErrorConverted.md b/intdash/docs/ErrorConverted.md new file mode 100644 index 0000000..94e5306 --- /dev/null +++ b/intdash/docs/ErrorConverted.md @@ -0,0 +1,24 @@ + + +# ErrorConverted + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | [**ErrorEnum**](#ErrorEnum) | エラーのタイプ。エラーのタイプが `unexpected` の場合は、直ちに処理が中断されます。 | | +|**errorDescription** | **String** | エラーの説明 | | +|**errorExtra** | [**ErrorConvertedAllOfErrorExtra**](ErrorConvertedAllOfErrorExtra.md) | | | + + + +## Enum: ErrorEnum + +| Name | Value | +|---- | -----| +| CONVERTED_ERROR | "converted_error" | +| UNEXPECTED | "unexpected" | + + + diff --git a/intdash/docs/ErrorConvertedAllOf.md b/intdash/docs/ErrorConvertedAllOf.md new file mode 100644 index 0000000..93203cb --- /dev/null +++ b/intdash/docs/ErrorConvertedAllOf.md @@ -0,0 +1,13 @@ + + +# ErrorConvertedAllOf + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**errorExtra** | [**ErrorConvertedAllOfErrorExtra**](ErrorConvertedAllOfErrorExtra.md) | | | + + + diff --git a/intdash/docs/ErrorConvertedAllOfErrorExtra.md b/intdash/docs/ErrorConvertedAllOfErrorExtra.md new file mode 100644 index 0000000..35c5b61 --- /dev/null +++ b/intdash/docs/ErrorConvertedAllOfErrorExtra.md @@ -0,0 +1,17 @@ + + +# ErrorConvertedAllOfErrorExtra + +`error_type` が `converted_error` である場合の追加情報 + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**signalLabel** | **String** | 信号定義のラベル | | +|**signalDataId** | **String** | 信号定義のデータID | | +|**signalChannel** | **Integer** | 信号定義のチャンネル | | +|**signalDataType** | **Integer** | 信号定義のデータタイプ | | + + + diff --git a/intdash/docs/ErrorExtraEmpty.md b/intdash/docs/ErrorExtraEmpty.md new file mode 100644 index 0000000..e922e52 --- /dev/null +++ b/intdash/docs/ErrorExtraEmpty.md @@ -0,0 +1,23 @@ + + +# ErrorExtraEmpty + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**error** | [**ErrorEnum**](#ErrorEnum) | エラーのタイプ。エラーのタイプが `unexpected` の場合は、直ちに処理が中断されます。 | | +|**errorDescription** | **String** | エラーの説明 | | + + + +## Enum: ErrorEnum + +| Name | Value | +|---- | -----| +| CONVERTED_ERROR | "converted_error" | +| UNEXPECTED | "unexpected" | + + + diff --git a/intdash/docs/ErrorProblem.md b/intdash/docs/ErrorProblem.md new file mode 100644 index 0000000..adfbec5 --- /dev/null +++ b/intdash/docs/ErrorProblem.md @@ -0,0 +1,31 @@ + + +# ErrorProblem + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | [**TypeEnum**](#TypeEnum) | エラーのタイプ | | +|**title** | **String** | エラーのタイトル | | +|**properties** | **Object** | 無効なパラメーターについての情報 | [optional] | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| ABOUT_BLANK | "about:blank" | +| INVALID_REQUEST | "invalid_request" | +| CONFLICT | "conflict" | +| FORBIDDEN | "forbidden" | +| ACCOUNT_LOCKED | "account_locked" | +| EXCEEDED_MAX_GROUPS_COUNT | "exceeded_max_groups_count" | +| EXCEEDED_MAX_PROJECTS_COUNT_PER_GROUP | "exceeded_max_projects_count_per_group" | +| CONFLICT_PROJECT_EDGE_UUID | "conflict_project_edge_uuid" | +| CONFLICT_PROJECT_EDGE_NICKNAME | "conflict_project_edge_nickname" | + + + diff --git a/intdash/docs/ErrorProblemMedia.md b/intdash/docs/ErrorProblemMedia.md new file mode 100644 index 0000000..fec64ac --- /dev/null +++ b/intdash/docs/ErrorProblemMedia.md @@ -0,0 +1,27 @@ + + +# ErrorProblemMedia + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | [**TypeEnum**](#TypeEnum) | エラーのタイプ | | +|**title** | **String** | エラーのタイトル | | +|**properties** | **Object** | 無効なパラメーターについての情報 | [optional] | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| ABOUT_BLANK | "about:blank" | +| INVALID_REQUEST | "invalid_request" | +| CONFLICT | "conflict" | +| FORBIDDEN | "forbidden" | +| ACCOUNT_LOCKED | "account_locked" | + + + diff --git a/intdash/docs/GetVersion200Response.md b/intdash/docs/GetVersion200Response.md new file mode 100644 index 0000000..7d1741e --- /dev/null +++ b/intdash/docs/GetVersion200Response.md @@ -0,0 +1,13 @@ + + +# GetVersion200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**version** | **String** | APIのバージョン | | + + + diff --git a/intdash/docs/Group.md b/intdash/docs/Group.md new file mode 100644 index 0000000..1c0050d --- /dev/null +++ b/intdash/docs/Group.md @@ -0,0 +1,17 @@ + + +# Group + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uuid** | **String** | グループのUUID | | +|**parentGroupUuid** | **String** | 親グループのUUID。nullの場合、親グループは存在しません。 | | +|**name** | **String** | グループの名前 | | +|**createdAt** | **Date** | 作成日時 | | +|**updatedAt** | **Date** | 最終更新日時 | | + + + diff --git a/intdash/docs/Groups.md b/intdash/docs/Groups.md new file mode 100644 index 0000000..28e6da7 --- /dev/null +++ b/intdash/docs/Groups.md @@ -0,0 +1,14 @@ + + +# Groups + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<Group>**](Group.md) | | | +|**page** | [**AuthPage**](AuthPage.md) | | [optional] | + + + diff --git a/intdash/docs/HLS.md b/intdash/docs/HLS.md new file mode 100644 index 0000000..4e9f69f --- /dev/null +++ b/intdash/docs/HLS.md @@ -0,0 +1,20 @@ + + +# HLS + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**edgeUuid** | **String** | エッジのUUID | | +|**measurementUuid** | **String** | 計測のUUID | | +|**basetime** | **String** | 基準時刻 | | +|**basetimeType** | **String** | 基準時刻タイプ | | +|**playlist** | **String** | プレイリスト | | +|**channel** | **Integer** | チャンネル | | +|**offsetTime** | **Integer** | 計測開始から動画の開始までのオフセット(マイクロ秒) | | +|**duration** | **Integer** | 長さ(マイクロ秒) | | + + + diff --git a/intdash/docs/HLSList.md b/intdash/docs/HLSList.md new file mode 100644 index 0000000..c97061f --- /dev/null +++ b/intdash/docs/HLSList.md @@ -0,0 +1,13 @@ + + +# HLSList + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<HLS>**](HLS.md) | | | + + + diff --git a/intdash/docs/ISCPMessageType.md b/intdash/docs/ISCPMessageType.md new file mode 100644 index 0000000..00574b3 --- /dev/null +++ b/intdash/docs/ISCPMessageType.md @@ -0,0 +1,21 @@ + + +# ISCPMessageType + +## Enum + + +* `UPSTREAM_SPEC_REQUEST` (value: `"upstream_spec_request"`) + +* `DOWNSTREAM_SPEC_REQUEST` (value: `"downstream_spec_request"`) + +* `UNIT` (value: `"unit"`) + +* `EOS` (value: `"eos"`) + +* `SOS` (value: `"sos"`) + +* `PING` (value: `"ping"`) + + + diff --git a/intdash/docs/ISCPTicket.md b/intdash/docs/ISCPTicket.md new file mode 100644 index 0000000..1aac19a --- /dev/null +++ b/intdash/docs/ISCPTicket.md @@ -0,0 +1,15 @@ + + +# ISCPTicket + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**ticket** | **String** | iSCPチケット | | +|**expiredAt** | **Date** | 有効期限 | | +|**createdAt** | **Date** | 作成日時 | | + + + diff --git a/intdash/docs/IssueToken200Response.md b/intdash/docs/IssueToken200Response.md new file mode 100644 index 0000000..c0bba84 --- /dev/null +++ b/intdash/docs/IssueToken200Response.md @@ -0,0 +1,18 @@ + + +# IssueToken200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**accessToken** | **String** | アクセストークン | [optional] | +|**expiresIn** | **Long** | アクセストークンの有効期限(期限切れまでの秒数) | [optional] | +|**refreshToken** | **String** | リフレッシュトークン | [optional] | +|**refreshTokenExpiresIn** | **Long** | リフレッシュトークンの有効期限(期限切れまでの秒数) | [optional] | +|**scope** | **String** | スコープのリスト(スペース区切り)。 - temporary - 一時的なユーザーを表します。 | [optional] | +|**tokenType** | **String** | トークンタイプ。 `Bearer` に固定。 | [optional] | + + + diff --git a/intdash/docs/JSONWebKey.md b/intdash/docs/JSONWebKey.md new file mode 100644 index 0000000..e742a0d --- /dev/null +++ b/intdash/docs/JSONWebKey.md @@ -0,0 +1,33 @@ + + +# JSONWebKey + +See [JSON Web Key (JWK)](https://datatracker.ietf.org/doc/html/rfc7517) + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**use** | **String** | | [optional] | +|**kty** | **String** | | [optional] | +|**kid** | **String** | | [optional] | +|**crv** | **String** | | [optional] | +|**alg** | **String** | | [optional] | +|**k** | **byte[]** | | [optional] | +|**x** | **byte[]** | | [optional] | +|**y** | **byte[]** | | [optional] | +|**n** | **byte[]** | | [optional] | +|**e** | **byte[]** | | [optional] | +|**d** | **byte[]** | | [optional] | +|**p** | **byte[]** | | [optional] | +|**q** | **byte[]** | | [optional] | +|**dp** | **byte[]** | | [optional] | +|**dq** | **byte[]** | | [optional] | +|**qi** | **byte[]** | | [optional] | +|**x5c** | **List<String>** | | [optional] | +|**x5u** | **String** | | [optional] | +|**x5t** | **String** | | [optional] | +|**x5tHashS256** | **String** | | [optional] | + + + diff --git a/intdash/docs/Job.md b/intdash/docs/Job.md new file mode 100644 index 0000000..457c3dd --- /dev/null +++ b/intdash/docs/Job.md @@ -0,0 +1,19 @@ + + +# Job + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uuid** | **String** | ジョブのUUID | | +|**measUuid** | **String** | 計測のUUID | | +|**type** | **JobType** | | | +|**status** | **JobStatus** | | | +|**message** | **String** | ステータスの説明 | | +|**createdAt** | **Date** | ジョブが作成された日時 | | +|**updatedAt** | **Date** | ジョブの最終更新日時 | | + + + diff --git a/intdash/docs/JobList.md b/intdash/docs/JobList.md new file mode 100644 index 0000000..886484f --- /dev/null +++ b/intdash/docs/JobList.md @@ -0,0 +1,14 @@ + + +# JobList + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<Job>**](Job.md) | | | +|**totalCount** | **BigDecimal** | 取得対象の総件数 | | + + + diff --git a/intdash/docs/JobStatus.md b/intdash/docs/JobStatus.md new file mode 100644 index 0000000..e2c874f --- /dev/null +++ b/intdash/docs/JobStatus.md @@ -0,0 +1,17 @@ + + +# JobStatus + +## Enum + + +* `UNPROCESSED` (value: `"unprocessed"`) + +* `PROCESSING` (value: `"processing"`) + +* `SUCCEEDED` (value: `"succeeded"`) + +* `FAILED` (value: `"failed"`) + + + diff --git a/intdash/docs/JobType.md b/intdash/docs/JobType.md new file mode 100644 index 0000000..6e6c499 --- /dev/null +++ b/intdash/docs/JobType.md @@ -0,0 +1,15 @@ + + +# JobType + +## Enum + + +* `UPDATE` (value: `"update"`) + +* `FINALIZE` (value: `"finalize"`) + +* `DELETE` (value: `"delete"`) + + + diff --git a/intdash/docs/Jpeg.md b/intdash/docs/Jpeg.md new file mode 100644 index 0000000..e458884 --- /dev/null +++ b/intdash/docs/Jpeg.md @@ -0,0 +1,21 @@ + + +# Jpeg + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uuid** | **UUID** | JPEGのUUID | | +|**startOffset** | **Integer** | 計測開始からのオフセット(マイクロ秒) | | +|**duration** | **Integer** | 長さ(マイクロ秒) | | +|**trimmed** | **Boolean** | 指定された時間範囲のみを抽出したものである場合は `true` 。 | | +|**fps** | **Float** | フレームレート(fps) | | +|**quality** | **JpegQuality** | | | +|**status** | **JpegStatus** | | | +|**createdAt** | **Date** | 作成された日時 | | +|**updatedAt** | **Date** | 最終更新日時 | | + + + diff --git a/intdash/docs/JpegQuality.md b/intdash/docs/JpegQuality.md new file mode 100644 index 0000000..63311d1 --- /dev/null +++ b/intdash/docs/JpegQuality.md @@ -0,0 +1,15 @@ + + +# JpegQuality + +## Enum + + +* `HIGH` (value: `"high"`) + +* `MIDDLE` (value: `"middle"`) + +* `LOW` (value: `"low"`) + + + diff --git a/intdash/docs/JpegStatus.md b/intdash/docs/JpegStatus.md new file mode 100644 index 0000000..9851b96 --- /dev/null +++ b/intdash/docs/JpegStatus.md @@ -0,0 +1,19 @@ + + +# JpegStatus + +## Enum + + +* `UNPROCESSED` (value: `"unprocessed"`) + +* `PROCESSING` (value: `"processing"`) + +* `SUCCEEDED` (value: `"succeeded"`) + +* `FAILED` (value: `"failed"`) + +* `CANCELED` (value: `"canceled"`) + + + diff --git a/intdash/docs/Jpegs.md b/intdash/docs/Jpegs.md new file mode 100644 index 0000000..1b4f98e --- /dev/null +++ b/intdash/docs/Jpegs.md @@ -0,0 +1,14 @@ + + +# Jpegs + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<Jpeg>**](Jpeg.md) | | | +|**page** | [**Page**](Page.md) | | | + + + diff --git a/intdash/docs/MP4.md b/intdash/docs/MP4.md new file mode 100644 index 0000000..d7dfafa --- /dev/null +++ b/intdash/docs/MP4.md @@ -0,0 +1,20 @@ + + +# MP4 + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uuid** | **UUID** | MP4のUUID | | +|**startOffset** | **Integer** | 動画の開始時刻からのオフセット(マイクロ秒) | | +|**duration** | **Integer** | 長さ(マイクロ秒) | | +|**trimmed** | **Boolean** | 指定された時間範囲のみを抽出したものである場合は `true` 。 | | +|**filePath** | **String** | メディアファイルのパス | [optional] | +|**status** | **MP4Status** | | | +|**createdAt** | **Date** | 作成された日時 | | +|**updatedAt** | **Date** | 最終更新日時 | | + + + diff --git a/intdash/docs/MP4Status.md b/intdash/docs/MP4Status.md new file mode 100644 index 0000000..a50b5eb --- /dev/null +++ b/intdash/docs/MP4Status.md @@ -0,0 +1,19 @@ + + +# MP4Status + +## Enum + + +* `UNPROCESSED` (value: `"unprocessed"`) + +* `PROCESSING` (value: `"processing"`) + +* `SUCCEEDED` (value: `"succeeded"`) + +* `FAILED` (value: `"failed"`) + +* `CANCELED` (value: `"canceled"`) + + + diff --git a/intdash/docs/MP4s.md b/intdash/docs/MP4s.md new file mode 100644 index 0000000..6b4f59d --- /dev/null +++ b/intdash/docs/MP4s.md @@ -0,0 +1,14 @@ + + +# MP4s + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<MP4>**](MP4.md) | | | +|**page** | [**Page**](Page.md) | | | + + + diff --git a/intdash/docs/MeasBaseTime.md b/intdash/docs/MeasBaseTime.md new file mode 100644 index 0000000..e543790 --- /dev/null +++ b/intdash/docs/MeasBaseTime.md @@ -0,0 +1,16 @@ + + +# MeasBaseTime + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **MeasurementBaseTimeType** | | | +|**basetime** | **String** | 基準時刻(計測が開始された時刻)(RFC3339形式) | | +|**createdAt** | **String** | 基準時刻の作成日時 | | +|**updatedAt** | **String** | 基準時刻の最終更新日時 | | + + + diff --git a/intdash/docs/MeasBaseTimePut.md b/intdash/docs/MeasBaseTimePut.md new file mode 100644 index 0000000..b2d7f67 --- /dev/null +++ b/intdash/docs/MeasBaseTimePut.md @@ -0,0 +1,13 @@ + + +# MeasBaseTimePut + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**basetime** | **String** | 計測の基準時刻 | [optional] | + + + diff --git a/intdash/docs/MeasBaseTimes.md b/intdash/docs/MeasBaseTimes.md new file mode 100644 index 0000000..c2c8688 --- /dev/null +++ b/intdash/docs/MeasBaseTimes.md @@ -0,0 +1,13 @@ + + +# MeasBaseTimes + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<MeasBaseTime>**](MeasBaseTime.md) | | | + + + diff --git a/intdash/docs/MeasCreate.md b/intdash/docs/MeasCreate.md new file mode 100644 index 0000000..cc983cf --- /dev/null +++ b/intdash/docs/MeasCreate.md @@ -0,0 +1,18 @@ + + +# MeasCreate + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | 計測の名前 | [optional] | +|**description** | **String** | 計測の説明 | [optional] | +|**basetime** | **Date** | 計測の基準時刻(計測が開始された時刻) | | +|**basetimeType** | **MeasurementBaseTimeType** | | | +|**edgeUuid** | **String** | この計測に関連付けられたエッジのUUID | | +|**_protected** | **Boolean** | `true` の場合、計測は保護されます。保護されている計測は削除できません。 | | + + + diff --git a/intdash/docs/MeasDataPointIdsApi.md b/intdash/docs/MeasDataPointIdsApi.md new file mode 100644 index 0000000..e8f82eb --- /dev/null +++ b/intdash/docs/MeasDataPointIdsApi.md @@ -0,0 +1,178 @@ +# MeasDataPointIdsApi + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**listDataPointDataIDs**](MeasDataPointIdsApi.md#listDataPointDataIDs) | **GET** /v1/data_ids | List Data Point Data IDs | +| [**listProjectDataPointDataIDs**](MeasDataPointIdsApi.md#listProjectDataPointDataIDs) | **GET** /v1/projects/{project_uuid}/data_ids | List Project Data Point Data IDs | + + + +# **listDataPointDataIDs** +> DataPointDataIDs listDataPointDataIDs(name, start, end) + +List Data Point Data IDs + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/data_ids` を使用してください) データポイントのデータID( `data_type`, `data_id` )のリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasDataPointIdsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasDataPointIdsApi apiInstance = new MeasDataPointIdsApi(defaultClient); + String name = "8f40b21c-f2c4-4fa5-8fe3-325491a59597"; // String | どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: - 計測UUID - エッジUUID - エッジの名前 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 + String start = "2019-10-29T03:04:05.123456Z"; // String | 取得対象範囲の始点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) + String end = "2019-10-29T03:04:05.234567Z"; // String | 取得対象範囲の終点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) + try { + DataPointDataIDs result = apiInstance.listDataPointDataIDs(name, start, end); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasDataPointIdsApi#listDataPointDataIDs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: - 計測UUID - エッジUUID - エッジの名前 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 | | +| **start** | **String**| 取得対象範囲の始点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) | [optional] | +| **end** | **String**| 取得対象範囲の終点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) | [optional] | + +### Return type + +[**DataPointDataIDs**](DataPointDataIDs.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listProjectDataPointDataIDs** +> DataPointDataIDs listProjectDataPointDataIDs(projectUuid, name, start, end) + +List Project Data Point Data IDs + +データポイントのデータID( `data_type`, `data_id` )のリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasDataPointIdsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasDataPointIdsApi apiInstance = new MeasDataPointIdsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String name = "8f40b21c-f2c4-4fa5-8fe3-325491a59597"; // String | どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: - 計測UUID - エッジUUID - エッジの名前 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 + String start = "2019-10-29T03:04:05.123456Z"; // String | 取得対象範囲の始点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) + String end = "2019-10-29T03:04:05.234567Z"; // String | 取得対象範囲の終点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) + try { + DataPointDataIDs result = apiInstance.listProjectDataPointDataIDs(projectUuid, name, start, end); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasDataPointIdsApi#listProjectDataPointDataIDs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **name** | **String**| どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: - 計測UUID - エッジUUID - エッジの名前 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 | | +| **start** | **String**| 取得対象範囲の始点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) | [optional] | +| **end** | **String**| 取得対象範囲の終点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) | [optional] | + +### Return type + +[**DataPointDataIDs**](DataPointDataIDs.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + diff --git a/intdash/docs/MeasDataPointsApi.md b/intdash/docs/MeasDataPointsApi.md new file mode 100644 index 0000000..c212903 --- /dev/null +++ b/intdash/docs/MeasDataPointsApi.md @@ -0,0 +1,704 @@ +# MeasDataPointsApi + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createDataPoints**](MeasDataPointsApi.md#createDataPoints) | **POST** /v1/measurements/data | Store Data Points | +| [**createProjectDataPoints**](MeasDataPointsApi.md#createProjectDataPoints) | **POST** /v1/projects/{project_uuid}/measurements/data | Store Project Data Points | +| [**listDataIDs**](MeasDataPointsApi.md#listDataIDs) | **GET** /v1/getids | List Edge's Data IDs | +| [**listDataIDsWithMeasurementUUID**](MeasDataPointsApi.md#listDataIDsWithMeasurementUUID) | **GET** /v1/measurements/{measurement_uuid}/getids | List Data IDs | +| [**listDataPoints**](MeasDataPointsApi.md#listDataPoints) | **GET** /v1/data | List Data Points | +| [**listProjectDataIDs**](MeasDataPointsApi.md#listProjectDataIDs) | **GET** /v1/projects/{project_uuid}/getids | List Project Edge's Data IDs | +| [**listProjectDataIDsWithMeasurementUUID**](MeasDataPointsApi.md#listProjectDataIDsWithMeasurementUUID) | **GET** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/getids | List Project Data IDs | +| [**listProjectDataPoints**](MeasDataPointsApi.md#listProjectDataPoints) | **GET** /v1/projects/{project_uuid}/data | List Project Data Points | + + + +# **createDataPoints** +> File createDataPoints(body) + +Store Data Points + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/data` を使用してください) データポイントを登録します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasDataPointsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasDataPointsApi apiInstance = new MeasDataPointsApi(defaultClient); + File body = new File("/path/to/file"); // File | このエンドポイント使用時は、 `Content-Type` を以下にしてください。 * `application/protobuf` * [protocol.proto](https://docs.intdash.jp/api/measurement/proto/index.html) の `StoreProto` を参照してください。 * `DataPointProto` の `data_payload`は iSCP v1のデータフォーマットに従います。 * iSCPのデータフォーマットは [詳説 iSCP 1.0](https://docs.intdash.jp/manual/iscp1-essentials/latest/ja/iscp1-essentials-ja.pdf#page=23)を参照してください。 + try { + File result = apiInstance.createDataPoints(body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasDataPointsApi#createDataPoints"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | **File**| このエンドポイント使用時は、 `Content-Type` を以下にしてください。 * `application/protobuf` * [protocol.proto](https://docs.intdash.jp/api/measurement/proto/index.html) の `StoreProto` を参照してください。 * `DataPointProto` の `data_payload`は iSCP v1のデータフォーマットに従います。 * iSCPのデータフォーマットは [詳説 iSCP 1.0](https://docs.intdash.jp/manual/iscp1-essentials/latest/ja/iscp1-essentials-ja.pdf#page=23)を参照してください。 | [optional] | + +### Return type + +[**File**](File.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/protobuf + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **createProjectDataPoints** +> File createProjectDataPoints(projectUuid, body) + +Store Project Data Points + +データポイントを登録します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasDataPointsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasDataPointsApi apiInstance = new MeasDataPointsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + File body = new File("/path/to/file"); // File | このエンドポイント使用時は、 `Content-Type` を以下にしてください。 * `application/protobuf` * [protocol.proto](https://docs.intdash.jp/api/measurement/proto/index.html) の `StoreProto` を参照してください。 * `DataPointProto` の `data_payload`は iSCP v1のデータフォーマットに従います。 * iSCPのデータフォーマットは [詳説 iSCP 1.0](https://docs.intdash.jp/manual/iscp1-essentials/latest/ja/iscp1-essentials-ja.pdf#page=23)を参照してください。 + try { + File result = apiInstance.createProjectDataPoints(projectUuid, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasDataPointsApi#createProjectDataPoints"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **body** | **File**| このエンドポイント使用時は、 `Content-Type` を以下にしてください。 * `application/protobuf` * [protocol.proto](https://docs.intdash.jp/api/measurement/proto/index.html) の `StoreProto` を参照してください。 * `DataPointProto` の `data_payload`は iSCP v1のデータフォーマットに従います。 * iSCPのデータフォーマットは [詳説 iSCP 1.0](https://docs.intdash.jp/manual/iscp1-essentials/latest/ja/iscp1-essentials-ja.pdf#page=23)を参照してください。 | [optional] | + +### Return type + +[**File**](File.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/protobuf + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listDataIDs** +> DataIDs listDataIDs(start, end, edgeUuid) + +List Edge's Data IDs + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/getids` を使用してください) エッジを指定し、そのエッジから送信されているデータに含まれるデータ識別子( `data_type` 、 `channel` 、 `data_id` の組み合わせ)のリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasDataPointsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasDataPointsApi apiInstance = new MeasDataPointsApi(defaultClient); + Long start = 1505797626000000L; // Long | 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) + Long end = 1505798226123456L; // Long | 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) + String edgeUuid = "24dbdc29-165f-4919-b2ce-7a335282bde2"; // String | エッジのUUID + try { + DataIDs result = apiInstance.listDataIDs(start, end, edgeUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasDataPointsApi#listDataIDs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **start** | **Long**| 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) | [optional] | +| **end** | **Long**| 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) | [optional] | +| **edgeUuid** | **String**| エッジのUUID | [optional] | + +### Return type + +[**DataIDs**](DataIDs.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listDataIDsWithMeasurementUUID** +> DataIDs listDataIDsWithMeasurementUUID(measurementUuid) + +List Data IDs + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/getids` を使用してください) 計測を指定し、その計測に含まれるデータ識別子( `data_type` 、 `channel` 、 `data_id` の組み合わせ)のリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasDataPointsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasDataPointsApi apiInstance = new MeasDataPointsApi(defaultClient); + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + try { + DataIDs result = apiInstance.listDataIDsWithMeasurementUUID(measurementUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasDataPointsApi#listDataIDsWithMeasurementUUID"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementUuid** | **String**| 計測のUUID | | + +### Return type + +[**DataIDs**](DataIDs.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listDataPoints** +> File listDataPoints(name, start, end, idq, since, exitOnError, label, period, limit, order, timeFormat) + +List Data Points + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/data` を使用してください) データポイントのリストを取得します。 返却されるデータポイントはJSON形式です。データポイントごとに改行で区切られます。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasDataPointsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasDataPointsApi apiInstance = new MeasDataPointsApi(defaultClient); + String name = "8f40b21c-f2c4-4fa5-8fe3-325491a59597"; // String | どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: - 計測UUID - エッジUUID - エッジの名前 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 + String start = "2019-10-29T03:04:05.123456Z"; // String | 取得対象範囲の始点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) + String end = "2019-10-29T03:04:05.234567Z"; // String | 取得対象範囲の終点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) + List idq = Arrays.asList(); // List | 取得したいデータポイントの条件を以下のフォーマットで指定します。 `data_id` には、 `GET /data_ids` エンドポイントで取得できる `data_id` の値を使用します。 - `:/` 各セグメントにはワイルドカード(*)を使用することができます。 例: - CAN(data_type = `1`)のデータポイントを取得する -> `1:*_/_*` または `1` - チャンネル2のCANデータポイントを取得する -> `1:2/_*` または `1:2` - チャンネル2のCANデータポイントのうち、データIDが `00000001` のものを取得する -> `1:2/00000001` + String since = "2019-10-29T03:04:05.341268Z"; // String | 指定した時刻以降に更新された計測のみを取得します。 以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z). - UNIX時刻(マイクロ秒)(**Deprecated**). + String exitOnError = "false"; // String | `true` を指定した場合、取得中にエラーが発生すると処理を中断し、中断前までのデータポイントのリストを返します。 + List label = Arrays.asList(); // List | 信号定義のラベル + Long period = 10000L; // Long | データポイントを指定した間隔(マイクロ秒)に間引きます。( **Experimental** ) 指定された間隔ごとに最新のデータポイントを残し、それ以外を除去します。 また、指定された間隔になるようにデータポイントの時刻を揃えます。 ``` --1--2----3---4--5---6-7--89-a---b-c---d--e--> period指定なし | | | | | | | | | | | | | | | | 2-----3-----5-----7-----a-----c-----d-----e--> period指定あり |<--->| period ``` + Long limit = 56L; // Long | 1回のリクエストで取得する件数。デフォルトは無制限。 + String order = "asc"; // String | 並べ替えの順序。デフォルトは `asc` (昇順) + String timeFormat = "ns"; // String | レスポンスの時刻表示形式。デフォルトは `us` (マイクロ秒) + try { + File result = apiInstance.listDataPoints(name, start, end, idq, since, exitOnError, label, period, limit, order, timeFormat); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasDataPointsApi#listDataPoints"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: - 計測UUID - エッジUUID - エッジの名前 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 | | +| **start** | **String**| 取得対象範囲の始点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) | [optional] | +| **end** | **String**| 取得対象範囲の終点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) | [optional] | +| **idq** | [**List<String>**](String.md)| 取得したいデータポイントの条件を以下のフォーマットで指定します。 `data_id` には、 `GET /data_ids` エンドポイントで取得できる `data_id` の値を使用します。 - `<data_type>:<channel>/<data_id>` 各セグメントにはワイルドカード(*)を使用することができます。 例: - CAN(data_type = `1`)のデータポイントを取得する -> `1:*_/_*` または `1` - チャンネル2のCANデータポイントを取得する -> `1:2/_*` または `1:2` - チャンネル2のCANデータポイントのうち、データIDが `00000001` のものを取得する -> `1:2/00000001` | [optional] | +| **since** | **String**| 指定した時刻以降に更新された計測のみを取得します。 以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z). - UNIX時刻(マイクロ秒)(**Deprecated**). | [optional] | +| **exitOnError** | **String**| `true` を指定した場合、取得中にエラーが発生すると処理を中断し、中断前までのデータポイントのリストを返します。 | [optional] [default to false] | +| **label** | [**List<String>**](String.md)| 信号定義のラベル | [optional] | +| **period** | **Long**| データポイントを指定した間隔(マイクロ秒)に間引きます。( **Experimental** ) 指定された間隔ごとに最新のデータポイントを残し、それ以外を除去します。 また、指定された間隔になるようにデータポイントの時刻を揃えます。 ``` --1--2----3---4--5---6-7--89-a---b-c---d--e--> period指定なし | | | | | | | | | | | | | | | | 2-----3-----5-----7-----a-----c-----d-----e--> period指定あり |<--->| period ``` | [optional] | +| **limit** | **Long**| 1回のリクエストで取得する件数。デフォルトは無制限。 | [optional] | +| **order** | **String**| 並べ替えの順序。デフォルトは `asc` (昇順) | [optional] [enum: asc, desc] | +| **timeFormat** | **String**| レスポンスの時刻表示形式。デフォルトは `us` (マイクロ秒) | [optional] [enum: ns, us, ms, s, rfc3339] | + +### Return type + +[**File**](File.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8, application/protobuf + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | * Transfer-Encoding -
| + + +# **listProjectDataIDs** +> DataIDs listProjectDataIDs(projectUuid, start, end, edgeUuid) + +List Project Edge's Data IDs + +エッジを指定し、そのエッジから送信されているデータに含まれるデータ識別子( `data_type` 、 `channel` 、 `data_id` の組み合わせ)のリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasDataPointsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasDataPointsApi apiInstance = new MeasDataPointsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + Long start = 1505797626000000L; // Long | 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) + Long end = 1505798226123456L; // Long | 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) + String edgeUuid = "24dbdc29-165f-4919-b2ce-7a335282bde2"; // String | エッジのUUID + try { + DataIDs result = apiInstance.listProjectDataIDs(projectUuid, start, end, edgeUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasDataPointsApi#listProjectDataIDs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **start** | **Long**| 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) | [optional] | +| **end** | **Long**| 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) | [optional] | +| **edgeUuid** | **String**| エッジのUUID | [optional] | + +### Return type + +[**DataIDs**](DataIDs.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listProjectDataIDsWithMeasurementUUID** +> DataIDs listProjectDataIDsWithMeasurementUUID(projectUuid, measurementUuid) + +List Project Data IDs + +計測を指定し、その計測に含まれるデータ識別子( `data_type` 、 `channel` 、 `data_id` の組み合わせ)のリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasDataPointsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasDataPointsApi apiInstance = new MeasDataPointsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + try { + DataIDs result = apiInstance.listProjectDataIDsWithMeasurementUUID(projectUuid, measurementUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasDataPointsApi#listProjectDataIDsWithMeasurementUUID"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementUuid** | **String**| 計測のUUID | | + +### Return type + +[**DataIDs**](DataIDs.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listProjectDataPoints** +> File listProjectDataPoints(projectUuid, name, idq, start, end, since, exitOnError, label, period, limit, order, timeFormat) + +List Project Data Points + +データポイントのリストを取得します。 返却されるデータポイントはJSON形式です。データポイントごとに改行で区切られます。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasDataPointsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasDataPointsApi apiInstance = new MeasDataPointsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String name = "8f40b21c-f2c4-4fa5-8fe3-325491a59597"; // String | どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: - 計測UUID - エッジUUID - エッジの名前 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 + List idq = Arrays.asList(); // List | 取得したいデータポイントの条件を以下のフォーマットで指定します。 `data_id` には、 `GET /data_ids` エンドポイントで取得できる `data_id` の値を使用します。 - `:/` 各セグメントにはワイルドカード(*)を使用することができます。 例: - CAN(data_type = `1`)のデータポイントを取得する -> `1:*_/_*` または `1` - チャンネル2のCANデータポイントを取得する -> `1:2/_*` または `1:2` - チャンネル2のCANデータポイントのうち、データIDが `00000001` のものを取得する -> `1:2/00000001` + String start = "2019-10-29T03:04:05.123456Z"; // String | 取得対象範囲の始点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) + String end = "2019-10-29T03:04:05.234567Z"; // String | 取得対象範囲の終点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) + String since = "2019-10-29T03:04:05.341268Z"; // String | 指定した時刻以降に更新された計測のみを取得します。 以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z). - UNIX時刻(マイクロ秒)(**Deprecated**). + String exitOnError = "false"; // String | `true` を指定した場合、取得中にエラーが発生すると処理を中断し、中断前までのデータポイントのリストを返します。 + List label = Arrays.asList(); // List | 信号定義のラベル + Long period = 10000L; // Long | データポイントを指定した間隔(マイクロ秒)に間引きます。( **Experimental** ) 指定された間隔ごとに最新のデータポイントを残し、それ以外を除去します。 また、指定された間隔になるようにデータポイントの時刻を揃えます。 ``` --1--2----3---4--5---6-7--89-a---b-c---d--e--> period指定なし | | | | | | | | | | | | | | | | 2-----3-----5-----7-----a-----c-----d-----e--> period指定あり |<--->| period ``` + Integer limit = 1000; // Integer | 1回のリクエストで取得する件数 + String order = "asc"; // String | 並べ替えの順序。デフォルトは `asc` (昇順) + String timeFormat = "ns"; // String | レスポンスの時刻表示形式。デフォルトは `us` (マイクロ秒) + try { + File result = apiInstance.listProjectDataPoints(projectUuid, name, idq, start, end, since, exitOnError, label, period, limit, order, timeFormat); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasDataPointsApi#listProjectDataPoints"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **name** | **String**| どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: - 計測UUID - エッジUUID - エッジの名前 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 | | +| **idq** | [**List<String>**](String.md)| 取得したいデータポイントの条件を以下のフォーマットで指定します。 `data_id` には、 `GET /data_ids` エンドポイントで取得できる `data_id` の値を使用します。 - `<data_type>:<channel>/<data_id>` 各セグメントにはワイルドカード(*)を使用することができます。 例: - CAN(data_type = `1`)のデータポイントを取得する -> `1:*_/_*` または `1` - チャンネル2のCANデータポイントを取得する -> `1:2/_*` または `1:2` - チャンネル2のCANデータポイントのうち、データIDが `00000001` のものを取得する -> `1:2/00000001` | [optional] | +| **start** | **String**| 取得対象範囲の始点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) | [optional] | +| **end** | **String**| 取得対象範囲の終点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) | [optional] | +| **since** | **String**| 指定した時刻以降に更新された計測のみを取得します。 以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z). - UNIX時刻(マイクロ秒)(**Deprecated**). | [optional] | +| **exitOnError** | **String**| `true` を指定した場合、取得中にエラーが発生すると処理を中断し、中断前までのデータポイントのリストを返します。 | [optional] [default to false] | +| **label** | [**List<String>**](String.md)| 信号定義のラベル | [optional] | +| **period** | **Long**| データポイントを指定した間隔(マイクロ秒)に間引きます。( **Experimental** ) 指定された間隔ごとに最新のデータポイントを残し、それ以外を除去します。 また、指定された間隔になるようにデータポイントの時刻を揃えます。 ``` --1--2----3---4--5---6-7--89-a---b-c---d--e--> period指定なし | | | | | | | | | | | | | | | | 2-----3-----5-----7-----a-----c-----d-----e--> period指定あり |<--->| period ``` | [optional] | +| **limit** | **Integer**| 1回のリクエストで取得する件数 | [optional] | +| **order** | **String**| 並べ替えの順序。デフォルトは `asc` (昇順) | [optional] [enum: asc, desc] | +| **timeFormat** | **String**| レスポンスの時刻表示形式。デフォルトは `us` (マイクロ秒) | [optional] [enum: ns, us, ms, s, rfc3339] | + +### Return type + +[**File**](File.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8, application/protobuf + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | * Transfer-Encoding -
| + diff --git a/intdash/docs/MeasMeasurementJobsApi.md b/intdash/docs/MeasMeasurementJobsApi.md new file mode 100644 index 0000000..7f19af5 --- /dev/null +++ b/intdash/docs/MeasMeasurementJobsApi.md @@ -0,0 +1,668 @@ +# MeasMeasurementJobsApi + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**cancelMeasurementJob**](MeasMeasurementJobsApi.md#cancelMeasurementJob) | **PUT** /v1/measurements/jobs/{job_uuid}/cancel | Cancel Measurement Job | +| [**cancelProjectMeasurementJob**](MeasMeasurementJobsApi.md#cancelProjectMeasurementJob) | **PUT** /v1/projects/{project_uuid}/measurements/jobs/{job_uuid}/cancel | Cancel Project Measurement Job | +| [**deleteMeasurementJob**](MeasMeasurementJobsApi.md#deleteMeasurementJob) | **DELETE** /v1/measurements/jobs/{job_uuid} | Delete Measurement Job | +| [**deleteProjectMeasurementJob**](MeasMeasurementJobsApi.md#deleteProjectMeasurementJob) | **DELETE** /v1/projects/{project_uuid}/measurements/jobs/{job_uuid} | Delete Project Measurement Job | +| [**getMeasurementJob**](MeasMeasurementJobsApi.md#getMeasurementJob) | **GET** /v1/measurements/jobs/{job_uuid} | Get Measurement Job | +| [**getProjectMeasurementJob**](MeasMeasurementJobsApi.md#getProjectMeasurementJob) | **GET** /v1/projects/{project_uuid}/measurements/jobs/{job_uuid} | Get Project Measurement Job | +| [**listMeasurementJobs**](MeasMeasurementJobsApi.md#listMeasurementJobs) | **GET** /v1/measurements/jobs | List Measurement Jobs | +| [**listProjectMeasurementJobs**](MeasMeasurementJobsApi.md#listProjectMeasurementJobs) | **GET** /v1/projects/{project_uuid}/measurements/jobs | List Project Measurement Jobs | + + + +# **cancelMeasurementJob** +> cancelMeasurementJob(jobUuid) + +Cancel Measurement Job + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/jobs/{job_uuid}/cancel` を使用してください) ジョブをキャンセルします。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementJobsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementJobsApi apiInstance = new MeasMeasurementJobsApi(defaultClient); + String jobUuid = "ddba7729-3a53-42bb-a4cf-6d19a3e66deb"; // String | ジョブのUUID + try { + apiInstance.cancelMeasurementJob(jobUuid); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementJobsApi#cancelMeasurementJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **jobUuid** | **String**| ジョブのUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **cancelProjectMeasurementJob** +> cancelProjectMeasurementJob(projectUuid, jobUuid) + +Cancel Project Measurement Job + +ジョブをキャンセルします。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementJobsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementJobsApi apiInstance = new MeasMeasurementJobsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String jobUuid = "ddba7729-3a53-42bb-a4cf-6d19a3e66deb"; // String | ジョブのUUID + try { + apiInstance.cancelProjectMeasurementJob(projectUuid, jobUuid); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementJobsApi#cancelProjectMeasurementJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **jobUuid** | **String**| ジョブのUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **deleteMeasurementJob** +> deleteMeasurementJob(jobUuid) + +Delete Measurement Job + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/jobs/{job_uuid}` を使用してください) ジョブを削除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementJobsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementJobsApi apiInstance = new MeasMeasurementJobsApi(defaultClient); + String jobUuid = "ddba7729-3a53-42bb-a4cf-6d19a3e66deb"; // String | ジョブのUUID + try { + apiInstance.deleteMeasurementJob(jobUuid); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementJobsApi#deleteMeasurementJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **jobUuid** | **String**| ジョブのUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **deleteProjectMeasurementJob** +> deleteProjectMeasurementJob(projectUuid, jobUuid) + +Delete Project Measurement Job + +ジョブを削除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementJobsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementJobsApi apiInstance = new MeasMeasurementJobsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String jobUuid = "ddba7729-3a53-42bb-a4cf-6d19a3e66deb"; // String | ジョブのUUID + try { + apiInstance.deleteProjectMeasurementJob(projectUuid, jobUuid); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementJobsApi#deleteProjectMeasurementJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **jobUuid** | **String**| ジョブのUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **getMeasurementJob** +> MeasurementJob getMeasurementJob(jobUuid) + +Get Measurement Job + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/jobs/{job_uuid}` を使用してください) ジョブを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementJobsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementJobsApi apiInstance = new MeasMeasurementJobsApi(defaultClient); + String jobUuid = "ddba7729-3a53-42bb-a4cf-6d19a3e66deb"; // String | ジョブのUUID + try { + MeasurementJob result = apiInstance.getMeasurementJob(jobUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementJobsApi#getMeasurementJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **jobUuid** | **String**| ジョブのUUID | | + +### Return type + +[**MeasurementJob**](MeasurementJob.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getProjectMeasurementJob** +> MeasurementJob getProjectMeasurementJob(projectUuid, jobUuid) + +Get Project Measurement Job + +ジョブを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementJobsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementJobsApi apiInstance = new MeasMeasurementJobsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String jobUuid = "ddba7729-3a53-42bb-a4cf-6d19a3e66deb"; // String | ジョブのUUID + try { + MeasurementJob result = apiInstance.getProjectMeasurementJob(projectUuid, jobUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementJobsApi#getProjectMeasurementJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **jobUuid** | **String**| ジョブのUUID | | + +### Return type + +[**MeasurementJob**](MeasurementJob.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listMeasurementJobs** +> MeasurementJobs listMeasurementJobs(limit, sort, status, page, order) + +List Measurement Jobs + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/jobs` を使用してください) ジョブ(CSVファイルを計測に変換するジョブなど)のリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementJobsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementJobsApi apiInstance = new MeasMeasurementJobsApi(defaultClient); + Integer limit = 1000; // Integer | 1回のリクエストで取得する件数 + String sort = "created_at"; // String | 並べ替えに使用するキー + String status = "ready"; // String | ジョブのステータス + Integer page = 1; // Integer | 取得するページの番号 + String order = "asc"; // String | 並べ替えの順序 + try { + MeasurementJobs result = apiInstance.listMeasurementJobs(limit, sort, status, page, order); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementJobsApi#listMeasurementJobs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **limit** | **Integer**| 1回のリクエストで取得する件数 | [optional] | +| **sort** | **String**| 並べ替えに使用するキー | [optional] [default to created_at] [enum: created_at, updated_at] | +| **status** | **String**| ジョブのステータス | [optional] [enum: ready, processing, succeeded, failed, cancelled] | +| **page** | **Integer**| 取得するページの番号 | [optional] | +| **order** | **String**| 並べ替えの順序 | [optional] [enum: asc, desc] | + +### Return type + +[**MeasurementJobs**](MeasurementJobs.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listProjectMeasurementJobs** +> MeasurementJobs listProjectMeasurementJobs(projectUuid, limit, sort, status, page, order) + +List Project Measurement Jobs + +ジョブ(CSVファイルを計測に変換するジョブなど)のリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementJobsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementJobsApi apiInstance = new MeasMeasurementJobsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + Integer limit = 1000; // Integer | 1回のリクエストで取得する件数 + String sort = "created_at"; // String | 並べ替えに使用するキー + String status = "ready"; // String | ジョブのステータス + Integer page = 1; // Integer | 取得するページの番号 + String order = "asc"; // String | 並べ替えの順序 + try { + MeasurementJobs result = apiInstance.listProjectMeasurementJobs(projectUuid, limit, sort, status, page, order); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementJobsApi#listProjectMeasurementJobs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **limit** | **Integer**| 1回のリクエストで取得する件数 | [optional] | +| **sort** | **String**| 並べ替えに使用するキー | [optional] [default to created_at] [enum: created_at, updated_at] | +| **status** | **String**| ジョブのステータス | [optional] [enum: ready, processing, succeeded, failed, cancelled] | +| **page** | **Integer**| 取得するページの番号 | [optional] | +| **order** | **String**| 並べ替えの順序 | [optional] [enum: asc, desc] | + +### Return type + +[**MeasurementJobs**](MeasurementJobs.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + diff --git a/intdash/docs/MeasMeasurementMarkersApi.md b/intdash/docs/MeasMeasurementMarkersApi.md new file mode 100644 index 0000000..6b992ef --- /dev/null +++ b/intdash/docs/MeasMeasurementMarkersApi.md @@ -0,0 +1,1682 @@ +# MeasMeasurementMarkersApi + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createMeasurementMarker**](MeasMeasurementMarkersApi.md#createMeasurementMarker) | **POST** /v1/measurements/{measurement_uuid}/markers | Create Measurement Marker by Measurement UUID | +| [**createProjectMeasurementMarker**](MeasMeasurementMarkersApi.md#createProjectMeasurementMarker) | **POST** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/markers | Create Project Measurement Marker by Measurement UUID | +| [**deleteMeasurementMarker**](MeasMeasurementMarkersApi.md#deleteMeasurementMarker) | **DELETE** /v1/measurements/markers/{measurement_marker_uuid} | Delete Measurement Marker | +| [**deleteMeasurementMarkerWithMeasurementUUIDAndMarkerUUID**](MeasMeasurementMarkersApi.md#deleteMeasurementMarkerWithMeasurementUUIDAndMarkerUUID) | **DELETE** /v1/measurements/{measurement_uuid}/markers/{measurement_marker_uuid} | Delete Measurement Marker using Measurement UUID | +| [**deleteMeasurementMarkers**](MeasMeasurementMarkersApi.md#deleteMeasurementMarkers) | **DELETE** /v1/measurements/{measurement_uuid}/markers | Delete Measurement Markers by Measurement UUID | +| [**deleteProjectMeasurementMarker**](MeasMeasurementMarkersApi.md#deleteProjectMeasurementMarker) | **DELETE** /v1/projects/{project_uuid}/measurements/markers/{measurement_marker_uuid} | Delete Project Measurement Marker | +| [**deleteProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID**](MeasMeasurementMarkersApi.md#deleteProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID) | **DELETE** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/markers/{measurement_marker_uuid} | Delete Project Measurement Marker using Measurement UUID | +| [**deleteProjectMeasurementMarkers**](MeasMeasurementMarkersApi.md#deleteProjectMeasurementMarkers) | **DELETE** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/markers | Delete Project Measurement Markers by Measurement UUID | +| [**getMeasurementMarker**](MeasMeasurementMarkersApi.md#getMeasurementMarker) | **GET** /v1/measurements/markers/{measurement_marker_uuid} | Get Measurement Marker | +| [**getMeasurementMarkerWithMeasurementUUIDAndMarkerUUID**](MeasMeasurementMarkersApi.md#getMeasurementMarkerWithMeasurementUUIDAndMarkerUUID) | **GET** /v1/measurements/{measurement_uuid}/markers/{measurement_marker_uuid} | Get Measurement Marker using Measurement UUID | +| [**getMeasurementMarkersWithMeasurementUUID**](MeasMeasurementMarkersApi.md#getMeasurementMarkersWithMeasurementUUID) | **GET** /v1/measurements/{measurement_uuid}/markers | List Measurement Markers by Measurement UUID | +| [**getProjectMeasurementMarker**](MeasMeasurementMarkersApi.md#getProjectMeasurementMarker) | **GET** /v1/projects/{project_uuid}/measurements/markers/{measurement_marker_uuid} | Get Project Measurement Marker | +| [**getProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID**](MeasMeasurementMarkersApi.md#getProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID) | **GET** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/markers/{measurement_marker_uuid} | Get Project Measurement Marker using Measurement UUID | +| [**getProjectMeasurementMarkersWithMeasurementUUID**](MeasMeasurementMarkersApi.md#getProjectMeasurementMarkersWithMeasurementUUID) | **GET** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/markers | List Project Measurement Markers by Measurement UUID | +| [**listMeasurementMarkers**](MeasMeasurementMarkersApi.md#listMeasurementMarkers) | **GET** /v1/measurements/markers | List Measurement Markers | +| [**listProjectMeasurementMarkers**](MeasMeasurementMarkersApi.md#listProjectMeasurementMarkers) | **GET** /v1/projects/{project_uuid}/measurements/markers | List Project Measurement Markers | +| [**updateMeasurementMarker**](MeasMeasurementMarkersApi.md#updateMeasurementMarker) | **PUT** /v1/measurements/markers/{measurement_marker_uuid} | Update Measurement Marker | +| [**updateMeasurementMarkerWithMeasurementUUIDAndMarkerUUID**](MeasMeasurementMarkersApi.md#updateMeasurementMarkerWithMeasurementUUIDAndMarkerUUID) | **PUT** /v1/measurements/{measurement_uuid}/markers/{measurement_marker_uuid} | Replace Measurement Marker using Measurement UUID | +| [**updateProjectMeasurementMarker**](MeasMeasurementMarkersApi.md#updateProjectMeasurementMarker) | **PUT** /v1/projects/{project_uuid}/measurements/markers/{measurement_marker_uuid} | Update Project Measurement Marker | +| [**updateProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID**](MeasMeasurementMarkersApi.md#updateProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID) | **PUT** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/markers/{measurement_marker_uuid} | Replace Project Measurement Marker using Measurement UUID | + + + +# **createMeasurementMarker** +> MeasurementMarker createMeasurementMarker(measurementUuid, measurementMarkerPostRequest) + +Create Measurement Marker by Measurement UUID + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/markers` を使用してください) 計測マーカーを作成します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementMarkersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementMarkersApi apiInstance = new MeasMeasurementMarkersApi(defaultClient); + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + MeasurementMarkerPostRequest measurementMarkerPostRequest = new MeasurementMarkerPostRequest(); // MeasurementMarkerPostRequest | + try { + MeasurementMarker result = apiInstance.createMeasurementMarker(measurementUuid, measurementMarkerPostRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementMarkersApi#createMeasurementMarker"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementUuid** | **String**| 計測のUUID | | +| **measurementMarkerPostRequest** | [**MeasurementMarkerPostRequest**](MeasurementMarkerPostRequest.md)| | [optional] | + +### Return type + +[**MeasurementMarker**](MeasurementMarker.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + + +# **createProjectMeasurementMarker** +> MeasurementMarker createProjectMeasurementMarker(projectUuid, measurementUuid, measurementMarkerPostRequest) + +Create Project Measurement Marker by Measurement UUID + +計測マーカーを作成します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementMarkersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementMarkersApi apiInstance = new MeasMeasurementMarkersApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + MeasurementMarkerPostRequest measurementMarkerPostRequest = new MeasurementMarkerPostRequest(); // MeasurementMarkerPostRequest | + try { + MeasurementMarker result = apiInstance.createProjectMeasurementMarker(projectUuid, measurementUuid, measurementMarkerPostRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementMarkersApi#createProjectMeasurementMarker"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementUuid** | **String**| 計測のUUID | | +| **measurementMarkerPostRequest** | [**MeasurementMarkerPostRequest**](MeasurementMarkerPostRequest.md)| | [optional] | + +### Return type + +[**MeasurementMarker**](MeasurementMarker.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + + +# **deleteMeasurementMarker** +> deleteMeasurementMarker(measurementMarkerUuid) + +Delete Measurement Marker + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/markers/{measurement_marker_uuid}` を使用してください) 計測マーカーを削除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementMarkersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementMarkersApi apiInstance = new MeasMeasurementMarkersApi(defaultClient); + String measurementMarkerUuid = "27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6"; // String | 計測マーカーのUUID + try { + apiInstance.deleteMeasurementMarker(measurementMarkerUuid); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementMarkersApi#deleteMeasurementMarker"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementMarkerUuid** | **String**| 計測マーカーのUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **deleteMeasurementMarkerWithMeasurementUUIDAndMarkerUUID** +> deleteMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(measurementUuid, measurementMarkerUuid) + +Delete Measurement Marker using Measurement UUID + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/markers/{Measurement_marker_uuid}` を使用してください) 計測マーカーを削除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementMarkersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementMarkersApi apiInstance = new MeasMeasurementMarkersApi(defaultClient); + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + String measurementMarkerUuid = "27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6"; // String | 計測マーカーのUUID + try { + apiInstance.deleteMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(measurementUuid, measurementMarkerUuid); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementMarkersApi#deleteMeasurementMarkerWithMeasurementUUIDAndMarkerUUID"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementUuid** | **String**| 計測のUUID | | +| **measurementMarkerUuid** | **String**| 計測マーカーのUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **deleteMeasurementMarkers** +> deleteMeasurementMarkers(measurementUuid) + +Delete Measurement Markers by Measurement UUID + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/markers` を使用してください) 計測マーカーを削除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementMarkersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementMarkersApi apiInstance = new MeasMeasurementMarkersApi(defaultClient); + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + try { + apiInstance.deleteMeasurementMarkers(measurementUuid); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementMarkersApi#deleteMeasurementMarkers"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementUuid** | **String**| 計測のUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **deleteProjectMeasurementMarker** +> deleteProjectMeasurementMarker(projectUuid, measurementMarkerUuid) + +Delete Project Measurement Marker + +計測マーカーを削除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementMarkersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementMarkersApi apiInstance = new MeasMeasurementMarkersApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementMarkerUuid = "27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6"; // String | 計測マーカーのUUID + try { + apiInstance.deleteProjectMeasurementMarker(projectUuid, measurementMarkerUuid); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementMarkersApi#deleteProjectMeasurementMarker"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementMarkerUuid** | **String**| 計測マーカーのUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **deleteProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID** +> deleteProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(projectUuid, measurementUuid, measurementMarkerUuid) + +Delete Project Measurement Marker using Measurement UUID + +計測マーカーを削除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementMarkersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementMarkersApi apiInstance = new MeasMeasurementMarkersApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + String measurementMarkerUuid = "27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6"; // String | 計測マーカーのUUID + try { + apiInstance.deleteProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(projectUuid, measurementUuid, measurementMarkerUuid); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementMarkersApi#deleteProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementUuid** | **String**| 計測のUUID | | +| **measurementMarkerUuid** | **String**| 計測マーカーのUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **deleteProjectMeasurementMarkers** +> deleteProjectMeasurementMarkers(projectUuid, measurementUuid) + +Delete Project Measurement Markers by Measurement UUID + +計測マーカーを削除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementMarkersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementMarkersApi apiInstance = new MeasMeasurementMarkersApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + try { + apiInstance.deleteProjectMeasurementMarkers(projectUuid, measurementUuid); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementMarkersApi#deleteProjectMeasurementMarkers"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementUuid** | **String**| 計測のUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **getMeasurementMarker** +> MeasurementMarker getMeasurementMarker(measurementMarkerUuid) + +Get Measurement Marker + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/markers/{measurement_marker_uuid}` を使用してください) 計測マーカーを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementMarkersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementMarkersApi apiInstance = new MeasMeasurementMarkersApi(defaultClient); + String measurementMarkerUuid = "27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6"; // String | 計測マーカーのUUID + try { + MeasurementMarker result = apiInstance.getMeasurementMarker(measurementMarkerUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementMarkersApi#getMeasurementMarker"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementMarkerUuid** | **String**| 計測マーカーのUUID | | + +### Return type + +[**MeasurementMarker**](MeasurementMarker.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getMeasurementMarkerWithMeasurementUUIDAndMarkerUUID** +> MeasurementMarker getMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(measurementUuid, measurementMarkerUuid) + +Get Measurement Marker using Measurement UUID + +**Deprecated** このエンドポイントではなく、 `GET /measurements/{measurement_uuid}` を使用してください。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementMarkersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementMarkersApi apiInstance = new MeasMeasurementMarkersApi(defaultClient); + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + String measurementMarkerUuid = "27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6"; // String | 計測マーカーのUUID + try { + MeasurementMarker result = apiInstance.getMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(measurementUuid, measurementMarkerUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementMarkersApi#getMeasurementMarkerWithMeasurementUUIDAndMarkerUUID"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementUuid** | **String**| 計測のUUID | | +| **measurementMarkerUuid** | **String**| 計測マーカーのUUID | | + +### Return type + +[**MeasurementMarker**](MeasurementMarker.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getMeasurementMarkersWithMeasurementUUID** +> MeasurementMarkersWithoutPage getMeasurementMarkersWithMeasurementUUID(measurementUuid) + +List Measurement Markers by Measurement UUID + +(**Deprecated** このエンドポイントではなく、 `GET /measurements/{measurement_uuid}` を使用してください。) 計測UUIDを指定して、その計測に付与されたマーカーの一覧を取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementMarkersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementMarkersApi apiInstance = new MeasMeasurementMarkersApi(defaultClient); + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + try { + MeasurementMarkersWithoutPage result = apiInstance.getMeasurementMarkersWithMeasurementUUID(measurementUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementMarkersApi#getMeasurementMarkersWithMeasurementUUID"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementUuid** | **String**| 計測のUUID | | + +### Return type + +[**MeasurementMarkersWithoutPage**](MeasurementMarkersWithoutPage.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getProjectMeasurementMarker** +> MeasurementMarker getProjectMeasurementMarker(projectUuid, measurementMarkerUuid) + +Get Project Measurement Marker + +計測マーカーを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementMarkersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementMarkersApi apiInstance = new MeasMeasurementMarkersApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementMarkerUuid = "27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6"; // String | 計測マーカーのUUID + try { + MeasurementMarker result = apiInstance.getProjectMeasurementMarker(projectUuid, measurementMarkerUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementMarkersApi#getProjectMeasurementMarker"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementMarkerUuid** | **String**| 計測マーカーのUUID | | + +### Return type + +[**MeasurementMarker**](MeasurementMarker.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID** +> MeasurementMarker getProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(projectUuid, measurementUuid, measurementMarkerUuid) + +Get Project Measurement Marker using Measurement UUID + +**Deprecated** このエンドポイントではなく、 `GET /measurements/{measurement_uuid}` を使用してください。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementMarkersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementMarkersApi apiInstance = new MeasMeasurementMarkersApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + String measurementMarkerUuid = "27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6"; // String | 計測マーカーのUUID + try { + MeasurementMarker result = apiInstance.getProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(projectUuid, measurementUuid, measurementMarkerUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementMarkersApi#getProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementUuid** | **String**| 計測のUUID | | +| **measurementMarkerUuid** | **String**| 計測マーカーのUUID | | + +### Return type + +[**MeasurementMarker**](MeasurementMarker.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getProjectMeasurementMarkersWithMeasurementUUID** +> MeasurementMarkersWithoutPage getProjectMeasurementMarkersWithMeasurementUUID(projectUuid, measurementUuid) + +List Project Measurement Markers by Measurement UUID + +(**Deprecated** このエンドポイントではなく、 `GET /measurements/{measurement_uuid}` を使用してください。) 計測UUIDを指定して、その計測に付与されたマーカーの一覧を取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementMarkersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementMarkersApi apiInstance = new MeasMeasurementMarkersApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + try { + MeasurementMarkersWithoutPage result = apiInstance.getProjectMeasurementMarkersWithMeasurementUUID(projectUuid, measurementUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementMarkersApi#getProjectMeasurementMarkersWithMeasurementUUID"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementUuid** | **String**| 計測のUUID | | + +### Return type + +[**MeasurementMarkersWithoutPage**](MeasurementMarkersWithoutPage.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listMeasurementMarkers** +> MeasurementMarkers listMeasurementMarkers(uuid, name, startUnixMicro, endUnixMicro, tagLessThanKeyGreaterThan, exclamationTagLessThanKeyGreaterThan, limit, sort, page, order) + +List Measurement Markers + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/markers` を使用してください) 計測マーカーのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementMarkersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementMarkersApi apiInstance = new MeasMeasurementMarkersApi(defaultClient); + List uuid = Arrays.asList(); // List | 計測マーカーのUUID + List name = Arrays.asList(); // List | 計測マーカーの名前 + Long startUnixMicro = 1000L; // Long | Get MeasMarkers which start Meas.BaseTime + elapsed_time <= this[usec]. + Long endUnixMicro = 1000L; // Long | Get MeasMarkers which start this[usec] < Meas.BaseTime + elapsed_time. + List tagLessThanKeyGreaterThan = Arrays.asList(); // List | タグのキーと値を使って条件を指定し、条件に一致する計測マーカーを取得します。 キーのみを指定した場合は、指定されたキーを持つ計測マーカーを取得します。 キーと値を指定した場合は、指定されたキーを持ち、その値として指定された値を含む計測マーカーを取得します。 `tag.=` 条件は複数個指定することができ、OR条件で使用されます。 ただし `!tag.` と組み合わせた場合、 `!tag.` が優先されます。 例: | measurement marker | tag (key: value) | | ------------------ | ---------------- | | 1 | a: value1 | | | c: value2 | | | e: 1 | | 2 | a: b | | | c: d | | 3 | a: b | - `?tag.e=` の場合、計測マーカー1番が取得されます。 - `?!tag.c=` の場合、計測マーカー3番が取得されます。 - `?tag.a=&!tag.e=` の場合、計測マーカー2、3番が取得されます。 - `?tag.a=val&tag.c=d` の場合、計測マーカー1、2番が取得されます。 + List exclamationTagLessThanKeyGreaterThan = Arrays.asList(); // List | タグのキーを使って条件を指定し、条件に一致する計測キャプチャを除外します。 タグの値は無視されます。 `!tag.` を複数個指定した場合、AND条件となります。 また、 `tag.=` と組み合わせて使用した場合、 `tag.=` よりも `!tag.` が優先されます。 例: 上の `tag.` の説明を参照してください。 + Integer limit = 1000; // Integer | 1回のリクエストで取得する件数 + String sort = "name"; // String | 並べ替えに使用するキー + Integer page = 1; // Integer | 取得するページの番号 + String order = "asc"; // String | 並べ替えの順序 + try { + MeasurementMarkers result = apiInstance.listMeasurementMarkers(uuid, name, startUnixMicro, endUnixMicro, tagLessThanKeyGreaterThan, exclamationTagLessThanKeyGreaterThan, limit, sort, page, order); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementMarkersApi#listMeasurementMarkers"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **uuid** | [**List<String>**](String.md)| 計測マーカーのUUID | [optional] | +| **name** | [**List<String>**](String.md)| 計測マーカーの名前 | [optional] | +| **startUnixMicro** | **Long**| Get MeasMarkers which start Meas.BaseTime + elapsed_time &lt;= this[usec]. | [optional] | +| **endUnixMicro** | **Long**| Get MeasMarkers which start this[usec] &lt; Meas.BaseTime + elapsed_time. | [optional] | +| **tagLessThanKeyGreaterThan** | [**List<String>**](String.md)| タグのキーと値を使って条件を指定し、条件に一致する計測マーカーを取得します。 キーのみを指定した場合は、指定されたキーを持つ計測マーカーを取得します。 キーと値を指定した場合は、指定されたキーを持ち、その値として指定された値を含む計測マーカーを取得します。 `tag.<key>=<value>` 条件は複数個指定することができ、OR条件で使用されます。 ただし `!tag.<key>` と組み合わせた場合、 `!tag.<key>` が優先されます。 例: | measurement marker | tag (key: value) | | ------------------ | ---------------- | | 1 | a: value1 | | | c: value2 | | | e: 1 | | 2 | a: b | | | c: d | | 3 | a: b | - `?tag.e=` の場合、計測マーカー1番が取得されます。 - `?!tag.c=` の場合、計測マーカー3番が取得されます。 - `?tag.a=&!tag.e=` の場合、計測マーカー2、3番が取得されます。 - `?tag.a=val&tag.c=d` の場合、計測マーカー1、2番が取得されます。 | [optional] | +| **exclamationTagLessThanKeyGreaterThan** | [**List<String>**](String.md)| タグのキーを使って条件を指定し、条件に一致する計測キャプチャを除外します。 タグの値は無視されます。 `!tag.<key>` を複数個指定した場合、AND条件となります。 また、 `tag.<key>=<value>` と組み合わせて使用した場合、 `tag.<key>=<value>` よりも `!tag.<key>` が優先されます。 例: 上の `tag.<key>` の説明を参照してください。 | [optional] | +| **limit** | **Integer**| 1回のリクエストで取得する件数 | [optional] | +| **sort** | **String**| 並べ替えに使用するキー | [optional] [default to base_time] [enum: name, base_time, created_at, updated_at] | +| **page** | **Integer**| 取得するページの番号 | [optional] | +| **order** | **String**| 並べ替えの順序 | [optional] [enum: asc, desc] | + +### Return type + +[**MeasurementMarkers**](MeasurementMarkers.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listProjectMeasurementMarkers** +> MeasurementMarkers listProjectMeasurementMarkers(projectUuid, uuid, name, startUnixMicro, endUnixMicro, tagLessThanKeyGreaterThan, exclamationTagLessThanKeyGreaterThan, limit, sort, page, order) + +List Project Measurement Markers + +計測マーカーのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementMarkersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementMarkersApi apiInstance = new MeasMeasurementMarkersApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + List uuid = Arrays.asList(); // List | 計測マーカーのUUID + List name = Arrays.asList(); // List | 計測マーカーの名前 + Long startUnixMicro = 1000L; // Long | Get MeasMarkers which start Meas.BaseTime + elapsed_time <= this[usec]. + Long endUnixMicro = 1000L; // Long | Get MeasMarkers which start this[usec] < Meas.BaseTime + elapsed_time. + List tagLessThanKeyGreaterThan = Arrays.asList(); // List | タグのキーと値を使って条件を指定し、条件に一致する計測マーカーを取得します。 キーのみを指定した場合は、指定されたキーを持つ計測マーカーを取得します。 キーと値を指定した場合は、指定されたキーを持ち、その値として指定された値を含む計測マーカーを取得します。 `tag.=` 条件は複数個指定することができ、OR条件で使用されます。 ただし `!tag.` と組み合わせた場合、 `!tag.` が優先されます。 例: | measurement marker | tag (key: value) | | ------------------ | ---------------- | | 1 | a: value1 | | | c: value2 | | | e: 1 | | 2 | a: b | | | c: d | | 3 | a: b | - `?tag.e=` の場合、計測マーカー1番が取得されます。 - `?!tag.c=` の場合、計測マーカー3番が取得されます。 - `?tag.a=&!tag.e=` の場合、計測マーカー2、3番が取得されます。 - `?tag.a=val&tag.c=d` の場合、計測マーカー1、2番が取得されます。 + List exclamationTagLessThanKeyGreaterThan = Arrays.asList(); // List | タグのキーを使って条件を指定し、条件に一致する計測キャプチャを除外します。 タグの値は無視されます。 `!tag.` を複数個指定した場合、AND条件となります。 また、 `tag.=` と組み合わせて使用した場合、 `tag.=` よりも `!tag.` が優先されます。 例: 上の `tag.` の説明を参照してください。 + Integer limit = 1000; // Integer | 1回のリクエストで取得する件数 + String sort = "name"; // String | 並べ替えに使用するキー + Integer page = 1; // Integer | 取得するページの番号 + String order = "asc"; // String | 並べ替えの順序 + try { + MeasurementMarkers result = apiInstance.listProjectMeasurementMarkers(projectUuid, uuid, name, startUnixMicro, endUnixMicro, tagLessThanKeyGreaterThan, exclamationTagLessThanKeyGreaterThan, limit, sort, page, order); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementMarkersApi#listProjectMeasurementMarkers"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **uuid** | [**List<String>**](String.md)| 計測マーカーのUUID | [optional] | +| **name** | [**List<String>**](String.md)| 計測マーカーの名前 | [optional] | +| **startUnixMicro** | **Long**| Get MeasMarkers which start Meas.BaseTime + elapsed_time &lt;= this[usec]. | [optional] | +| **endUnixMicro** | **Long**| Get MeasMarkers which start this[usec] &lt; Meas.BaseTime + elapsed_time. | [optional] | +| **tagLessThanKeyGreaterThan** | [**List<String>**](String.md)| タグのキーと値を使って条件を指定し、条件に一致する計測マーカーを取得します。 キーのみを指定した場合は、指定されたキーを持つ計測マーカーを取得します。 キーと値を指定した場合は、指定されたキーを持ち、その値として指定された値を含む計測マーカーを取得します。 `tag.<key>=<value>` 条件は複数個指定することができ、OR条件で使用されます。 ただし `!tag.<key>` と組み合わせた場合、 `!tag.<key>` が優先されます。 例: | measurement marker | tag (key: value) | | ------------------ | ---------------- | | 1 | a: value1 | | | c: value2 | | | e: 1 | | 2 | a: b | | | c: d | | 3 | a: b | - `?tag.e=` の場合、計測マーカー1番が取得されます。 - `?!tag.c=` の場合、計測マーカー3番が取得されます。 - `?tag.a=&!tag.e=` の場合、計測マーカー2、3番が取得されます。 - `?tag.a=val&tag.c=d` の場合、計測マーカー1、2番が取得されます。 | [optional] | +| **exclamationTagLessThanKeyGreaterThan** | [**List<String>**](String.md)| タグのキーを使って条件を指定し、条件に一致する計測キャプチャを除外します。 タグの値は無視されます。 `!tag.<key>` を複数個指定した場合、AND条件となります。 また、 `tag.<key>=<value>` と組み合わせて使用した場合、 `tag.<key>=<value>` よりも `!tag.<key>` が優先されます。 例: 上の `tag.<key>` の説明を参照してください。 | [optional] | +| **limit** | **Integer**| 1回のリクエストで取得する件数 | [optional] | +| **sort** | **String**| 並べ替えに使用するキー | [optional] [default to base_time] [enum: name, base_time, created_at, updated_at] | +| **page** | **Integer**| 取得するページの番号 | [optional] | +| **order** | **String**| 並べ替えの順序 | [optional] [enum: asc, desc] | + +### Return type + +[**MeasurementMarkers**](MeasurementMarkers.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **updateMeasurementMarker** +> MeasurementMarker updateMeasurementMarker(measurementMarkerUuid, measurementMarkerPutRequest) + +Update Measurement Marker + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/markers/{measurement_marker_uuid}` を使用してください) 計測マーカーを更新します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementMarkersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementMarkersApi apiInstance = new MeasMeasurementMarkersApi(defaultClient); + String measurementMarkerUuid = "27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6"; // String | 計測マーカーのUUID + MeasurementMarkerPutRequest measurementMarkerPutRequest = new MeasurementMarkerPutRequest(); // MeasurementMarkerPutRequest | + try { + MeasurementMarker result = apiInstance.updateMeasurementMarker(measurementMarkerUuid, measurementMarkerPutRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementMarkersApi#updateMeasurementMarker"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementMarkerUuid** | **String**| 計測マーカーのUUID | | +| **measurementMarkerPutRequest** | [**MeasurementMarkerPutRequest**](MeasurementMarkerPutRequest.md)| | [optional] | + +### Return type + +[**MeasurementMarker**](MeasurementMarker.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **updateMeasurementMarkerWithMeasurementUUIDAndMarkerUUID** +> MeasurementMarker updateMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(measurementUuid, measurementMarkerUuid, measurementMarkerPutRequest) + +Replace Measurement Marker using Measurement UUID + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/markers/{Measurement_marker_uuid}` を使用してください) 計測マーカーの情報を更新します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementMarkersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementMarkersApi apiInstance = new MeasMeasurementMarkersApi(defaultClient); + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + String measurementMarkerUuid = "27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6"; // String | 計測マーカーのUUID + MeasurementMarkerPutRequest measurementMarkerPutRequest = new MeasurementMarkerPutRequest(); // MeasurementMarkerPutRequest | + try { + MeasurementMarker result = apiInstance.updateMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(measurementUuid, measurementMarkerUuid, measurementMarkerPutRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementMarkersApi#updateMeasurementMarkerWithMeasurementUUIDAndMarkerUUID"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementUuid** | **String**| 計測のUUID | | +| **measurementMarkerUuid** | **String**| 計測マーカーのUUID | | +| **measurementMarkerPutRequest** | [**MeasurementMarkerPutRequest**](MeasurementMarkerPutRequest.md)| | [optional] | + +### Return type + +[**MeasurementMarker**](MeasurementMarker.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **updateProjectMeasurementMarker** +> MeasurementMarker updateProjectMeasurementMarker(projectUuid, measurementMarkerUuid, measurementMarkerPutRequest) + +Update Project Measurement Marker + +計測マーカーを更新します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementMarkersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementMarkersApi apiInstance = new MeasMeasurementMarkersApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementMarkerUuid = "27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6"; // String | 計測マーカーのUUID + MeasurementMarkerPutRequest measurementMarkerPutRequest = new MeasurementMarkerPutRequest(); // MeasurementMarkerPutRequest | + try { + MeasurementMarker result = apiInstance.updateProjectMeasurementMarker(projectUuid, measurementMarkerUuid, measurementMarkerPutRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementMarkersApi#updateProjectMeasurementMarker"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementMarkerUuid** | **String**| 計測マーカーのUUID | | +| **measurementMarkerPutRequest** | [**MeasurementMarkerPutRequest**](MeasurementMarkerPutRequest.md)| | [optional] | + +### Return type + +[**MeasurementMarker**](MeasurementMarker.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **updateProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID** +> MeasurementMarker updateProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(projectUuid, measurementUuid, measurementMarkerUuid, measurementMarkerPutRequest) + +Replace Project Measurement Marker using Measurement UUID + +計測マーカーの情報を更新します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementMarkersApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementMarkersApi apiInstance = new MeasMeasurementMarkersApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + String measurementMarkerUuid = "27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6"; // String | 計測マーカーのUUID + MeasurementMarkerPutRequest measurementMarkerPutRequest = new MeasurementMarkerPutRequest(); // MeasurementMarkerPutRequest | + try { + MeasurementMarker result = apiInstance.updateProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(projectUuid, measurementUuid, measurementMarkerUuid, measurementMarkerPutRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementMarkersApi#updateProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementUuid** | **String**| 計測のUUID | | +| **measurementMarkerUuid** | **String**| 計測マーカーのUUID | | +| **measurementMarkerPutRequest** | [**MeasurementMarkerPutRequest**](MeasurementMarkerPutRequest.md)| | [optional] | + +### Return type + +[**MeasurementMarker**](MeasurementMarker.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + diff --git a/intdash/docs/MeasMeasurementsApi.md b/intdash/docs/MeasMeasurementsApi.md new file mode 100644 index 0000000..211474a --- /dev/null +++ b/intdash/docs/MeasMeasurementsApi.md @@ -0,0 +1,3430 @@ +# MeasMeasurementsApi + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**completeMeasurement**](MeasMeasurementsApi.md#completeMeasurement) | **PUT** /v1/measurements/{measurement_uuid}/complete | Complete Measurement | +| [**completeProjectMeasurement**](MeasMeasurementsApi.md#completeProjectMeasurement) | **PUT** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/complete | Complete Project Measurement | +| [**createMeasurement**](MeasMeasurementsApi.md#createMeasurement) | **POST** /v1/measurements | Create Measurement | +| [**createMeasurementSequenceChunks**](MeasMeasurementsApi.md#createMeasurementSequenceChunks) | **POST** /v1/measurements/sequences/chunks | Create Measurement Sequence Chunk | +| [**createMeasurementWithUUID**](MeasMeasurementsApi.md#createMeasurementWithUUID) | **POST** /v1/measurements/{measurement_uuid} | Create Measurement with UUID | +| [**createProjectMeasurement**](MeasMeasurementsApi.md#createProjectMeasurement) | **POST** /v1/projects/{project_uuid}/measurements | Create Project Measurement | +| [**createProjectMeasurementSequenceChunks**](MeasMeasurementsApi.md#createProjectMeasurementSequenceChunks) | **POST** /v1/projects/{project_uuid}/measurements/sequences/chunks | Create Project Measurement Sequence Chunk | +| [**createProjectMeasurementWithUUID**](MeasMeasurementsApi.md#createProjectMeasurementWithUUID) | **POST** /v1/projects/{project_uuid}/measurements/{measurement_uuid} | Create Project Measurement with UUID | +| [**deleteMeasurement**](MeasMeasurementsApi.md#deleteMeasurement) | **DELETE** /v1/measurements/{measurement_uuid} | Trash Measurement | +| [**deleteMeasurementBaseTime**](MeasMeasurementsApi.md#deleteMeasurementBaseTime) | **DELETE** /v1/measurements/{measurement_uuid}/basetimes/{type} | Delete Measurement Base Time | +| [**deleteProjectMeasurement**](MeasMeasurementsApi.md#deleteProjectMeasurement) | **DELETE** /v1/projects/{project_uuid}/measurements/{measurement_uuid} | Trash Project Measurement | +| [**deleteProjectMeasurementBaseTime**](MeasMeasurementsApi.md#deleteProjectMeasurementBaseTime) | **DELETE** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/basetimes/{type} | Delete Project Measurement Base Time | +| [**endMeasurement**](MeasMeasurementsApi.md#endMeasurement) | **PUT** /v1/measurements/{measurement_uuid}/end | End Measurement | +| [**endProjectMeasurement**](MeasMeasurementsApi.md#endProjectMeasurement) | **PUT** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/end | End Project Measurement | +| [**getMeasurement**](MeasMeasurementsApi.md#getMeasurement) | **GET** /v1/measurements/{measurement_uuid} | Get Measurement | +| [**getMeasurementBaseTime**](MeasMeasurementsApi.md#getMeasurementBaseTime) | **GET** /v1/measurements/{measurement_uuid}/basetimes/{type} | Get Measurement Base Time | +| [**getMeasurementFromMeasurementMarker**](MeasMeasurementsApi.md#getMeasurementFromMeasurementMarker) | **GET** /v1/measurements/markers/{measurement_marker_uuid}/measurement | Get Measurement from Marker | +| [**getMeasurementSections**](MeasMeasurementsApi.md#getMeasurementSections) | **GET** /v1/measurements/{measurement_uuid}/sections | List Measurement Sections | +| [**getMeasurementSequence**](MeasMeasurementsApi.md#getMeasurementSequence) | **GET** /v1/measurements/{measurement_uuid}/sequences/{sequences_uuid} | Get Measurement Sequence | +| [**getProjectMeasurement**](MeasMeasurementsApi.md#getProjectMeasurement) | **GET** /v1/projects/{project_uuid}/measurements/{measurement_uuid} | Get Project Measurement | +| [**getProjectMeasurementBaseTime**](MeasMeasurementsApi.md#getProjectMeasurementBaseTime) | **GET** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/basetimes/{type} | Get Project Measurement Base Time | +| [**getProjectMeasurementSections**](MeasMeasurementsApi.md#getProjectMeasurementSections) | **GET** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/sections | List Project Measurement Sections | +| [**getProjectMeasurementSequence**](MeasMeasurementsApi.md#getProjectMeasurementSequence) | **GET** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/sequences/{sequences_uuid} | Get Project Measurement Sequence | +| [**listMeasurementBaseTimes**](MeasMeasurementsApi.md#listMeasurementBaseTimes) | **GET** /v1/measurements/{measurement_uuid}/basetimes | List Measurement Base Times | +| [**listMeasurementSequences**](MeasMeasurementsApi.md#listMeasurementSequences) | **GET** /v1/measurements/{measurement_uuid}/sequences | List Measurement Sequences | +| [**listMeasurements**](MeasMeasurementsApi.md#listMeasurements) | **GET** /v1/measurements | List Measurements | +| [**listProjectMeasurementBaseTimes**](MeasMeasurementsApi.md#listProjectMeasurementBaseTimes) | **GET** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/basetimes | List Project Measurement Base Times | +| [**listProjectMeasurementSequences**](MeasMeasurementsApi.md#listProjectMeasurementSequences) | **GET** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/sequences | List Project Measurement Sequences | +| [**listProjectMeasurements**](MeasMeasurementsApi.md#listProjectMeasurements) | **GET** /v1/projects/{project_uuid}/measurements | List Project Measurements | +| [**protectMeasurement**](MeasMeasurementsApi.md#protectMeasurement) | **PUT** /v1/measurements/{measurement_uuid}/protected | Protect Measurement | +| [**protectProjectMeasurement**](MeasMeasurementsApi.md#protectProjectMeasurement) | **PUT** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/protected | Protect Project Measurement | +| [**replaceMeasurementSequence**](MeasMeasurementsApi.md#replaceMeasurementSequence) | **PUT** /v1/measurements/{measurement_uuid}/sequences/{sequences_uuid} | Replace Measurement Sequence | +| [**replaceProjectMeasurementSequence**](MeasMeasurementsApi.md#replaceProjectMeasurementSequence) | **PUT** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/sequences/{sequences_uuid} | Replace Project Measurement Sequence | +| [**unprotectMeasurement**](MeasMeasurementsApi.md#unprotectMeasurement) | **DELETE** /v1/measurements/{measurement_uuid}/protected | Unprotect Measurement | +| [**unprotectProjectMeasurement**](MeasMeasurementsApi.md#unprotectProjectMeasurement) | **DELETE** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/protected | Unprotect Project Measurement | +| [**updateMeasurement**](MeasMeasurementsApi.md#updateMeasurement) | **PUT** /v1/measurements/{measurement_uuid} | Update Measurement | +| [**updateMeasurementBaseTime**](MeasMeasurementsApi.md#updateMeasurementBaseTime) | **PUT** /v1/measurements/{measurement_uuid}/basetimes/{type} | Replace Measurement Base Time | +| [**updateMeasurementSequence**](MeasMeasurementsApi.md#updateMeasurementSequence) | **PATCH** /v1/measurements/{measurement_uuid}/sequences/{sequences_uuid} | Update Measurement Sequence | +| [**updateProjectMeasurement**](MeasMeasurementsApi.md#updateProjectMeasurement) | **PUT** /v1/projects/{project_uuid}/measurements/{measurement_uuid} | Update Project Measurement | +| [**updateProjectMeasurementBaseTime**](MeasMeasurementsApi.md#updateProjectMeasurementBaseTime) | **PUT** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/basetimes/{type} | Replace Project Measurement Base Time | +| [**updateProjectMeasurementSequence**](MeasMeasurementsApi.md#updateProjectMeasurementSequence) | **PATCH** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/sequences/{sequences_uuid} | Update Project Measurement Sequence | + + + +# **completeMeasurement** +> Measurement completeMeasurement(measurementUuid) + +Complete Measurement + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/complete` を使用してください) 計測を回収完了(completed)にします。 completedは、エッジでのデータ取得が終了し(ended)、 かつ、すべてのデータがサーバーに送信されたことを意味します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + try { + Measurement result = apiInstance.completeMeasurement(measurementUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#completeMeasurement"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementUuid** | **String**| 計測のUUID | | + +### Return type + +[**Measurement**](Measurement.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **completeProjectMeasurement** +> Measurement completeProjectMeasurement(projectUuid, measurementUuid) + +Complete Project Measurement + +計測を回収完了(completed)にします。 completedは、エッジでのデータ取得が終了し(ended)、 かつ、すべてのデータがサーバーに送信されたことを意味します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + try { + Measurement result = apiInstance.completeProjectMeasurement(projectUuid, measurementUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#completeProjectMeasurement"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementUuid** | **String**| 計測のUUID | | + +### Return type + +[**Measurement**](Measurement.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **createMeasurement** +> Measurement createMeasurement(measCreate) + +Create Measurement + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements` を使用してください) 計測を作成します。 - **Note** - 計測の保護/非保護を切り替える権限を持たないエッジも、 計測作成時は保護された計測を作成することが可能です。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + MeasCreate measCreate = new MeasCreate(); // MeasCreate | + try { + Measurement result = apiInstance.createMeasurement(measCreate); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#createMeasurement"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measCreate** | [**MeasCreate**](MeasCreate.md)| | [optional] | + +### Return type + +[**Measurement**](Measurement.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + + +# **createMeasurementSequenceChunks** +> CreateMeasurementChunksResult createMeasurementSequenceChunks(body) + +Create Measurement Sequence Chunk + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/sequence/chunks` を使用してください) 計測シーケンスにチャンクを作成します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + File body = new File("/path/to/file"); // File | + try { + CreateMeasurementChunksResult result = apiInstance.createMeasurementSequenceChunks(body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#createMeasurementSequenceChunks"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | **File**| | [optional] | + +### Return type + +[**CreateMeasurementChunksResult**](CreateMeasurementChunksResult.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/vnd.iscp.v2.protobuf, application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **createMeasurementWithUUID** +> Measurement createMeasurementWithUUID(measurementUuid, measCreate) + +Create Measurement with UUID + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}` を使用してください) 指定したUUIDの計測を作成します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + MeasCreate measCreate = new MeasCreate(); // MeasCreate | + try { + Measurement result = apiInstance.createMeasurementWithUUID(measurementUuid, measCreate); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#createMeasurementWithUUID"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementUuid** | **String**| 計測のUUID | | +| **measCreate** | [**MeasCreate**](MeasCreate.md)| | [optional] | + +### Return type + +[**Measurement**](Measurement.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + + +# **createProjectMeasurement** +> Measurement createProjectMeasurement(projectUuid, measCreate) + +Create Project Measurement + +計測を作成します。 - **Note** - 計測の保護/非保護を切り替える権限を持たないエッジも、 計測作成時は保護された計測を作成することが可能です。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + MeasCreate measCreate = new MeasCreate(); // MeasCreate | + try { + Measurement result = apiInstance.createProjectMeasurement(projectUuid, measCreate); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#createProjectMeasurement"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measCreate** | [**MeasCreate**](MeasCreate.md)| | [optional] | + +### Return type + +[**Measurement**](Measurement.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + + +# **createProjectMeasurementSequenceChunks** +> CreateMeasurementChunksResult createProjectMeasurementSequenceChunks(projectUuid, body) + +Create Project Measurement Sequence Chunk + +計測シーケンスにチャンクを作成します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + File body = new File("/path/to/file"); // File | + try { + CreateMeasurementChunksResult result = apiInstance.createProjectMeasurementSequenceChunks(projectUuid, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#createProjectMeasurementSequenceChunks"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **body** | **File**| | [optional] | + +### Return type + +[**CreateMeasurementChunksResult**](CreateMeasurementChunksResult.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/vnd.iscp.v2.protobuf, application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **createProjectMeasurementWithUUID** +> Measurement createProjectMeasurementWithUUID(projectUuid, measurementUuid, measCreate) + +Create Project Measurement with UUID + +指定したUUIDの計測を作成します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + MeasCreate measCreate = new MeasCreate(); // MeasCreate | + try { + Measurement result = apiInstance.createProjectMeasurementWithUUID(projectUuid, measurementUuid, measCreate); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#createProjectMeasurementWithUUID"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementUuid** | **String**| 計測のUUID | | +| **measCreate** | [**MeasCreate**](MeasCreate.md)| | [optional] | + +### Return type + +[**Measurement**](Measurement.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + + +# **deleteMeasurement** +> deleteMeasurement(measurementUuid) + +Trash Measurement + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}` を使用してください) 計測を削除します。 - **Note** - 保護された計測は削除できません。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + try { + apiInstance.deleteMeasurement(measurementUuid); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#deleteMeasurement"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementUuid** | **String**| 計測のUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **deleteMeasurementBaseTime** +> deleteMeasurementBaseTime(measurementUuid, type) + +Delete Measurement Base Time + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/basetimes/{type}` を使用してください) 基準時刻を削除します。 指定された基準時刻が使用中の場合(その計測の `basetime_type` として設定されている場合)は、 その基準時刻は削除できません(ステータスコード `409` が返却されます)。 このような場合は、他の基準時刻をその計測の `basetime_type` にしてから、削除したい基準時刻を削除してください。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + String type = "edge_rtc"; // String | 基準時刻のタイプ + try { + apiInstance.deleteMeasurementBaseTime(measurementUuid, type); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#deleteMeasurementBaseTime"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementUuid** | **String**| 計測のUUID | | +| **type** | **String**| 基準時刻のタイプ | [enum: edge_rtc, ntp, gps, api_first_received, volatile, manual] | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **deleteProjectMeasurement** +> deleteProjectMeasurement(projectUuid, measurementUuid) + +Trash Project Measurement + +計測を削除します。 - **Note** - 保護された計測は削除できません。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + try { + apiInstance.deleteProjectMeasurement(projectUuid, measurementUuid); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#deleteProjectMeasurement"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementUuid** | **String**| 計測のUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **deleteProjectMeasurementBaseTime** +> deleteProjectMeasurementBaseTime(projectUuid, measurementUuid, type) + +Delete Project Measurement Base Time + +基準時刻を削除します。 指定された基準時刻が使用中の場合(その計測の `basetime_type` として設定されている場合)は、 その基準時刻は削除できません(ステータスコード `409` が返却されます)。 このような場合は、他の基準時刻をその計測の `basetime_type` にしてから、削除したい基準時刻を削除してください。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + String type = "edge_rtc"; // String | 基準時刻のタイプ + try { + apiInstance.deleteProjectMeasurementBaseTime(projectUuid, measurementUuid, type); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#deleteProjectMeasurementBaseTime"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementUuid** | **String**| 計測のUUID | | +| **type** | **String**| 基準時刻のタイプ | [enum: edge_rtc, ntp, gps, api_first_received, volatile, manual] | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **endMeasurement** +> SequenceSummary endMeasurement(measurementUuid) + +End Measurement + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/end` を使用してください) 計測終了(ended)とします。endedは、エッジにおけるデータの取得が終了していることを表します。 (サーバーに回収されていないデータがまだエッジに残っている可能性はあります。サーバーへのデータの回収が完了した状態は、completedと呼びます。) + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + try { + SequenceSummary result = apiInstance.endMeasurement(measurementUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#endMeasurement"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementUuid** | **String**| 計測のUUID | | + +### Return type + +[**SequenceSummary**](SequenceSummary.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **endProjectMeasurement** +> SequenceSummary endProjectMeasurement(projectUuid, measurementUuid) + +End Project Measurement + +計測終了(ended)とします。endedは、エッジにおけるデータの取得が終了していることを表します。 (サーバーに回収されていないデータがまだエッジに残っている可能性はあります。サーバーへのデータの回収が完了した状態は、completedと呼びます。) + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + try { + SequenceSummary result = apiInstance.endProjectMeasurement(projectUuid, measurementUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#endProjectMeasurement"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementUuid** | **String**| 計測のUUID | | + +### Return type + +[**SequenceSummary**](SequenceSummary.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getMeasurement** +> Measurement getMeasurement(measurementUuid) + +Get Measurement + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}` を使用してください) 計測を取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + try { + Measurement result = apiInstance.getMeasurement(measurementUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#getMeasurement"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementUuid** | **String**| 計測のUUID | | + +### Return type + +[**Measurement**](Measurement.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getMeasurementBaseTime** +> MeasBaseTime getMeasurementBaseTime(measurementUuid, type) + +Get Measurement Base Time + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/basetimes/{type}` を使用してください) 基準時刻タイプを指定して計測の基準時刻を取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + String type = "edge_rtc"; // String | 基準時刻のタイプ + try { + MeasBaseTime result = apiInstance.getMeasurementBaseTime(measurementUuid, type); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#getMeasurementBaseTime"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementUuid** | **String**| 計測のUUID | | +| **type** | **String**| 基準時刻のタイプ | [enum: edge_rtc, ntp, gps, api_first_received, volatile, manual] | + +### Return type + +[**MeasBaseTime**](MeasBaseTime.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getMeasurementFromMeasurementMarker** +> Measurement getMeasurementFromMeasurementMarker(measurementMarkerUuid) + +Get Measurement from Marker + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/markers/{measurement_marker_uuid}/measurement` を使用してください) + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String measurementMarkerUuid = "27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6"; // String | 計測マーカーのUUID + try { + Measurement result = apiInstance.getMeasurementFromMeasurementMarker(measurementMarkerUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#getMeasurementFromMeasurementMarker"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementMarkerUuid** | **String**| 計測マーカーのUUID | | + +### Return type + +[**Measurement**](Measurement.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getMeasurementSections** +> MeasurementSectionsGetResponse getMeasurementSections(measurementUuid, filter, limit) + +List Measurement Sections + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sections` を使用してください) 計測に含まれるセクションのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + String filter = "processed"; // String | 計測セクションの処理ステータス。 `processed` (処理済みの計測セクションを取得)、 `unprocessed` (未処理の計測セクションを取得)、 `both` (両方を取得)のいずれかを選択します。 + Integer limit = 1000; // Integer | 1回のリクエストで取得する件数 + try { + MeasurementSectionsGetResponse result = apiInstance.getMeasurementSections(measurementUuid, filter, limit); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#getMeasurementSections"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementUuid** | **String**| 計測のUUID | | +| **filter** | **String**| 計測セクションの処理ステータス。 `processed` (処理済みの計測セクションを取得)、 `unprocessed` (未処理の計測セクションを取得)、 `both` (両方を取得)のいずれかを選択します。 | [optional] [default to both] [enum: processed, unprocessed, both] | +| **limit** | **Integer**| 1回のリクエストで取得する件数 | [optional] | + +### Return type + +[**MeasurementSectionsGetResponse**](MeasurementSectionsGetResponse.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getMeasurementSequence** +> MeasurementSequenceGroup getMeasurementSequence(measurementUuid, sequencesUuid) + +Get Measurement Sequence + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sequences/{sequence_uuid}` を使用してください) 計測シーケンスを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + String sequencesUuid = "0b849907-9f04-4c87-b176-b73fb527e935"; // String | 計測シーケンスのUUID + try { + MeasurementSequenceGroup result = apiInstance.getMeasurementSequence(measurementUuid, sequencesUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#getMeasurementSequence"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementUuid** | **String**| 計測のUUID | | +| **sequencesUuid** | **String**| 計測シーケンスのUUID | | + +### Return type + +[**MeasurementSequenceGroup**](MeasurementSequenceGroup.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getProjectMeasurement** +> Measurement getProjectMeasurement(projectUuid, measurementUuid) + +Get Project Measurement + +計測を取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + try { + Measurement result = apiInstance.getProjectMeasurement(projectUuid, measurementUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#getProjectMeasurement"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementUuid** | **String**| 計測のUUID | | + +### Return type + +[**Measurement**](Measurement.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getProjectMeasurementBaseTime** +> MeasBaseTime getProjectMeasurementBaseTime(projectUuid, measurementUuid, type) + +Get Project Measurement Base Time + +基準時刻タイプを指定して計測の基準時刻を取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + String type = "edge_rtc"; // String | 基準時刻のタイプ + try { + MeasBaseTime result = apiInstance.getProjectMeasurementBaseTime(projectUuid, measurementUuid, type); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#getProjectMeasurementBaseTime"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementUuid** | **String**| 計測のUUID | | +| **type** | **String**| 基準時刻のタイプ | [enum: edge_rtc, ntp, gps, api_first_received, volatile, manual] | + +### Return type + +[**MeasBaseTime**](MeasBaseTime.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getProjectMeasurementSections** +> MeasurementSectionsGetResponse getProjectMeasurementSections(projectUuid, measurementUuid, filter, limit) + +List Project Measurement Sections + +計測に含まれるセクションのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + String filter = "processed"; // String | 計測セクションの処理ステータス。 `processed` (処理済みの計測セクションを取得)、 `unprocessed` (未処理の計測セクションを取得)、 `both` (両方を取得)のいずれかを選択します。 + Integer limit = 1000; // Integer | 1回のリクエストで取得する件数 + try { + MeasurementSectionsGetResponse result = apiInstance.getProjectMeasurementSections(projectUuid, measurementUuid, filter, limit); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#getProjectMeasurementSections"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementUuid** | **String**| 計測のUUID | | +| **filter** | **String**| 計測セクションの処理ステータス。 `processed` (処理済みの計測セクションを取得)、 `unprocessed` (未処理の計測セクションを取得)、 `both` (両方を取得)のいずれかを選択します。 | [optional] [default to both] [enum: processed, unprocessed, both] | +| **limit** | **Integer**| 1回のリクエストで取得する件数 | [optional] | + +### Return type + +[**MeasurementSectionsGetResponse**](MeasurementSectionsGetResponse.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getProjectMeasurementSequence** +> MeasurementSequenceGroup getProjectMeasurementSequence(projectUuid, measurementUuid, sequencesUuid) + +Get Project Measurement Sequence + +計測シーケンスを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + String sequencesUuid = "0b849907-9f04-4c87-b176-b73fb527e935"; // String | 計測シーケンスのUUID + try { + MeasurementSequenceGroup result = apiInstance.getProjectMeasurementSequence(projectUuid, measurementUuid, sequencesUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#getProjectMeasurementSequence"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementUuid** | **String**| 計測のUUID | | +| **sequencesUuid** | **String**| 計測シーケンスのUUID | | + +### Return type + +[**MeasurementSequenceGroup**](MeasurementSequenceGroup.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listMeasurementBaseTimes** +> MeasBaseTimes listMeasurementBaseTimes(measurementUuid) + +List Measurement Base Times + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/basetimes` を使用してください) 計測の基準時刻のリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + try { + MeasBaseTimes result = apiInstance.listMeasurementBaseTimes(measurementUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#listMeasurementBaseTimes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementUuid** | **String**| 計測のUUID | | + +### Return type + +[**MeasBaseTimes**](MeasBaseTimes.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listMeasurementSequences** +> MeasurementSequenceGroups listMeasurementSequences(measurementUuid) + +List Measurement Sequences + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sequences` を使用してください) 計測シーケンスのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + try { + MeasurementSequenceGroups result = apiInstance.listMeasurementSequences(measurementUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#listMeasurementSequences"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementUuid** | **String**| 計測のUUID | | + +### Return type + +[**MeasurementSequenceGroups**](MeasurementSequenceGroups.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listMeasurements** +> Measurements listMeasurements(uuid, name, edgeUuid, start, end, partialMatch, basetimeType, ended, since, durationStart, durationEnd, status, limit, sort, page, order) + +List Measurements + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements` を使用してください) 計測のリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + List uuid = Arrays.asList(); // List | 計測のUUID + Integer name = measurement1; // Integer | 名前が指定した文字列から始まる計測を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけが取得されます。 + String edgeUuid = "e0022b03-023f-4f24-90f1-560be10c423b"; // String | 計測に関連付けられたエッジのUUID + String start = "2019-10-29T03:04:05.123456Z"; // String | 取得対象範囲の始点。以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) + String end = "2019-10-29T03:04:05.234567Z"; // String | 取得対象範囲の終点。以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) + Boolean partialMatch = false; // Boolean | `true` にすると、計測の一部が取得対象範囲に入っていればその計測は取得対象となります。 `false` にすると、計測の基準時刻(計測開始)が取得対象範囲に入っていればその計測は取得対象となります。 ``` | measurement1 | +--------------+ | measurement2 | +--------------+ | measurement3 | +--------------+ time -----------+----------------------------+------------> | | start end ``` - この例では、もし `partial_match` を `true` にすると、 `measurement1` 、 `measurement2` 、 `measurement3` が取得できます。 - もし `partial_match` を `false` にすると、 `measurement2` と `measurement3` が取得できます。 + String basetimeType = "edge_rtc"; // String | 計測の基準時刻のタイプ + Boolean ended = false; // Boolean | 計測が終了している(ended)かどうかを指定して計測を取得します。 エッジにおいてデータの取得が終了している場合、その計測は「終了(ended)」となります。 計測は終了(ended)していても、まだサーバーに送信されていないデータがエッジに残っている可能性があります。 * `true`: 終了した計測だけを取得します。 * `false`: 終了していない計測だけを取得します。 + String since = "2019-10-29T03:04:05.341268Z"; // String | 指定した時刻以降に更新された計測のみを取得します。 以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) + Long durationStart = 100L; // Long | 計測時間の最小値(マイクロ秒)。これより短い計測は取得しません。 + Long durationEnd = 100000L; // Long | 計測時間の最大値(マイクロ秒)。これより長い計測は取得しません。 + List status = Arrays.asList(); // List | 計測のステータス + Integer limit = 1000; // Integer | 1回のリクエストで取得する件数。ただし、0を指定するとデフォルトの値が使用されます。 + String sort = "name"; // String | 並べ替えに使用するキー + Integer page = 1; // Integer | 取得するページの番号 + String order = "asc"; // String | 並べ替えの順序 + try { + Measurements result = apiInstance.listMeasurements(uuid, name, edgeUuid, start, end, partialMatch, basetimeType, ended, since, durationStart, durationEnd, status, limit, sort, page, order); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#listMeasurements"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **uuid** | [**List<String>**](String.md)| 計測のUUID | [optional] | +| **name** | **Integer**| 名前が指定した文字列から始まる計測を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけが取得されます。 | [optional] | +| **edgeUuid** | **String**| 計測に関連付けられたエッジのUUID | [optional] | +| **start** | **String**| 取得対象範囲の始点。以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) | [optional] | +| **end** | **String**| 取得対象範囲の終点。以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) | [optional] | +| **partialMatch** | **Boolean**| `true` にすると、計測の一部が取得対象範囲に入っていればその計測は取得対象となります。 `false` にすると、計測の基準時刻(計測開始)が取得対象範囲に入っていればその計測は取得対象となります。 ``` | measurement1 | +--------------+ | measurement2 | +--------------+ | measurement3 | +--------------+ time -----------+----------------------------+------------> | | start end ``` - この例では、もし `partial_match` を `true` にすると、 `measurement1` 、 `measurement2` 、 `measurement3` が取得できます。 - もし `partial_match` を `false` にすると、 `measurement2` と `measurement3` が取得できます。 | [optional] [default to false] | +| **basetimeType** | **String**| 計測の基準時刻のタイプ | [optional] [enum: edge_rtc, ntp, gps, api_first_received, volatile, manual] | +| **ended** | **Boolean**| 計測が終了している(ended)かどうかを指定して計測を取得します。 エッジにおいてデータの取得が終了している場合、その計測は「終了(ended)」となります。 計測は終了(ended)していても、まだサーバーに送信されていないデータがエッジに残っている可能性があります。 * `true`: 終了した計測だけを取得します。 * `false`: 終了していない計測だけを取得します。 | [optional] | +| **since** | **String**| 指定した時刻以降に更新された計測のみを取得します。 以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) | [optional] | +| **durationStart** | **Long**| 計測時間の最小値(マイクロ秒)。これより短い計測は取得しません。 | [optional] | +| **durationEnd** | **Long**| 計測時間の最大値(マイクロ秒)。これより長い計測は取得しません。 | [optional] | +| **status** | [**List<String>**](String.md)| 計測のステータス | [optional] [enum: measuring, resending, finished] | +| **limit** | **Integer**| 1回のリクエストで取得する件数。ただし、0を指定するとデフォルトの値が使用されます。 | [optional] [default to 1000] | +| **sort** | **String**| 並べ替えに使用するキー | [optional] [default to base_time] [enum: name, description, ended, duration, base_time, processed_ratio, created_at, updated_at] | +| **page** | **Integer**| 取得するページの番号 | [optional] | +| **order** | **String**| 並べ替えの順序 | [optional] [enum: asc, desc] | + +### Return type + +[**Measurements**](Measurements.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listProjectMeasurementBaseTimes** +> MeasBaseTimes listProjectMeasurementBaseTimes(projectUuid, measurementUuid) + +List Project Measurement Base Times + +計測の基準時刻のリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + try { + MeasBaseTimes result = apiInstance.listProjectMeasurementBaseTimes(projectUuid, measurementUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#listProjectMeasurementBaseTimes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementUuid** | **String**| 計測のUUID | | + +### Return type + +[**MeasBaseTimes**](MeasBaseTimes.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listProjectMeasurementSequences** +> MeasurementSequenceGroups listProjectMeasurementSequences(projectUuid, measurementUuid) + +List Project Measurement Sequences + +計測シーケンスのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + try { + MeasurementSequenceGroups result = apiInstance.listProjectMeasurementSequences(projectUuid, measurementUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#listProjectMeasurementSequences"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementUuid** | **String**| 計測のUUID | | + +### Return type + +[**MeasurementSequenceGroups**](MeasurementSequenceGroups.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listProjectMeasurements** +> Measurements listProjectMeasurements(projectUuid, uuid, name, edgeUuid, start, end, partialMatch, basetimeType, ended, since, durationStart, durationEnd, status, limit, sort, page, order) + +List Project Measurements + +計測のリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + List uuid = Arrays.asList(); // List | 計測のUUID + Integer name = measurement1; // Integer | 名前が指定した文字列から始まる計測を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけが取得されます。 + String edgeUuid = "e0022b03-023f-4f24-90f1-560be10c423b"; // String | 計測に関連付けられたエッジのUUID + String start = "2019-10-29T03:04:05.123456Z"; // String | 取得対象範囲の始点。以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) + String end = "2019-10-29T03:04:05.234567Z"; // String | 取得対象範囲の終点。以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) + Boolean partialMatch = false; // Boolean | `true` にすると、計測の一部が取得対象範囲に入っていればその計測は取得対象となります。 `false` にすると、計測の基準時刻(計測開始)が取得対象範囲に入っていればその計測は取得対象となります。 ``` | measurement1 | +--------------+ | measurement2 | +--------------+ | measurement3 | +--------------+ time -----------+----------------------------+------------> | | start end ``` - この例では、もし `partial_match` を `true` にすると、 `measurement1` 、 `measurement2` 、 `measurement3` が取得できます。 - もし `partial_match` を `false` にすると、 `measurement2` と `measurement3` が取得できます。 + String basetimeType = "edge_rtc"; // String | 計測の基準時刻のタイプ + Boolean ended = false; // Boolean | 計測が終了している(ended)かどうかを指定して計測を取得します。 エッジにおいてデータの取得が終了している場合、その計測は「終了(ended)」となります。 計測は終了(ended)していても、まだサーバーに送信されていないデータがエッジに残っている可能性があります。 * `true`: 終了した計測だけを取得します。 * `false`: 終了していない計測だけを取得します。 + String since = "2019-10-29T03:04:05.341268Z"; // String | 指定した時刻以降に更新された計測のみを取得します。 以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) + Long durationStart = 100L; // Long | 計測時間の最小値(マイクロ秒)。これより短い計測は取得しません。 + Long durationEnd = 100000L; // Long | 計測時間の最大値(マイクロ秒)。これより長い計測は取得しません。 + List status = Arrays.asList(); // List | 計測のステータス + Integer limit = 1000; // Integer | 1回のリクエストで取得する件数。ただし、0を指定するとデフォルトの値が使用されます。 + String sort = "name"; // String | 並べ替えに使用するキー + Integer page = 1; // Integer | 取得するページの番号 + String order = "asc"; // String | 並べ替えの順序 + try { + Measurements result = apiInstance.listProjectMeasurements(projectUuid, uuid, name, edgeUuid, start, end, partialMatch, basetimeType, ended, since, durationStart, durationEnd, status, limit, sort, page, order); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#listProjectMeasurements"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **uuid** | [**List<String>**](String.md)| 計測のUUID | [optional] | +| **name** | **Integer**| 名前が指定した文字列から始まる計測を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけが取得されます。 | [optional] | +| **edgeUuid** | **String**| 計測に関連付けられたエッジのUUID | [optional] | +| **start** | **String**| 取得対象範囲の始点。以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) | [optional] | +| **end** | **String**| 取得対象範囲の終点。以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) | [optional] | +| **partialMatch** | **Boolean**| `true` にすると、計測の一部が取得対象範囲に入っていればその計測は取得対象となります。 `false` にすると、計測の基準時刻(計測開始)が取得対象範囲に入っていればその計測は取得対象となります。 ``` | measurement1 | +--------------+ | measurement2 | +--------------+ | measurement3 | +--------------+ time -----------+----------------------------+------------> | | start end ``` - この例では、もし `partial_match` を `true` にすると、 `measurement1` 、 `measurement2` 、 `measurement3` が取得できます。 - もし `partial_match` を `false` にすると、 `measurement2` と `measurement3` が取得できます。 | [optional] [default to false] | +| **basetimeType** | **String**| 計測の基準時刻のタイプ | [optional] [enum: edge_rtc, ntp, gps, api_first_received, volatile, manual] | +| **ended** | **Boolean**| 計測が終了している(ended)かどうかを指定して計測を取得します。 エッジにおいてデータの取得が終了している場合、その計測は「終了(ended)」となります。 計測は終了(ended)していても、まだサーバーに送信されていないデータがエッジに残っている可能性があります。 * `true`: 終了した計測だけを取得します。 * `false`: 終了していない計測だけを取得します。 | [optional] | +| **since** | **String**| 指定した時刻以降に更新された計測のみを取得します。 以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) | [optional] | +| **durationStart** | **Long**| 計測時間の最小値(マイクロ秒)。これより短い計測は取得しません。 | [optional] | +| **durationEnd** | **Long**| 計測時間の最大値(マイクロ秒)。これより長い計測は取得しません。 | [optional] | +| **status** | [**List<String>**](String.md)| 計測のステータス | [optional] [enum: measuring, resending, finished] | +| **limit** | **Integer**| 1回のリクエストで取得する件数。ただし、0を指定するとデフォルトの値が使用されます。 | [optional] [default to 1000] | +| **sort** | **String**| 並べ替えに使用するキー | [optional] [default to base_time] [enum: name, description, ended, duration, base_time, processed_ratio, created_at, updated_at] | +| **page** | **Integer**| 取得するページの番号 | [optional] | +| **order** | **String**| 並べ替えの順序 | [optional] [enum: asc, desc] | + +### Return type + +[**Measurements**](Measurements.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **protectMeasurement** +> protectMeasurement(measurementUuid) + +Protect Measurement + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/protected` を使用してください) 計測を保護します。保護された計測は削除できません。 [See](#section/Protected-resources) も参照してください。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + try { + apiInstance.protectMeasurement(measurementUuid); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#protectMeasurement"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementUuid** | **String**| 計測のUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **protectProjectMeasurement** +> protectProjectMeasurement(projectUuid, measurementUuid) + +Protect Project Measurement + +計測を保護します。保護された計測は削除できません。 [See](#section/Protected-resources) も参照してください。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + try { + apiInstance.protectProjectMeasurement(projectUuid, measurementUuid); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#protectProjectMeasurement"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementUuid** | **String**| 計測のUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **replaceMeasurementSequence** +> MeasurementSequenceGroup replaceMeasurementSequence(measurementUuid, sequencesUuid, measurementSequenceGroupReplace) + +Replace Measurement Sequence + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sequences/{sequence_uuid}` を使用してください) 計測シーケンスを置換します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + String sequencesUuid = "0b849907-9f04-4c87-b176-b73fb527e935"; // String | 計測シーケンスのUUID + MeasurementSequenceGroupReplace measurementSequenceGroupReplace = new MeasurementSequenceGroupReplace(); // MeasurementSequenceGroupReplace | + try { + MeasurementSequenceGroup result = apiInstance.replaceMeasurementSequence(measurementUuid, sequencesUuid, measurementSequenceGroupReplace); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#replaceMeasurementSequence"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementUuid** | **String**| 計測のUUID | | +| **sequencesUuid** | **String**| 計測シーケンスのUUID | | +| **measurementSequenceGroupReplace** | [**MeasurementSequenceGroupReplace**](MeasurementSequenceGroupReplace.md)| | [optional] | + +### Return type + +[**MeasurementSequenceGroup**](MeasurementSequenceGroup.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **replaceProjectMeasurementSequence** +> MeasurementSequenceGroup replaceProjectMeasurementSequence(projectUuid, measurementUuid, sequencesUuid, measurementSequenceGroupReplace) + +Replace Project Measurement Sequence + +計測シーケンスを置換します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + String sequencesUuid = "0b849907-9f04-4c87-b176-b73fb527e935"; // String | 計測シーケンスのUUID + MeasurementSequenceGroupReplace measurementSequenceGroupReplace = new MeasurementSequenceGroupReplace(); // MeasurementSequenceGroupReplace | + try { + MeasurementSequenceGroup result = apiInstance.replaceProjectMeasurementSequence(projectUuid, measurementUuid, sequencesUuid, measurementSequenceGroupReplace); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#replaceProjectMeasurementSequence"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementUuid** | **String**| 計測のUUID | | +| **sequencesUuid** | **String**| 計測シーケンスのUUID | | +| **measurementSequenceGroupReplace** | [**MeasurementSequenceGroupReplace**](MeasurementSequenceGroupReplace.md)| | [optional] | + +### Return type + +[**MeasurementSequenceGroup**](MeasurementSequenceGroup.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **unprotectMeasurement** +> unprotectMeasurement(measurementUuid) + +Unprotect Measurement + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/protected` を使用してください) 計測の保護を解除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + try { + apiInstance.unprotectMeasurement(measurementUuid); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#unprotectMeasurement"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementUuid** | **String**| 計測のUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **unprotectProjectMeasurement** +> unprotectProjectMeasurement(projectUuid, measurementUuid) + +Unprotect Project Measurement + +計測の保護を解除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + try { + apiInstance.unprotectProjectMeasurement(projectUuid, measurementUuid); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#unprotectProjectMeasurement"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementUuid** | **String**| 計測のUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **updateMeasurement** +> updateMeasurement(measurementUuid, measReplace) + +Update Measurement + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}` を使用してください) 計測に関する情報を更新します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + MeasReplace measReplace = new MeasReplace(); // MeasReplace | + try { + apiInstance.updateMeasurement(measurementUuid, measReplace); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#updateMeasurement"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementUuid** | **String**| 計測のUUID | | +| **measReplace** | [**MeasReplace**](MeasReplace.md)| | [optional] | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **updateMeasurementBaseTime** +> MeasBaseTime updateMeasurementBaseTime(measurementUuid, type, measBaseTimePut) + +Replace Measurement Base Time + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/basetimes/{type}` を使用してください) 基準時刻を更新します。 この計測において、使用する基準時刻が設定されていない( `basetime_type` が `undefined` )の場合は、 新しい基準時刻を `basetime_type` に設定します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + String type = "edge_rtc"; // String | 基準時刻のタイプ + MeasBaseTimePut measBaseTimePut = new MeasBaseTimePut(); // MeasBaseTimePut | + try { + MeasBaseTime result = apiInstance.updateMeasurementBaseTime(measurementUuid, type, measBaseTimePut); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#updateMeasurementBaseTime"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementUuid** | **String**| 計測のUUID | | +| **type** | **String**| 基準時刻のタイプ | [enum: edge_rtc, ntp, gps, api_first_received, volatile, manual] | +| **measBaseTimePut** | [**MeasBaseTimePut**](MeasBaseTimePut.md)| | [optional] | + +### Return type + +[**MeasBaseTime**](MeasBaseTime.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **updateMeasurementSequence** +> MeasurementSequenceGroup updateMeasurementSequence(measurementUuid, sequencesUuid, measurementSequenceGroupReplace) + +Update Measurement Sequence + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sequences/{sequence_uuid}` を使用してください) 計測シーケンスを更新します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + String sequencesUuid = "0b849907-9f04-4c87-b176-b73fb527e935"; // String | 計測シーケンスのUUID + MeasurementSequenceGroupReplace measurementSequenceGroupReplace = new MeasurementSequenceGroupReplace(); // MeasurementSequenceGroupReplace | + try { + MeasurementSequenceGroup result = apiInstance.updateMeasurementSequence(measurementUuid, sequencesUuid, measurementSequenceGroupReplace); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#updateMeasurementSequence"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementUuid** | **String**| 計測のUUID | | +| **sequencesUuid** | **String**| 計測シーケンスのUUID | | +| **measurementSequenceGroupReplace** | [**MeasurementSequenceGroupReplace**](MeasurementSequenceGroupReplace.md)| | [optional] | + +### Return type + +[**MeasurementSequenceGroup**](MeasurementSequenceGroup.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **updateProjectMeasurement** +> updateProjectMeasurement(projectUuid, measurementUuid, measReplace) + +Update Project Measurement + +計測に関する情報を更新します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + MeasReplace measReplace = new MeasReplace(); // MeasReplace | + try { + apiInstance.updateProjectMeasurement(projectUuid, measurementUuid, measReplace); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#updateProjectMeasurement"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementUuid** | **String**| 計測のUUID | | +| **measReplace** | [**MeasReplace**](MeasReplace.md)| | [optional] | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **updateProjectMeasurementBaseTime** +> MeasBaseTime updateProjectMeasurementBaseTime(projectUuid, measurementUuid, type, measBaseTimePut) + +Replace Project Measurement Base Time + +基準時刻を更新します。 この計測において、使用する基準時刻が設定されていない( `basetime_type` が `undefined` )の場合は、 新しい基準時刻を `basetime_type` に設定します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + String type = "edge_rtc"; // String | 基準時刻のタイプ + MeasBaseTimePut measBaseTimePut = new MeasBaseTimePut(); // MeasBaseTimePut | + try { + MeasBaseTime result = apiInstance.updateProjectMeasurementBaseTime(projectUuid, measurementUuid, type, measBaseTimePut); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#updateProjectMeasurementBaseTime"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementUuid** | **String**| 計測のUUID | | +| **type** | **String**| 基準時刻のタイプ | [enum: edge_rtc, ntp, gps, api_first_received, volatile, manual] | +| **measBaseTimePut** | [**MeasBaseTimePut**](MeasBaseTimePut.md)| | [optional] | + +### Return type + +[**MeasBaseTime**](MeasBaseTime.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **updateProjectMeasurementSequence** +> MeasurementSequenceGroup updateProjectMeasurementSequence(projectUuid, measurementUuid, sequencesUuid, measurementSequenceGroupReplace) + +Update Project Measurement Sequence + +計測シーケンスを更新します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasMeasurementsApi apiInstance = new MeasMeasurementsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + String sequencesUuid = "0b849907-9f04-4c87-b176-b73fb527e935"; // String | 計測シーケンスのUUID + MeasurementSequenceGroupReplace measurementSequenceGroupReplace = new MeasurementSequenceGroupReplace(); // MeasurementSequenceGroupReplace | + try { + MeasurementSequenceGroup result = apiInstance.updateProjectMeasurementSequence(projectUuid, measurementUuid, sequencesUuid, measurementSequenceGroupReplace); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasMeasurementsApi#updateProjectMeasurementSequence"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementUuid** | **String**| 計測のUUID | | +| **sequencesUuid** | **String**| 計測シーケンスのUUID | | +| **measurementSequenceGroupReplace** | [**MeasurementSequenceGroupReplace**](MeasurementSequenceGroupReplace.md)| | [optional] | + +### Return type + +[**MeasurementSequenceGroup**](MeasurementSequenceGroup.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + diff --git a/intdash/docs/MeasReplace.md b/intdash/docs/MeasReplace.md new file mode 100644 index 0000000..e8cb7bb --- /dev/null +++ b/intdash/docs/MeasReplace.md @@ -0,0 +1,16 @@ + + +# MeasReplace + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | 計測の名前 | [optional] | +|**description** | **String** | 計測の説明 | [optional] | +|**basetime** | **Date** | 計測の基準時刻 | [optional] | +|**basetimeType** | **MeasurementBaseTimeType** | | [optional] | + + + diff --git a/intdash/docs/MeasSignalsApi.md b/intdash/docs/MeasSignalsApi.md new file mode 100644 index 0000000..2a4ffc4 --- /dev/null +++ b/intdash/docs/MeasSignalsApi.md @@ -0,0 +1,836 @@ +# MeasSignalsApi + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createProjectSignal**](MeasSignalsApi.md#createProjectSignal) | **POST** /v1/projects/{project_uuid}/signals | Create Project Signal | +| [**createSignal**](MeasSignalsApi.md#createSignal) | **POST** /v1/signals | Create Signal | +| [**deleteProjectSignal**](MeasSignalsApi.md#deleteProjectSignal) | **DELETE** /v1/projects/{project_uuid}/signals/{signal_uuid} | Delete Project Signal | +| [**deleteSignal**](MeasSignalsApi.md#deleteSignal) | **DELETE** /v1/signals/{signal_uuid} | Delete Signal | +| [**getProjectSignal**](MeasSignalsApi.md#getProjectSignal) | **GET** /v1/projects/{project_uuid}/signals/{signal_uuid} | Get Project Signal | +| [**getSignal**](MeasSignalsApi.md#getSignal) | **GET** /v1/signals/{signal_uuid} | Get Signal | +| [**listProjectSignals**](MeasSignalsApi.md#listProjectSignals) | **GET** /v1/projects/{project_uuid}/signals | List Project Signals | +| [**listSignals**](MeasSignalsApi.md#listSignals) | **GET** /v1/signals | List Signals | +| [**updateProjectSignal**](MeasSignalsApi.md#updateProjectSignal) | **PUT** /v1/projects/{project_uuid}/signals/{signal_uuid} | Update Project Signal | +| [**updateSignal**](MeasSignalsApi.md#updateSignal) | **PUT** /v1/signals/{signal_uuid} | Update Signal | + + + +# **createProjectSignal** +> Signal createProjectSignal(projectUuid, createSignalRequest) + +Create Project Signal + +信号定義を作成します。 * **Note** - 既存の信号定義と `label` が重複する場合、または `uuid` が重複する場合は、 ステータスコード `409 Conflict` が返却されます。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasSignalsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasSignalsApi apiInstance = new MeasSignalsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + CreateSignalRequest createSignalRequest = new CreateSignalRequest(); // CreateSignalRequest | + try { + Signal result = apiInstance.createProjectSignal(projectUuid, createSignalRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasSignalsApi#createProjectSignal"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **createSignalRequest** | [**CreateSignalRequest**](CreateSignalRequest.md)| | [optional] | + +### Return type + +[**Signal**](Signal.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + + +# **createSignal** +> Signal createSignal(createSignalRequest) + +Create Signal + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/signals` を使用してください) 信号定義を作成します。 * **Note** - 既存の信号定義と `label` が重複する場合、または `uuid` が重複する場合は、 ステータスコード `409 Conflict` が返却されます。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasSignalsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasSignalsApi apiInstance = new MeasSignalsApi(defaultClient); + CreateSignalRequest createSignalRequest = new CreateSignalRequest(); // CreateSignalRequest | + try { + Signal result = apiInstance.createSignal(createSignalRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasSignalsApi#createSignal"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **createSignalRequest** | [**CreateSignalRequest**](CreateSignalRequest.md)| | [optional] | + +### Return type + +[**Signal**](Signal.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | + + +# **deleteProjectSignal** +> deleteProjectSignal(projectUuid, signalUuid) + +Delete Project Signal + +信号定義を削除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasSignalsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasSignalsApi apiInstance = new MeasSignalsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String signalUuid = "a74b933c-7c3a-4e9f-bf16-299a96d26562"; // String | 信号定義のUUID + try { + apiInstance.deleteProjectSignal(projectUuid, signalUuid); + } catch (ApiException e) { + System.err.println("Exception when calling MeasSignalsApi#deleteProjectSignal"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **signalUuid** | **String**| 信号定義のUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **deleteSignal** +> deleteSignal(signalUuid) + +Delete Signal + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/signals/{signal_uuid}` を使用してください) 信号定義を削除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasSignalsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasSignalsApi apiInstance = new MeasSignalsApi(defaultClient); + String signalUuid = "a74b933c-7c3a-4e9f-bf16-299a96d26562"; // String | 信号定義のUUID + try { + apiInstance.deleteSignal(signalUuid); + } catch (ApiException e) { + System.err.println("Exception when calling MeasSignalsApi#deleteSignal"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **signalUuid** | **String**| 信号定義のUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **getProjectSignal** +> Signal getProjectSignal(projectUuid, signalUuid) + +Get Project Signal + +信号定義を取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasSignalsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasSignalsApi apiInstance = new MeasSignalsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String signalUuid = "a74b933c-7c3a-4e9f-bf16-299a96d26562"; // String | 信号定義のUUID + try { + Signal result = apiInstance.getProjectSignal(projectUuid, signalUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasSignalsApi#getProjectSignal"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **signalUuid** | **String**| 信号定義のUUID | | + +### Return type + +[**Signal**](Signal.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getSignal** +> Signal getSignal(signalUuid) + +Get Signal + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/signals/{signal_uuid}` を使用してください) 信号定義を取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasSignalsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasSignalsApi apiInstance = new MeasSignalsApi(defaultClient); + String signalUuid = "a74b933c-7c3a-4e9f-bf16-299a96d26562"; // String | 信号定義のUUID + try { + Signal result = apiInstance.getSignal(signalUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasSignalsApi#getSignal"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **signalUuid** | **String**| 信号定義のUUID | | + +### Return type + +[**Signal**](Signal.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listProjectSignals** +> Signals listProjectSignals(projectUuid, label, sort, order, limit, page) + +List Project Signals + +信号定義のリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasSignalsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasSignalsApi apiInstance = new MeasSignalsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + List label = Arrays.asList(); // List | ラベルが指定した文字列から始まる信号定義を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 + String sort = "label"; // String | 並べ替えに使用するキー + String order = "asc"; // String | 並べ替えの順序 + Integer limit = 100; // Integer | 1回のリクエストで取得する件数 + Integer page = 1; // Integer | 取得するページの番号 + try { + Signals result = apiInstance.listProjectSignals(projectUuid, label, sort, order, limit, page); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasSignalsApi#listProjectSignals"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **label** | [**List<String>**](String.md)| ラベルが指定した文字列から始まる信号定義を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 | [optional] | +| **sort** | **String**| 並べ替えに使用するキー | [optional] [enum: label, created_at, updated_at] | +| **order** | **String**| 並べ替えの順序 | [optional] [enum: asc, desc] | +| **limit** | **Integer**| 1回のリクエストで取得する件数 | [optional] | +| **page** | **Integer**| 取得するページの番号 | [optional] | + +### Return type + +[**Signals**](Signals.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listSignals** +> Signals listSignals(label, sort, order, limit, page) + +List Signals + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/signals` を使用してください) 信号定義のリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasSignalsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasSignalsApi apiInstance = new MeasSignalsApi(defaultClient); + List label = Arrays.asList(); // List | ラベルが指定した文字列から始まる信号定義を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 + String sort = "label"; // String | 並べ替えに使用するキー + String order = "asc"; // String | 並べ替えの順序 + Integer limit = 100; // Integer | 1回のリクエストで取得する件数 + Integer page = 1; // Integer | 取得するページの番号 + try { + Signals result = apiInstance.listSignals(label, sort, order, limit, page); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasSignalsApi#listSignals"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **label** | [**List<String>**](String.md)| ラベルが指定した文字列から始まる信号定義を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 | [optional] | +| **sort** | **String**| 並べ替えに使用するキー | [optional] [enum: label, created_at, updated_at] | +| **order** | **String**| 並べ替えの順序 | [optional] [enum: asc, desc] | +| **limit** | **Integer**| 1回のリクエストで取得する件数 | [optional] | +| **page** | **Integer**| 取得するページの番号 | [optional] | + +### Return type + +[**Signals**](Signals.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **updateProjectSignal** +> Signal updateProjectSignal(projectUuid, signalUuid, updateSignalRequest) + +Update Project Signal + +信号定義を更新します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasSignalsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasSignalsApi apiInstance = new MeasSignalsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String signalUuid = "a74b933c-7c3a-4e9f-bf16-299a96d26562"; // String | 信号定義のUUID + UpdateSignalRequest updateSignalRequest = new UpdateSignalRequest(); // UpdateSignalRequest | + try { + Signal result = apiInstance.updateProjectSignal(projectUuid, signalUuid, updateSignalRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasSignalsApi#updateProjectSignal"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **signalUuid** | **String**| 信号定義のUUID | | +| **updateSignalRequest** | [**UpdateSignalRequest**](UpdateSignalRequest.md)| | [optional] | + +### Return type + +[**Signal**](Signal.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **updateSignal** +> Signal updateSignal(signalUuid, updateSignalRequest) + +Update Signal + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/signals/{signal_uuid}` を使用してください) 信号定義を更新します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasSignalsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasSignalsApi apiInstance = new MeasSignalsApi(defaultClient); + String signalUuid = "a74b933c-7c3a-4e9f-bf16-299a96d26562"; // String | 信号定義のUUID + UpdateSignalRequest updateSignalRequest = new UpdateSignalRequest(); // UpdateSignalRequest | + try { + Signal result = apiInstance.updateSignal(signalUuid, updateSignalRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasSignalsApi#updateSignal"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **signalUuid** | **String**| 信号定義のUUID | | +| **updateSignalRequest** | [**UpdateSignalRequest**](UpdateSignalRequest.md)| | [optional] | + +### Return type + +[**Signal**](Signal.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + diff --git a/intdash/docs/MeasTrashedMeasurementsApi.md b/intdash/docs/MeasTrashedMeasurementsApi.md new file mode 100644 index 0000000..ee82976 --- /dev/null +++ b/intdash/docs/MeasTrashedMeasurementsApi.md @@ -0,0 +1,494 @@ +# MeasTrashedMeasurementsApi + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**deleteProjectTrashedMeasurement**](MeasTrashedMeasurementsApi.md#deleteProjectTrashedMeasurement) | **DELETE** /v1/projects/{project_uuid}/trashed_measurements/{measurement_uuid} | Delete Project Trashed Measurement and Delete Data Points Immediately | +| [**deleteTrashedMeasurement**](MeasTrashedMeasurementsApi.md#deleteTrashedMeasurement) | **DELETE** /v1/trashed_measurements/{measurement_uuid} | Delete Trashed Measurement and Delete Data Points Immediately | +| [**listProjectTrashedMeasurements**](MeasTrashedMeasurementsApi.md#listProjectTrashedMeasurements) | **GET** /v1/projects/{project_uuid}/trashed_measurements | List Project Trashed Measurements | +| [**listTrashedMeasurements**](MeasTrashedMeasurementsApi.md#listTrashedMeasurements) | **GET** /v1/trashed_measurements | List Trashed Measurements | +| [**restoreProjectTrashedMeasurement**](MeasTrashedMeasurementsApi.md#restoreProjectTrashedMeasurement) | **DELETE** /v1/projects/{project_uuid}/trashed_measurements/{measurement_uuid}/restore | Restore Project Measurement | +| [**restoreTrashedMeasurement**](MeasTrashedMeasurementsApi.md#restoreTrashedMeasurement) | **DELETE** /v1/trashed_measurements/{measurement_uuid}/restore | Restore Measurement | + + + +# **deleteProjectTrashedMeasurement** +> deleteProjectTrashedMeasurement(projectUuid, measurementUuid) + +Delete Project Trashed Measurement and Delete Data Points Immediately + +ゴミ箱に入っている計測と、その計測に関連付けられているデータポイントを直ちに削除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasTrashedMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasTrashedMeasurementsApi apiInstance = new MeasTrashedMeasurementsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementUuid = "86fff159-5887-43c9-bf2d-cd1b522c047d"; // String | 計測のUUID + try { + apiInstance.deleteProjectTrashedMeasurement(projectUuid, measurementUuid); + } catch (ApiException e) { + System.err.println("Exception when calling MeasTrashedMeasurementsApi#deleteProjectTrashedMeasurement"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementUuid** | **String**| 計測のUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **deleteTrashedMeasurement** +> deleteTrashedMeasurement(measurementUuid) + +Delete Trashed Measurement and Delete Data Points Immediately + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/trashed_measurements/{measurement_uuid}` を使用してください) ゴミ箱に入っている計測と、その計測に関連付けられているデータポイントを直ちに削除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasTrashedMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasTrashedMeasurementsApi apiInstance = new MeasTrashedMeasurementsApi(defaultClient); + String measurementUuid = "86fff159-5887-43c9-bf2d-cd1b522c047d"; // String | 計測のUUID + try { + apiInstance.deleteTrashedMeasurement(measurementUuid); + } catch (ApiException e) { + System.err.println("Exception when calling MeasTrashedMeasurementsApi#deleteTrashedMeasurement"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementUuid** | **String**| 計測のUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **listProjectTrashedMeasurements** +> TrashedMeasurements listProjectTrashedMeasurements(projectUuid, limit, page) + +List Project Trashed Measurements + +ゴミ箱に入っている計測のリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasTrashedMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasTrashedMeasurementsApi apiInstance = new MeasTrashedMeasurementsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + Integer limit = 1; // Integer | 1回のリクエストで取得する件数。`0` を指定した場合は、デフォルト値の50件となります。 + Integer page = 1; // Integer | 取得するページの番号 + try { + TrashedMeasurements result = apiInstance.listProjectTrashedMeasurements(projectUuid, limit, page); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasTrashedMeasurementsApi#listProjectTrashedMeasurements"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **limit** | **Integer**| 1回のリクエストで取得する件数。`0` を指定した場合は、デフォルト値の50件となります。 | [optional] | +| **page** | **Integer**| 取得するページの番号 | [optional] | + +### Return type + +[**TrashedMeasurements**](TrashedMeasurements.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listTrashedMeasurements** +> TrashedMeasurements listTrashedMeasurements(limit, page) + +List Trashed Measurements + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/trashed_measurements` を使用してください) ゴミ箱に入っている計測のリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasTrashedMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasTrashedMeasurementsApi apiInstance = new MeasTrashedMeasurementsApi(defaultClient); + Integer limit = 1; // Integer | 1回のリクエストで取得する件数。`0` を指定した場合は、デフォルト値の50件となります。 + Integer page = 1; // Integer | 取得するページの番号 + try { + TrashedMeasurements result = apiInstance.listTrashedMeasurements(limit, page); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasTrashedMeasurementsApi#listTrashedMeasurements"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **limit** | **Integer**| 1回のリクエストで取得する件数。`0` を指定した場合は、デフォルト値の50件となります。 | [optional] | +| **page** | **Integer**| 取得するページの番号 | [optional] | + +### Return type + +[**TrashedMeasurements**](TrashedMeasurements.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **restoreProjectTrashedMeasurement** +> restoreProjectTrashedMeasurement(projectUuid, measurementUuid) + +Restore Project Measurement + +ゴミ箱に入っている計測を復元します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasTrashedMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasTrashedMeasurementsApi apiInstance = new MeasTrashedMeasurementsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementUuid = "86fff159-5887-43c9-bf2d-cd1b522c047d"; // String | 計測のUUID + try { + apiInstance.restoreProjectTrashedMeasurement(projectUuid, measurementUuid); + } catch (ApiException e) { + System.err.println("Exception when calling MeasTrashedMeasurementsApi#restoreProjectTrashedMeasurement"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementUuid** | **String**| 計測のUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **restoreTrashedMeasurement** +> restoreTrashedMeasurement(measurementUuid) + +Restore Measurement + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/trashed_measurements/{measurement_uuid}/restore` を使用してください) ゴミ箱に入っている計測を復元します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasTrashedMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasTrashedMeasurementsApi apiInstance = new MeasTrashedMeasurementsApi(defaultClient); + String measurementUuid = "86fff159-5887-43c9-bf2d-cd1b522c047d"; // String | 計測のUUID + try { + apiInstance.restoreTrashedMeasurement(measurementUuid); + } catch (ApiException e) { + System.err.println("Exception when calling MeasTrashedMeasurementsApi#restoreTrashedMeasurement"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementUuid** | **String**| 計測のUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + diff --git a/intdash/docs/MeasUploadingMeasurementsApi.md b/intdash/docs/MeasUploadingMeasurementsApi.md new file mode 100644 index 0000000..780b5ca --- /dev/null +++ b/intdash/docs/MeasUploadingMeasurementsApi.md @@ -0,0 +1,546 @@ +# MeasUploadingMeasurementsApi + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**listMeasurementStatuses**](MeasUploadingMeasurementsApi.md#listMeasurementStatuses) | **GET** /v1/measurements/upload | List Uploading Statuses of Measurements | +| [**listProjectMeasurementStatuses**](MeasUploadingMeasurementsApi.md#listProjectMeasurementStatuses) | **GET** /v1/projects/{project_uuid}/measurements/upload | List Project Uploading Statuses of Measurements | +| [**uploadMeasurement**](MeasUploadingMeasurementsApi.md#uploadMeasurement) | **POST** /v1/measurements/upload | Create Measurement from CSV File | +| [**uploadMeasurementIntoMeasurement**](MeasUploadingMeasurementsApi.md#uploadMeasurementIntoMeasurement) | **POST** /v1/measurements/{measurement_uuid}/upload | Store Data Points by CSV File | +| [**uploadProjectMeasurement**](MeasUploadingMeasurementsApi.md#uploadProjectMeasurement) | **POST** /v1/projects/{project_uuid}/measurements/upload | Create Project Measurement from CSV File | +| [**uploadProjectMeasurementIntoMeasurement**](MeasUploadingMeasurementsApi.md#uploadProjectMeasurementIntoMeasurement) | **POST** /v1/projects/{project_uuid}/measurements/{measurement_uuid}/upload | Store Project Data Points by CSV File | + + + +# **listMeasurementStatuses** +> MeasurementUploadStatusesGetResponse listMeasurementStatuses(limit, sort, page, order) + +List Uploading Statuses of Measurements + +( **Deprecated** このエンドポイントではなく、`GET /measurements/jobs` を使用してください。) 計測のアップロードのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasUploadingMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasUploadingMeasurementsApi apiInstance = new MeasUploadingMeasurementsApi(defaultClient); + Integer limit = 1000; // Integer | 1回のリクエストで取得する件数 + String sort = "created_at"; // String | 並べ替えに使用するキー + Integer page = 1; // Integer | 取得するページの番号 + String order = "asc"; // String | 並べ替えの順序 + try { + MeasurementUploadStatusesGetResponse result = apiInstance.listMeasurementStatuses(limit, sort, page, order); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasUploadingMeasurementsApi#listMeasurementStatuses"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **limit** | **Integer**| 1回のリクエストで取得する件数 | [optional] | +| **sort** | **String**| 並べ替えに使用するキー | [optional] [default to created_at] [enum: created_at, updated_at] | +| **page** | **Integer**| 取得するページの番号 | [optional] | +| **order** | **String**| 並べ替えの順序 | [optional] [enum: asc, desc] | + +### Return type + +[**MeasurementUploadStatusesGetResponse**](MeasurementUploadStatusesGetResponse.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **listProjectMeasurementStatuses** +> MeasurementUploadStatusesGetResponse listProjectMeasurementStatuses(projectUuid, limit, sort, page, order) + +List Project Uploading Statuses of Measurements + +( **Deprecated** このエンドポイントではなく、`GET /measurements/jobs` を使用してください。) 計測のアップロードのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasUploadingMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasUploadingMeasurementsApi apiInstance = new MeasUploadingMeasurementsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + Integer limit = 1000; // Integer | 1回のリクエストで取得する件数 + String sort = "created_at"; // String | 並べ替えに使用するキー + Integer page = 1; // Integer | 取得するページの番号 + String order = "asc"; // String | 並べ替えの順序 + try { + MeasurementUploadStatusesGetResponse result = apiInstance.listProjectMeasurementStatuses(projectUuid, limit, sort, page, order); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasUploadingMeasurementsApi#listProjectMeasurementStatuses"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **limit** | **Integer**| 1回のリクエストで取得する件数 | [optional] | +| **sort** | **String**| 並べ替えに使用するキー | [optional] [default to created_at] [enum: created_at, updated_at] | +| **page** | **Integer**| 取得するページの番号 | [optional] | +| **order** | **String**| 並べ替えの順序 | [optional] [enum: asc, desc] | + +### Return type + +[**MeasurementUploadStatusesGetResponse**](MeasurementUploadStatusesGetResponse.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **uploadMeasurement** +> MeasurementUploadPostResponse uploadMeasurement(edgeUuid, dataFile, baseTime, baseTimeType, channel, measEnd, labelDataType) + +Create Measurement from CSV File + +CSVまたはMP4(**MP4はexperimental**)ファイルをアップロードし、計測を作成します。 計測には、指定されたエッジUUIDが関連付けられます。 `base_time` (基準時刻)は、RFC3339による表現か、UNIX時刻(マイクロ秒)を指定してください。 基準時刻が指定されていない場合は、CSVファイルのデータ行の1行目の時刻が基準時刻として使用されます。 CSVファイルのデータは、時刻順にソートされている必要があります。 `meas_end` パラメーターの設定は任意です。指定しない場合、 `true` となります。 CSVファイルの例: ``` time, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10 1539263579, val11, 12, 13.12345, val14, 15, 16.12345, val17, 18, 19.12345, val110 1539263580, val21, 22, 23.12345, val24, 25, 26.12345, val27, 28, 29.12345, val210 1539263581, val31, 32, 33.12345, val34, 35, 36.12345, val37, 38, 39.12345, val310 1539263582, val41, 42, 43.12345, val44, 45, 46.12345, val47, 48, 49.12345, val410 ``` 空白行がある場合、行番号のカウントは加算されますが、その行は処理されません。 例えば、以下のような場合の空白行は無視されます。 ``` time, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10 1539263579, val11, 12, 13.12345, val14, 15, 16.12345, val17, 18, 19.12345, val110 1539263581, val31, 32, 33.12345, val34, 35, 36.12345, val37, 38, 39.12345, val310 1539263582, val41, 42, 43.12345, val44, 45, 46.12345, val47, 48, 49.12345, val410 ``` [Go parser library](https://golang.org/pkg/encoding/csv/) も参照してください。 時刻の列には、RFC3339による表現か、UNIX時刻(秒)を使用することができます。 ## エスケープ 値の内部で `,` を使用したい場合は、その値全体を `\"` で囲んでください。 また、値の内部で `\"` を使用したい場合は、値全体を `\"` で囲み、さらに、 `\"` を `\"\"` のように表記してください。 値を `\"` で囲まないと、CSVファイルのパースの際にエラーが発生します。 エスケープの例: ``` time,col1 1539263579,\"ab,cde\" .....OK (parsed as 'ab,cde') 1539263579,\"ab\"\"cde\" .....OK (parsed as 'ab\"cde') 1539263579, abcde .....OK (parsed as ' abcde') 1539263579,\" abcde\" .....OK (parsed as ' abcde') 1539263579,ab\"cde .....NG 1539263579, \"abcde\" .....NG 1539263579,ab,cde .....NG(wrong number of fields) ``` + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasUploadingMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasUploadingMeasurementsApi apiInstance = new MeasUploadingMeasurementsApi(defaultClient); + UUID edgeUuid = UUID.randomUUID(); // UUID | エッジのUUID + File dataFile = new File("/path/to/file"); // File | アップロードするファイル + Date baseTime = new Date(); // Date | 計測の基準時刻。MP4ファイルをアップロードする場合は必須です。 + String baseTimeType = "edge_rtc"; // String | 基準時刻のタイプ + Integer channel = 56; // Integer | 計測のチャンネル(十進表記の文字列) + Boolean measEnd = true; // Boolean | `true` にすると、計測は終了したものとして扱われます。 + String labelDataType = "labelDataType_example"; // String | 列名とデータタイプの対応。 データタイプは、 `int` 、` string` 、 `float` のいずれかを指定してください。 例: ``` { \\\"column_1\\\": \\\"float\\\", \\\"column_2\\\": \\\"string\\\", \\\"column_3\\\": \\\"int\\\" } ``` + try { + MeasurementUploadPostResponse result = apiInstance.uploadMeasurement(edgeUuid, dataFile, baseTime, baseTimeType, channel, measEnd, labelDataType); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasUploadingMeasurementsApi#uploadMeasurement"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **edgeUuid** | **UUID**| エッジのUUID | | +| **dataFile** | **File**| アップロードするファイル | | +| **baseTime** | **Date**| 計測の基準時刻。MP4ファイルをアップロードする場合は必須です。 | [optional] | +| **baseTimeType** | **String**| 基準時刻のタイプ | [optional] [default to edge_rtc] [enum: edge_rtc, ntp, gps, api_first_received, volatile, manual, undefined] | +| **channel** | **Integer**| 計測のチャンネル(十進表記の文字列) | [optional] | +| **measEnd** | **Boolean**| `true` にすると、計測は終了したものとして扱われます。 | [optional] | +| **labelDataType** | **String**| 列名とデータタイプの対応。 データタイプは、 `int` 、` string` 、 `float` のいずれかを指定してください。 例: ``` { \\\"column_1\\\": \\\"float\\\", \\\"column_2\\\": \\\"string\\\", \\\"column_3\\\": \\\"int\\\" } ``` | [optional] | + +### Return type + +[**MeasurementUploadPostResponse**](MeasurementUploadPostResponse.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **202** | OK | - | + + +# **uploadMeasurementIntoMeasurement** +> MeasurementUploadPostResponse uploadMeasurementIntoMeasurement(measurementUuid, dataFile, channel, measEnd, labelDataType) + +Store Data Points by CSV File + +(Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/upload` を使用してください) CSVファイルをアップロードし、計測にデータを追加します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasUploadingMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasUploadingMeasurementsApi apiInstance = new MeasUploadingMeasurementsApi(defaultClient); + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + File dataFile = new File("/path/to/file"); // File | アップロードするファイル + Integer channel = 56; // Integer | 作成された計測のチャンネル + Boolean measEnd = true; // Boolean | * `true` : 終了した計測 * `false` : 終了していない計測 + String labelDataType = "labelDataType_example"; // String | 列名とデータタイプの対応。 データタイプは、 `int` 、` string` 、 `float` のいずれかを指定してください。 例: ``` { \\\"column_1\\\": \\\"float\\\", \\\"column_2\\\": \\\"string\\\", \\\"column_3\\\": \\\"int\\\" } ``` + try { + MeasurementUploadPostResponse result = apiInstance.uploadMeasurementIntoMeasurement(measurementUuid, dataFile, channel, measEnd, labelDataType); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasUploadingMeasurementsApi#uploadMeasurementIntoMeasurement"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measurementUuid** | **String**| 計測のUUID | | +| **dataFile** | **File**| アップロードするファイル | | +| **channel** | **Integer**| 作成された計測のチャンネル | [optional] | +| **measEnd** | **Boolean**| * `true` : 終了した計測 * `false` : 終了していない計測 | [optional] | +| **labelDataType** | **String**| 列名とデータタイプの対応。 データタイプは、 `int` 、` string` 、 `float` のいずれかを指定してください。 例: ``` { \\\"column_1\\\": \\\"float\\\", \\\"column_2\\\": \\\"string\\\", \\\"column_3\\\": \\\"int\\\" } ``` | [optional] | + +### Return type + +[**MeasurementUploadPostResponse**](MeasurementUploadPostResponse.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **202** | OK | - | + + +# **uploadProjectMeasurement** +> MeasurementUploadPostResponse uploadProjectMeasurement(projectUuid, edgeUuid, dataFile, baseTime, baseTimeType, channel, measEnd, labelDataType) + +Create Project Measurement from CSV File + +CSVまたはMP4(**MP4はexperimental**)ファイルをアップロードし、計測を作成します。 計測には、指定されたエッジUUIDが関連付けられます。 `base_time` (基準時刻)は、RFC3339による表現か、UNIX時刻(マイクロ秒)を指定してください。 基準時刻が指定されていない場合は、CSVファイルのデータ行の1行目の時刻が基準時刻として使用されます。 CSVファイルのデータは、時刻順にソートされている必要があります。 `meas_end` パラメーターの設定は任意です。指定しない場合、 `true` となります。 CSVファイルの例: ``` time, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10 1539263579, val11, 12, 13.12345, val14, 15, 16.12345, val17, 18, 19.12345, val110 1539263580, val21, 22, 23.12345, val24, 25, 26.12345, val27, 28, 29.12345, val210 1539263581, val31, 32, 33.12345, val34, 35, 36.12345, val37, 38, 39.12345, val310 1539263582, val41, 42, 43.12345, val44, 45, 46.12345, val47, 48, 49.12345, val410 ``` 空白行がある場合、行番号のカウントは加算されますが、その行は処理されません。 例えば、以下のような場合の空白行は無視されます。 ``` time, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10 1539263579, val11, 12, 13.12345, val14, 15, 16.12345, val17, 18, 19.12345, val110 1539263581, val31, 32, 33.12345, val34, 35, 36.12345, val37, 38, 39.12345, val310 1539263582, val41, 42, 43.12345, val44, 45, 46.12345, val47, 48, 49.12345, val410 ``` [Go parser library](https://golang.org/pkg/encoding/csv/) も参照してください。 時刻の列には、RFC3339による表現か、UNIX時刻(秒)を使用することができます。 ## エスケープ 値の内部で `,` を使用したい場合は、その値全体を `\"` で囲んでください。 また、値の内部で `\"` を使用したい場合は、値全体を `\"` で囲み、さらに、 `\"` を `\"\"` のように表記してください。 値を `\"` で囲まないと、CSVファイルのパースの際にエラーが発生します。 エスケープの例: ``` time,col1 1539263579,\"ab,cde\" .....OK (parsed as 'ab,cde') 1539263579,\"ab\"\"cde\" .....OK (parsed as 'ab\"cde') 1539263579, abcde .....OK (parsed as ' abcde') 1539263579,\" abcde\" .....OK (parsed as ' abcde') 1539263579,ab\"cde .....NG 1539263579, \"abcde\" .....NG 1539263579,ab,cde .....NG(wrong number of fields) ``` + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasUploadingMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasUploadingMeasurementsApi apiInstance = new MeasUploadingMeasurementsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + UUID edgeUuid = UUID.randomUUID(); // UUID | エッジのUUID + File dataFile = new File("/path/to/file"); // File | アップロードするファイル + Date baseTime = new Date(); // Date | 計測の基準時刻。MP4ファイルをアップロードする場合は必須です。 + String baseTimeType = "edge_rtc"; // String | 基準時刻のタイプ + Integer channel = 56; // Integer | 計測のチャンネル(十進表記の文字列) + Boolean measEnd = true; // Boolean | `true` にすると、計測は終了したものとして扱われます。 + String labelDataType = "labelDataType_example"; // String | 列名とデータタイプの対応。 データタイプは、 `int` 、` string` 、 `float` のいずれかを指定してください。 例: ``` { \\\"column_1\\\": \\\"float\\\", \\\"column_2\\\": \\\"string\\\", \\\"column_3\\\": \\\"int\\\" } ``` + try { + MeasurementUploadPostResponse result = apiInstance.uploadProjectMeasurement(projectUuid, edgeUuid, dataFile, baseTime, baseTimeType, channel, measEnd, labelDataType); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasUploadingMeasurementsApi#uploadProjectMeasurement"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **edgeUuid** | **UUID**| エッジのUUID | | +| **dataFile** | **File**| アップロードするファイル | | +| **baseTime** | **Date**| 計測の基準時刻。MP4ファイルをアップロードする場合は必須です。 | [optional] | +| **baseTimeType** | **String**| 基準時刻のタイプ | [optional] [default to edge_rtc] [enum: edge_rtc, ntp, gps, api_first_received, volatile, manual, undefined] | +| **channel** | **Integer**| 計測のチャンネル(十進表記の文字列) | [optional] | +| **measEnd** | **Boolean**| `true` にすると、計測は終了したものとして扱われます。 | [optional] | +| **labelDataType** | **String**| 列名とデータタイプの対応。 データタイプは、 `int` 、` string` 、 `float` のいずれかを指定してください。 例: ``` { \\\"column_1\\\": \\\"float\\\", \\\"column_2\\\": \\\"string\\\", \\\"column_3\\\": \\\"int\\\" } ``` | [optional] | + +### Return type + +[**MeasurementUploadPostResponse**](MeasurementUploadPostResponse.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **202** | OK | - | + + +# **uploadProjectMeasurementIntoMeasurement** +> MeasurementUploadPostResponse uploadProjectMeasurementIntoMeasurement(projectUuid, measurementUuid, dataFile, channel, measEnd, labelDataType) + +Store Project Data Points by CSV File + +CSVファイルをアップロードし、計測にデータを追加します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MeasUploadingMeasurementsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MeasUploadingMeasurementsApi apiInstance = new MeasUploadingMeasurementsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measurementUuid = "2cc7de37-6f71-4458-887e-10e618a6fcfb"; // String | 計測のUUID + File dataFile = new File("/path/to/file"); // File | アップロードするファイル + Integer channel = 56; // Integer | 作成された計測のチャンネル + Boolean measEnd = true; // Boolean | * `true` : 終了した計測 * `false` : 終了していない計測 + String labelDataType = "labelDataType_example"; // String | 列名とデータタイプの対応。 データタイプは、 `int` 、` string` 、 `float` のいずれかを指定してください。 例: ``` { \\\"column_1\\\": \\\"float\\\", \\\"column_2\\\": \\\"string\\\", \\\"column_3\\\": \\\"int\\\" } ``` + try { + MeasurementUploadPostResponse result = apiInstance.uploadProjectMeasurementIntoMeasurement(projectUuid, measurementUuid, dataFile, channel, measEnd, labelDataType); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MeasUploadingMeasurementsApi#uploadProjectMeasurementIntoMeasurement"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measurementUuid** | **String**| 計測のUUID | | +| **dataFile** | **File**| アップロードするファイル | | +| **channel** | **Integer**| 作成された計測のチャンネル | [optional] | +| **measEnd** | **Boolean**| * `true` : 終了した計測 * `false` : 終了していない計測 | [optional] | +| **labelDataType** | **String**| 列名とデータタイプの対応。 データタイプは、 `int` 、` string` 、 `float` のいずれかを指定してください。 例: ``` { \\\"column_1\\\": \\\"float\\\", \\\"column_2\\\": \\\"string\\\", \\\"column_3\\\": \\\"int\\\" } ``` | [optional] | + +### Return type + +[**MeasurementUploadPostResponse**](MeasurementUploadPostResponse.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **202** | OK | - | + diff --git a/intdash/docs/Measurement.md b/intdash/docs/Measurement.md new file mode 100644 index 0000000..ac7cb8b --- /dev/null +++ b/intdash/docs/Measurement.md @@ -0,0 +1,39 @@ + + +# Measurement + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uuid** | **String** | 計測のUUID | | +|**name** | **String** | 計測の名前 | | +|**description** | **String** | 計測の説明 | | +|**basetime** | **String** | 計測の基準時刻(RFC3339形式) | | +|**basetimeType** | **MeasurementBaseTimeType** | | | +|**edgeUuid** | **String** | エッジのUUID | | +|**duration** | **Long** | 計測時間( `max_elapsed_time` を使用してください) | | +|**maxElapsedTime** | **Long** | 計測時間(マイクロ秒) | [optional] | +|**completed** | **Boolean** | `true` の場合、この計測はサーバーへのデータの回収が完了しています。 | [optional] | +|**_protected** | **Boolean** | `true` の場合、計測は保護されています。保護されている計測は削除できません。 保護されている計測を削除したい場合は、まず保護を解除してください。 | | +|**sequences** | [**MeasurementSequencesSummary**](MeasurementSequencesSummary.md) | | | +|**markers** | [**List<MeasurementMarker>**](MeasurementMarker.md) | | [optional] | +|**createdAt** | **Date** | 計測の作成日時 | | +|**updatedAt** | **Date** | 計測の最終更新日時 | | +|**processedRatio** | **BigDecimal** | 代わりに `sequences.received_chunks_ratio` を使用してください。処理済み率を表します。 | | +|**ended** | **Boolean** | 代わりに `sequences.status` を使用してください。エッジにおいてデータの取得が終了しているかどうかを示します。 | | +|**status** | [**StatusEnum**](#StatusEnum) | 代わりに `sequences.status` を使用してください。 計測のステータスを表します: - measuring - 計測中 - resending - 再送中。計測(エッジにおけるデータの取得)は終了しましたが、エッジにデータが残っており、サーバーに再送中です。 - finished - 完了。サーバーへのデータの回収が完了しています。 | | + + + +## Enum: StatusEnum + +| Name | Value | +|---- | -----| +| MEASURING | "measuring" | +| RESENDING | "resending" | +| FINISHED | "finished" | + + + diff --git a/intdash/docs/MeasurementBaseTimeType.md b/intdash/docs/MeasurementBaseTimeType.md new file mode 100644 index 0000000..dbdf129 --- /dev/null +++ b/intdash/docs/MeasurementBaseTimeType.md @@ -0,0 +1,23 @@ + + +# MeasurementBaseTimeType + +## Enum + + +* `EDGE_RTC` (value: `"edge_rtc"`) + +* `NTP` (value: `"ntp"`) + +* `GPS` (value: `"gps"`) + +* `API_FIRST_RECEIVED` (value: `"api_first_received"`) + +* `VOLATILE` (value: `"volatile"`) + +* `MANUAL` (value: `"manual"`) + +* `UNDEFINED` (value: `"undefined"`) + + + diff --git a/intdash/docs/MeasurementJob.md b/intdash/docs/MeasurementJob.md new file mode 100644 index 0000000..ed88a77 --- /dev/null +++ b/intdash/docs/MeasurementJob.md @@ -0,0 +1,20 @@ + + +# MeasurementJob + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uuid** | **String** | ジョブのUUID | | +|**measUuid** | **String** | 計測のUUID | | +|**measurement** | [**Measurement**](Measurement.md) | | | +|**status** | **MeasurementJobStatus** | | | +|**message** | **String** | ジョブの結果を表すメッセージ。 ジョブのステータスが `failed` の場合、メッセージが以下の形式で表示されます。 `<row_number>:<column_number>:<column_name>:<cell_value>:<error_message>` 行番号や列番号が不明の場合は `0` が出力されます。 * ex.1 `2:1:time:1539263580:A time must be after the base_time\\: BaseTime=2018-10-11 13\\:13\\:03 +0000 UTC` * ex.2 `4:0:::Wrong number of fields` * ex.3 `0:0:::Unexpected Error` `:` と `\\` はエスケープされ、 `\\:` と `\\\\` として出力されます。 | | +|**fileName** | **String** | ジョブの対象のファイル名。 同じ日に同じ名前のファイルがアップロードされた場合は、ランダムな接頭辞が付与されます。 | | +|**createdAt** | **String** | ジョブの作成日時 | | +|**updatedAt** | **String** | ジョブの最終更新日時 | | + + + diff --git a/intdash/docs/MeasurementJobStatus.md b/intdash/docs/MeasurementJobStatus.md new file mode 100644 index 0000000..b721e9b --- /dev/null +++ b/intdash/docs/MeasurementJobStatus.md @@ -0,0 +1,19 @@ + + +# MeasurementJobStatus + +## Enum + + +* `READY` (value: `"ready"`) + +* `PROCESSING` (value: `"processing"`) + +* `SUCCEEDED` (value: `"succeeded"`) + +* `FAILED` (value: `"failed"`) + +* `CANCELLED` (value: `"cancelled"`) + + + diff --git a/intdash/docs/MeasurementJobs.md b/intdash/docs/MeasurementJobs.md new file mode 100644 index 0000000..d0f50c6 --- /dev/null +++ b/intdash/docs/MeasurementJobs.md @@ -0,0 +1,14 @@ + + +# MeasurementJobs + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<MeasurementJob>**](MeasurementJob.md) | | | +|**page** | [**PageDetail**](PageDetail.md) | | | + + + diff --git a/intdash/docs/MeasurementMarker.md b/intdash/docs/MeasurementMarker.md new file mode 100644 index 0000000..0d84971 --- /dev/null +++ b/intdash/docs/MeasurementMarker.md @@ -0,0 +1,31 @@ + + +# MeasurementMarker + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uuid** | **String** | 計測マーカーのUUID | | +|**name** | **String** | 計測マーカーの名前 | | +|**description** | **String** | 計測マーカーの説明 | | +|**type** | [**TypeEnum**](#TypeEnum) | 計測マーカーのタイプ - `point` : ポイントマーカー - `range` : 範囲マーカー | | +|**tag** | **Object** | 計測マーカーに付与されたタグ | | +|**createdAt** | **String** | 計測マーカーの作成日時 | | +|**createdBy** | **String** | 計測マーカー作成者 | | +|**updatedAt** | **String** | 計測マーカーの最終更新日時 | | +|**updatedBy** | **String** | 計測マーカーの最終更新者 | | +|**detail** | [**MeasurementMarkerDetailRange**](MeasurementMarkerDetailRange.md) | | | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| POINT | "point" | +| RANGE | "range" | + + + diff --git a/intdash/docs/MeasurementMarkerBase.md b/intdash/docs/MeasurementMarkerBase.md new file mode 100644 index 0000000..c407c0a --- /dev/null +++ b/intdash/docs/MeasurementMarkerBase.md @@ -0,0 +1,30 @@ + + +# MeasurementMarkerBase + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uuid** | **String** | 計測マーカーのUUID | | +|**name** | **String** | 計測マーカーの名前 | | +|**description** | **String** | 計測マーカーの説明 | | +|**type** | [**TypeEnum**](#TypeEnum) | 計測マーカーのタイプ - `point` : ポイントマーカー - `range` : 範囲マーカー | | +|**tag** | **Object** | 計測マーカーに付与されたタグ | | +|**createdAt** | **String** | 計測マーカーの作成日時 | | +|**createdBy** | **String** | 計測マーカー作成者 | | +|**updatedAt** | **String** | 計測マーカーの最終更新日時 | | +|**updatedBy** | **String** | 計測マーカーの最終更新者 | | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| POINT | "point" | +| RANGE | "range" | + + + diff --git a/intdash/docs/MeasurementMarkerDetailPoint.md b/intdash/docs/MeasurementMarkerDetailPoint.md new file mode 100644 index 0000000..d01fd14 --- /dev/null +++ b/intdash/docs/MeasurementMarkerDetailPoint.md @@ -0,0 +1,13 @@ + + +# MeasurementMarkerDetailPoint + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**occurredElapsedTime** | **Long** | この計測マーカーの時刻。計測の基準時刻からの経過時間(マイクロ秒)で表します。 | [optional] | + + + diff --git a/intdash/docs/MeasurementMarkerDetailRange.md b/intdash/docs/MeasurementMarkerDetailRange.md new file mode 100644 index 0000000..cbb66f0 --- /dev/null +++ b/intdash/docs/MeasurementMarkerDetailRange.md @@ -0,0 +1,14 @@ + + +# MeasurementMarkerDetailRange + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**startElapsedTime** | **Long** | この計測マーカーの始点。この計測の基準時刻からの経過時間(マイクロ秒)で表示します。 | [optional] | +|**endElapsedTime** | **Long** | この計測マーカーの始点。この計測の基準時刻からの経過時間(マイクロ秒)で表示します。 | [optional] | + + + diff --git a/intdash/docs/MeasurementMarkerPoint.md b/intdash/docs/MeasurementMarkerPoint.md new file mode 100644 index 0000000..e48ff7f --- /dev/null +++ b/intdash/docs/MeasurementMarkerPoint.md @@ -0,0 +1,31 @@ + + +# MeasurementMarkerPoint + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uuid** | **String** | 計測マーカーのUUID | | +|**name** | **String** | 計測マーカーの名前 | | +|**description** | **String** | 計測マーカーの説明 | | +|**type** | [**TypeEnum**](#TypeEnum) | 計測マーカーのタイプ - `point` : ポイントマーカー - `range` : 範囲マーカー | | +|**tag** | **Object** | 計測マーカーに付与されたタグ | | +|**createdAt** | **String** | 計測マーカーの作成日時 | | +|**createdBy** | **String** | 計測マーカー作成者 | | +|**updatedAt** | **String** | 計測マーカーの最終更新日時 | | +|**updatedBy** | **String** | 計測マーカーの最終更新者 | | +|**detail** | [**MeasurementMarkerDetailPoint**](MeasurementMarkerDetailPoint.md) | | | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| POINT | "point" | +| RANGE | "range" | + + + diff --git a/intdash/docs/MeasurementMarkerPointAllOf.md b/intdash/docs/MeasurementMarkerPointAllOf.md new file mode 100644 index 0000000..a028281 --- /dev/null +++ b/intdash/docs/MeasurementMarkerPointAllOf.md @@ -0,0 +1,13 @@ + + +# MeasurementMarkerPointAllOf + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**detail** | [**MeasurementMarkerDetailPoint**](MeasurementMarkerDetailPoint.md) | | [optional] | + + + diff --git a/intdash/docs/MeasurementMarkerPostRequest.md b/intdash/docs/MeasurementMarkerPostRequest.md new file mode 100644 index 0000000..cb9e357 --- /dev/null +++ b/intdash/docs/MeasurementMarkerPostRequest.md @@ -0,0 +1,26 @@ + + +# MeasurementMarkerPostRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | 計測マーカーの名前 | [optional] | +|**description** | **String** | 計測マーカーの説明 | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | 計測マーカーのタイプ - `point` : ポイントマーカー - `range` : 範囲マーカー | | +|**tag** | **Object** | この計測マーカーに付与するタグ。タグはキーと値からなるペア(いずれもstring)で設定します。 複数のタグを一度に設定することができます。 値の中にオブジェクトを入れる(ネストする)ことはできません。 ``` // Not good { \"tagkey\" : { \"nestKey\": \"not allowed\" } } ``` ``` // OK { \"tagkey1\" : \"ok1\", \"tagkey2\" : \"ok2\" } ``` | [optional] | +|**detail** | [**MeasurementMarkerDetailRange**](MeasurementMarkerDetailRange.md) | | | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| POINT | "point" | +| RANGE | "range" | + + + diff --git a/intdash/docs/MeasurementMarkerPostRequestPoint.md b/intdash/docs/MeasurementMarkerPostRequestPoint.md new file mode 100644 index 0000000..cbaa40a --- /dev/null +++ b/intdash/docs/MeasurementMarkerPostRequestPoint.md @@ -0,0 +1,26 @@ + + +# MeasurementMarkerPostRequestPoint + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | 計測マーカーの名前 | [optional] | +|**description** | **String** | 計測マーカーの説明 | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | 計測マーカーのタイプ - `point` : ポイントマーカー - `range` : 範囲マーカー | | +|**tag** | **Object** | この計測マーカーに付与するタグ。タグはキーと値からなるペア(いずれもstring)で設定します。 複数のタグを一度に設定することができます。 値の中にオブジェクトを入れる(ネストする)ことはできません。 ``` // Not good { \"tagkey\" : { \"nestKey\": \"not allowed\" } } ``` ``` // OK { \"tagkey1\" : \"ok1\", \"tagkey2\" : \"ok2\" } ``` | [optional] | +|**detail** | [**MeasurementMarkerDetailPoint**](MeasurementMarkerDetailPoint.md) | | | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| POINT | "point" | +| RANGE | "range" | + + + diff --git a/intdash/docs/MeasurementMarkerPostRequestRange.md b/intdash/docs/MeasurementMarkerPostRequestRange.md new file mode 100644 index 0000000..d823ca3 --- /dev/null +++ b/intdash/docs/MeasurementMarkerPostRequestRange.md @@ -0,0 +1,26 @@ + + +# MeasurementMarkerPostRequestRange + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | 計測マーカーの名前 | [optional] | +|**description** | **String** | 計測マーカーの説明 | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | 計測マーカーのタイプ - `point` : ポイントマーカー - `range` : 範囲マーカー | | +|**tag** | **Object** | この計測マーカーに付与するタグ。タグはキーと値からなるペア(いずれもstring)で設定します。 複数のタグを一度に設定することができます。 値の中にオブジェクトを入れる(ネストする)ことはできません。 ``` // Not good { \"tagkey\" : { \"nestKey\": \"not allowed\" } } ``` ``` // OK { \"tagkey1\" : \"ok1\", \"tagkey2\" : \"ok2\" } ``` | [optional] | +|**detail** | [**MeasurementMarkerDetailRange**](MeasurementMarkerDetailRange.md) | | | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| POINT | "point" | +| RANGE | "range" | + + + diff --git a/intdash/docs/MeasurementMarkerPutRequest.md b/intdash/docs/MeasurementMarkerPutRequest.md new file mode 100644 index 0000000..c73c108 --- /dev/null +++ b/intdash/docs/MeasurementMarkerPutRequest.md @@ -0,0 +1,26 @@ + + +# MeasurementMarkerPutRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | 計測マーカーの名前 | [optional] | +|**description** | **String** | 計測マーカーの説明 | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | 計測マーカーのタイプ - `point` : ポイントマーカー - `range` : 範囲マーカー | [optional] | +|**tag** | **Object** | この計測マーカーに付与するタグ。タグはキーと値からなるペア(いずれもstring)で設定します。 複数のタグを一度に設定することができます。 値の中にオブジェクトを入れる(ネストする)ことはできません。 ``` // Not good { \"tagkey\" : { \"nestKey\": \"not allowed\" } } ``` ``` // OK { \"tagkey1\" : \"ok1\", \"tagkey2\" : \"ok2\" } ``` | [optional] | +|**detail** | [**MeasurementMarkerDetailRange**](MeasurementMarkerDetailRange.md) | | [optional] | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| POINT | "point" | +| RANGE | "range" | + + + diff --git a/intdash/docs/MeasurementMarkerPutRequestBase.md b/intdash/docs/MeasurementMarkerPutRequestBase.md new file mode 100644 index 0000000..9f14251 --- /dev/null +++ b/intdash/docs/MeasurementMarkerPutRequestBase.md @@ -0,0 +1,25 @@ + + +# MeasurementMarkerPutRequestBase + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | 計測マーカーの名前 | [optional] | +|**description** | **String** | 計測マーカーの説明 | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | 計測マーカーのタイプ - `point` : ポイントマーカー - `range` : 範囲マーカー | [optional] | +|**tag** | **Object** | この計測マーカーに付与するタグ。タグはキーと値からなるペア(いずれもstring)で設定します。 複数のタグを一度に設定することができます。 値の中にオブジェクトを入れる(ネストする)ことはできません。 ``` // Not good { \"tagkey\" : { \"nestKey\": \"not allowed\" } } ``` ``` // OK { \"tagkey1\" : \"ok1\", \"tagkey2\" : \"ok2\" } ``` | [optional] | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| POINT | "point" | +| RANGE | "range" | + + + diff --git a/intdash/docs/MeasurementMarkerPutRequestPoint.md b/intdash/docs/MeasurementMarkerPutRequestPoint.md new file mode 100644 index 0000000..66cba4e --- /dev/null +++ b/intdash/docs/MeasurementMarkerPutRequestPoint.md @@ -0,0 +1,26 @@ + + +# MeasurementMarkerPutRequestPoint + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | 計測マーカーの名前 | [optional] | +|**description** | **String** | 計測マーカーの説明 | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | 計測マーカーのタイプ - `point` : ポイントマーカー - `range` : 範囲マーカー | [optional] | +|**tag** | **Object** | この計測マーカーに付与するタグ。タグはキーと値からなるペア(いずれもstring)で設定します。 複数のタグを一度に設定することができます。 値の中にオブジェクトを入れる(ネストする)ことはできません。 ``` // Not good { \"tagkey\" : { \"nestKey\": \"not allowed\" } } ``` ``` // OK { \"tagkey1\" : \"ok1\", \"tagkey2\" : \"ok2\" } ``` | [optional] | +|**detail** | [**MeasurementMarkerDetailPoint**](MeasurementMarkerDetailPoint.md) | | [optional] | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| POINT | "point" | +| RANGE | "range" | + + + diff --git a/intdash/docs/MeasurementMarkerPutRequestRange.md b/intdash/docs/MeasurementMarkerPutRequestRange.md new file mode 100644 index 0000000..0d4948c --- /dev/null +++ b/intdash/docs/MeasurementMarkerPutRequestRange.md @@ -0,0 +1,26 @@ + + +# MeasurementMarkerPutRequestRange + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | 計測マーカーの名前 | [optional] | +|**description** | **String** | 計測マーカーの説明 | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | 計測マーカーのタイプ - `point` : ポイントマーカー - `range` : 範囲マーカー | [optional] | +|**tag** | **Object** | この計測マーカーに付与するタグ。タグはキーと値からなるペア(いずれもstring)で設定します。 複数のタグを一度に設定することができます。 値の中にオブジェクトを入れる(ネストする)ことはできません。 ``` // Not good { \"tagkey\" : { \"nestKey\": \"not allowed\" } } ``` ``` // OK { \"tagkey1\" : \"ok1\", \"tagkey2\" : \"ok2\" } ``` | [optional] | +|**detail** | [**MeasurementMarkerDetailRange**](MeasurementMarkerDetailRange.md) | | [optional] | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| POINT | "point" | +| RANGE | "range" | + + + diff --git a/intdash/docs/MeasurementMarkerRange.md b/intdash/docs/MeasurementMarkerRange.md new file mode 100644 index 0000000..a5db732 --- /dev/null +++ b/intdash/docs/MeasurementMarkerRange.md @@ -0,0 +1,31 @@ + + +# MeasurementMarkerRange + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uuid** | **String** | 計測マーカーのUUID | | +|**name** | **String** | 計測マーカーの名前 | | +|**description** | **String** | 計測マーカーの説明 | | +|**type** | [**TypeEnum**](#TypeEnum) | 計測マーカーのタイプ - `point` : ポイントマーカー - `range` : 範囲マーカー | | +|**tag** | **Object** | 計測マーカーに付与されたタグ | | +|**createdAt** | **String** | 計測マーカーの作成日時 | | +|**createdBy** | **String** | 計測マーカー作成者 | | +|**updatedAt** | **String** | 計測マーカーの最終更新日時 | | +|**updatedBy** | **String** | 計測マーカーの最終更新者 | | +|**detail** | [**MeasurementMarkerDetailRange**](MeasurementMarkerDetailRange.md) | | | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| POINT | "point" | +| RANGE | "range" | + + + diff --git a/intdash/docs/MeasurementMarkerRangeAllOf.md b/intdash/docs/MeasurementMarkerRangeAllOf.md new file mode 100644 index 0000000..c938d64 --- /dev/null +++ b/intdash/docs/MeasurementMarkerRangeAllOf.md @@ -0,0 +1,13 @@ + + +# MeasurementMarkerRangeAllOf + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**detail** | [**MeasurementMarkerDetailRange**](MeasurementMarkerDetailRange.md) | | [optional] | + + + diff --git a/intdash/docs/MeasurementMarkers.md b/intdash/docs/MeasurementMarkers.md new file mode 100644 index 0000000..889f98e --- /dev/null +++ b/intdash/docs/MeasurementMarkers.md @@ -0,0 +1,14 @@ + + +# MeasurementMarkers + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<MeasurementMarker>**](MeasurementMarker.md) | | | +|**page** | [**PageDetail**](PageDetail.md) | | | + + + diff --git a/intdash/docs/MeasurementMarkersWithoutPage.md b/intdash/docs/MeasurementMarkersWithoutPage.md new file mode 100644 index 0000000..6fd02f6 --- /dev/null +++ b/intdash/docs/MeasurementMarkersWithoutPage.md @@ -0,0 +1,13 @@ + + +# MeasurementMarkersWithoutPage + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<MeasurementMarker>**](MeasurementMarker.md) | | | + + + diff --git a/intdash/docs/MeasurementSectionGetResponse.md b/intdash/docs/MeasurementSectionGetResponse.md new file mode 100644 index 0000000..703c437 --- /dev/null +++ b/intdash/docs/MeasurementSectionGetResponse.md @@ -0,0 +1,16 @@ + + +# MeasurementSectionGetResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**serialNumber** | **String** | 計測セクションのシリアルナンバー | | +|**processed** | **Boolean** | `true` の場合、計測セクションは処理済みです。 | | +|**createdAt** | **String** | 計測セクションの作成日時。 `processed` が `false` の場合は、この属性はありません。 | | +|**updatedAt** | **String** | 計測セクションの最終更新日時。 `processed` が `false` の場合は、この属性はありません。 | | + + + diff --git a/intdash/docs/MeasurementSectionsGetResponse.md b/intdash/docs/MeasurementSectionsGetResponse.md new file mode 100644 index 0000000..d1e6718 --- /dev/null +++ b/intdash/docs/MeasurementSectionsGetResponse.md @@ -0,0 +1,14 @@ + + +# MeasurementSectionsGetResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<MeasurementSectionGetResponse>**](MeasurementSectionGetResponse.md) | | | +|**totalCount** | **Integer** | 取得対象の総件数 | | + + + diff --git a/intdash/docs/MeasurementSequenceGroup.md b/intdash/docs/MeasurementSequenceGroup.md new file mode 100644 index 0000000..261c358 --- /dev/null +++ b/intdash/docs/MeasurementSequenceGroup.md @@ -0,0 +1,17 @@ + + +# MeasurementSequenceGroup + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uuid** | **String** | 計測シーケンスのUUID | | +|**expectedDataPoints** | **Long** | この計測シーケンスでサーバーが受信することが想定されるデータポイントの総数 (既に受信済みのデータポイントを含む) 符号なし64bit整数。 | [optional] | +|**finalSequenceNumber** | **Long** | 最後の計測シーケンスの番号。 | [optional] | +|**createdAt** | **Date** | 作成日時 | | +|**updatedAt** | **Date** | 最終更新日時 | | + + + diff --git a/intdash/docs/MeasurementSequenceGroupReplace.md b/intdash/docs/MeasurementSequenceGroupReplace.md new file mode 100644 index 0000000..1a64ea7 --- /dev/null +++ b/intdash/docs/MeasurementSequenceGroupReplace.md @@ -0,0 +1,14 @@ + + +# MeasurementSequenceGroupReplace + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**expectedDataPoints** | **Long** | この計測シーケンスでサーバーが受信することが想定されるデータポイントの総数 (既に受信済みのデータポイントを含む) 符号なし64bit整数。 | [optional] | +|**finalSequenceNumber** | **Long** | 最後の計測シーケンスの番号 | [optional] | + + + diff --git a/intdash/docs/MeasurementSequenceGroups.md b/intdash/docs/MeasurementSequenceGroups.md new file mode 100644 index 0000000..aee5549 --- /dev/null +++ b/intdash/docs/MeasurementSequenceGroups.md @@ -0,0 +1,14 @@ + + +# MeasurementSequenceGroups + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<MeasurementSequenceGroup>**](MeasurementSequenceGroup.md) | | | +|**page** | [**PageV2**](PageV2.md) | | | + + + diff --git a/intdash/docs/MeasurementSequencesSummary.md b/intdash/docs/MeasurementSequencesSummary.md new file mode 100644 index 0000000..d6f74e8 --- /dev/null +++ b/intdash/docs/MeasurementSequencesSummary.md @@ -0,0 +1,28 @@ + + +# MeasurementSequencesSummary + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**receivedChunksRatio** | **BigDecimal** | 計測シーケンス回収率。計測内に含まれる計測シーケンスのうち、 サーバーへの保存が完了した計測シーケンスの割合です。 | [optional] | +|**receivedDataPoints** | **Long** | サーバーが受信したデータポイントの数。符号無し64bit整数。 | [optional] | +|**expectedDataPoints** | **Long** | サーバーが受信することが想定されるデータポイントの総数(既に受信済みのデータポイントを含む)。符号無し64bit整数。 | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | 計測のステータス: - ready - 計測準備中 - measuring - 計測中 - resending - 再送中。計測(エッジにおけるデータの取得)は終了しましたが、エッジにデータが残っており、サーバーに再送中です。 - finished(非推奨。段階的にcompletedへ移行) - 完了。サーバーへのデータの回収が完了しています。 - completed - 完了。サーバーへのデータの回収が完了しています。 | [optional] | + + + +## Enum: StatusEnum + +| Name | Value | +|---- | -----| +| READY | "ready" | +| MEASURING | "measuring" | +| RESENDING | "resending" | +| FINISHED | "finished" | +| COMPLETED | "completed" | + + + diff --git a/intdash/docs/MeasurementUploadPostResponse.md b/intdash/docs/MeasurementUploadPostResponse.md new file mode 100644 index 0000000..1ec5341 --- /dev/null +++ b/intdash/docs/MeasurementUploadPostResponse.md @@ -0,0 +1,15 @@ + + +# MeasurementUploadPostResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**measUploadUuid** | **String** | 計測アップロードのUUID | | +|**jobUuid** | **String** | 計測への変換ジョブのUUID | [optional] | +|**fileName** | **String** | アップロードされたファイルのファイル名 | | + + + diff --git a/intdash/docs/MeasurementUploadStatusGetResponse.md b/intdash/docs/MeasurementUploadStatusGetResponse.md new file mode 100644 index 0000000..bf961d1 --- /dev/null +++ b/intdash/docs/MeasurementUploadStatusGetResponse.md @@ -0,0 +1,31 @@ + + +# MeasurementUploadStatusGetResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uuid** | **String** | 計測アップロードのUUID | | +|**measUuid** | **String** | 計測のUUID | | +|**state** | [**StateEnum**](#StateEnum) | 計測への変換ジョブのステータス | | +|**message** | **String** | 計測への変換ジョブの結果 | | +|**fileName** | **String** | 計測に変換する対象のファイル名。 同じ日に同じ名前のファイルがアップロードされた場合は、 ランダムな接頭辞が付与されます。 | | +|**createdAt** | **String** | 計測アップロードの作成日時 | | +|**updatedAt** | **String** | 計測アップロードの最終更新日時 | | + + + +## Enum: StateEnum + +| Name | Value | +|---- | -----| +| READY | "ready" | +| PROCESSING | "processing" | +| SUCCEED | "succeed" | +| FAILED | "failed" | +| CANCELED | "canceled" | + + + diff --git a/intdash/docs/MeasurementUploadStatusesGetResponse.md b/intdash/docs/MeasurementUploadStatusesGetResponse.md new file mode 100644 index 0000000..5464cb4 --- /dev/null +++ b/intdash/docs/MeasurementUploadStatusesGetResponse.md @@ -0,0 +1,14 @@ + + +# MeasurementUploadStatusesGetResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<MeasurementUploadStatusGetResponse>**](MeasurementUploadStatusGetResponse.md) | | | +|**page** | [**PageDetail**](PageDetail.md) | | | + + + diff --git a/intdash/docs/Measurements.md b/intdash/docs/Measurements.md new file mode 100644 index 0000000..06d2ae6 --- /dev/null +++ b/intdash/docs/Measurements.md @@ -0,0 +1,14 @@ + + +# Measurements + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<Measurement>**](Measurement.md) | | | +|**page** | [**PageDetail**](PageDetail.md) | | | + + + diff --git a/intdash/docs/MediaHlsApi.md b/intdash/docs/MediaHlsApi.md new file mode 100644 index 0000000..dea21f2 --- /dev/null +++ b/intdash/docs/MediaHlsApi.md @@ -0,0 +1,522 @@ +# MediaHlsApi + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getFMP4**](MediaHlsApi.md#getFMP4) | **GET** /media/measurements/{meas_uuid}/channels/{channel}/mp4s/measurement.mp4 | Get HLS as FMP4 | +| [**getHLSes**](MediaHlsApi.md#getHLSes) | **GET** /media/hlses | List HLSes | +| [**getPlaylist**](MediaHlsApi.md#getPlaylist) | **GET** /media/measurements/{meas_uuid}/channels/{channel}/hlses/playlist.m3u8 | Get HLS Playlist | +| [**getProjectFMP4**](MediaHlsApi.md#getProjectFMP4) | **GET** /media/projects/{project_uuid}/measurements/{meas_uuid}/channels/{channel}/mp4s/measurement.mp4 | Get Project HLS as FMP4 | +| [**getProjectHLSes**](MediaHlsApi.md#getProjectHLSes) | **GET** /media/projects/{project_uuid}/hlses | List Project HLSes | +| [**getProjectPlaylist**](MediaHlsApi.md#getProjectPlaylist) | **GET** /media/projects/{project_uuid}/measurements/{meas_uuid}/channels/{channel}/hlses/playlist.m3u8 | Get Project HLS Playlist | + + + +# **getFMP4** +> File getFMP4(measUuid, channel) + +Get HLS as FMP4 + +**Deprecated** このエンドポイントの代わりに [`POST /media/videos/{video_uuid}/mp4s`](#operation/createMP4) を使用してください。 mp4リソース作成後、 `MP4`オブジェクトの `file_path`にあるPATHに従って動画を取得してください + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaHlsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaHlsApi apiInstance = new MediaHlsApi(defaultClient); + String measUuid = "f967c530-f562-410a-991b-031c43142778"; // String | 計測のUUID + Integer channel = 1; // Integer | チャンネル + try { + File result = apiInstance.getFMP4(measUuid, channel); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaHlsApi#getFMP4"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measUuid** | **String**| 計測のUUID | | +| **channel** | **Integer**| チャンネル | | + +### Return type + +[**File**](File.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: video/mp4 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getHLSes** +> HLSList getHLSes(start, end, edgeUuid, channel, limit) + +List HLSes + +**Deprecated** このエンドポイントではなく [`GET /media/videos`](#operation/getVideos) を使用してください + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaHlsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaHlsApi apiInstance = new MediaHlsApi(defaultClient); + Integer start = 1234567890; // Integer | 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) + Integer end = 1234567890; // Integer | 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) + String edgeUuid = "3699e2b9-5d87-4dbd-9b85-098e7dfaee76"; // String | エッジのUUID + Integer channel = 1; // Integer | チャンネル + Integer limit = 1000; // Integer | 1回のリクエストで取得する件数 + try { + HLSList result = apiInstance.getHLSes(start, end, edgeUuid, channel, limit); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaHlsApi#getHLSes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **start** | **Integer**| 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) | [optional] | +| **end** | **Integer**| 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) | [optional] | +| **edgeUuid** | **String**| エッジのUUID | [optional] | +| **channel** | **Integer**| チャンネル | [optional] | +| **limit** | **Integer**| 1回のリクエストで取得する件数 | [optional] | + +### Return type + +[**HLSList**](HLSList.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getPlaylist** +> String getPlaylist(measUuid, channel, forceEnd) + +Get HLS Playlist + +**Depricated** このエンドポイントの代わりに、Videoオブジェクトの `hls`にあるPATHにしたがってPlaylistを取得してください。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaHlsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaHlsApi apiInstance = new MediaHlsApi(defaultClient); + String measUuid = "f967c530-f562-410a-991b-031c43142778"; // String | 計測のUUID + Integer channel = 1; // Integer | チャンネル + Boolean forceEnd = true; // Boolean | `true` にすると、取得するm3u8形式のプレイリストに強制的にEXT-X-ENDLISTを追加します。 + try { + String result = apiInstance.getPlaylist(measUuid, channel, forceEnd); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaHlsApi#getPlaylist"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **measUuid** | **String**| 計測のUUID | | +| **channel** | **Integer**| チャンネル | | +| **forceEnd** | **Boolean**| `true` にすると、取得するm3u8形式のプレイリストに強制的にEXT-X-ENDLISTを追加します。 | [optional] | + +### Return type + +**String** + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/vnd.apple.mpegurl + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getProjectFMP4** +> File getProjectFMP4(projectUuid, measUuid, channel) + +Get Project HLS as FMP4 + +**Deprecated** このエンドポイントの代わりに [`POST /media/videos/{video_uuid}/mp4s`](#operation/createMP4) を使用してください。 mp4リソース作成後、 `MP4`オブジェクトの `file_path`にあるPATHに従って動画を取得してください + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaHlsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaHlsApi apiInstance = new MediaHlsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measUuid = "f967c530-f562-410a-991b-031c43142778"; // String | 計測のUUID + Integer channel = 1; // Integer | チャンネル + try { + File result = apiInstance.getProjectFMP4(projectUuid, measUuid, channel); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaHlsApi#getProjectFMP4"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measUuid** | **String**| 計測のUUID | | +| **channel** | **Integer**| チャンネル | | + +### Return type + +[**File**](File.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: video/mp4 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getProjectHLSes** +> HLSList getProjectHLSes(projectUuid, start, end, edgeUuid, channel, limit) + +List Project HLSes + +**Deprecated** このエンドポイントではなく [`GET /media/videos`](#operation/getVideos) を使用してください + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaHlsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaHlsApi apiInstance = new MediaHlsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + Integer start = 123456789; // Integer | 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) + Integer end = 1234567890; // Integer | 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) + String edgeUuid = "3699e2b9-5d87-4dbd-9b85-098e7dfaee76"; // String | エッジのUUID + Integer channel = 1; // Integer | チャンネル + Integer limit = 1000; // Integer | 1回のリクエストで取得する件数 + try { + HLSList result = apiInstance.getProjectHLSes(projectUuid, start, end, edgeUuid, channel, limit); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaHlsApi#getProjectHLSes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **start** | **Integer**| 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) | [optional] | +| **end** | **Integer**| 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) | [optional] | +| **edgeUuid** | **String**| エッジのUUID | [optional] | +| **channel** | **Integer**| チャンネル | [optional] | +| **limit** | **Integer**| 1回のリクエストで取得する件数 | [optional] | + +### Return type + +[**HLSList**](HLSList.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getProjectPlaylist** +> String getProjectPlaylist(projectUuid, measUuid, channel, forceEnd) + +Get Project HLS Playlist + +**Depricated** このエンドポイントの代わりに、Videoオブジェクトの `hls`にあるPATHにしたがってPlaylistを取得してください。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaHlsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaHlsApi apiInstance = new MediaHlsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String measUuid = "f967c530-f562-410a-991b-031c43142778"; // String | 計測のUUID + Integer channel = 1; // Integer | チャンネル + Boolean forceEnd = true; // Boolean | `true` にすると、取得するm3u8形式のプレイリストに強制的にEXT-X-ENDLISTを追加します。 + try { + String result = apiInstance.getProjectPlaylist(projectUuid, measUuid, channel, forceEnd); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaHlsApi#getProjectPlaylist"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **measUuid** | **String**| 計測のUUID | | +| **channel** | **Integer**| チャンネル | | +| **forceEnd** | **Boolean**| `true` にすると、取得するm3u8形式のプレイリストに強制的にEXT-X-ENDLISTを追加します。 | [optional] | + +### Return type + +**String** + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/vnd.apple.mpegurl + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + diff --git a/intdash/docs/MediaJobsApi.md b/intdash/docs/MediaJobsApi.md new file mode 100644 index 0000000..169a5e7 --- /dev/null +++ b/intdash/docs/MediaJobsApi.md @@ -0,0 +1,366 @@ +# MediaJobsApi + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createJob**](MediaJobsApi.md#createJob) | **POST** /media/jobs | Create Job | +| [**createProjectJob**](MediaJobsApi.md#createProjectJob) | **POST** /media/projects/{project_uuid}/jobs | Create Project Job | +| [**getJobs**](MediaJobsApi.md#getJobs) | **GET** /media/jobs | List Jobs | +| [**getProjectJobs**](MediaJobsApi.md#getProjectJobs) | **GET** /media/projects/{project_uuid}/jobs | List Project Jobs | + + + +# **createJob** +> Job createJob(createJobRequest) + +Create Job + +(Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) HLSへの変換ジョブを作成します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaJobsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaJobsApi apiInstance = new MediaJobsApi(defaultClient); + CreateJobRequest createJobRequest = new CreateJobRequest(); // CreateJobRequest | + try { + Job result = apiInstance.createJob(createJobRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaJobsApi#createJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **createJobRequest** | [**CreateJobRequest**](CreateJobRequest.md)| | [optional] | + +### Return type + +[**Job**](Job.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | +| **400** | Bad Request | - | +| **409** | Conflict | - | + + +# **createProjectJob** +> Job createProjectJob(projectUuid, createJobRequest) + +Create Project Job + +HLSへの変換ジョブを作成します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaJobsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaJobsApi apiInstance = new MediaJobsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + CreateJobRequest createJobRequest = new CreateJobRequest(); // CreateJobRequest | + try { + Job result = apiInstance.createProjectJob(projectUuid, createJobRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaJobsApi#createProjectJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **createJobRequest** | [**CreateJobRequest**](CreateJobRequest.md)| | [optional] | + +### Return type + +[**Job**](Job.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | +| **400** | Bad Request | - | +| **409** | Conflict | - | + + +# **getJobs** +> JobList getJobs(uuid, measUuid, type, status, limit, page, sort, order) + +List Jobs + +(Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) HLSへの変換ジョブのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaJobsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaJobsApi apiInstance = new MediaJobsApi(defaultClient); + List uuid = Arrays.asList(); // List | 取得したいジョブのUUID + List measUuid = Arrays.asList(); // List | 計測のUUID + List type = Arrays.asList(); // List | - update - 計測内の動画データのうち、新しくサーバーが受信した部分(HLSにまだ変換されていない部分)を HLSに変換するジョブ。通常は計測実行中に行います。 - finalize - 計測全体をサーバーに回収した後に、動画データ全体をHLSに変換するジョブ - delete - 変換によって作成されたHLSデータを削除するジョブ。 このジョブを実行すると、HLSプレイリスト、セグメントファイル、 データベース内のHLSに関する情報が削除され、この動画のHLSによる再生はできなくなります。 + List status = Arrays.asList(); // List | ジョブのステータス + BigDecimal limit = new BigDecimal("1000"); // BigDecimal | 1回のリクエストで取得する件数 + Integer page = 1; // Integer | 取得するページ番号 + String sort = "created_at"; // String | 並べ替えに使用するキー + String order = "asc"; // String | 並べ替えの順序 + try { + JobList result = apiInstance.getJobs(uuid, measUuid, type, status, limit, page, sort, order); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaJobsApi#getJobs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **uuid** | [**List<String>**](String.md)| 取得したいジョブのUUID | [optional] | +| **measUuid** | [**List<String>**](String.md)| 計測のUUID | [optional] | +| **type** | [**List<JobType>**](JobType.md)| - update - 計測内の動画データのうち、新しくサーバーが受信した部分(HLSにまだ変換されていない部分)を HLSに変換するジョブ。通常は計測実行中に行います。 - finalize - 計測全体をサーバーに回収した後に、動画データ全体をHLSに変換するジョブ - delete - 変換によって作成されたHLSデータを削除するジョブ。 このジョブを実行すると、HLSプレイリスト、セグメントファイル、 データベース内のHLSに関する情報が削除され、この動画のHLSによる再生はできなくなります。 | [optional] | +| **status** | [**List<JobStatus>**](JobStatus.md)| ジョブのステータス | [optional] | +| **limit** | **BigDecimal**| 1回のリクエストで取得する件数 | [optional] | +| **page** | **Integer**| 取得するページ番号 | [optional] [default to 1] | +| **sort** | **String**| 並べ替えに使用するキー | [optional] [default to created_at] [enum: created_at, updated_at] | +| **order** | **String**| 並べ替えの順序 | [optional] [enum: asc, desc] | + +### Return type + +[**JobList**](JobList.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad Request | - | + + +# **getProjectJobs** +> JobList getProjectJobs(projectUuid, uuid, measUuid, type, status, limit, page, sort, order) + +List Project Jobs + +HLSへの変換ジョブのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaJobsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaJobsApi apiInstance = new MediaJobsApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + List uuid = Arrays.asList(); // List | 取得したいジョブのUUID + List measUuid = Arrays.asList(); // List | 計測のUUID + List type = Arrays.asList(); // List | - update - 計測内の動画データのうち、新しくサーバーが受信した部分(HLSにまだ変換されていない部分)を HLSに変換するジョブ。通常は計測実行中に行います。 - finalize - 計測全体をサーバーに回収した後に、動画データ全体をHLSに変換するジョブ - delete - 変換によって作成されたHLSデータを削除するジョブ。 このジョブを実行すると、HLSプレイリスト、セグメントファイル、 データベース内のHLSに関する情報が削除され、この動画のHLSによる再生はできなくなります。 + List status = Arrays.asList(); // List | ジョブのステータス + BigDecimal limit = new BigDecimal("1000"); // BigDecimal | 1回のリクエストで取得する件数 + Integer page = 1; // Integer | 取得するページ番号 + String sort = "created_at"; // String | 並べ替えに使用するキー + String order = "asc"; // String | 並べ替えの順序 + try { + JobList result = apiInstance.getProjectJobs(projectUuid, uuid, measUuid, type, status, limit, page, sort, order); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaJobsApi#getProjectJobs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **uuid** | [**List<String>**](String.md)| 取得したいジョブのUUID | [optional] | +| **measUuid** | [**List<String>**](String.md)| 計測のUUID | [optional] | +| **type** | [**List<JobType>**](JobType.md)| - update - 計測内の動画データのうち、新しくサーバーが受信した部分(HLSにまだ変換されていない部分)を HLSに変換するジョブ。通常は計測実行中に行います。 - finalize - 計測全体をサーバーに回収した後に、動画データ全体をHLSに変換するジョブ - delete - 変換によって作成されたHLSデータを削除するジョブ。 このジョブを実行すると、HLSプレイリスト、セグメントファイル、 データベース内のHLSに関する情報が削除され、この動画のHLSによる再生はできなくなります。 | [optional] | +| **status** | [**List<JobStatus>**](JobStatus.md)| ジョブのステータス | [optional] | +| **limit** | **BigDecimal**| 1回のリクエストで取得する件数 | [optional] | +| **page** | **Integer**| 取得するページ番号 | [optional] [default to 1] | +| **sort** | **String**| 並べ替えに使用するキー | [optional] [default to created_at] [enum: created_at, updated_at] | +| **order** | **String**| 並べ替えの順序 | [optional] [enum: asc, desc] | + +### Return type + +[**JobList**](JobList.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad Request | - | + diff --git a/intdash/docs/MediaLiveApi.md b/intdash/docs/MediaLiveApi.md new file mode 100644 index 0000000..1443443 --- /dev/null +++ b/intdash/docs/MediaLiveApi.md @@ -0,0 +1,172 @@ +# MediaLiveApi + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**connectLive**](MediaLiveApi.md#connectLive) | **GET** /media/ws/edges/{edge_uuid}/fmp4s/{channel} | Get realtime video stream | +| [**connectProjectLive**](MediaLiveApi.md#connectProjectLive) | **GET** /media/projects/{project_uuid}/ws/edges/{edge_uuid}/fmp4s/{channel} | Get Project realtime video stream | + + + +# **connectLive** +> connectLive(edgeUuid, channel) + +Get realtime video stream + +**Deprecated** このエンドポイントの代わりに [`GET /v1/stream`](#operation/Stream) でデータを取得し、WebCodecsを使用して取得したデータをデコードしてください。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaLiveApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaLiveApi apiInstance = new MediaLiveApi(defaultClient); + String edgeUuid = "421fecd4-646b-4ab8-a715-c4b888964b11"; // String | エッジのUUID + Integer channel = 1; // Integer | チャンネル + try { + apiInstance.connectLive(edgeUuid, channel); + } catch (ApiException e) { + System.err.println("Exception when calling MediaLiveApi#connectLive"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **edgeUuid** | **String**| エッジのUUID | | +| **channel** | **Integer**| チャンネル | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **101** | Switching Protocols | - | + + +# **connectProjectLive** +> connectProjectLive(projectUuid, edgeUuid, channel) + +Get Project realtime video stream + +**Deprecated** このエンドポイントの代わりに [`GET /v1/stream`](#operation/Stream) でデータを取得し、WebCodecsを使用して取得したデータをデコードしてください。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaLiveApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaLiveApi apiInstance = new MediaLiveApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String edgeUuid = "421fecd4-646b-4ab8-a715-c4b888964b11"; // String | エッジのUUID + Integer channel = 1; // Integer | チャンネル + try { + apiInstance.connectProjectLive(projectUuid, edgeUuid, channel); + } catch (ApiException e) { + System.err.println("Exception when calling MediaLiveApi#connectProjectLive"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **edgeUuid** | **String**| エッジのUUID | | +| **channel** | **Integer**| チャンネル | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **101** | Switching Protocols | - | + diff --git a/intdash/docs/MediaMeasurement.md b/intdash/docs/MediaMeasurement.md new file mode 100644 index 0000000..0d6c43a --- /dev/null +++ b/intdash/docs/MediaMeasurement.md @@ -0,0 +1,36 @@ + + +# MediaMeasurement + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uuid** | **String** | 計測のUUID | | +|**name** | **String** | 計測の名前 | | +|**description** | **String** | 計測の説明 | | +|**basetime** | **String** | 計測の基準時刻(RFC3339形式) | | +|**basetimeType** | **MediaMeasurementBaseTimeType** | | | +|**edgeUuid** | **String** | エッジのUUID | | +|**duration** | **Long** | 計測時間( `max_elapsed_time` を使用してください) | | +|**maxElapsedTime** | **Long** | 計測時間(マイクロ秒) | [optional] | +|**_protected** | **Boolean** | `true` の場合、計測は保護されています。保護されている計測は削除できません。 保護されている計測を削除したい場合は、まず保護を解除してください。 | | +|**createdAt** | **Date** | 計測の作成日時 | | +|**updatedAt** | **Date** | 計測の最終更新日時 | | +|**processedRatio** | **BigDecimal** | 代わりに `sequences.received_sequence_numbers_ratio` を使用してください。処理済み率を表します。 | | +|**ended** | **Boolean** | 代わりに `sequences.status` を使用してください。エッジにおいてデータの取得が終了しているかどうかを示します。 | | +|**status** | [**StatusEnum**](#StatusEnum) | 代わりに `sequences.status` を使用してください。 計測のステータスを表します: - measuring - 計測中 - resending - 再送中。計測(エッジにおけるデータの取得)は終了しましたが、エッジにデータが残っており、サーバーに再送中です。 - finished - 完了。サーバーへのデータの回収が完了しています。 | | + + + +## Enum: StatusEnum + +| Name | Value | +|---- | -----| +| MEASURING | "measuring" | +| RESENDING | "resending" | +| FINISHED | "finished" | + + + diff --git a/intdash/docs/MediaMeasurementBaseTimeType.md b/intdash/docs/MediaMeasurementBaseTimeType.md new file mode 100644 index 0000000..e746d26 --- /dev/null +++ b/intdash/docs/MediaMeasurementBaseTimeType.md @@ -0,0 +1,23 @@ + + +# MediaMeasurementBaseTimeType + +## Enum + + +* `EDGE_RTC` (value: `"edge_rtc"`) + +* `NTP` (value: `"ntp"`) + +* `GPS` (value: `"gps"`) + +* `API_FIRST_RECEIVED` (value: `"api_first_received"`) + +* `VOLATILE` (value: `"volatile"`) + +* `MANUAL` (value: `"manual"`) + +* `UNDEFINED` (value: `"undefined"`) + + + diff --git a/intdash/docs/MediaVideosApi.md b/intdash/docs/MediaVideosApi.md new file mode 100644 index 0000000..07d3e92 --- /dev/null +++ b/intdash/docs/MediaVideosApi.md @@ -0,0 +1,2180 @@ +# MediaVideosApi + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**cancelCreatingJpeg**](MediaVideosApi.md#cancelCreatingJpeg) | **PUT** /media/videos/{video_uuid}/jpegs/{jpeg_uuid}/cancel_convert | Cancel Creating JPEG | +| [**cancelCreatingMP4**](MediaVideosApi.md#cancelCreatingMP4) | **PUT** /media/videos/{video_uuid}/mp4s/{mp4_uuid}/cancel_convert | Cancel Creating MP4 | +| [**cancelCreatingProjectJpeg**](MediaVideosApi.md#cancelCreatingProjectJpeg) | **PUT** /media/projects/{project_uuid}/videos/{video_uuid}/jpegs/{jpeg_uuid}/cancel_convert | Cancel Creating Project JPEG | +| [**cancelCreatingProjectMP4**](MediaVideosApi.md#cancelCreatingProjectMP4) | **PUT** /media/projects/{project_uuid}/videos/{video_uuid}/mp4s/{mp4_uuid}/cancel_convert | Cancel Creating Project MP4 | +| [**createJpeg**](MediaVideosApi.md#createJpeg) | **POST** /media/videos/{video_uuid}/jpegs | Create JPEG | +| [**createMP4**](MediaVideosApi.md#createMP4) | **POST** /media/videos/{video_uuid}/mp4s | Create MP4 | +| [**createProjectJpeg**](MediaVideosApi.md#createProjectJpeg) | **POST** /media/projects/{project_uuid}/videos/{video_uuid}/jpegs | Create Project JPEG | +| [**createProjectMP4**](MediaVideosApi.md#createProjectMP4) | **POST** /media/projects/{project_uuid}/videos/{video_uuid}/mp4s | Create Project MP4 | +| [**deleteJpeg**](MediaVideosApi.md#deleteJpeg) | **DELETE** /media/videos/{video_uuid}/jpegs/{jpeg_uuid} | Delete JPEG | +| [**deleteMP4**](MediaVideosApi.md#deleteMP4) | **DELETE** /media/videos/{video_uuid}/mp4s/{mp4_uuid} | Delete MP4 | +| [**deleteProjectJpeg**](MediaVideosApi.md#deleteProjectJpeg) | **DELETE** /media/projects/{project_uuid}/videos/{video_uuid}/jpegs/{jpeg_uuid} | Delete Project JPEG | +| [**deleteProjectMP4**](MediaVideosApi.md#deleteProjectMP4) | **DELETE** /media/projects/{project_uuid}/videos/{video_uuid}/mp4s/{mp4_uuid} | Delete Project MP4 | +| [**getJpeg**](MediaVideosApi.md#getJpeg) | **GET** /media/videos/{video_uuid}/jpegs/{jpeg_uuid} | Get JPEG | +| [**getJpegAsZip**](MediaVideosApi.md#getJpegAsZip) | **GET** /media/videos/{video_uuid}/jpegs/{jpeg_uuid}/images/selected.zip | Get JPEG as zip | +| [**getJpegs**](MediaVideosApi.md#getJpegs) | **GET** /media/videos/{video_uuid}/jpegs | List JPEGs | +| [**getMP4**](MediaVideosApi.md#getMP4) | **GET** /media/videos/{video_uuid}/mp4s/{mp4_uuid} | Get MP4 | +| [**getMP4s**](MediaVideosApi.md#getMP4s) | **GET** /media/videos/{video_uuid}/mp4s | List MP4s | +| [**getProjectJpeg**](MediaVideosApi.md#getProjectJpeg) | **GET** /media/projects/{project_uuid}/videos/{video_uuid}/jpegs/{jpeg_uuid} | Get Project JPEG | +| [**getProjectJpegAsZip**](MediaVideosApi.md#getProjectJpegAsZip) | **GET** /media/projects/{project_uuid}/videos/{video_uuid}/jpegs/{jpeg_uuid}/images/selected.zip | Get Project JPEG as zip | +| [**getProjectJpegs**](MediaVideosApi.md#getProjectJpegs) | **GET** /media/projects/{project_uuid}/videos/{video_uuid}/jpegs | List Project JPEGs | +| [**getProjectMP4**](MediaVideosApi.md#getProjectMP4) | **GET** /media/projects/{project_uuid}/videos/{video_uuid}/mp4s/{mp4_uuid} | Get Project MP4 | +| [**getProjectMP4s**](MediaVideosApi.md#getProjectMP4s) | **GET** /media/projects/{project_uuid}/videos/{video_uuid}/mp4s | List Project MP4s | +| [**getProjectVideo**](MediaVideosApi.md#getProjectVideo) | **GET** /media/projects/{project_uuid}/videos/{video_uuid} | Get Project Video | +| [**getProjectVideos**](MediaVideosApi.md#getProjectVideos) | **GET** /media/projects/{project_uuid}/videos | List Project Videos | +| [**getVideo**](MediaVideosApi.md#getVideo) | **GET** /media/videos/{video_uuid} | Get Video | +| [**getVideos**](MediaVideosApi.md#getVideos) | **GET** /media/videos | List Videos | + + + +# **cancelCreatingJpeg** +> Jpeg cancelCreatingJpeg(videoUuid, jpegUuid) + +Cancel Creating JPEG + +(Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)からJPEGデータへの変換をキャンセルします。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaVideosApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaVideosApi apiInstance = new MediaVideosApi(defaultClient); + String videoUuid = "68b91013-47e9-4e68-a965-892549587dfa"; // String | 変換元の動画(video)のUUID + String jpegUuid = "3279bdfb-9079-417e-8f94-ee8126da5933"; // String | JPEGのUUID + try { + Jpeg result = apiInstance.cancelCreatingJpeg(videoUuid, jpegUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaVideosApi#cancelCreatingJpeg"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **videoUuid** | **String**| 変換元の動画(video)のUUID | | +| **jpegUuid** | **String**| JPEGのUUID | | + +### Return type + +[**Jpeg**](Jpeg.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad Request | - | + + +# **cancelCreatingMP4** +> MP4 cancelCreatingMP4(videoUuid, mp4Uuid) + +Cancel Creating MP4 + +(Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)からMP4データへの変換をキャンセルします。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaVideosApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaVideosApi apiInstance = new MediaVideosApi(defaultClient); + String videoUuid = "68b91013-47e9-4e68-a965-892549587dfa"; // String | 変換元の動画(video)のUUID + String mp4Uuid = "34cd9cc6-4c62-4310-bbfd-04541f59ca0f"; // String | MP4のUUID + try { + MP4 result = apiInstance.cancelCreatingMP4(videoUuid, mp4Uuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaVideosApi#cancelCreatingMP4"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **videoUuid** | **String**| 変換元の動画(video)のUUID | | +| **mp4Uuid** | **String**| MP4のUUID | | + +### Return type + +[**MP4**](MP4.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad Request | - | + + +# **cancelCreatingProjectJpeg** +> Jpeg cancelCreatingProjectJpeg(projectUuid, videoUuid, jpegUuid) + +Cancel Creating Project JPEG + +動画(video)からJPEGデータへの変換をキャンセルします。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaVideosApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaVideosApi apiInstance = new MediaVideosApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String videoUuid = "68b91013-47e9-4e68-a965-892549587dfa"; // String | 変換元の動画(video)のUUID + String jpegUuid = "3279bdfb-9079-417e-8f94-ee8126da5933"; // String | JPEGのUUID + try { + Jpeg result = apiInstance.cancelCreatingProjectJpeg(projectUuid, videoUuid, jpegUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaVideosApi#cancelCreatingProjectJpeg"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **videoUuid** | **String**| 変換元の動画(video)のUUID | | +| **jpegUuid** | **String**| JPEGのUUID | | + +### Return type + +[**Jpeg**](Jpeg.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad Request | - | + + +# **cancelCreatingProjectMP4** +> MP4 cancelCreatingProjectMP4(projectUuid, videoUuid, mp4Uuid) + +Cancel Creating Project MP4 + +動画(video)からMP4データへの変換をキャンセルします。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaVideosApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaVideosApi apiInstance = new MediaVideosApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String videoUuid = "68b91013-47e9-4e68-a965-892549587dfa"; // String | 変換元の動画(video)のUUID + String mp4Uuid = "34cd9cc6-4c62-4310-bbfd-04541f59ca0f"; // String | MP4のUUID + try { + MP4 result = apiInstance.cancelCreatingProjectMP4(projectUuid, videoUuid, mp4Uuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaVideosApi#cancelCreatingProjectMP4"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **videoUuid** | **String**| 変換元の動画(video)のUUID | | +| **mp4Uuid** | **String**| MP4のUUID | | + +### Return type + +[**MP4**](MP4.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad Request | - | + + +# **createJpeg** +> Jpeg createJpeg(videoUuid, createJpegRequest) + +Create JPEG + +(Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)を変換してJPEGデータを作成します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaVideosApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaVideosApi apiInstance = new MediaVideosApi(defaultClient); + String videoUuid = "68b91013-47e9-4e68-a965-892549587dfa"; // String | 変換元の動画(video)のUUID + CreateJpegRequest createJpegRequest = new CreateJpegRequest(); // CreateJpegRequest | + try { + Jpeg result = apiInstance.createJpeg(videoUuid, createJpegRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaVideosApi#createJpeg"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **videoUuid** | **String**| 変換元の動画(video)のUUID | | +| **createJpegRequest** | [**CreateJpegRequest**](CreateJpegRequest.md)| | [optional] | + +### Return type + +[**Jpeg**](Jpeg.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | +| **400** | Bad Request | - | + + +# **createMP4** +> MP4 createMP4(videoUuid, createMP4Request) + +Create MP4 + +(Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)を変換してMP4データを作成します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaVideosApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaVideosApi apiInstance = new MediaVideosApi(defaultClient); + String videoUuid = "68b91013-47e9-4e68-a965-892549587dfa"; // String | 変換元の動画(video)のUUID + CreateMP4Request createMP4Request = new CreateMP4Request(); // CreateMP4Request | + try { + MP4 result = apiInstance.createMP4(videoUuid, createMP4Request); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaVideosApi#createMP4"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **videoUuid** | **String**| 変換元の動画(video)のUUID | | +| **createMP4Request** | [**CreateMP4Request**](CreateMP4Request.md)| | [optional] | + +### Return type + +[**MP4**](MP4.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | +| **400** | Bad Request | - | + + +# **createProjectJpeg** +> Jpeg createProjectJpeg(projectUuid, videoUuid, createJpegRequest) + +Create Project JPEG + +動画(video)を変換してJPEGデータを作成します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaVideosApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaVideosApi apiInstance = new MediaVideosApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String videoUuid = "68b91013-47e9-4e68-a965-892549587dfa"; // String | 変換元の動画(video)のUUID + CreateJpegRequest createJpegRequest = new CreateJpegRequest(); // CreateJpegRequest | + try { + Jpeg result = apiInstance.createProjectJpeg(projectUuid, videoUuid, createJpegRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaVideosApi#createProjectJpeg"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **videoUuid** | **String**| 変換元の動画(video)のUUID | | +| **createJpegRequest** | [**CreateJpegRequest**](CreateJpegRequest.md)| | [optional] | + +### Return type + +[**Jpeg**](Jpeg.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | +| **400** | Bad Request | - | + + +# **createProjectMP4** +> MP4 createProjectMP4(projectUuid, videoUuid, createMP4Request) + +Create Project MP4 + +動画(video)を変換してMP4データを作成します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaVideosApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaVideosApi apiInstance = new MediaVideosApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String videoUuid = "68b91013-47e9-4e68-a965-892549587dfa"; // String | 変換元の動画(video)のUUID + CreateMP4Request createMP4Request = new CreateMP4Request(); // CreateMP4Request | + try { + MP4 result = apiInstance.createProjectMP4(projectUuid, videoUuid, createMP4Request); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaVideosApi#createProjectMP4"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **videoUuid** | **String**| 変換元の動画(video)のUUID | | +| **createMP4Request** | [**CreateMP4Request**](CreateMP4Request.md)| | [optional] | + +### Return type + +[**MP4**](MP4.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | +| **400** | Bad Request | - | + + +# **deleteJpeg** +> deleteJpeg(videoUuid, jpegUuid) + +Delete JPEG + +(Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)から変換されたJPEGデータを削除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaVideosApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaVideosApi apiInstance = new MediaVideosApi(defaultClient); + String videoUuid = "68b91013-47e9-4e68-a965-892549587dfa"; // String | 変換元の動画(video)のUUID + String jpegUuid = "3279bdfb-9079-417e-8f94-ee8126da5933"; // String | JPEGのUUID + try { + apiInstance.deleteJpeg(videoUuid, jpegUuid); + } catch (ApiException e) { + System.err.println("Exception when calling MediaVideosApi#deleteJpeg"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **videoUuid** | **String**| 変換元の動画(video)のUUID | | +| **jpegUuid** | **String**| JPEGのUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **deleteMP4** +> deleteMP4(videoUuid, mp4Uuid) + +Delete MP4 + +(Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)から変換されたMP4データを削除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaVideosApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaVideosApi apiInstance = new MediaVideosApi(defaultClient); + String videoUuid = "68b91013-47e9-4e68-a965-892549587dfa"; // String | 変換元の動画(video)のUUID + String mp4Uuid = "34cd9cc6-4c62-4310-bbfd-04541f59ca0f"; // String | MP4のUUID + try { + apiInstance.deleteMP4(videoUuid, mp4Uuid); + } catch (ApiException e) { + System.err.println("Exception when calling MediaVideosApi#deleteMP4"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **videoUuid** | **String**| 変換元の動画(video)のUUID | | +| **mp4Uuid** | **String**| MP4のUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **deleteProjectJpeg** +> deleteProjectJpeg(projectUuid, videoUuid, jpegUuid) + +Delete Project JPEG + +動画(video)から変換されたJPEGデータを削除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaVideosApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaVideosApi apiInstance = new MediaVideosApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String videoUuid = "68b91013-47e9-4e68-a965-892549587dfa"; // String | 変換元の動画(video)のUUID + String jpegUuid = "3279bdfb-9079-417e-8f94-ee8126da5933"; // String | JPEGのUUID + try { + apiInstance.deleteProjectJpeg(projectUuid, videoUuid, jpegUuid); + } catch (ApiException e) { + System.err.println("Exception when calling MediaVideosApi#deleteProjectJpeg"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **videoUuid** | **String**| 変換元の動画(video)のUUID | | +| **jpegUuid** | **String**| JPEGのUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **deleteProjectMP4** +> deleteProjectMP4(projectUuid, videoUuid, mp4Uuid) + +Delete Project MP4 + +動画(video)から変換されたMP4データを削除します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaVideosApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaVideosApi apiInstance = new MediaVideosApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String videoUuid = "68b91013-47e9-4e68-a965-892549587dfa"; // String | 変換元の動画(video)のUUID + String mp4Uuid = "34cd9cc6-4c62-4310-bbfd-04541f59ca0f"; // String | MP4のUUID + try { + apiInstance.deleteProjectMP4(projectUuid, videoUuid, mp4Uuid); + } catch (ApiException e) { + System.err.println("Exception when calling MediaVideosApi#deleteProjectMP4"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **videoUuid** | **String**| 変換元の動画(video)のUUID | | +| **mp4Uuid** | **String**| MP4のUUID | | + +### Return type + +null (empty response body) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | + + +# **getJpeg** +> Jpeg getJpeg(videoUuid, jpegUuid) + +Get JPEG + +(Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)から変換されたJPEGデータの情報を取得します。 JPEGファイル自体を取得するには、`GET /media/videos/{video_uuid}/jpegs/{jpeg_uuid}/images/selected.zip` を使用してください。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaVideosApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaVideosApi apiInstance = new MediaVideosApi(defaultClient); + String videoUuid = "68b91013-47e9-4e68-a965-892549587dfa"; // String | 変換元の動画(video)のUUID + String jpegUuid = "3279bdfb-9079-417e-8f94-ee8126da5933"; // String | JPEGのUUID + try { + Jpeg result = apiInstance.getJpeg(videoUuid, jpegUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaVideosApi#getJpeg"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **videoUuid** | **String**| 変換元の動画(video)のUUID | | +| **jpegUuid** | **String**| JPEGのUUID | | + +### Return type + +[**Jpeg**](Jpeg.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getJpegAsZip** +> File getJpegAsZip(videoUuid, jpegUuid, indexes) + +Get JPEG as zip + +(Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) JPEGデータをZIPファイルにまとめた形で取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaVideosApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaVideosApi apiInstance = new MediaVideosApi(defaultClient); + String videoUuid = "68b91013-47e9-4e68-a965-892549587dfa"; // String | 変換元の動画(video)のUUID + String jpegUuid = "3279bdfb-9079-417e-8f94-ee8126da5933"; // String | JPEGのUUID + List indexes = Arrays.asList(); // List | 取得したいJPEGのインデックス番号(最初の番号は1)。指定がない場合はすべて取得します。 `indexes` パラメーターを複数回指定することで、複数のJPEGファイルを取得することができます。 + try { + File result = apiInstance.getJpegAsZip(videoUuid, jpegUuid, indexes); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaVideosApi#getJpegAsZip"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **videoUuid** | **String**| 変換元の動画(video)のUUID | | +| **jpegUuid** | **String**| JPEGのUUID | | +| **indexes** | [**List<Integer>**](Integer.md)| 取得したいJPEGのインデックス番号(最初の番号は1)。指定がない場合はすべて取得します。 `indexes` パラメーターを複数回指定することで、複数のJPEGファイルを取得することができます。 | [optional] | + +### Return type + +[**File**](File.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/zip + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getJpegs** +> Jpegs getJpegs(videoUuid) + +List JPEGs + +(Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)から変換されたJPEGデータのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaVideosApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaVideosApi apiInstance = new MediaVideosApi(defaultClient); + String videoUuid = "68b91013-47e9-4e68-a965-892549587dfa"; // String | 変換元の動画(video)のUUID + try { + Jpegs result = apiInstance.getJpegs(videoUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaVideosApi#getJpegs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **videoUuid** | **String**| 変換元の動画(video)のUUID | | + +### Return type + +[**Jpegs**](Jpegs.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getMP4** +> MP4 getMP4(videoUuid, mp4Uuid) + +Get MP4 + +(Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)から変換されたMP4データの情報を取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaVideosApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaVideosApi apiInstance = new MediaVideosApi(defaultClient); + String videoUuid = "68b91013-47e9-4e68-a965-892549587dfa"; // String | 変換元の動画(video)のUUID + String mp4Uuid = "34cd9cc6-4c62-4310-bbfd-04541f59ca0f"; // String | MP4のUUID + try { + MP4 result = apiInstance.getMP4(videoUuid, mp4Uuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaVideosApi#getMP4"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **videoUuid** | **String**| 変換元の動画(video)のUUID | | +| **mp4Uuid** | **String**| MP4のUUID | | + +### Return type + +[**MP4**](MP4.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getMP4s** +> MP4s getMP4s(videoUuid) + +List MP4s + +(Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)から変換されたMP4データのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaVideosApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaVideosApi apiInstance = new MediaVideosApi(defaultClient); + String videoUuid = "68b91013-47e9-4e68-a965-892549587dfa"; // String | 変換元の動画(video)のUUID + try { + MP4s result = apiInstance.getMP4s(videoUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaVideosApi#getMP4s"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **videoUuid** | **String**| 変換元の動画(video)のUUID | | + +### Return type + +[**MP4s**](MP4s.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getProjectJpeg** +> Jpeg getProjectJpeg(projectUuid, videoUuid, jpegUuid) + +Get Project JPEG + +動画(video)から変換されたJPEGデータの情報を取得します。 JPEGファイル自体を取得するには、`GET /media/videos/{video_uuid}/jpegs/{jpeg_uuid}/images/selected.zip` を使用してください。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaVideosApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaVideosApi apiInstance = new MediaVideosApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String videoUuid = "68b91013-47e9-4e68-a965-892549587dfa"; // String | 変換元の動画(video)のUUID + String jpegUuid = "3279bdfb-9079-417e-8f94-ee8126da5933"; // String | JPEGのUUID + try { + Jpeg result = apiInstance.getProjectJpeg(projectUuid, videoUuid, jpegUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaVideosApi#getProjectJpeg"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **videoUuid** | **String**| 変換元の動画(video)のUUID | | +| **jpegUuid** | **String**| JPEGのUUID | | + +### Return type + +[**Jpeg**](Jpeg.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getProjectJpegAsZip** +> File getProjectJpegAsZip(projectUuid, videoUuid, jpegUuid, indexes) + +Get Project JPEG as zip + +JPEGデータをZIPファイルにまとめた形で取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaVideosApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaVideosApi apiInstance = new MediaVideosApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String videoUuid = "68b91013-47e9-4e68-a965-892549587dfa"; // String | 変換元の動画(video)のUUID + String jpegUuid = "3279bdfb-9079-417e-8f94-ee8126da5933"; // String | JPEGのUUID + List indexes = Arrays.asList(); // List | 取得したいJPEGのインデックス番号(最初の番号は1)。指定がない場合はすべて取得します。 `indexes` パラメーターを複数回指定することで、複数のJPEGファイルを取得することができます。 + try { + File result = apiInstance.getProjectJpegAsZip(projectUuid, videoUuid, jpegUuid, indexes); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaVideosApi#getProjectJpegAsZip"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **videoUuid** | **String**| 変換元の動画(video)のUUID | | +| **jpegUuid** | **String**| JPEGのUUID | | +| **indexes** | [**List<Integer>**](Integer.md)| 取得したいJPEGのインデックス番号(最初の番号は1)。指定がない場合はすべて取得します。 `indexes` パラメーターを複数回指定することで、複数のJPEGファイルを取得することができます。 | [optional] | + +### Return type + +[**File**](File.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/zip + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getProjectJpegs** +> Jpegs getProjectJpegs(projectUuid, videoUuid) + +List Project JPEGs + +動画(video)から変換されたJPEGデータのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaVideosApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaVideosApi apiInstance = new MediaVideosApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String videoUuid = "68b91013-47e9-4e68-a965-892549587dfa"; // String | 変換元の動画(video)のUUID + try { + Jpegs result = apiInstance.getProjectJpegs(projectUuid, videoUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaVideosApi#getProjectJpegs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **videoUuid** | **String**| 変換元の動画(video)のUUID | | + +### Return type + +[**Jpegs**](Jpegs.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getProjectMP4** +> MP4 getProjectMP4(projectUuid, videoUuid, mp4Uuid) + +Get Project MP4 + +動画(video)から変換されたMP4データの情報を取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaVideosApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaVideosApi apiInstance = new MediaVideosApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String videoUuid = "68b91013-47e9-4e68-a965-892549587dfa"; // String | 変換元の動画(video)のUUID + String mp4Uuid = "34cd9cc6-4c62-4310-bbfd-04541f59ca0f"; // String | MP4のUUID + try { + MP4 result = apiInstance.getProjectMP4(projectUuid, videoUuid, mp4Uuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaVideosApi#getProjectMP4"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **videoUuid** | **String**| 変換元の動画(video)のUUID | | +| **mp4Uuid** | **String**| MP4のUUID | | + +### Return type + +[**MP4**](MP4.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getProjectMP4s** +> MP4s getProjectMP4s(projectUuid, videoUuid) + +List Project MP4s + +動画(video)から変換されたMP4データのリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaVideosApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaVideosApi apiInstance = new MediaVideosApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String videoUuid = "68b91013-47e9-4e68-a965-892549587dfa"; // String | 変換元の動画(video)のUUID + try { + MP4s result = apiInstance.getProjectMP4s(projectUuid, videoUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaVideosApi#getProjectMP4s"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **videoUuid** | **String**| 変換元の動画(video)のUUID | | + +### Return type + +[**MP4s**](MP4s.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getProjectVideo** +> Video getProjectVideo(projectUuid, videoUuid) + +Get Project Video + +動画を取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaVideosApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaVideosApi apiInstance = new MediaVideosApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String videoUuid = "68b91013-47e9-4e68-a965-892549587dfa"; // String | 変換元の動画(video)のUUID + try { + Video result = apiInstance.getProjectVideo(projectUuid, videoUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaVideosApi#getProjectVideo"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **videoUuid** | **String**| 変換元の動画(video)のUUID | | + +### Return type + +[**Video**](Video.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getProjectVideos** +> Videos getProjectVideos(projectUuid, uuid, measUuid, channel, sort, page, perPage) + +List Project Videos + +動画(video)のリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaVideosApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaVideosApi apiInstance = new MediaVideosApi(defaultClient); + String projectUuid = "75c55669-b2ab-4f14-a871-8571c6afa1ef"; // String | プロジェクトのUUID + String uuid = "3699e2b9-5d87-4dbd-9b85-098e7dfaee76"; // String | 動画(video)のUUID + String measUuid = "3699e2b9-5d87-4dbd-9b85-098e7dfaee76"; // String | 計測のUUID + Integer channel = 1; // Integer | チャンネル + String sort = "create_at+"; // String | 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。例えば、 `name-` を指定すると、nameによる降順で出力されます。 - `channel` - `created_at` - `updated_at` + Integer page = 1; // Integer | 取得するページ番号 + Integer perPage = 100; // Integer | 1回のリクエストで取得する件数 + try { + Videos result = apiInstance.getProjectVideos(projectUuid, uuid, measUuid, channel, sort, page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaVideosApi#getProjectVideos"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **projectUuid** | **String**| プロジェクトのUUID | | +| **uuid** | **String**| 動画(video)のUUID | [optional] | +| **measUuid** | **String**| 計測のUUID | [optional] | +| **channel** | **Integer**| チャンネル | [optional] | +| **sort** | **String**| 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。例えば、 `name-` を指定すると、nameによる降順で出力されます。 - `channel` - `created_at` - `updated_at` | [optional] [default to create_at+] | +| **page** | **Integer**| 取得するページ番号 | [optional] [default to 1] | +| **perPage** | **Integer**| 1回のリクエストで取得する件数 | [optional] [default to 100] | + +### Return type + +[**Videos**](Videos.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad Request | - | + + +# **getVideo** +> Video getVideo(videoUuid) + +Get Video + +(Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画を取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaVideosApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaVideosApi apiInstance = new MediaVideosApi(defaultClient); + String videoUuid = "68b91013-47e9-4e68-a965-892549587dfa"; // String | 変換元の動画(video)のUUID + try { + Video result = apiInstance.getVideo(videoUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaVideosApi#getVideo"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **videoUuid** | **String**| 変換元の動画(video)のUUID | | + +### Return type + +[**Video**](Video.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +# **getVideos** +> Videos getVideos(uuid, measUuid, channel, sort, page, perPage) + +List Videos + +(Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)のリストを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.MediaVideosApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + MediaVideosApi apiInstance = new MediaVideosApi(defaultClient); + String uuid = "3699e2b9-5d87-4dbd-9b85-098e7dfaee76"; // String | 動画(video)のUUID + String measUuid = "3699e2b9-5d87-4dbd-9b85-098e7dfaee76"; // String | 計測のUUID + Integer channel = 1; // Integer | チャンネル + String sort = "create_at+"; // String | 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。例えば、 `name-` を指定すると、nameによる降順で出力されます。 - `channel` - `created_at` - `updated_at` + Integer page = 1; // Integer | 取得するページ番号 + Integer perPage = 100; // Integer | 1回のリクエストで取得する件数 + try { + Videos result = apiInstance.getVideos(uuid, measUuid, channel, sort, page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MediaVideosApi#getVideos"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **uuid** | **String**| 動画(video)のUUID | [optional] | +| **measUuid** | **String**| 計測のUUID | [optional] | +| **channel** | **Integer**| チャンネル | [optional] | +| **sort** | **String**| 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。例えば、 `name-` を指定すると、nameによる降順で出力されます。 - `channel` - `created_at` - `updated_at` | [optional] [default to create_at+] | +| **page** | **Integer**| 取得するページ番号 | [optional] [default to 1] | +| **perPage** | **Integer**| 1回のリクエストで取得する件数 | [optional] [default to 100] | + +### Return type + +[**Videos**](Videos.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad Request | - | + diff --git a/intdash/docs/Member.md b/intdash/docs/Member.md new file mode 100644 index 0000000..1f03c63 --- /dev/null +++ b/intdash/docs/Member.md @@ -0,0 +1,20 @@ + + +# Member + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**userUuid** | **String** | メンバーのユーザーUUID | | +|**name** | **String** | メンバーの名前 | | +|**emails** | [**List<UserEmail>**](UserEmail.md) | | | +|**inheritedRoleUuids** | **List<String>** | 親グループから継承されたメンバーのロールUUID | | +|**roleUuids** | **List<String>** | メンバーのロールUUID | | +|**isOwner** | **Boolean** | `true` の場合、このメンバーはオーナーです。 | | +|**createdAt** | **Date** | 作成日時 | | +|**updatedAt** | **Date** | 最終更新日時 | | + + + diff --git a/intdash/docs/Members.md b/intdash/docs/Members.md new file mode 100644 index 0000000..c3fbb06 --- /dev/null +++ b/intdash/docs/Members.md @@ -0,0 +1,14 @@ + + +# Members + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<Member>**](Member.md) | | | +|**page** | [**AuthPage**](AuthPage.md) | | | + + + diff --git a/intdash/docs/OAuth2Client.md b/intdash/docs/OAuth2Client.md new file mode 100644 index 0000000..3294f4c --- /dev/null +++ b/intdash/docs/OAuth2Client.md @@ -0,0 +1,32 @@ + + +# OAuth2Client + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**clientId** | **String** | OAuth2クライアントID | | +|**name** | **String** | 名前 | | +|**grantTypes** | **List<OAuth2ClientGrantType>** | グラントタイプ | | +|**tokenEndpointAuthMethod** | [**TokenEndpointAuthMethodEnum**](#TokenEndpointAuthMethodEnum) | トークンエンドポイントの認証方式 | | +|**redirectUris** | **List<String>** | 認可後のリダイレクト先URI | | +|**responseTypes** | **List<OAuth2ClientResponseType>** | レスポンスタイプ | | +|**scopes** | **List<String>** | スコープ | | +|**audiences** | **List<String>** | オーディエンス | | +|**tlsClientAuthSubjectDn** | **String** | TLSクライアント認証のサブジェクトDN | | + + + +## Enum: TokenEndpointAuthMethodEnum + +| Name | Value | +|---- | -----| +| NONE | "none" | +| CLIENT_SECRET_POST | "client_secret_post" | +| CLIENT_SECRET_BASIC | "client_secret_basic" | +| TLS_CLIENT_AUTH | "tls_client_auth" | + + + diff --git a/intdash/docs/OAuth2ClientGrantType.md b/intdash/docs/OAuth2ClientGrantType.md new file mode 100644 index 0000000..69762ec --- /dev/null +++ b/intdash/docs/OAuth2ClientGrantType.md @@ -0,0 +1,15 @@ + + +# OAuth2ClientGrantType + +## Enum + + +* `AUTHORIZATION_CODE` (value: `"authorization_code"`) + +* `CLIENT_CREDENTIALS` (value: `"client_credentials"`) + +* `REFRESH_TOKEN` (value: `"refresh_token"`) + + + diff --git a/intdash/docs/OAuth2ClientResponseType.md b/intdash/docs/OAuth2ClientResponseType.md new file mode 100644 index 0000000..7e14348 --- /dev/null +++ b/intdash/docs/OAuth2ClientResponseType.md @@ -0,0 +1,11 @@ + + +# OAuth2ClientResponseType + +## Enum + + +* `CODE` (value: `"code"`) + + + diff --git a/intdash/docs/OAuth2ClientWithSecret.md b/intdash/docs/OAuth2ClientWithSecret.md new file mode 100644 index 0000000..23336c1 --- /dev/null +++ b/intdash/docs/OAuth2ClientWithSecret.md @@ -0,0 +1,22 @@ + + +# OAuth2ClientWithSecret + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**clientId** | **String** | OAuth2クライアントID | | +|**name** | **String** | 名前 | | +|**grantTypes** | **List<String>** | グラントタイプ | | +|**tokenEndpointAuthMethod** | **String** | トークンエンドポイントの認証方式 | | +|**redirectUris** | **List<String>** | 認可後のリダイレクト先URI | | +|**responseTypes** | **List<String>** | レスポンスタイプ | | +|**scopes** | **List<String>** | スコープ | | +|**audiences** | **List<String>** | オーディエンス | | +|**tlsClientAuthSubjectDn** | **String** | TLSクライアント認証のサブジェクトDN | | +|**clientSecret** | **String** | token_endpoint_auth_methodが `none` 以外だったら required | [optional] | + + + diff --git a/intdash/docs/OAuth2ClientWithSecretAllOf.md b/intdash/docs/OAuth2ClientWithSecretAllOf.md new file mode 100644 index 0000000..8f44b71 --- /dev/null +++ b/intdash/docs/OAuth2ClientWithSecretAllOf.md @@ -0,0 +1,22 @@ + + +# OAuth2ClientWithSecretAllOf + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**clientId** | **String** | OAuth2クライアントID | [optional] | +|**clientSecret** | **String** | token_endpoint_auth_methodが `none` 以外だったら required | [optional] | +|**name** | **String** | 名前 | [optional] | +|**grantTypes** | **List<String>** | グラントタイプ | [optional] | +|**tokenEndpointAuthMethod** | **String** | トークンエンドポイントの認証方式 | [optional] | +|**redirectUris** | **List<String>** | 認可後のリダイレクト先URI | [optional] | +|**responseTypes** | **List<String>** | レスポンスタイプ | [optional] | +|**scopes** | **List<String>** | スコープ | [optional] | +|**audiences** | **List<String>** | オーディエンス | [optional] | +|**tlsClientAuthSubjectDn** | **String** | TLSクライアント認証のサブジェクトDN | [optional] | + + + diff --git a/intdash/docs/OAuth2Clients.md b/intdash/docs/OAuth2Clients.md new file mode 100644 index 0000000..4a0a526 --- /dev/null +++ b/intdash/docs/OAuth2Clients.md @@ -0,0 +1,14 @@ + + +# OAuth2Clients + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<OAuth2Client>**](OAuth2Client.md) | | | +|**page** | [**AuthPage**](AuthPage.md) | | | + + + diff --git a/intdash/docs/OAuth2JWKs.md b/intdash/docs/OAuth2JWKs.md new file mode 100644 index 0000000..4462065 --- /dev/null +++ b/intdash/docs/OAuth2JWKs.md @@ -0,0 +1,13 @@ + + +# OAuth2JWKs + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**keys** | [**List<JSONWebKey>**](JSONWebKey.md) | | [optional] | + + + diff --git a/intdash/docs/Page.md b/intdash/docs/Page.md new file mode 100644 index 0000000..a89cebb --- /dev/null +++ b/intdash/docs/Page.md @@ -0,0 +1,13 @@ + + +# Page + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**totalCount** | **Long** | 取得対象の総件数 | | + + + diff --git a/intdash/docs/PageDetail.md b/intdash/docs/PageDetail.md new file mode 100644 index 0000000..956cbcf --- /dev/null +++ b/intdash/docs/PageDetail.md @@ -0,0 +1,17 @@ + + +# PageDetail + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**totalCount** | **Long** | 取得対象の総件数 | | +|**first** | **Boolean** | `true` の場合、現在のページが最初のページです。 | | +|**last** | **Boolean** | `true` の場合、現在のページが最後のページです。 | | +|**next** | **String** | 次のページのパス。現在のページが最後のページの場合は空文字列です。 | | +|**previous** | **String** | 次のページのパス。現在のページが最後のページの場合は空文字列です。 | | + + + diff --git a/intdash/docs/PageV2.md b/intdash/docs/PageV2.md new file mode 100644 index 0000000..19e7e6a --- /dev/null +++ b/intdash/docs/PageV2.md @@ -0,0 +1,13 @@ + + +# PageV2 + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**totalCount** | **Long** | 取得対象の総件数 | | + + + diff --git a/intdash/docs/PatchEdgeRequest.md b/intdash/docs/PatchEdgeRequest.md new file mode 100644 index 0000000..dabbc00 --- /dev/null +++ b/intdash/docs/PatchEdgeRequest.md @@ -0,0 +1,15 @@ + + +# PatchEdgeRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | エッジの名前 | [optional] | +|**nickname** | **String** | エッジの表示名 | [optional] | +|**description** | **String** | エッジの説明 | [optional] | + + + diff --git a/intdash/docs/PatchEmailRequest.md b/intdash/docs/PatchEmailRequest.md new file mode 100644 index 0000000..e57b3ec --- /dev/null +++ b/intdash/docs/PatchEmailRequest.md @@ -0,0 +1,13 @@ + + +# PatchEmailRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**address** | **String** | メールアドレス | | + + + diff --git a/intdash/docs/PatchUserRequest.md b/intdash/docs/PatchUserRequest.md new file mode 100644 index 0000000..a775752 --- /dev/null +++ b/intdash/docs/PatchUserRequest.md @@ -0,0 +1,15 @@ + + +# PatchUserRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | ユーザーの名前 | [optional] | +|**nickname** | **String** | ユーザーの表示名 | [optional] | +|**description** | **String** | ユーザーの説明 | [optional] | + + + diff --git a/intdash/docs/Playlist.md b/intdash/docs/Playlist.md new file mode 100644 index 0000000..c6036f6 --- /dev/null +++ b/intdash/docs/Playlist.md @@ -0,0 +1,14 @@ + + +# Playlist + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**playlist** | **String** | プレイリスト | | +|**playlistWithEndlistTag** | **String** | EXT-X-ENDLISTタグが付いたプレイリスト | | + + + diff --git a/intdash/docs/Project.md b/intdash/docs/Project.md new file mode 100644 index 0000000..40bdfa2 --- /dev/null +++ b/intdash/docs/Project.md @@ -0,0 +1,17 @@ + + +# Project + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uuid** | **String** | プロジェクトのUUID | | +|**parentGroupUuid** | **String** | 親グループのUUID | [optional] | +|**name** | **String** | プロジェクトの名前 | | +|**createdAt** | **Date** | 作成日時 | | +|**updatedAt** | **Date** | 最終更新日時 | | + + + diff --git a/intdash/docs/ProjectEdge.md b/intdash/docs/ProjectEdge.md new file mode 100644 index 0000000..b12412e --- /dev/null +++ b/intdash/docs/ProjectEdge.md @@ -0,0 +1,17 @@ + + +# ProjectEdge + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**edgeUuid** | **String** | エッジのUUID | | +|**name** | **String** | エッジの名前 | | +|**nickname** | **String** | プロジェクトにおけるエッジのニックネーム | | +|**createdAt** | **Date** | 作成日時 | | +|**updatedAt** | **Date** | 最終更新日時 | | + + + diff --git a/intdash/docs/ProjectEdges.md b/intdash/docs/ProjectEdges.md new file mode 100644 index 0000000..3270c24 --- /dev/null +++ b/intdash/docs/ProjectEdges.md @@ -0,0 +1,14 @@ + + +# ProjectEdges + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<ProjectEdge>**](ProjectEdge.md) | | | +|**page** | [**AuthPage**](AuthPage.md) | | | + + + diff --git a/intdash/docs/Projects.md b/intdash/docs/Projects.md new file mode 100644 index 0000000..0ad27e7 --- /dev/null +++ b/intdash/docs/Projects.md @@ -0,0 +1,14 @@ + + +# Projects + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<Project>**](Project.md) | | | +|**page** | [**AuthPage**](AuthPage.md) | | [optional] | + + + diff --git a/intdash/docs/Role.md b/intdash/docs/Role.md new file mode 100644 index 0000000..141ee7b --- /dev/null +++ b/intdash/docs/Role.md @@ -0,0 +1,17 @@ + + +# Role + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uuid** | **String** | ロールのUUID | | +|**name** | **String** | ロールの名前 | | +|**scopes** | [**List<Scope>**](Scope.md) | ロールのスコープ | | +|**createdAt** | **Date** | 作成日時 | | +|**updatedAt** | **Date** | 最終更新日時 | | + + + diff --git a/intdash/docs/Roles.md b/intdash/docs/Roles.md new file mode 100644 index 0000000..3fdff23 --- /dev/null +++ b/intdash/docs/Roles.md @@ -0,0 +1,14 @@ + + +# Roles + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<Role>**](Role.md) | | | +|**page** | [**AuthPage**](AuthPage.md) | | | + + + diff --git a/intdash/docs/Scope.md b/intdash/docs/Scope.md new file mode 100644 index 0000000..5e63ce3 --- /dev/null +++ b/intdash/docs/Scope.md @@ -0,0 +1,19 @@ + + +# Scope + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uuid** | **String** | スコープのUUID | | +|**name** | **String** | スコープの名前 | | +|**allowedEndpoints** | [**List<AllowedEndpoint>**](AllowedEndpoint.md) | 許可されているエンドポイント | | +|**allowedIscpMessages** | [**List<AllowedISCPMessage>**](AllowedISCPMessage.md) | 許可されているiSCPメッセージ | | +|**deniedEndpoints** | [**List<DeniedEndpoint>**](DeniedEndpoint.md) | 拒否されているエンドポイント | | +|**createdAt** | **Date** | 作成日時 | | +|**updatedAt** | **Date** | 最終更新日時 | | + + + diff --git a/intdash/docs/Scopes.md b/intdash/docs/Scopes.md new file mode 100644 index 0000000..db71e7c --- /dev/null +++ b/intdash/docs/Scopes.md @@ -0,0 +1,14 @@ + + +# Scopes + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<Scope>**](Scope.md) | | | +|**page** | [**AuthPage**](AuthPage.md) | | | + + + diff --git a/intdash/docs/SequenceSummary.md b/intdash/docs/SequenceSummary.md new file mode 100644 index 0000000..c018240 --- /dev/null +++ b/intdash/docs/SequenceSummary.md @@ -0,0 +1,13 @@ + + +# SequenceSummary + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **String** | 計測のステータス | | + + + diff --git a/intdash/docs/Signal.md b/intdash/docs/Signal.md new file mode 100644 index 0000000..3e02399 --- /dev/null +++ b/intdash/docs/Signal.md @@ -0,0 +1,23 @@ + + +# Signal + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uuid** | **String** | 信号定義のUUID | | +|**label** | **String** | 信号定義のラベル | | +|**description** | **String** | 信号定義の説明 | | +|**dataType** | **Integer** | データタイプ | | +|**dataId** | **String** | データID | | +|**channel** | **Integer** | チャンネル | | +|**conversion** | [**SignalConversion**](SignalConversion.md) | | | +|**display** | [**SignalDisplay**](SignalDisplay.md) | | | +|**hash** | **String** | 信号定義のハッシュ値 | | +|**createdAt** | **String** | 信号定義の作成日時 | | +|**updatedAt** | **String** | 信号定義の最終更新日時 | | + + + diff --git a/intdash/docs/SignalConversion.md b/intdash/docs/SignalConversion.md new file mode 100644 index 0000000..e699940 --- /dev/null +++ b/intdash/docs/SignalConversion.md @@ -0,0 +1,14 @@ + + +# SignalConversion + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **SignalConversionOptionType** | | | +|**options** | [**SignalConversionOptionSubString**](SignalConversionOptionSubString.md) | | | + + + diff --git a/intdash/docs/SignalConversionCSV.md b/intdash/docs/SignalConversionCSV.md new file mode 100644 index 0000000..0a1ce79 --- /dev/null +++ b/intdash/docs/SignalConversionCSV.md @@ -0,0 +1,14 @@ + + +# SignalConversionCSV + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **SignalConversionOptionType** | | | +|**options** | [**SignalConversionOptionCSV**](SignalConversionOptionCSV.md) | | | + + + diff --git a/intdash/docs/SignalConversionJSON.md b/intdash/docs/SignalConversionJSON.md new file mode 100644 index 0000000..df6ca89 --- /dev/null +++ b/intdash/docs/SignalConversionJSON.md @@ -0,0 +1,14 @@ + + +# SignalConversionJSON + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **SignalConversionOptionType** | | | +|**options** | [**SignalConversionOptionJSON**](SignalConversionOptionJSON.md) | | | + + + diff --git a/intdash/docs/SignalConversionNumFixedPoint.md b/intdash/docs/SignalConversionNumFixedPoint.md new file mode 100644 index 0000000..544b8a8 --- /dev/null +++ b/intdash/docs/SignalConversionNumFixedPoint.md @@ -0,0 +1,14 @@ + + +# SignalConversionNumFixedPoint + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **SignalConversionOptionType** | | | +|**options** | [**SignalConversionOptionNumFixedPoint**](SignalConversionOptionNumFixedPoint.md) | | | + + + diff --git a/intdash/docs/SignalConversionNumFloatingPoint.md b/intdash/docs/SignalConversionNumFloatingPoint.md new file mode 100644 index 0000000..f4604f7 --- /dev/null +++ b/intdash/docs/SignalConversionNumFloatingPoint.md @@ -0,0 +1,14 @@ + + +# SignalConversionNumFloatingPoint + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **SignalConversionOptionType** | | | +|**options** | [**SignalConversionOptionNumFloatingPoint**](SignalConversionOptionNumFloatingPoint.md) | | | + + + diff --git a/intdash/docs/SignalConversionOptionCSV.md b/intdash/docs/SignalConversionOptionCSV.md new file mode 100644 index 0000000..4074e64 --- /dev/null +++ b/intdash/docs/SignalConversionOptionCSV.md @@ -0,0 +1,24 @@ + + +# SignalConversionOptionCSV + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**delimiters** | **List<String>** | デリミタ | | +|**index** | **Integer** | インデックス(左端を0とする列番号) | | +|**valueType** | [**ValueTypeEnum**](#ValueTypeEnum) | | | + + + +## Enum: ValueTypeEnum + +| Name | Value | +|---- | -----| +| STR | "str" | +| NUM | "num" | + + + diff --git a/intdash/docs/SignalConversionOptionJSON.md b/intdash/docs/SignalConversionOptionJSON.md new file mode 100644 index 0000000..e6441cf --- /dev/null +++ b/intdash/docs/SignalConversionOptionJSON.md @@ -0,0 +1,23 @@ + + +# SignalConversionOptionJSON + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**fieldpath** | **String** | 抽出したいフィールドのパス | | +|**valueType** | [**ValueTypeEnum**](#ValueTypeEnum) | 値のタイプ | | + + + +## Enum: ValueTypeEnum + +| Name | Value | +|---- | -----| +| STR | "str" | +| NUM | "num" | + + + diff --git a/intdash/docs/SignalConversionOptionNumFixedPoint.md b/intdash/docs/SignalConversionOptionNumFixedPoint.md new file mode 100644 index 0000000..c3b03d7 --- /dev/null +++ b/intdash/docs/SignalConversionOptionNumFixedPoint.md @@ -0,0 +1,36 @@ + + +# SignalConversionOptionNumFixedPoint + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**startbit** | **Integer** | 開始ビット位置 | | +|**bitsize** | **Integer** | ビットサイズ | | +|**endian** | [**EndianEnum**](#EndianEnum) | エンディアン | | +|**sign** | [**SignEnum**](#SignEnum) | 符号有無 | | +|**scale** | **BigDecimal** | スケールファクター | | +|**offset** | **BigDecimal** | オフセット | | + + + +## Enum: EndianEnum + +| Name | Value | +|---- | -----| +| BIG | "big" | +| LITTLE | "little" | + + + +## Enum: SignEnum + +| Name | Value | +|---- | -----| +| SIGNED | "signed" | +| UNSIGNED | "unsigned" | + + + diff --git a/intdash/docs/SignalConversionOptionNumFloatingPoint.md b/intdash/docs/SignalConversionOptionNumFloatingPoint.md new file mode 100644 index 0000000..57c8e94 --- /dev/null +++ b/intdash/docs/SignalConversionOptionNumFloatingPoint.md @@ -0,0 +1,33 @@ + + +# SignalConversionOptionNumFloatingPoint + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**startbyte** | **Integer** | 開始バイト位置 | | +|**endian** | [**EndianEnum**](#EndianEnum) | エンディアン | | +|**precision** | [**PrecisionEnum**](#PrecisionEnum) | | | + + + +## Enum: EndianEnum + +| Name | Value | +|---- | -----| +| BIG | "big" | +| LITTLE | "little" | + + + +## Enum: PrecisionEnum + +| Name | Value | +|---- | -----| +| NUMBER_32 | 32 | +| NUMBER_64 | 64 | + + + diff --git a/intdash/docs/SignalConversionOptionSubBytes.md b/intdash/docs/SignalConversionOptionSubBytes.md new file mode 100644 index 0000000..4c4b190 --- /dev/null +++ b/intdash/docs/SignalConversionOptionSubBytes.md @@ -0,0 +1,14 @@ + + +# SignalConversionOptionSubBytes + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**startbyte** | **Long** | 開始バイト位置 | | +|**bytesize** | **Long** | バイトサイズ | | + + + diff --git a/intdash/docs/SignalConversionOptionSubString.md b/intdash/docs/SignalConversionOptionSubString.md new file mode 100644 index 0000000..1517ddd --- /dev/null +++ b/intdash/docs/SignalConversionOptionSubString.md @@ -0,0 +1,14 @@ + + +# SignalConversionOptionSubString + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**startbyte** | **Long** | 開始バイト位置 | | +|**bytesize** | **Long** | バイトサイズ | | + + + diff --git a/intdash/docs/SignalConversionOptionType.md b/intdash/docs/SignalConversionOptionType.md new file mode 100644 index 0000000..00b4a68 --- /dev/null +++ b/intdash/docs/SignalConversionOptionType.md @@ -0,0 +1,23 @@ + + +# SignalConversionOptionType + +## Enum + + +* `NONE` (value: `"none"`) + +* `NUM_FIXED_POINT` (value: `"num_fixed_point"`) + +* `NUM_FLOATING_POINT` (value: `"num_floating_point"`) + +* `CSV` (value: `"csv"`) + +* `JSON` (value: `"json"`) + +* `SUB_BYTES` (value: `"sub_bytes"`) + +* `SUB_STRING` (value: `"sub_string"`) + + + diff --git a/intdash/docs/SignalConversionSubBytes.md b/intdash/docs/SignalConversionSubBytes.md new file mode 100644 index 0000000..8dadc8d --- /dev/null +++ b/intdash/docs/SignalConversionSubBytes.md @@ -0,0 +1,14 @@ + + +# SignalConversionSubBytes + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **SignalConversionOptionType** | | | +|**options** | [**SignalConversionOptionSubBytes**](SignalConversionOptionSubBytes.md) | | | + + + diff --git a/intdash/docs/SignalConversionSubString.md b/intdash/docs/SignalConversionSubString.md new file mode 100644 index 0000000..01b77fe --- /dev/null +++ b/intdash/docs/SignalConversionSubString.md @@ -0,0 +1,14 @@ + + +# SignalConversionSubString + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **SignalConversionOptionType** | | | +|**options** | [**SignalConversionOptionSubString**](SignalConversionOptionSubString.md) | | | + + + diff --git a/intdash/docs/SignalDisplay.md b/intdash/docs/SignalDisplay.md new file mode 100644 index 0000000..57bd2f2 --- /dev/null +++ b/intdash/docs/SignalDisplay.md @@ -0,0 +1,16 @@ + + +# SignalDisplay + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**unit** | **String** | 単位 | | +|**min** | **Long** | 最小値 | | +|**max** | **Long** | 最大値 | | +|**format** | **String** | 表示用のフォーマット | | + + + diff --git a/intdash/docs/Signals.md b/intdash/docs/Signals.md new file mode 100644 index 0000000..894cee1 --- /dev/null +++ b/intdash/docs/Signals.md @@ -0,0 +1,14 @@ + + +# Signals + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<Signal>**](Signal.md) | | | +|**page** | [**PageDetail**](PageDetail.md) | | | + + + diff --git a/intdash/docs/TrashedMeasurements.md b/intdash/docs/TrashedMeasurements.md new file mode 100644 index 0000000..45f97f7 --- /dev/null +++ b/intdash/docs/TrashedMeasurements.md @@ -0,0 +1,14 @@ + + +# TrashedMeasurements + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<Measurement>**](Measurement.md) | | [optional] | +|**totalCount** | **Integer** | 取得対象の総件数 | [optional] | + + + diff --git a/intdash/docs/UpdateEmailVerifiedRequest.md b/intdash/docs/UpdateEmailVerifiedRequest.md new file mode 100644 index 0000000..b61b387 --- /dev/null +++ b/intdash/docs/UpdateEmailVerifiedRequest.md @@ -0,0 +1,13 @@ + + +# UpdateEmailVerifiedRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**verificationToken** | **String** | メールアドレス確認用トークン | | + + + diff --git a/intdash/docs/UpdateGroupMemberRequest.md b/intdash/docs/UpdateGroupMemberRequest.md new file mode 100644 index 0000000..05c70da --- /dev/null +++ b/intdash/docs/UpdateGroupMemberRequest.md @@ -0,0 +1,13 @@ + + +# UpdateGroupMemberRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**roleUuids** | **List<String>** | ユーザーに割り当てるロールのUUID。オーナーのロールUUIDは変更できません。 | [optional] | + + + diff --git a/intdash/docs/UpdateGroupRequest.md b/intdash/docs/UpdateGroupRequest.md new file mode 100644 index 0000000..4652bf1 --- /dev/null +++ b/intdash/docs/UpdateGroupRequest.md @@ -0,0 +1,13 @@ + + +# UpdateGroupRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | グループの名前 | [optional] | + + + diff --git a/intdash/docs/UpdateOAuth2ClientRequest.md b/intdash/docs/UpdateOAuth2ClientRequest.md new file mode 100644 index 0000000..0089b46 --- /dev/null +++ b/intdash/docs/UpdateOAuth2ClientRequest.md @@ -0,0 +1,14 @@ + + +# UpdateOAuth2ClientRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | 名前 | [optional] | +|**redirectUris** | **List<String>** | 認可後のリダイレクト先URI | [optional] | + + + diff --git a/intdash/docs/UpdateProjectEdgeRequest.md b/intdash/docs/UpdateProjectEdgeRequest.md new file mode 100644 index 0000000..be2668a --- /dev/null +++ b/intdash/docs/UpdateProjectEdgeRequest.md @@ -0,0 +1,13 @@ + + +# UpdateProjectEdgeRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**nickname** | **String** | プロジェクトにおけるエッジのニックネーム | [optional] | + + + diff --git a/intdash/docs/UpdateProjectMemberRequest.md b/intdash/docs/UpdateProjectMemberRequest.md new file mode 100644 index 0000000..45862a7 --- /dev/null +++ b/intdash/docs/UpdateProjectMemberRequest.md @@ -0,0 +1,13 @@ + + +# UpdateProjectMemberRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**roleUuids** | **List<String>** | ユーザーに割り当てるロールのUUID。オーナーのロールUUIDは変更できません。 | [optional] | + + + diff --git a/intdash/docs/UpdateProjectRequest.md b/intdash/docs/UpdateProjectRequest.md new file mode 100644 index 0000000..2c3207b --- /dev/null +++ b/intdash/docs/UpdateProjectRequest.md @@ -0,0 +1,13 @@ + + +# UpdateProjectRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | プロジェクトの名前 | | + + + diff --git a/intdash/docs/UpdateSignalRequest.md b/intdash/docs/UpdateSignalRequest.md new file mode 100644 index 0000000..ba8640c --- /dev/null +++ b/intdash/docs/UpdateSignalRequest.md @@ -0,0 +1,19 @@ + + +# UpdateSignalRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**channel** | **Integer** | チャンネル | [optional] | +|**conversion** | [**SignalConversion**](SignalConversion.md) | | [optional] | +|**dataId** | **String** | データID | [optional] | +|**dataType** | **Integer** | データタイプ | [optional] | +|**description** | **String** | 信号定義の説明 | [optional] | +|**display** | [**SignalDisplay**](SignalDisplay.md) | | [optional] | +|**label** | **String** | 信号定義のラベル | [optional] | + + + diff --git a/intdash/docs/UpdateUserAPITokenRequest.md b/intdash/docs/UpdateUserAPITokenRequest.md new file mode 100644 index 0000000..380aa72 --- /dev/null +++ b/intdash/docs/UpdateUserAPITokenRequest.md @@ -0,0 +1,13 @@ + + +# UpdateUserAPITokenRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | APIトークンの名前 | | + + + diff --git a/intdash/docs/User.md b/intdash/docs/User.md new file mode 100644 index 0000000..fbd8bd5 --- /dev/null +++ b/intdash/docs/User.md @@ -0,0 +1,24 @@ + + +# User + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uuid** | **String** | ユーザーのUUID | | +|**name** | **String** | ユーザーの名前 | | +|**nickname** | **String** | ユーザーの表示名 | | +|**disabled** | **Boolean** | * `true`: このユーザーは無効化されています * `false` : このユーザーは有効です。 | | +|**description** | **String** | ユーザーの説明 | | +|**isSuper** | **Boolean** | `true` の場合、このユーザーはスーパーユーザーです。 | | +|**emails** | [**List<UserEmail>**](UserEmail.md) | | | +|**lastSignInAt** | **Date** | 最後にログインした日時 | | +|**roles** | **List<String>** | 割り当てられたロールのUUID | | +|**password** | [**UserPassword**](UserPassword.md) | | | +|**createdAt** | **Date** | 作成日時 | | +|**updatedAt** | **Date** | 最終更新日時 | | + + + diff --git a/intdash/docs/UserAPIToken.md b/intdash/docs/UserAPIToken.md new file mode 100644 index 0000000..a8f2346 --- /dev/null +++ b/intdash/docs/UserAPIToken.md @@ -0,0 +1,20 @@ + + +# UserAPIToken + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **Long** | APIトークンのID | | +|**name** | **String** | APIトークンの名前 | | +|**token** | **String** | APIトークン | [optional] | +|**scopes** | [**List<Scope>**](Scope.md) | スコープ | | +|**lastUsedAt** | **Date** | 最後に使用された日時 | | +|**expiredAt** | **Date** | 有効期限 | | +|**createdAt** | **Date** | 作成日時 | | +|**updatedAt** | **Date** | 最終更新日時 | | + + + diff --git a/intdash/docs/UserAPITokens.md b/intdash/docs/UserAPITokens.md new file mode 100644 index 0000000..88d2724 --- /dev/null +++ b/intdash/docs/UserAPITokens.md @@ -0,0 +1,14 @@ + + +# UserAPITokens + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<UserAPIToken>**](UserAPIToken.md) | | | +|**page** | [**AuthPage**](AuthPage.md) | | | + + + diff --git a/intdash/docs/UserEmail.md b/intdash/docs/UserEmail.md new file mode 100644 index 0000000..1672574 --- /dev/null +++ b/intdash/docs/UserEmail.md @@ -0,0 +1,17 @@ + + +# UserEmail + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **Long** | メールアドレスのID | | +|**address** | **String** | メールアドレス | | +|**verified** | **Boolean** | `true` の場合、確認メールによるメールアドレス確認が済んでいます。 | | +|**createdAt** | **Date** | 作成日時 | | +|**updatedAt** | **Date** | 最終更新日時 | | + + + diff --git a/intdash/docs/UserEmailVerification.md b/intdash/docs/UserEmailVerification.md new file mode 100644 index 0000000..4fb53dc --- /dev/null +++ b/intdash/docs/UserEmailVerification.md @@ -0,0 +1,16 @@ + + +# UserEmailVerification + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**emailId** | **Long** | メールアドレスのID | | +|**expiredAt** | **Date** | 有効期限 | | +|**createdAt** | **Date** | 作成日時 | | +|**updatedAt** | **Date** | 最終更新日時 | | + + + diff --git a/intdash/docs/UserPassword.md b/intdash/docs/UserPassword.md new file mode 100644 index 0000000..5600095 --- /dev/null +++ b/intdash/docs/UserPassword.md @@ -0,0 +1,19 @@ + + +# UserPassword + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**attemptCount** | **Long** | ログイン失敗回数。ログインに成功すると0にリセットされます。 | | +|**isTemporary** | **Boolean** | `true` の場合、このユーザーのパスワードは一時パスワードです。 | | +|**temporaryPassword** | **String** | 一時パスワード | [optional] | +|**lastAttemptAt** | **Date** | 最終ログイン試行日時 | | +|**expiredAt** | **Date** | パスワードの有効期限 | [optional] | +|**createdAt** | **Date** | 作成日時 | | +|**updatedAt** | **Date** | 最終更新日時 | | + + + diff --git a/intdash/docs/Users.md b/intdash/docs/Users.md new file mode 100644 index 0000000..190b441 --- /dev/null +++ b/intdash/docs/Users.md @@ -0,0 +1,14 @@ + + +# Users + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<User>**](User.md) | | | +|**page** | [**AuthPage**](AuthPage.md) | | | + + + diff --git a/intdash/docs/VersionsVersionApi.md b/intdash/docs/VersionsVersionApi.md new file mode 100644 index 0000000..65a5508 --- /dev/null +++ b/intdash/docs/VersionsVersionApi.md @@ -0,0 +1,84 @@ +# VersionsVersionApi + +All URIs are relative to *https://example.intdash.jp/api* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getVersion**](VersionsVersionApi.md#getVersion) | **GET** /v1/version | Get Version | + + + +# **getVersion** +> GetVersion200Response getVersion() + +Get Version + +APIバージョンを取得します。 + +### Example +```java +// Import classes: +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.Configuration; +import com.aptpod.auth.*; +import com.aptpod.models.*; +import com.aptpod.intdash.VersionsVersionApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://example.intdash.jp/api"); + + // Configure API key authorization: IntdashToken + ApiKeyAuth IntdashToken = (ApiKeyAuth) defaultClient.getAuthentication("IntdashToken"); + IntdashToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //IntdashToken.setApiKeyPrefix("Token"); + + // Configure API key authorization: OAuth2TokenInCookie + ApiKeyAuth OAuth2TokenInCookie = (ApiKeyAuth) defaultClient.getAuthentication("OAuth2TokenInCookie"); + OAuth2TokenInCookie.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //OAuth2TokenInCookie.setApiKeyPrefix("Token"); + + // Configure HTTP bearer authorization: OAuth2TokenInHeader + HttpBearerAuth OAuth2TokenInHeader = (HttpBearerAuth) defaultClient.getAuthentication("OAuth2TokenInHeader"); + OAuth2TokenInHeader.setBearerToken("BEARER TOKEN"); + + VersionsVersionApi apiInstance = new VersionsVersionApi(defaultClient); + try { + GetVersion200Response result = apiInstance.getVersion(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling VersionsVersionApi#getVersion"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**GetVersion200Response**](GetVersion200Response.md) + +### Authorization + +[IntdashToken](../README.md#IntdashToken), [OAuth2TokenInCookie](../README.md#OAuth2TokenInCookie), [OAuth2TokenInHeader](../README.md#OAuth2TokenInHeader) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json; charset=utf-8 + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + diff --git a/intdash/docs/Video.md b/intdash/docs/Video.md new file mode 100644 index 0000000..eb5a532 --- /dev/null +++ b/intdash/docs/Video.md @@ -0,0 +1,30 @@ + + +# Video + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uuid** | **UUID** | 動画(video)のUUID | | +|**measurementUuid** | **UUID** | 計測のUUID | | +|**measurement** | [**MediaMeasurement**](MediaMeasurement.md) | | [optional] | +|**edgeUuid** | **UUID** | エッジのUUID | | +|**channel** | **Integer** | チャンネル | | +|**codec** | **VideoCodecs** | | | +|**sourceDataType** | **VideoSourceDataType** | | | +|**offsetTime** | **Integer** | 計測開始からのオフセット(マイクロ秒) | | +|**duration** | **Integer** | 長さ(マイクロ秒) | | +|**fps** | **BigDecimal** | フレームレート(fps) | | +|**width** | **Integer** | 動画の幅 | | +|**height** | **Integer** | 動画の高さ | | +|**status** | **VideoStatus** | | | +|**hls** | [**Playlist**](Playlist.md) | | [optional] | +|**mp4s** | [**List<MP4>**](MP4.md) | この動画を変換して作成されたMP4のリスト | | +|**jpegs** | [**List<Jpeg>**](Jpeg.md) | この動画を変換して作成されたJPEGのリスト | | +|**createdAt** | **Date** | 作成された日時 | | +|**updatedAt** | **Date** | 最終更新日時 | | + + + diff --git a/intdash/docs/VideoCodecs.md b/intdash/docs/VideoCodecs.md new file mode 100644 index 0000000..45f3139 --- /dev/null +++ b/intdash/docs/VideoCodecs.md @@ -0,0 +1,13 @@ + + +# VideoCodecs + +## Enum + + +* `H264` (value: `"h264"`) + +* `VP9` (value: `"vp9"`) + + + diff --git a/intdash/docs/VideoSourceDataType.md b/intdash/docs/VideoSourceDataType.md new file mode 100644 index 0000000..a1a6157 --- /dev/null +++ b/intdash/docs/VideoSourceDataType.md @@ -0,0 +1,15 @@ + + +# VideoSourceDataType + +## Enum + + +* `H264` (value: `"h264"`) + +* `JPEG` (value: `"jpeg"`) + +* `IVF` (value: `"ivf"`) + + + diff --git a/intdash/docs/VideoStatus.md b/intdash/docs/VideoStatus.md new file mode 100644 index 0000000..5d36839 --- /dev/null +++ b/intdash/docs/VideoStatus.md @@ -0,0 +1,19 @@ + + +# VideoStatus + +## Enum + + +* `LIVE` (value: `"live"`) + +* `UNPROCESSED` (value: `"unprocessed"`) + +* `PROCESSING` (value: `"processing"`) + +* `SUCCEEDED` (value: `"succeeded"`) + +* `FAILED` (value: `"failed"`) + + + diff --git a/intdash/docs/Videos.md b/intdash/docs/Videos.md new file mode 100644 index 0000000..40141a9 --- /dev/null +++ b/intdash/docs/Videos.md @@ -0,0 +1,14 @@ + + +# Videos + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**items** | [**List<Video>**](Video.md) | | | +|**page** | [**Page**](Page.md) | | | + + + diff --git a/intdash/git_push.sh b/intdash/git_push.sh new file mode 100644 index 0000000..f53a75d --- /dev/null +++ b/intdash/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/intdash/gradle.properties b/intdash/gradle.properties new file mode 100644 index 0000000..a340857 --- /dev/null +++ b/intdash/gradle.properties @@ -0,0 +1,6 @@ +# This file is automatically generated by OpenAPI Generator (https://github.com/openAPITools/openapi-generator). +# To include other gradle properties as part of the code generation process, please use the `gradleProperties` option. +# +# Gradle properties reference: https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties +# For example, uncomment below to build for Android +#target = android diff --git a/intdash/gradle/wrapper/gradle-wrapper.jar b/intdash/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000000000000000000000000000000000000..7454180f2ae8848c63b8b4dea2cb829da983f2fa GIT binary patch literal 59536 zcma&NbC71ylI~qywr$(CZQJHswz}-9F59+k+g;UV+cs{`J?GrGXYR~=-ydruB3JCa zB64N^cILAcWk5iofq)<(fq;O7{th4@;QxID0)qN`mJ?GIqLY#rX8-|G{5M0pdVW5^ zzXk$-2kQTAC?_N@B`&6-N-rmVFE=$QD?>*=4<|!MJu@}isLc4AW#{m2if&A5T5g&~ ziuMQeS*U5sL6J698wOd)K@oK@1{peP5&Esut<#VH^u)gp`9H4)`uE!2$>RTctN+^u z=ASkePDZA-X8)rp%D;p*~P?*a_=*Kwc<^>QSH|^<0>o37lt^+Mj1;4YvJ(JR-Y+?%Nu}JAYj5 z_Qc5%Ao#F?q32i?ZaN2OSNhWL;2oDEw_({7ZbgUjna!Fqn3NzLM@-EWFPZVmc>(fZ z0&bF-Ch#p9C{YJT9Rcr3+Y_uR^At1^BxZ#eo>$PLJF3=;t_$2|t+_6gg5(j{TmjYU zK12c&lE?Eh+2u2&6Gf*IdKS&6?rYbSEKBN!rv{YCm|Rt=UlPcW9j`0o6{66#y5t9C zruFA2iKd=H%jHf%ypOkxLnO8#H}#Zt{8p!oi6)7#NqoF({t6|J^?1e*oxqng9Q2Cc zg%5Vu!em)}Yuj?kaP!D?b?(C*w!1;>R=j90+RTkyEXz+9CufZ$C^umX^+4|JYaO<5 zmIM3#dv`DGM;@F6;(t!WngZSYzHx?9&$xEF70D1BvfVj<%+b#)vz)2iLCrTeYzUcL z(OBnNoG6Le%M+@2oo)&jdOg=iCszzv59e zDRCeaX8l1hC=8LbBt|k5?CXgep=3r9BXx1uR8!p%Z|0+4Xro=xi0G!e{c4U~1j6!) zH6adq0}#l{%*1U(Cb%4AJ}VLWKBPi0MoKFaQH6x?^hQ!6em@993xdtS%_dmevzeNl z(o?YlOI=jl(`L9^ z0O+H9k$_@`6L13eTT8ci-V0ljDMD|0ifUw|Q-Hep$xYj0hTO@0%IS^TD4b4n6EKDG z??uM;MEx`s98KYN(K0>c!C3HZdZ{+_53DO%9k5W%pr6yJusQAv_;IA}925Y%;+!tY z%2k!YQmLLOr{rF~!s<3-WEUs)`ix_mSU|cNRBIWxOox_Yb7Z=~Q45ZNe*u|m^|)d* zog=i>`=bTe!|;8F+#H>EjIMcgWcG2ORD`w0WD;YZAy5#s{65~qfI6o$+Ty&-hyMyJ z3Ra~t>R!p=5ZpxA;QkDAoPi4sYOP6>LT+}{xp}tk+<0k^CKCFdNYG(Es>p0gqD)jP zWOeX5G;9(m@?GOG7g;e74i_|SmE?`B2i;sLYwRWKLy0RLW!Hx`=!LH3&k=FuCsM=9M4|GqzA)anEHfxkB z?2iK-u(DC_T1};KaUT@3nP~LEcENT^UgPvp!QC@Dw&PVAhaEYrPey{nkcn(ro|r7XUz z%#(=$7D8uP_uU-oPHhd>>^adbCSQetgSG`e$U|7mr!`|bU0aHl_cmL)na-5x1#OsVE#m*+k84Y^+UMeSAa zbrVZHU=mFwXEaGHtXQq`2ZtjfS!B2H{5A<3(nb-6ARVV8kEmOkx6D2x7~-6hl;*-*}2Xz;J#a8Wn;_B5=m zl3dY;%krf?i-Ok^Pal-}4F`{F@TYPTwTEhxpZK5WCpfD^UmM_iYPe}wpE!Djai6_{ z*pGO=WB47#Xjb7!n2Ma)s^yeR*1rTxp`Mt4sfA+`HwZf%!7ZqGosPkw69`Ix5Ku6G z@Pa;pjzV&dn{M=QDx89t?p?d9gna*}jBly*#1!6}5K<*xDPJ{wv4& zM$17DFd~L*Te3A%yD;Dp9UGWTjRxAvMu!j^Tbc}2v~q^59d4bz zvu#!IJCy(BcWTc`;v$9tH;J%oiSJ_i7s;2`JXZF+qd4C)vY!hyCtl)sJIC{ebI*0> z@x>;EzyBv>AI-~{D6l6{ST=em*U( z(r$nuXY-#CCi^8Z2#v#UXOt`dbYN1z5jzNF2 z411?w)whZrfA20;nl&C1Gi+gk<`JSm+{|*2o<< zqM#@z_D`Cn|0H^9$|Tah)0M_X4c37|KQ*PmoT@%xHc3L1ZY6(p(sNXHa&49Frzto& zR`c~ClHpE~4Z=uKa5S(-?M8EJ$zt0&fJk~p$M#fGN1-y$7!37hld`Uw>Urri(DxLa;=#rK0g4J)pXMC zxzraOVw1+kNWpi#P=6(qxf`zSdUC?D$i`8ZI@F>k6k zz21?d+dw7b&i*>Kv5L(LH-?J%@WnqT7j#qZ9B>|Zl+=> z^U-pV@1y_ptHo4hl^cPRWewbLQ#g6XYQ@EkiP z;(=SU!yhjHp%1&MsU`FV1Z_#K1&(|5n(7IHbx&gG28HNT)*~-BQi372@|->2Aw5It z0CBpUcMA*QvsPy)#lr!lIdCi@1k4V2m!NH)%Px(vu-r(Q)HYc!p zJ^$|)j^E#q#QOgcb^pd74^JUi7fUmMiNP_o*lvx*q%_odv49Dsv$NV;6J z9GOXKomA{2Pb{w}&+yHtH?IkJJu~}Z?{Uk++2mB8zyvh*xhHKE``99>y#TdD z&(MH^^JHf;g(Tbb^&8P*;_i*2&fS$7${3WJtV7K&&(MBV2~)2KB3%cWg#1!VE~k#C z!;A;?p$s{ihyojEZz+$I1)L}&G~ml=udD9qh>Tu(ylv)?YcJT3ihapi!zgPtWb*CP zlLLJSRCj-^w?@;RU9aL2zDZY1`I3d<&OMuW=c3$o0#STpv_p3b9Wtbql>w^bBi~u4 z3D8KyF?YE?=HcKk!xcp@Cigvzy=lnFgc^9c%(^F22BWYNAYRSho@~*~S)4%AhEttv zvq>7X!!EWKG?mOd9&n>vvH1p4VzE?HCuxT-u+F&mnsfDI^}*-d00-KAauEaXqg3k@ zy#)MGX!X;&3&0s}F3q40ZmVM$(H3CLfpdL?hB6nVqMxX)q=1b}o_PG%r~hZ4gUfSp zOH4qlEOW4OMUc)_m)fMR_rl^pCfXc{$fQbI*E&mV77}kRF z&{<06AJyJ!e863o-V>FA1a9Eemx6>^F$~9ppt()ZbPGfg_NdRXBWoZnDy2;#ODgf! zgl?iOcF7Meo|{AF>KDwTgYrJLb$L2%%BEtO>T$C?|9bAB&}s;gI?lY#^tttY&hfr# zKhC+&b-rpg_?~uVK%S@mQleU#_xCsvIPK*<`E0fHE1&!J7!xD#IB|SSPW6-PyuqGn3^M^Rz%WT{e?OI^svARX&SAdU77V(C~ zM$H{Kg59op{<|8ry9ecfP%=kFm(-!W&?U0@<%z*+!*<e0XesMxRFu9QnGqun6R_%T+B%&9Dtk?*d$Q zb~>84jEAPi@&F@3wAa^Lzc(AJz5gsfZ7J53;@D<;Klpl?sK&u@gie`~vTsbOE~Cd4 z%kr56mI|#b(Jk&;p6plVwmNB0H@0SmgdmjIn5Ne@)}7Vty(yb2t3ev@22AE^s!KaN zyQ>j+F3w=wnx7w@FVCRe+`vUH)3gW%_72fxzqX!S&!dchdkRiHbXW1FMrIIBwjsai8`CB2r4mAbwp%rrO>3B$Zw;9=%fXI9B{d(UzVap7u z6piC-FQ)>}VOEuPpuqznpY`hN4dGa_1Xz9rVg(;H$5Te^F0dDv*gz9JS<|>>U0J^# z6)(4ICh+N_Q`Ft0hF|3fSHs*?a=XC;e`sJaU9&d>X4l?1W=|fr!5ShD|nv$GK;j46@BV6+{oRbWfqOBRb!ir88XD*SbC(LF}I1h#6@dvK%Toe%@ zhDyG$93H8Eu&gCYddP58iF3oQH*zLbNI;rN@E{T9%A8!=v#JLxKyUe}e}BJpB{~uN zqgxRgo0*-@-iaHPV8bTOH(rS(huwK1Xg0u+e!`(Irzu@Bld&s5&bWgVc@m7;JgELd zimVs`>vQ}B_1(2#rv#N9O`fJpVfPc7V2nv34PC);Dzbb;p!6pqHzvy?2pD&1NE)?A zt(t-ucqy@wn9`^MN5apa7K|L=9>ISC>xoc#>{@e}m#YAAa1*8-RUMKwbm|;5p>T`Z zNf*ph@tnF{gmDa3uwwN(g=`Rh)4!&)^oOy@VJaK4lMT&5#YbXkl`q?<*XtsqD z9PRK6bqb)fJw0g-^a@nu`^?71k|m3RPRjt;pIkCo1{*pdqbVs-Yl>4E>3fZx3Sv44grW=*qdSoiZ9?X0wWyO4`yDHh2E!9I!ZFi zVL8|VtW38}BOJHW(Ax#KL_KQzarbuE{(%TA)AY)@tY4%A%P%SqIU~8~-Lp3qY;U-} z`h_Gel7;K1h}7$_5ZZT0&%$Lxxr-<89V&&TCsu}LL#!xpQ1O31jaa{U34~^le*Y%L za?7$>Jk^k^pS^_M&cDs}NgXlR>16AHkSK-4TRaJSh#h&p!-!vQY%f+bmn6x`4fwTp z$727L^y`~!exvmE^W&#@uY!NxJi`g!i#(++!)?iJ(1)2Wk;RN zFK&O4eTkP$Xn~4bB|q8y(btx$R#D`O@epi4ofcETrx!IM(kWNEe42Qh(8*KqfP(c0 zouBl6>Fc_zM+V;F3znbo{x#%!?mH3`_ANJ?y7ppxS@glg#S9^MXu|FM&ynpz3o&Qh z2ujAHLF3($pH}0jXQsa#?t--TnF1P73b?4`KeJ9^qK-USHE)4!IYgMn-7z|=ALF5SNGkrtPG@Y~niUQV2?g$vzJN3nZ{7;HZHzWAeQ;5P|@Tl3YHpyznGG4-f4=XflwSJY+58-+wf?~Fg@1p1wkzuu-RF3j2JX37SQUc? zQ4v%`V8z9ZVZVqS8h|@@RpD?n0W<=hk=3Cf8R?d^9YK&e9ZybFY%jdnA)PeHvtBe- zhMLD+SSteHBq*q)d6x{)s1UrsO!byyLS$58WK;sqip$Mk{l)Y(_6hEIBsIjCr5t>( z7CdKUrJTrW%qZ#1z^n*Lb8#VdfzPw~OIL76aC+Rhr<~;4Tl!sw?Rj6hXj4XWa#6Tp z@)kJ~qOV)^Rh*-?aG>ic2*NlC2M7&LUzc9RT6WM%Cpe78`iAowe!>(T0jo&ivn8-7 zs{Qa@cGy$rE-3AY0V(l8wjI^uB8Lchj@?L}fYal^>T9z;8juH@?rG&g-t+R2dVDBe zq!K%{e-rT5jX19`(bP23LUN4+_zh2KD~EAYzhpEO3MUG8@}uBHH@4J zd`>_(K4q&>*k82(dDuC)X6JuPrBBubOg7qZ{?x!r@{%0);*`h*^F|%o?&1wX?Wr4b z1~&cy#PUuES{C#xJ84!z<1tp9sfrR(i%Tu^jnXy;4`Xk;AQCdFC@?V%|; zySdC7qS|uQRcH}EFZH%mMB~7gi}a0utE}ZE_}8PQH8f;H%PN41Cb9R%w5Oi5el^fd z$n{3SqLCnrF##x?4sa^r!O$7NX!}&}V;0ZGQ&K&i%6$3C_dR%I7%gdQ;KT6YZiQrW zk%q<74oVBV>@}CvJ4Wj!d^?#Zwq(b$E1ze4$99DuNg?6t9H}k_|D7KWD7i0-g*EO7 z;5{hSIYE4DMOK3H%|f5Edx+S0VI0Yw!tsaRS2&Il2)ea^8R5TG72BrJue|f_{2UHa z@w;^c|K3da#$TB0P3;MPlF7RuQeXT$ zS<<|C0OF(k)>fr&wOB=gP8!Qm>F41u;3esv7_0l%QHt(~+n; zf!G6%hp;Gfa9L9=AceiZs~tK+Tf*Wof=4!u{nIO90jH@iS0l+#%8=~%ASzFv7zqSB^?!@N7)kp0t&tCGLmzXSRMRyxCmCYUD2!B`? zhs$4%KO~m=VFk3Buv9osha{v+mAEq=ik3RdK@;WWTV_g&-$U4IM{1IhGX{pAu%Z&H zFfwCpUsX%RKg);B@7OUzZ{Hn{q6Vv!3#8fAg!P$IEx<0vAx;GU%}0{VIsmFBPq_mb zpe^BChDK>sc-WLKl<6 zwbW|e&d&dv9Wu0goueyu>(JyPx1mz0v4E?cJjFuKF71Q1)AL8jHO$!fYT3(;U3Re* zPPOe%*O+@JYt1bW`!W_1!mN&=w3G9ru1XsmwfS~BJ))PhD(+_J_^N6j)sx5VwbWK| zwRyC?W<`pOCY)b#AS?rluxuuGf-AJ=D!M36l{ua?@SJ5>e!IBr3CXIxWw5xUZ@Xrw z_R@%?{>d%Ld4p}nEsiA@v*nc6Ah!MUs?GA7e5Q5lPpp0@`%5xY$C;{%rz24$;vR#* zBP=a{)K#CwIY%p} zXVdxTQ^HS@O&~eIftU+Qt^~(DGxrdi3k}DdT^I7Iy5SMOp$QuD8s;+93YQ!OY{eB24%xY7ml@|M7I(Nb@K_-?F;2?et|CKkuZK_>+>Lvg!>JE~wN`BI|_h6$qi!P)+K-1Hh(1;a`os z55)4Q{oJiA(lQM#;w#Ta%T0jDNXIPM_bgESMCDEg6rM33anEr}=|Fn6)|jBP6Y}u{ zv9@%7*#RI9;fv;Yii5CI+KrRdr0DKh=L>)eO4q$1zmcSmglsV`*N(x=&Wx`*v!!hn6X-l0 zP_m;X??O(skcj+oS$cIdKhfT%ABAzz3w^la-Ucw?yBPEC+=Pe_vU8nd-HV5YX6X8r zZih&j^eLU=%*;VzhUyoLF;#8QsEfmByk+Y~caBqSvQaaWf2a{JKB9B>V&r?l^rXaC z8)6AdR@Qy_BxQrE2Fk?ewD!SwLuMj@&d_n5RZFf7=>O>hzVE*seW3U?_p|R^CfoY`?|#x9)-*yjv#lo&zP=uI`M?J zbzC<^3x7GfXA4{FZ72{PE*-mNHyy59Q;kYG@BB~NhTd6pm2Oj=_ zizmD?MKVRkT^KmXuhsk?eRQllPo2Ubk=uCKiZ&u3Xjj~<(!M94c)Tez@9M1Gfs5JV z->@II)CDJOXTtPrQudNjE}Eltbjq>6KiwAwqvAKd^|g!exgLG3;wP+#mZYr`cy3#39e653d=jrR-ulW|h#ddHu(m9mFoW~2yE zz5?dB%6vF}+`-&-W8vy^OCxm3_{02royjvmwjlp+eQDzFVEUiyO#gLv%QdDSI#3W* z?3!lL8clTaNo-DVJw@ynq?q!%6hTQi35&^>P85G$TqNt78%9_sSJt2RThO|JzM$iL zg|wjxdMC2|Icc5rX*qPL(coL!u>-xxz-rFiC!6hD1IR%|HSRsV3>Kq~&vJ=s3M5y8SG%YBQ|{^l#LGlg!D?E>2yR*eV%9m$_J6VGQ~AIh&P$_aFbh zULr0Z$QE!QpkP=aAeR4ny<#3Fwyw@rZf4?Ewq`;mCVv}xaz+3ni+}a=k~P+yaWt^L z@w67!DqVf7D%7XtXX5xBW;Co|HvQ8WR1k?r2cZD%U;2$bsM%u8{JUJ5Z0k= zZJARv^vFkmWx15CB=rb=D4${+#DVqy5$C%bf`!T0+epLJLnh1jwCdb*zuCL}eEFvE z{rO1%gxg>1!W(I!owu*mJZ0@6FM(?C+d*CeceZRW_4id*D9p5nzMY&{mWqrJomjIZ z97ZNnZ3_%Hx8dn;H>p8m7F#^2;T%yZ3H;a&N7tm=Lvs&lgJLW{V1@h&6Vy~!+Ffbb zv(n3+v)_D$}dqd!2>Y2B)#<+o}LH#%ogGi2-?xRIH)1!SD)u-L65B&bsJTC=LiaF+YOCif2dUX6uAA|#+vNR z>U+KQekVGon)Yi<93(d!(yw1h3&X0N(PxN2{%vn}cnV?rYw z$N^}_o!XUB!mckL`yO1rnUaI4wrOeQ(+&k?2mi47hzxSD`N#-byqd1IhEoh!PGq>t z_MRy{5B0eKY>;Ao3z$RUU7U+i?iX^&r739F)itdrTpAi-NN0=?^m%?{A9Ly2pVv>Lqs6moTP?T2-AHqFD-o_ znVr|7OAS#AEH}h8SRPQ@NGG47dO}l=t07__+iK8nHw^(AHx&Wb<%jPc$$jl6_p(b$ z)!pi(0fQodCHfM)KMEMUR&UID>}m^(!{C^U7sBDOA)$VThRCI0_+2=( zV8mMq0R(#z;C|7$m>$>`tX+T|xGt(+Y48@ZYu#z;0pCgYgmMVbFb!$?%yhZqP_nhn zy4<#3P1oQ#2b51NU1mGnHP$cf0j-YOgAA}A$QoL6JVLcmExs(kU{4z;PBHJD%_=0F z>+sQV`mzijSIT7xn%PiDKHOujX;n|M&qr1T@rOxTdxtZ!&u&3HHFLYD5$RLQ=heur zb>+AFokUVQeJy-#LP*^)spt{mb@Mqe=A~-4p0b+Bt|pZ+@CY+%x}9f}izU5;4&QFE zO1bhg&A4uC1)Zb67kuowWY4xbo&J=%yoXlFB)&$d*-}kjBu|w!^zbD1YPc0-#XTJr z)pm2RDy%J3jlqSMq|o%xGS$bPwn4AqitC6&e?pqWcjWPt{3I{>CBy;hg0Umh#c;hU3RhCUX=8aR>rmd` z7Orw(5tcM{|-^J?ZAA9KP|)X6n9$-kvr#j5YDecTM6n z&07(nD^qb8hpF0B^z^pQ*%5ePYkv&FabrlI61ntiVp!!C8y^}|<2xgAd#FY=8b*y( zuQOuvy2`Ii^`VBNJB&R!0{hABYX55ooCAJSSevl4RPqEGb)iy_0H}v@vFwFzD%>#I>)3PsouQ+_Kkbqy*kKdHdfkN7NBcq%V{x^fSxgXpg7$bF& zj!6AQbDY(1u#1_A#1UO9AxiZaCVN2F0wGXdY*g@x$ByvUA?ePdide0dmr#}udE%K| z3*k}Vv2Ew2u1FXBaVA6aerI36R&rzEZeDDCl5!t0J=ug6kuNZzH>3i_VN`%BsaVB3 zQYw|Xub_SGf{)F{$ZX5`Jc!X!;eybjP+o$I{Z^Hsj@D=E{MnnL+TbC@HEU2DjG{3-LDGIbq()U87x4eS;JXnSh;lRlJ z>EL3D>wHt-+wTjQF$fGyDO$>d+(fq@bPpLBS~xA~R=3JPbS{tzN(u~m#Po!?H;IYv zE;?8%^vle|%#oux(Lj!YzBKv+Fd}*Ur-dCBoX*t{KeNM*n~ZPYJ4NNKkI^MFbz9!v z4(Bvm*Kc!-$%VFEewYJKz-CQN{`2}KX4*CeJEs+Q(!kI%hN1!1P6iOq?ovz}X0IOi z)YfWpwW@pK08^69#wSyCZkX9?uZD?C^@rw^Y?gLS_xmFKkooyx$*^5#cPqntNTtSG zlP>XLMj2!VF^0k#ole7`-c~*~+_T5ls?x4)ah(j8vo_ zwb%S8qoaZqY0-$ZI+ViIA_1~~rAH7K_+yFS{0rT@eQtTAdz#8E5VpwnW!zJ_^{Utv zlW5Iar3V5t&H4D6A=>?mq;G92;1cg9a2sf;gY9pJDVKn$DYdQlvfXq}zz8#LyPGq@ z+`YUMD;^-6w&r-82JL7mA8&M~Pj@aK!m{0+^v<|t%APYf7`}jGEhdYLqsHW-Le9TL z_hZZ1gbrz7$f9^fAzVIP30^KIz!!#+DRLL+qMszvI_BpOSmjtl$hh;&UeM{ER@INV zcI}VbiVTPoN|iSna@=7XkP&-4#06C};8ajbxJ4Gcq8(vWv4*&X8bM^T$mBk75Q92j z1v&%a;OSKc8EIrodmIiw$lOES2hzGDcjjB`kEDfJe{r}yE6`eZL zEB`9u>Cl0IsQ+t}`-cx}{6jqcANucqIB>Qmga_&<+80E2Q|VHHQ$YlAt{6`Qu`HA3 z03s0-sSlwbvgi&_R8s={6<~M^pGvBNjKOa>tWenzS8s zR>L7R5aZ=mSU{f?ib4Grx$AeFvtO5N|D>9#)ChH#Fny2maHWHOf2G=#<9Myot#+4u zWVa6d^Vseq_0=#AYS(-m$Lp;*8nC_6jXIjEM`omUmtH@QDs3|G)i4j*#_?#UYVZvJ z?YjT-?!4Q{BNun;dKBWLEw2C-VeAz`%?A>p;)PL}TAZn5j~HK>v1W&anteARlE+~+ zj>c(F;?qO3pXBb|#OZdQnm<4xWmn~;DR5SDMxt0UK_F^&eD|KZ=O;tO3vy4@4h^;2 zUL~-z`-P1aOe?|ZC1BgVsL)2^J-&vIFI%q@40w0{jjEfeVl)i9(~bt2z#2Vm)p`V_ z1;6$Ae7=YXk#=Qkd24Y23t&GvRxaOoad~NbJ+6pxqzJ>FY#Td7@`N5xp!n(c!=RE& z&<<@^a$_Ys8jqz4|5Nk#FY$~|FPC0`*a5HH!|Gssa9=~66&xG9)|=pOOJ2KE5|YrR zw!w6K2aC=J$t?L-;}5hn6mHd%hC;p8P|Dgh6D>hGnXPgi;6r+eA=?f72y9(Cf_ho{ zH6#)uD&R=73^$$NE;5piWX2bzR67fQ)`b=85o0eOLGI4c-Tb@-KNi2pz=Ke@SDcPn za$AxXib84`!Sf;Z3B@TSo`Dz7GM5Kf(@PR>Ghzi=BBxK8wRp>YQoXm+iL>H*Jo9M3 z6w&E?BC8AFTFT&Tv8zf+m9<&S&%dIaZ)Aoqkak_$r-2{$d~0g2oLETx9Y`eOAf14QXEQw3tJne;fdzl@wV#TFXSLXM2428F-Q}t+n2g%vPRMUzYPvzQ9f# zu(liiJem9P*?0%V@RwA7F53r~|I!Ty)<*AsMX3J{_4&}{6pT%Tpw>)^|DJ)>gpS~1rNEh z0$D?uO8mG?H;2BwM5a*26^7YO$XjUm40XmBsb63MoR;bJh63J;OngS5sSI+o2HA;W zdZV#8pDpC9Oez&L8loZO)MClRz!_!WD&QRtQxnazhT%Vj6Wl4G11nUk8*vSeVab@N#oJ}`KyJv+8Mo@T1-pqZ1t|?cnaVOd;1(h9 z!$DrN=jcGsVYE-0-n?oCJ^4x)F}E;UaD-LZUIzcD?W^ficqJWM%QLy6QikrM1aKZC zi{?;oKwq^Vsr|&`i{jIphA8S6G4)$KGvpULjH%9u(Dq247;R#l&I0{IhcC|oBF*Al zvLo7Xte=C{aIt*otJD}BUq)|_pdR>{zBMT< z(^1RpZv*l*m*OV^8>9&asGBo8h*_4q*)-eCv*|Pq=XNGrZE)^(SF7^{QE_~4VDB(o zVcPA_!G+2CAtLbl+`=Q~9iW`4ZRLku!uB?;tWqVjB0lEOf}2RD7dJ=BExy=<9wkb- z9&7{XFA%n#JsHYN8t5d~=T~5DcW4$B%3M+nNvC2`0!#@sckqlzo5;hhGi(D9=*A4` z5ynobawSPRtWn&CDLEs3Xf`(8^zDP=NdF~F^s&={l7(aw&EG}KWpMjtmz7j_VLO;@ zM2NVLDxZ@GIv7*gzl1 zjq78tv*8#WSY`}Su0&C;2F$Ze(q>F(@Wm^Gw!)(j;dk9Ad{STaxn)IV9FZhm*n+U} zi;4y*3v%A`_c7a__DJ8D1b@dl0Std3F||4Wtvi)fCcBRh!X9$1x!_VzUh>*S5s!oq z;qd{J_r79EL2wIeiGAqFstWtkfIJpjVh%zFo*=55B9Zq~y0=^iqHWfQl@O!Ak;(o*m!pZqe9 z%U2oDOhR)BvW8&F70L;2TpkzIutIvNQaTjjs5V#8mV4!NQ}zN=i`i@WI1z0eN-iCS z;vL-Wxc^Vc_qK<5RPh(}*8dLT{~GzE{w2o$2kMFaEl&q zP{V=>&3kW7tWaK-Exy{~`v4J0U#OZBk{a9{&)&QG18L@6=bsZ1zC_d{{pKZ-Ey>I> z;8H0t4bwyQqgu4hmO`3|4K{R*5>qnQ&gOfdy?z`XD%e5+pTDzUt3`k^u~SaL&XMe= z9*h#kT(*Q9jO#w2Hd|Mr-%DV8i_1{J1MU~XJ3!WUplhXDYBpJH><0OU`**nIvPIof z|N8@I=wA)sf45SAvx||f?Z5uB$kz1qL3Ky_{%RPdP5iN-D2!p5scq}buuC00C@jom zhfGKm3|f?Z0iQ|K$Z~!`8{nmAS1r+fp6r#YDOS8V*;K&Gs7Lc&f^$RC66O|)28oh`NHy&vq zJh+hAw8+ybTB0@VhWN^0iiTnLsCWbS_y`^gs!LX!Lw{yE``!UVzrV24tP8o;I6-65 z1MUiHw^{bB15tmrVT*7-#sj6cs~z`wk52YQJ*TG{SE;KTm#Hf#a~|<(|ImHH17nNM z`Ub{+J3dMD!)mzC8b(2tZtokKW5pAwHa?NFiso~# z1*iaNh4lQ4TS)|@G)H4dZV@l*Vd;Rw;-;odDhW2&lJ%m@jz+Panv7LQm~2Js6rOW3 z0_&2cW^b^MYW3)@o;neZ<{B4c#m48dAl$GCc=$>ErDe|?y@z`$uq3xd(%aAsX)D%l z>y*SQ%My`yDP*zof|3@_w#cjaW_YW4BdA;#Glg1RQcJGY*CJ9`H{@|D+*e~*457kd z73p<%fB^PV!Ybw@)Dr%(ZJbX}xmCStCYv#K3O32ej{$9IzM^I{6FJ8!(=azt7RWf4 z7ib0UOPqN40X!wOnFOoddd8`!_IN~9O)#HRTyjfc#&MCZ zZAMzOVB=;qwt8gV?{Y2?b=iSZG~RF~uyx18K)IDFLl})G1v@$(s{O4@RJ%OTJyF+Cpcx4jmy|F3euCnMK!P2WTDu5j z{{gD$=M*pH!GGzL%P)V2*ROm>!$Y=z|D`!_yY6e7SU$~a5q8?hZGgaYqaiLnkK%?0 zs#oI%;zOxF@g*@(V4p!$7dS1rOr6GVs6uYCTt2h)eB4?(&w8{#o)s#%gN@BBosRUe z)@P@8_Zm89pr~)b>e{tbPC~&_MR--iB{=)y;INU5#)@Gix-YpgP<-c2Ms{9zuCX|3 z!p(?VaXww&(w&uBHzoT%!A2=3HAP>SDxcljrego7rY|%hxy3XlODWffO_%g|l+7Y_ zqV(xbu)s4lV=l7M;f>vJl{`6qBm>#ZeMA}kXb97Z)?R97EkoI?x6Lp0yu1Z>PS?2{ z0QQ(8D)|lc9CO3B~e(pQM&5(1y&y=e>C^X$`)_&XuaI!IgDTVqt31wX#n+@!a_A0ZQkA zCJ2@M_4Gb5MfCrm5UPggeyh)8 zO9?`B0J#rkoCx(R0I!ko_2?iO@|oRf1;3r+i)w-2&j?=;NVIdPFsB)`|IC0zk6r9c zRrkfxWsiJ(#8QndNJj@{@WP2Ackr|r1VxV{7S&rSU(^)-M8gV>@UzOLXu9K<{6e{T zXJ6b92r$!|lwjhmgqkdswY&}c)KW4A)-ac%sU;2^fvq7gfUW4Bw$b!i@duy1CAxSn z(pyh$^Z=&O-q<{bZUP+$U}=*#M9uVc>CQVgDs4swy5&8RAHZ~$)hrTF4W zPsSa~qYv_0mJnF89RnnJTH`3}w4?~epFl=D(35$ zWa07ON$`OMBOHgCmfO(9RFc<)?$x)N}Jd2A(<*Ll7+4jrRt9w zwGxExUXd9VB#I|DwfxvJ;HZ8Q{37^wDhaZ%O!oO(HpcqfLH%#a#!~;Jl7F5>EX_=8 z{()l2NqPz>La3qJR;_v+wlK>GsHl;uRA8%j`A|yH@k5r%55S9{*Cp%uw6t`qc1!*T za2OeqtQj7sAp#Q~=5Fs&aCR9v>5V+s&RdNvo&H~6FJOjvaj--2sYYBvMq;55%z8^o z|BJDA4vzfow#DO#ZQHh;Oq_{r+qP{R9ox2TOgwQiv7Ow!zjN+A@BN;0tA2lUb#+zO z(^b89eV)D7UVE+h{mcNc6&GtpOqDn_?VAQ)Vob$hlFwW%xh>D#wml{t&Ofmm_d_+; zKDxzdr}`n2Rw`DtyIjrG)eD0vut$}dJAZ0AohZ+ZQdWXn_Z@dI_y=7t3q8x#pDI-K z2VVc&EGq445Rq-j0=U=Zx`oBaBjsefY;%)Co>J3v4l8V(T8H?49_@;K6q#r~Wwppc z4XW0(4k}cP=5ex>-Xt3oATZ~bBWKv)aw|I|Lx=9C1s~&b77idz({&q3T(Y(KbWO?+ zmcZ6?WeUsGk6>km*~234YC+2e6Zxdl~<_g2J|IE`GH%n<%PRv-50; zH{tnVts*S5*_RxFT9eM0z-pksIb^drUq4>QSww=u;UFCv2AhOuXE*V4z?MM`|ABOC4P;OfhS(M{1|c%QZ=!%rQTDFx`+}?Kdx$&FU?Y<$x;j7z=(;Lyz+?EE>ov!8vvMtSzG!nMie zsBa9t8as#2nH}n8xzN%W%U$#MHNXmDUVr@GX{?(=yI=4vks|V)!-W5jHsU|h_&+kY zS_8^kd3jlYqOoiI`ZqBVY!(UfnAGny!FowZWY_@YR0z!nG7m{{)4OS$q&YDyw6vC$ zm4!$h>*|!2LbMbxS+VM6&DIrL*X4DeMO!@#EzMVfr)e4Tagn~AQHIU8?e61TuhcKD zr!F4(kEebk(Wdk-?4oXM(rJwanS>Jc%<>R(siF+>+5*CqJLecP_we33iTFTXr6W^G z7M?LPC-qFHK;E!fxCP)`8rkxZyFk{EV;G-|kwf4b$c1k0atD?85+|4V%YATWMG|?K zLyLrws36p%Qz6{}>7b>)$pe>mR+=IWuGrX{3ZPZXF3plvuv5Huax86}KX*lbPVr}L z{C#lDjdDeHr~?l|)Vp_}T|%$qF&q#U;ClHEPVuS+Jg~NjC1RP=17=aQKGOcJ6B3mp z8?4*-fAD~}sX*=E6!}^u8)+m2j<&FSW%pYr_d|p_{28DZ#Cz0@NF=gC-o$MY?8Ca8 zr5Y8DSR^*urS~rhpX^05r30Ik#2>*dIOGxRm0#0YX@YQ%Mg5b6dXlS!4{7O_kdaW8PFSdj1=ryI-=5$fiieGK{LZ+SX(1b=MNL!q#lN zv98?fqqTUH8r8C7v(cx#BQ5P9W>- zmW93;eH6T`vuJ~rqtIBg%A6>q>gnWb3X!r0wh_q;211+Om&?nvYzL1hhtjB zK_7G3!n7PL>d!kj){HQE zE8(%J%dWLh1_k%gVXTZt zEdT09XSKAx27Ncaq|(vzL3gm83q>6CAw<$fTnMU05*xAe&rDfCiu`u^1)CD<>sx0i z*hr^N_TeN89G(nunZoLBf^81#pmM}>JgD@Nn1l*lN#a=B=9pN%tmvYFjFIoKe_(GF z-26x{(KXdfsQL7Uv6UtDuYwV`;8V3w>oT_I<`Ccz3QqK9tYT5ZQzbop{=I=!pMOCb zCU68`n?^DT%^&m>A%+-~#lvF!7`L7a{z<3JqIlk1$<||_J}vW1U9Y&eX<}l8##6i( zZcTT@2`9(Mecptm@{3A_Y(X`w9K0EwtPq~O!16bq{7c0f7#(3wn-^)h zxV&M~iiF!{-6A@>o;$RzQ5A50kxXYj!tcgme=Qjrbje~;5X2xryU;vH|6bE(8z^<7 zQ>BG7_c*JG8~K7Oe68i#0~C$v?-t@~@r3t2inUnLT(c=URpA9kA8uq9PKU(Ps(LVH zqgcqW>Gm?6oV#AldDPKVRcEyQIdTT`Qa1j~vS{<;SwyTdr&3*t?J)y=M7q*CzucZ&B0M=joT zBbj@*SY;o2^_h*>R0e({!QHF0=)0hOj^B^d*m>SnRrwq>MolNSgl^~r8GR#mDWGYEIJA8B<|{{j?-7p zVnV$zancW3&JVDtVpIlI|5djKq0(w$KxEFzEiiL=h5Jw~4Le23@s(mYyXWL9SX6Ot zmb)sZaly_P%BeX_9 zw&{yBef8tFm+%=--m*J|o~+Xg3N+$IH)t)=fqD+|fEk4AAZ&!wcN5=mi~Vvo^i`}> z#_3ahR}Ju)(Px7kev#JGcSwPXJ2id9%Qd2A#Uc@t8~egZ8;iC{e! z%=CGJOD1}j!HW_sgbi_8suYnn4#Ou}%9u)dXd3huFIb!ytlX>Denx@pCS-Nj$`VO&j@(z!kKSP0hE4;YIP#w9ta=3DO$7f*x zc9M4&NK%IrVmZAe=r@skWD`AEWH=g+r|*13Ss$+{c_R!b?>?UaGXlw*8qDmY#xlR= z<0XFbs2t?8i^G~m?b|!Hal^ZjRjt<@a? z%({Gn14b4-a|#uY^=@iiKH+k?~~wTj5K1A&hU z2^9-HTC)7zpoWK|$JXaBL6C z#qSNYtY>65T@Zs&-0cHeu|RX(Pxz6vTITdzJdYippF zC-EB+n4}#lM7`2Ry~SO>FxhKboIAF#Z{1wqxaCb{#yEFhLuX;Rx(Lz%T`Xo1+a2M}7D+@wol2)OJs$TwtRNJ={( zD@#zTUEE}#Fz#&(EoD|SV#bayvr&E0vzmb%H?o~46|FAcx?r4$N z&67W3mdip-T1RIxwSm_&(%U|+WvtGBj*}t69XVd&ebn>KOuL(7Y8cV?THd-(+9>G7*Nt%T zcH;`p={`SOjaf7hNd(=37Lz3-51;58JffzIPgGs_7xIOsB5p2t&@v1mKS$2D$*GQ6 zM(IR*j4{nri7NMK9xlDy-hJW6sW|ZiDRaFiayj%;(%51DN!ZCCCXz+0Vm#};70nOx zJ#yA0P3p^1DED;jGdPbQWo0WATN=&2(QybbVdhd=Vq*liDk`c7iZ?*AKEYC#SY&2g z&Q(Ci)MJ{mEat$ZdSwTjf6h~roanYh2?9j$CF@4hjj_f35kTKuGHvIs9}Re@iKMxS-OI*`0S z6s)fOtz}O$T?PLFVSeOjSO26$@u`e<>k(OSP!&YstH3ANh>)mzmKGNOwOawq-MPXe zy4xbeUAl6tamnx))-`Gi2uV5>9n(73yS)Ukma4*7fI8PaEwa)dWHs6QA6>$}7?(L8 ztN8M}?{Tf!Zu22J5?2@95&rQ|F7=FK-hihT-vDp!5JCcWrVogEnp;CHenAZ)+E+K5 z$Cffk5sNwD_?4+ymgcHR(5xgt20Z8M`2*;MzOM#>yhk{r3x=EyM226wb&!+j`W<%* zSc&|`8!>dn9D@!pYow~(DsY_naSx7(Z4i>cu#hA5=;IuI88}7f%)bRkuY2B;+9Uep zpXcvFWkJ!mQai63BgNXG26$5kyhZ2&*3Q_tk)Ii4M>@p~_~q_cE!|^A;_MHB;7s#9 zKzMzK{lIxotjc};k67^Xsl-gS!^*m*m6kn|sbdun`O?dUkJ{0cmI0-_2y=lTAfn*Y zKg*A-2sJq)CCJgY0LF-VQvl&6HIXZyxo2#!O&6fOhbHXC?%1cMc6y^*dOS{f$=137Ds1m01qs`>iUQ49JijsaQ( zksqV9@&?il$|4Ua%4!O15>Zy&%gBY&wgqB>XA3!EldQ%1CRSM(pp#k~-pkcCg4LAT zXE=puHbgsw)!xtc@P4r~Z}nTF=D2~j(6D%gTBw$(`Fc=OOQ0kiW$_RDd=hcO0t97h zb86S5r=>(@VGy1&#S$Kg_H@7G^;8Ue)X5Y+IWUi`o;mpvoV)`fcVk4FpcT|;EG!;? zHG^zrVVZOm>1KFaHlaogcWj(v!S)O(Aa|Vo?S|P z5|6b{qkH(USa*Z7-y_Uvty_Z1|B{rTS^qmEMLEYUSk03_Fg&!O3BMo{b^*`3SHvl0 zhnLTe^_vVIdcSHe)SQE}r~2dq)VZJ!aSKR?RS<(9lzkYo&dQ?mubnWmgMM37Nudwo z3Vz@R{=m2gENUE3V4NbIzAA$H1z0pagz94-PTJyX{b$yndsdKptmlKQKaaHj@3=ED zc7L?p@%ui|RegVYutK$64q4pe9+5sv34QUpo)u{1ci?)_7gXQd{PL>b0l(LI#rJmN zGuO+%GO`xneFOOr4EU(Wg}_%bhzUf;d@TU+V*2#}!2OLwg~%D;1FAu=Un>OgjPb3S z7l(riiCwgghC=Lm5hWGf5NdGp#01xQ59`HJcLXbUR3&n%P(+W2q$h2Qd z*6+-QXJ*&Kvk9ht0f0*rO_|FMBALen{j7T1l%=Q>gf#kma zQlg#I9+HB+z*5BMxdesMND`_W;q5|FaEURFk|~&{@qY32N$G$2B=&Po{=!)x5b!#n zxLzblkq{yj05#O7(GRuT39(06FJlalyv<#K4m}+vs>9@q-&31@1(QBv82{}Zkns~K ze{eHC_RDX0#^A*JQTwF`a=IkE6Ze@j#-8Q`tTT?k9`^ZhA~3eCZJ-Jr{~7Cx;H4A3 zcZ+Zj{mzFZbVvQ6U~n>$U2ZotGsERZ@}VKrgGh0xM;Jzt29%TX6_&CWzg+YYMozrM z`nutuS)_0dCM8UVaKRj804J4i%z2BA_8A4OJRQ$N(P9Mfn-gF;4#q788C@9XR0O3< zsoS4wIoyt046d+LnSCJOy@B@Uz*#GGd#+Ln1ek5Dv>(ZtD@tgZlPnZZJGBLr^JK+!$$?A_fA3LOrkoDRH&l7 zcMcD$Hsjko3`-{bn)jPL6E9Ds{WskMrivsUu5apD z?grQO@W7i5+%X&E&p|RBaEZ(sGLR@~(y^BI@lDMot^Ll?!`90KT!JXUhYS`ZgX3jnu@Ja^seA*M5R@f`=`ynQV4rc$uT1mvE?@tz)TN<=&H1%Z?5yjxcpO+6y_R z6EPuPKM5uxKpmZfT(WKjRRNHs@ib)F5WAP7QCADvmCSD#hPz$V10wiD&{NXyEwx5S z6NE`3z!IS^$s7m}PCwQutVQ#~w+V z=+~->DI*bR2j0^@dMr9`p>q^Ny~NrAVxrJtX2DUveic5vM%#N*XO|?YAWwNI$Q)_) zvE|L(L1jP@F%gOGtnlXtIv2&1i8q<)Xfz8O3G^Ea~e*HJsQgBxWL(yuLY+jqUK zRE~`-zklrGog(X}$9@ZVUw!8*=l`6mzYLtsg`AvBYz(cxmAhr^j0~(rzXdiOEeu_p zE$sf2(w(BPAvO5DlaN&uQ$4@p-b?fRs}d7&2UQ4Fh?1Hzu*YVjcndqJLw0#q@fR4u zJCJ}>_7-|QbvOfylj+e^_L`5Ep9gqd>XI3-O?Wp z-gt*P29f$Tx(mtS`0d05nHH=gm~Po_^OxxUwV294BDKT>PHVlC5bndncxGR!n(OOm znsNt@Q&N{TLrmsoKFw0&_M9$&+C24`sIXGWgQaz=kY;S{?w`z^Q0JXXBKFLj0w0U6P*+jPKyZHX9F#b0D1$&(- zrm8PJd?+SrVf^JlfTM^qGDK&-p2Kdfg?f>^%>1n8bu&byH(huaocL>l@f%c*QkX2i znl}VZ4R1en4S&Bcqw?$=Zi7ohqB$Jw9x`aM#>pHc0x z0$!q7iFu zZ`tryM70qBI6JWWTF9EjgG@>6SRzsd}3h+4D8d~@CR07P$LJ}MFsYi-*O%XVvD@yT|rJ+Mk zDllJ7$n0V&A!0flbOf)HE6P_afPWZmbhpliqJuw=-h+r;WGk|ntkWN(8tKlYpq5Ow z(@%s>IN8nHRaYb*^d;M(D$zGCv5C|uqmsDjwy4g=Lz>*OhO3z=)VD}C<65;`89Ye} zSCxrv#ILzIpEx1KdLPlM&%Cctf@FqTKvNPXC&`*H9=l=D3r!GLM?UV zOxa(8ZsB`&+76S-_xuj?G#wXBfDY@Z_tMpXJS7^mp z@YX&u0jYw2A+Z+bD#6sgVK5ZgdPSJV3>{K^4~%HV?rn~4D)*2H!67Y>0aOmzup`{D zzDp3c9yEbGCY$U<8biJ_gB*`jluz1ShUd!QUIQJ$*1;MXCMApJ^m*Fiv88RZ zFopLViw}{$Tyhh_{MLGIE2~sZ)t0VvoW%=8qKZ>h=adTe3QM$&$PO2lfqH@brt!9j ziePM8$!CgE9iz6B<6_wyTQj?qYa;eC^{x_0wuwV~W+^fZmFco-o%wsKSnjXFEx02V zF5C2t)T6Gw$Kf^_c;Ei3G~uC8SM-xyycmXyC2hAVi-IfXqhu$$-C=*|X?R0~hu z8`J6TdgflslhrmDZq1f?GXF7*ALeMmOEpRDg(s*H`4>_NAr`2uqF;k;JQ+8>A|_6ZNsNLECC%NNEb1Y1dP zbIEmNpK)#XagtL4R6BC{C5T(+=yA-(Z|Ap}U-AfZM#gwVpus3(gPn}Q$CExObJ5AC z)ff9Yk?wZ}dZ-^)?cbb9Fw#EjqQ8jxF4G3=L?Ra zg_)0QDMV1y^A^>HRI$x?Op@t;oj&H@1xt4SZ9(kifQ zb59B*`M99Td7@aZ3UWvj1rD0sE)d=BsBuW*KwkCds7ay(7*01_+L}b~7)VHI>F_!{ zyxg-&nCO?v#KOUec0{OOKy+sjWA;8rTE|Lv6I9H?CI?H(mUm8VXGwU$49LGpz&{nQp2}dinE1@lZ1iox6{ghN&v^GZv9J${7WaXj)<0S4g_uiJ&JCZ zr8-hsu`U%N;+9N^@&Q0^kVPB3)wY(rr}p7{p0qFHb3NUUHJb672+wRZs`gd1UjKPX z4o6zljKKA+Kkj?H>Ew63o%QjyBk&1!P22;MkD>sM0=z_s-G{mTixJCT9@_|*(p^bz zJ8?ZZ&;pzV+7#6Mn`_U-)k8Pjg?a;|Oe^us^PoPY$Va~yi8|?+&=y$f+lABT<*pZr zP}D{~Pq1Qyni+@|aP;ixO~mbEW9#c0OU#YbDZIaw=_&$K%Ep2f%hO^&P67hApZe`x zv8b`Mz@?M_7-)b!lkQKk)JXXUuT|B8kJlvqRmRpxtQDgvrHMXC1B$M@Y%Me!BSx3P z#2Eawl$HleZhhTS6Txm>lN_+I`>eV$&v9fOg)%zVn3O5mI*lAl>QcHuW6!Kixmq`X zBCZ*Ck6OYtDiK!N47>jxI&O2a9x7M|i^IagRr-fmrmikEQGgw%J7bO|)*$2FW95O4 zeBs>KR)izRG1gRVL;F*sr8A}aRHO0gc$$j&ds8CIO1=Gwq1%_~E)CWNn9pCtBE}+`Jelk4{>S)M)`Ll=!~gnn1yq^EX(+y*ik@3Ou0qU`IgYi3*doM+5&dU!cho$pZ zn%lhKeZkS72P?Cf68<#kll_6OAO26bIbueZx**j6o;I0cS^XiL`y+>{cD}gd%lux} z)3N>MaE24WBZ}s0ApfdM;5J_Ny}rfUyxfkC``Awo2#sgLnGPewK};dORuT?@I6(5~ z?kE)Qh$L&fwJXzK){iYx!l5$Tt|^D~MkGZPA}(o6f7w~O2G6Vvzdo*a;iXzk$B66$ zwF#;wM7A+(;uFG4+UAY(2`*3XXx|V$K8AYu#ECJYSl@S=uZW$ksfC$~qrrbQj4??z-)uz0QL}>k^?fPnJTPw% zGz)~?B4}u0CzOf@l^um}HZzbaIwPmb<)< zi_3@E9lc)Qe2_`*Z^HH;1CXOceL=CHpHS{HySy3T%<^NrWQ}G0i4e1xm_K3(+~oi$ zoHl9wzb?Z4j#90DtURtjtgvi7uw8DzHYmtPb;?%8vb9n@bszT=1qr)V_>R%s!92_` zfnHQPANx z<#hIjIMm#*(v*!OXtF+w8kLu`o?VZ5k7{`vw{Yc^qYclpUGIM_PBN1+c{#Vxv&E*@ zxg=W2W~JuV{IuRYw3>LSI1)a!thID@R=bU+cU@DbR^_SXY`MC7HOsCN z!dO4OKV7(E_Z8T#8MA1H`99?Z!r0)qKW_#|29X3#Jb+5+>qUidbeP1NJ@)(qi2S-X zao|f0_tl(O+$R|Qwd$H{_ig|~I1fbp_$NkI!0E;Y z6JrnU{1Ra6^on{9gUUB0mwzP3S%B#h0fjo>JvV~#+X0P~JV=IG=yHG$O+p5O3NUgG zEQ}z6BTp^Fie)Sg<){Z&I8NwPR(=mO4joTLHkJ>|Tnk23E(Bo`FSbPc05lF2-+)X? z6vV3*m~IBHTy*^E!<0nA(tCOJW2G4DsH7)BxLV8kICn5lu6@U*R`w)o9;Ro$i8=Q^V%uH8n3q=+Yf;SFRZu z!+F&PKcH#8cG?aSK_Tl@K9P#8o+jry@gdexz&d(Q=47<7nw@e@FFfIRNL9^)1i@;A z28+$Z#rjv-wj#heI|<&J_DiJ*s}xd-f!{J8jfqOHE`TiHHZVIA8CjkNQ_u;Ery^^t zl1I75&u^`1_q)crO+JT4rx|z2ToSC>)Or@-D zy3S>jW*sNIZR-EBsfyaJ+Jq4BQE4?SePtD2+jY8*%FsSLZ9MY>+wk?}}}AFAw)vr{ml)8LUG-y9>^t!{~|sgpxYc0Gnkg`&~R z-pilJZjr@y5$>B=VMdZ73svct%##v%wdX~9fz6i3Q-zOKJ9wso+h?VME7}SjL=!NUG{J?M&i!>ma`eoEa@IX`5G>B1(7;%}M*%-# zfhJ(W{y;>MRz!Ic8=S}VaBKqh;~7KdnGEHxcL$kA-6E~=!hrN*zw9N+_=odt<$_H_8dbo;0=42wcAETPCVGUr~v(`Uai zb{=D!Qc!dOEU6v)2eHSZq%5iqK?B(JlCq%T6av$Cb4Rko6onlG&?CqaX7Y_C_cOC3 zYZ;_oI(}=>_07}Oep&Ws7x7-R)cc8zfe!SYxJYP``pi$FDS)4Fvw5HH=FiU6xfVqIM!hJ;Rx8c0cB7~aPtNH(Nmm5Vh{ibAoU#J6 zImRCr?(iyu_4W_6AWo3*vxTPUw@vPwy@E0`(>1Qi=%>5eSIrp^`` zK*Y?fK_6F1W>-7UsB)RPC4>>Ps9)f+^MqM}8AUm@tZ->j%&h1M8s*s!LX5&WxQcAh z8mciQej@RPm?660%>{_D+7er>%zX_{s|$Z+;G7_sfNfBgY(zLB4Ey}J9F>zX#K0f6 z?dVNIeEh?EIShmP6>M+d|0wMM85Sa4diw1hrg|ITJ}JDg@o8y>(rF9mXk5M z2@D|NA)-7>wD&wF;S_$KS=eE84`BGw3g0?6wGxu8ys4rwI?9U=*^VF22t3%mbGeOh z`!O-OpF7#Vceu~F`${bW0nYVU9ecmk31V{tF%iv&5hWofC>I~cqAt@u6|R+|HLMMX zVxuSlMFOK_EQ86#E8&KwxIr8S9tj_goWtLv4f@!&h8;Ov41{J~496vp9vX=(LK#j! zAwi*21RAV-LD>9Cw3bV_9X(X3)Kr0-UaB*7Y>t82EQ%!)(&(XuAYtTsYy-dz+w=$ir)VJpe!_$ z6SGpX^i(af3{o=VlFPC);|J8#(=_8#vdxDe|Cok+ANhYwbE*FO`Su2m1~w+&9<_9~ z-|tTU_ACGN`~CNW5WYYBn^B#SwZ(t4%3aPp z;o)|L6Rk569KGxFLUPx@!6OOa+5OjQLK5w&nAmwxkC5rZ|m&HT8G%GVZxB_@ME z>>{rnXUqyiJrT(8GMj_ap#yN_!9-lO5e8mR3cJiK3NE{_UM&=*vIU`YkiL$1%kf+1 z4=jk@7EEj`u(jy$HnzE33ZVW_J4bj}K;vT?T91YlO(|Y0FU4r+VdbmQ97%(J5 zkK*Bed8+C}FcZ@HIgdCMioV%A<*4pw_n}l*{Cr4}a(lq|injK#O?$tyvyE`S%(1`H z_wwRvk#13ElkZvij2MFGOj`fhy?nC^8`Zyo%yVcUAfEr8x&J#A{|moUBAV_^f$hpaUuyQeY3da^ zS9iRgf87YBwfe}>BO+T&Fl%rfpZh#+AM?Dq-k$Bq`vG6G_b4z%Kbd&v>qFjow*mBl z-OylnqOpLg}or7_VNwRg2za3VBK6FUfFX{|TD z`Wt0Vm2H$vdlRWYQJqDmM?JUbVqL*ZQY|5&sY*?!&%P8qhA~5+Af<{MaGo(dl&C5t zE%t!J0 zh6jqANt4ABdPxSTrVV}fLsRQal*)l&_*rFq(Ez}ClEH6LHv{J#v?+H-BZ2)Wy{K@9 z+ovXHq~DiDvm>O~r$LJo!cOuwL+Oa--6;UFE2q@g3N8Qkw5E>ytz^(&($!O47+i~$ zKM+tkAd-RbmP{s_rh+ugTD;lriL~`Xwkad#;_aM?nQ7L_muEFI}U_4$phjvYgleK~`Fo`;GiC07&Hq1F<%p;9Q;tv5b?*QnR%8DYJH3P>Svmv47Y>*LPZJy8_{9H`g6kQpyZU{oJ`m%&p~D=K#KpfoJ@ zn-3cqmHsdtN!f?~w+(t+I`*7GQA#EQC^lUA9(i6=i1PqSAc|ha91I%X&nXzjYaM{8$s&wEx@aVkQ6M{E2 zfzId#&r(XwUNtPcq4Ngze^+XaJA1EK-%&C9j>^9(secqe{}z>hR5CFNveMsVA)m#S zk)_%SidkY-XmMWlVnQ(mNJ>)ooszQ#vaK;!rPmGKXV7am^_F!Lz>;~{VrIO$;!#30XRhE1QqO_~#+Ux;B_D{Nk=grn z8Y0oR^4RqtcYM)7a%@B(XdbZCOqnX#fD{BQTeLvRHd(irHKq=4*jq34`6@VAQR8WG z^%)@5CXnD_T#f%@-l${>y$tfb>2LPmc{~5A82|16mH)R?&r#KKLs7xpN-D`=&Cm^R zvMA6#Ahr<3X>Q7|-qfTY)}32HkAz$_mibYV!I)u>bmjK`qwBe(>za^0Kt*HnFbSdO z1>+ryKCNxmm^)*$XfiDOF2|{-v3KKB?&!(S_Y=Ht@|ir^hLd978xuI&N{k>?(*f8H z=ClxVJK_%_z1TH0eUwm2J+2To7FK4o+n_na)&#VLn1m;!+CX+~WC+qg1?PA~KdOlC zW)C@pw75_xoe=w7i|r9KGIvQ$+3K?L{7TGHwrQM{dCp=Z*D}3kX7E-@sZnup!BImw z*T#a=+WcTwL78exTgBn|iNE3#EsOorO z*kt)gDzHiPt07fmisA2LWN?AymkdqTgr?=loT7z@d`wnlr6oN}@o|&JX!yPzC*Y8d zu6kWlTzE1)ckyBn+0Y^HMN+GA$wUO_LN6W>mxCo!0?oiQvT`z$jbSEu&{UHRU0E8# z%B^wOc@S!yhMT49Y)ww(Xta^8pmPCe@eI5C*ed96)AX9<>))nKx0(sci8gwob_1}4 z0DIL&vsJ1_s%<@y%U*-eX z5rN&(zef-5G~?@r79oZGW1d!WaTqQn0F6RIOa9tJ=0(kdd{d1{<*tHT#cCvl*i>YY zH+L7jq8xZNcTUBqj(S)ztTU!TM!RQ}In*n&Gn<>(60G7}4%WQL!o>hbJqNDSGwl#H z`4k+twp0cj%PsS+NKaxslAEu9!#U3xT1|_KB6`h=PI0SW`P9GTa7caD1}vKEglV8# zjKZR`pluCW19c2fM&ZG)c3T3Um;ir3y(tSCJ7Agl6|b524dy5El{^EQBG?E61H0XY z`bqg!;zhGhyMFl&(o=JWEJ8n~z)xI}A@C0d2hQGvw7nGv)?POU@(kS1m=%`|+^ika zXl8zjS?xqW$WlO?Ewa;vF~XbybHBor$f<%I&*t$F5fynwZlTGj|IjZtVfGa7l&tK} zW>I<69w(cZLu)QIVG|M2xzW@S+70NinQzk&Y0+3WT*cC)rx~04O-^<{JohU_&HL5XdUKW!uFy|i$FB|EMu0eUyW;gsf`XfIc!Z0V zeK&*hPL}f_cX=@iv>K%S5kL;cl_$v?n(Q9f_cChk8Lq$glT|=e+T*8O4H2n<=NGmn z+2*h+v;kBvF>}&0RDS>)B{1!_*XuE8A$Y=G8w^qGMtfudDBsD5>T5SB;Qo}fSkkiV ze^K^M(UthkwrD!&*tTsu>Dacdj_q`~V%r_twr$(Ct&_dKeeXE?fA&4&yASJWJ*}~- zel=@W)tusynfC_YqH4ll>4Eg`Xjs5F7Tj>tTLz<0N3)X<1px_d2yUY>X~y>>93*$) z5PuNMQLf9Bu?AAGO~a_|J2akO1M*@VYN^VxvP0F$2>;Zb9;d5Yfd8P%oFCCoZE$ z4#N$^J8rxYjUE_6{T%Y>MmWfHgScpuGv59#4u6fpTF%~KB^Ae`t1TD_^Ud#DhL+Dm zbY^VAM#MrAmFj{3-BpVSWph2b_Y6gCnCAombVa|1S@DU)2r9W<> zT5L8BB^er3zxKt1v(y&OYk!^aoQisqU zH(g@_o)D~BufUXcPt!Ydom)e|aW{XiMnes2z&rE?og>7|G+tp7&^;q?Qz5S5^yd$i z8lWr4g5nctBHtigX%0%XzIAB8U|T6&JsC4&^hZBw^*aIcuNO47de?|pGXJ4t}BB`L^d8tD`H`i zqrP8?#J@8T#;{^B!KO6J=@OWKhAerih(phML`(Rg7N1XWf1TN>=Z3Do{l_!d~DND&)O)D>ta20}@Lt77qSnVsA7>)uZAaT9bsB>u&aUQl+7GiY2|dAEg@%Al3i316y;&IhQL^8fw_nwS>f60M_-m+!5)S_6EPM7Y)(Nq^8gL7(3 zOiot`6Wy6%vw~a_H?1hLVzIT^i1;HedHgW9-P#)}Y6vF%C=P70X0Tk^z9Te@kPILI z_(gk!k+0%CG)%!WnBjjw*kAKs_lf#=5HXC00s-}oM-Q1aXYLj)(1d!_a7 z*Gg4Fe6F$*ujVjI|79Z5+Pr`us%zW@ln++2l+0hsngv<{mJ%?OfSo_3HJXOCys{Ug z00*YR-(fv<=&%Q!j%b-_ppA$JsTm^_L4x`$k{VpfLI(FMCap%LFAyq;#ns5bR7V+x zO!o;c5y~DyBPqdVQX)8G^G&jWkBy2|oWTw>)?5u}SAsI$RjT#)lTV&Rf8;>u*qXnb z8F%Xb=7#$m)83z%`E;49)t3fHInhtc#kx4wSLLms!*~Z$V?bTyUGiS&m>1P(952(H zuHdv=;o*{;5#X-uAyon`hP}d#U{uDlV?W?_5UjJvf%11hKwe&(&9_~{W)*y1nR5f_ z!N(R74nNK`y8>B!0Bt_Vr!;nc3W>~RiKtGSBkNlsR#-t^&;$W#)f9tTlZz>n*+Fjz z3zXZ;jf(sTM(oDzJt4FJS*8c&;PLTW(IQDFs_5QPy+7yhi1syPCarvqrHFcf&yTy)^O<1EBx;Ir`5W{TIM>{8w&PB>ro4;YD<5LF^TjTb0!zAP|QijA+1Vg>{Afv^% zmrkc4o6rvBI;Q8rj4*=AZacy*n8B{&G3VJc)so4$XUoie0)vr;qzPZVbb<#Fc=j+8CGBWe$n|3K& z_@%?{l|TzKSlUEO{U{{%Fz_pVDxs7i9H#bnbCw7@4DR=}r_qV!Zo~CvD4ZI*+j3kO zW6_=|S`)(*gM0Z;;}nj`73OigF4p6_NPZQ-Od~e$c_);;4-7sR>+2u$6m$Gf%T{aq zle>e3(*Rt(TPD}03n5)!Ca8Pu!V}m6v0o1;5<1h$*|7z|^(3$Y&;KHKTT}hV056wuF0Xo@mK-52~r=6^SI1NC%c~CC?n>yX6wPTgiWYVz!Sx^atLby9YNn1Rk{g?|pJaxD4|9cUf|V1_I*w zzxK)hRh9%zOl=*$?XUjly5z8?jPMy%vEN)f%T*|WO|bp5NWv@B(K3D6LMl!-6dQg0 zXNE&O>Oyf%K@`ngCvbGPR>HRg5!1IV$_}m@3dWB7x3t&KFyOJn9pxRXCAzFr&%37wXG;z^xaO$ekR=LJG ztIHpY8F5xBP{mtQidqNRoz= z@){+N3(VO5bD+VrmS^YjG@+JO{EOIW)9=F4v_$Ed8rZtHvjpiEp{r^c4F6Ic#ChlC zJX^DtSK+v(YdCW)^EFcs=XP7S>Y!4=xgmv>{S$~@h=xW-G4FF9?I@zYN$e5oF9g$# zb!eVU#J+NjLyX;yb)%SY)xJdvGhsnE*JEkuOVo^k5PyS=o#vq!KD46UTW_%R=Y&0G zFj6bV{`Y6)YoKgqnir2&+sl+i6foAn-**Zd1{_;Zb7Ki=u394C5J{l^H@XN`_6XTKY%X1AgQM6KycJ+= zYO=&t#5oSKB^pYhNdzPgH~aEGW2=ec1O#s-KG z71}LOg@4UEFtp3GY1PBemXpNs6UK-ax*)#$J^pC_me;Z$Je(OqLoh|ZrW*mAMBFn< zHttjwC&fkVfMnQeen8`Rvy^$pNRFVaiEN4Pih*Y3@jo!T0nsClN)pdrr9AYLcZxZ| zJ5Wlj+4q~($hbtuY zVQ7hl>4-+@6g1i`1a)rvtp-;b0>^`Dloy(#{z~ytgv=j4q^Kl}wD>K_Y!l~ zp(_&7sh`vfO(1*MO!B%<6E_bx1)&s+Ae`O)a|X=J9y~XDa@UB`m)`tSG4AUhoM=5& znWoHlA-(z@3n0=l{E)R-p8sB9XkV zZ#D8wietfHL?J5X0%&fGg@MH~(rNS2`GHS4xTo7L$>TPme+Is~!|79=^}QbPF>m%J zFMkGzSndiPO|E~hrhCeo@&Ea{M(ieIgRWMf)E}qeTxT8Q#g-!Lu*x$v8W^M^>?-g= zwMJ$dThI|~M06rG$Sv@C@tWR>_YgaG&!BAbkGggVQa#KdtDB)lMLNVLN|51C@F^y8 zCRvMB^{GO@j=cHfmy}_pCGbP%xb{pNN>? z?7tBz$1^zVaP|uaatYaIN+#xEN4jBzwZ|YI_)p(4CUAz1ZEbDk>J~Y|63SZaak~#0 zoYKruYsWHoOlC1(MhTnsdUOwQfz5p6-D0}4;DO$B;7#M{3lSE^jnTT;ns`>!G%i*F?@pR1JO{QTuD0U+~SlZxcc8~>IB{)@8p`P&+nDxNj`*gh|u?yrv$phpQcW)Us)bi`kT%qLj(fi{dWRZ%Es2!=3mI~UxiW0$-v3vUl?#g{p6eF zMEUAqo5-L0Ar(s{VlR9g=j7+lt!gP!UN2ICMokAZ5(Agd>})#gkA2w|5+<%-CuEP# zqgcM}u@3(QIC^Gx<2dbLj?cFSws_f3e%f4jeR?4M^M3cx1f+Qr6ydQ>n)kz1s##2w zk}UyQc+Z5G-d-1}{WzjkLXgS-2P7auWSJ%pSnD|Uivj5u!xk0 z_^-N9r9o;(rFDt~q1PvE#iJZ_f>J3gcP$)SOqhE~pD2|$=GvpL^d!r z6u=sp-CrMoF7;)}Zd7XO4XihC4ji?>V&(t^?@3Q&t9Mx=qex6C9d%{FE6dvU6%d94 zIE;hJ1J)cCqjv?F``7I*6bc#X)JW2b4f$L^>j{*$R`%5VHFi*+Q$2;nyieduE}qdS{L8y8F08yLs?w}{>8>$3236T-VMh@B zq-nujsb_1aUv_7g#)*rf9h%sFj*^mIcImRV*k~Vmw;%;YH(&ylYpy!&UjUVqqtfG` zox3esju?`unJJA_zKXRJP)rA3nXc$m^{S&-p|v|-0x9LHJm;XIww7C#R$?00l&Yyj z=e}gKUOpsImwW?N)+E(awoF@HyP^EhL+GlNB#k?R<2>95hz!h9sF@U20DHSB3~WMa zk90+858r@-+vWwkawJ)8ougd(i#1m3GLN{iSTylYz$brAsP%=&m$mQQrH$g%3-^VR zE%B`Vi&m8f3T~&myTEK28BDWCVzfWir1I?03;pX))|kY5ClO^+bae z*7E?g=3g7EiisYOrE+lA)2?Ln6q2*HLNpZEWMB|O-JI_oaHZB%CvYB(%=tU= zE*OY%QY58fW#RG5=gm0NR#iMB=EuNF@)%oZJ}nmm=tsJ?eGjia{e{yuU0l3{d^D@)kVDt=1PE)&tf_hHC%0MB znL|CRCPC}SeuVTdf>-QV70`0(EHizc21s^sU>y%hW0t!0&y<7}Wi-wGy>m%(-jsDj zP?mF|>p_K>liZ6ZP(w5(|9Ga%>tLgb$|doDDfkdW>Z z`)>V2XC?NJT26mL^@ zf+IKr27TfM!UbZ@?zRddC7#6ss1sw%CXJ4FWC+t3lHZupzM77m^=9 z&(a?-LxIq}*nvv)y?27lZ{j zifdl9hyJudyP2LpU$-kXctshbJDKS{WfulP5Dk~xU4Le4c#h^(YjJit4#R8_khheS z|8(>2ibaHES4+J|DBM7I#QF5u-*EdN{n=Kt@4Zt?@Tv{JZA{`4 zU#kYOv{#A&gGPwT+$Ud}AXlK3K7hYzo$(fBSFjrP{QQ zeaKg--L&jh$9N}`pu{Bs>?eDFPaWY4|9|foN%}i;3%;@4{dc+iw>m}{3rELqH21G! z`8@;w-zsJ1H(N3%|1B@#ioLOjib)j`EiJqPQVSbPSPVHCj6t5J&(NcWzBrzCiDt{4 zdlPAUKldz%6x5II1H_+jv)(xVL+a;P+-1hv_pM>gMRr%04@k;DTokASSKKhU1Qms| zrWh3a!b(J3n0>-tipg{a?UaKsP7?+|@A+1WPDiQIW1Sf@qDU~M_P65_s}7(gjTn0X zucyEm)o;f8UyshMy&>^SC3I|C6jR*R_GFwGranWZe*I>K+0k}pBuET&M~ z;Odo*ZcT?ZpduHyrf8E%IBFtv;JQ!N_m>!sV6ly$_1D{(&nO~w)G~Y`7sD3#hQk%^ zp}ucDF_$!6DAz*PM8yE(&~;%|=+h(Rn-=1Wykas_-@d&z#=S}rDf`4w(rVlcF&lF! z=1)M3YVz7orwk^BXhslJ8jR);sh^knJW(Qmm(QdSgIAIdlN4Te5KJisifjr?eB{FjAX1a0AB>d?qY4Wx>BZ8&}5K0fA+d{l8 z?^s&l8#j7pR&ijD?0b%;lL9l$P_mi2^*_OL+b}4kuLR$GAf85sOo02?Y#90}CCDiS zZ%rbCw>=H~CBO=C_JVV=xgDe%b4FaEFtuS7Q1##y686r%F6I)s-~2(}PWK|Z8M+Gu zl$y~5@#0Ka%$M<&Cv%L`a8X^@tY&T7<0|(6dNT=EsRe0%kp1Qyq!^43VAKYnr*A5~ zsI%lK1ewqO;0TpLrT9v}!@vJK{QoVa_+N4FYT#h?Y8rS1S&-G+m$FNMP?(8N`MZP zels(*?kK{{^g9DOzkuZXJ2;SrOQsp9T$hwRB1(phw1c7`!Q!by?Q#YsSM#I12RhU{$Q+{xj83axHcftEc$mNJ8_T7A-BQc*k(sZ+~NsO~xAA zxnbb%dam_fZlHvW7fKXrB~F&jS<4FD2FqY?VG?ix*r~MDXCE^WQ|W|WM;gsIA4lQP zJ2hAK@CF*3*VqPr2eeg6GzWFlICi8S>nO>5HvWzyZTE)hlkdC_>pBej*>o0EOHR|) z$?};&I4+_?wvL*g#PJ9)!bc#9BJu1(*RdNEn>#Oxta(VWeM40ola<0aOe2kSS~{^P zDJBd}0L-P#O-CzX*%+$#v;(x%<*SPgAje=F{Zh-@ucd2DA(yC|N_|ocs*|-!H%wEw z@Q!>siv2W;C^^j^59OAX03&}&D*W4EjCvfi(ygcL#~t8XGa#|NPO+*M@Y-)ctFA@I z-p7npT1#5zOLo>7q?aZpCZ=iecn3QYklP;gF0bq@>oyBq94f6C=;Csw3PkZ|5q=(c zfs`aw?II0e(h=|7o&T+hq&m$; zBrE09Twxd9BJ2P+QPN}*OdZ-JZV7%av@OM7v!!NL8R;%WFq*?{9T3{ct@2EKgc8h) zMxoM$SaF#p<`65BwIDfmXG6+OiK0e)`I=!A3E`+K@61f}0e z!2a*FOaDrOe>U`q%K!QN`&=&0C~)CaL3R4VY(NDt{Xz(Xpqru5=r#uQN1L$Je1*dkdqQ*=lofQaN%lO!<5z9ZlHgxt|`THd>2 zsWfU$9=p;yLyJyM^t zS2w9w?Bpto`@H^xJpZDKR1@~^30Il6oFGfk5%g6w*C+VM)+%R@gfIwNprOV5{F^M2 zO?n3DEzpT+EoSV-%OdvZvNF+pDd-ZVZ&d8 zKeIyrrfPN=EcFRCPEDCVflX#3-)Ik_HCkL(ejmY8vzcf-MTA{oHk!R2*36`O68$7J zf}zJC+bbQk--9Xm!u#lgLvx8TXx2J258E5^*IZ(FXMpq$2LUUvhWQPs((z1+2{Op% z?J}9k5^N=z;7ja~zi8a_-exIqWUBJwohe#4QJ`|FF*$C{lM18z^#hX6!5B8KAkLUX ziP=oti-gpV(BsLD{0(3*dw}4JxK23Y7M{BeFPucw!sHpY&l%Ws4pSm`+~V7;bZ%Dx zeI)MK=4vC&5#;2MT7fS?^ch9?2;%<8Jlu-IB&N~gg8t;6S-#C@!NU{`p7M8@2iGc& zg|JPg%@gCoCQ&s6JvDU&`X2S<57f(k8nJ1wvBu{8r?;q3_kpZZ${?|( z+^)UvR33sjSd)aT!UPkA;ylO6{aE3MQa{g%Mcf$1KONcjO@&g5zPHWtzM1rYC{_K> zgQNcs<{&X{OA=cEWw5JGqpr0O>x*Tfak2PE9?FuWtz^DDNI}rwAaT0(bdo-<+SJ6A z&}S%boGMWIS0L}=S>|-#kRX;e^sUsotry(MjE|3_9duvfc|nwF#NHuM-w7ZU!5ei8 z6Mkf>2)WunY2eU@C-Uj-A zG(z0Tz2YoBk>zCz_9-)4a>T46$(~kF+Y{#sA9MWH%5z#zNoz)sdXq7ZR_+`RZ%0(q zC7&GyS_|BGHNFl8Xa%@>iWh%Gr?=J5<(!OEjauj5jyrA-QXBjn0OAhJJ9+v=!LK`` z@g(`^*84Q4jcDL`OA&ZV60djgwG`|bcD*i50O}Q{9_noRg|~?dj%VtKOnyRs$Uzqg z191aWoR^rDX#@iSq0n z?9Sg$WSRPqSeI<}&n1T3!6%Wj@5iw5`*`Btni~G=&;J+4`7g#OQTa>u`{4ZZ(c@s$ zK0y;ySOGD-UTjREKbru{QaS>HjN<2)R%Nn-TZiQ(Twe4p@-saNa3~p{?^V9Nixz@a zykPv~<@lu6-Ng9i$Lrk(xi2Tri3q=RW`BJYOPC;S0Yly%77c727Yj-d1vF!Fuk{Xh z)lMbA69y7*5ufET>P*gXQrxsW+ zz)*MbHZv*eJPEXYE<6g6_M7N%#%mR{#awV3i^PafNv(zyI)&bH?F}2s8_rR(6%!V4SOWlup`TKAb@ee>!9JKPM=&8g#BeYRH9FpFybxBXQI2|g}FGJfJ+ zY-*2hB?o{TVL;Wt_ek;AP5PBqfDR4@Z->_182W z{P@Mc27j6jE*9xG{R$>6_;i=y{qf(c`5w9fa*`rEzX6t!KJ(p1H|>J1pC-2zqWENF zmm=Z5B4u{cY2XYl(PfrInB*~WGWik3@1oRhiMOS|D;acnf-Bs(QCm#wR;@Vf!hOPJ zgjhDCfDj$HcyVLJ=AaTbQ{@vIv14LWWF$=i-BDoC11}V;2V8A`S>_x)vIq44-VB-v z*w-d}$G+Ql?En8j!~ZkCpQ$|cA0|+rrY>tiCeWxkRGPoarxlGU2?7%k#F693RHT24 z-?JsiXlT2PTqZqNb&sSc>$d;O4V@|b6VKSWQb~bUaWn1Cf0+K%`Q&Wc<>mQ>*iEGB zbZ;aYOotBZ{vH3y<0A*L0QVM|#rf*LIsGx(O*-7)r@yyBIzJnBFSKBUSl1e|8lxU* zzFL+YDVVkIuzFWeJ8AbgN&w(4-7zbiaMn{5!JQXu)SELk*CNL+Fro|2v|YO)1l15t zs(0^&EB6DPMyaqvY>=KL>)tEpsn;N5Q#yJj<9}ImL((SqErWN3Q=;tBO~ExTCs9hB z2E$7eN#5wX4<3m^5pdjm#5o>s#eS_Q^P)tm$@SawTqF*1dj_i#)3};JslbLKHXl_N z)Fxzf>FN)EK&Rz&*|6&%Hs-^f{V|+_vL1S;-1K-l$5xiC@}%uDuwHYhmsV?YcOUlk zOYkG5v2+`+UWqpn0aaaqrD3lYdh0*!L`3FAsNKu=Q!vJu?Yc8n|CoYyDo_`r0mPoo z8>XCo$W4>l(==h?2~PoRR*kEe)&IH{1sM41mO#-36`02m#nTX{r*r`Q5rZ2-sE|nA zhnn5T#s#v`52T5|?GNS`%HgS2;R(*|^egNPDzzH_z^W)-Q98~$#YAe)cEZ%vge965AS_am#DK#pjPRr-!^za8>`kksCAUj(Xr*1NW5~e zpypt_eJpD&4_bl_y?G%>^L}=>xAaV>KR6;^aBytqpiHe%!j;&MzI_>Sx7O%F%D*8s zSN}cS^<{iiK)=Ji`FpO#^zY!_|D)qeRNAtgmH)m;qC|mq^j(|hL`7uBz+ULUj37gj zksdbnU+LSVo35riSX_4z{UX=%n&}7s0{WuZYoSfwAP`8aKN9P@%e=~1`~1ASL-z%# zw>DO&ixr}c9%4InGc*_y42bdEk)ZdG7-mTu0bD@_vGAr*NcFoMW;@r?@LUhRI zCUJgHb`O?M3!w)|CPu~ej%fddw20lod?Ufp8Dmt0PbnA0J%KE^2~AIcnKP()025V> zG>noSM3$5Btmc$GZoyP^v1@Poz0FD(6YSTH@aD0}BXva?LphAiSz9f&Y(aDAzBnUh z?d2m``~{z;{}kZJ>a^wYI?ry(V9hIoh;|EFc0*-#*`$T0DRQ1;WsqInG;YPS+I4{g zJGpKk%%Sdc5xBa$Q^_I~(F97eqDO7AN3EN0u)PNBAb+n+ zWBTxQx^;O9o0`=g+Zrt_{lP!sgWZHW?8bLYS$;1a@&7w9rD9|Ge;Gb?sEjFoF9-6v z#!2)t{DMHZ2@0W*fCx;62d#;jouz`R5Y(t{BT=$N4yr^^o$ON8d{PQ=!O zX17^CrdM~7D-;ZrC!||<+FEOxI_WI3CA<35va%4v>gc zEX-@h8esj=a4szW7x{0g$hwoWRQG$yK{@3mqd-jYiVofJE!Wok1* znV7Gm&Ssq#hFuvj1sRyHg(6PFA5U*Q8Rx>-blOs=lb`qa{zFy&n4xY;sd$fE+<3EI z##W$P9M{B3c3Si9gw^jlPU-JqD~Cye;wr=XkV7BSv#6}DrsXWFJ3eUNrc%7{=^sP> zrp)BWKA9<}^R9g!0q7yWlh;gr_TEOD|#BmGq<@IV;ueg+D2}cjpp+dPf&Q(36sFU&K8}hA85U61faW&{ zlB`9HUl-WWCG|<1XANN3JVAkRYvr5U4q6;!G*MTdSUt*Mi=z_y3B1A9j-@aK{lNvx zK%p23>M&=KTCgR!Ee8c?DAO2_R?B zkaqr6^BSP!8dHXxj%N1l+V$_%vzHjqvu7p@%Nl6;>y*S}M!B=pz=aqUV#`;h%M0rU zHfcog>kv3UZAEB*g7Er@t6CF8kHDmKTjO@rejA^ULqn!`LwrEwOVmHx^;g|5PHm#B zZ+jjWgjJ!043F+&#_;D*mz%Q60=L9Ove|$gU&~As5^uz@2-BfQ!bW)Khn}G+Wyjw- z19qI#oB(RSNydn0t~;tAmK!P-d{b-@@E5|cdgOS#!>%#Rj6ynkMvaW@37E>@hJP^8 z2zk8VXx|>#R^JCcWdBCy{0nPmYFOxN55#^-rlqobe0#L6)bi?E?SPymF*a5oDDeSd zO0gx?#KMoOd&G(2O@*W)HgX6y_aa6iMCl^~`{@UR`nMQE`>n_{_aY5nA}vqU8mt8H z`oa=g0SyiLd~BxAj2~l$zRSDHxvDs;I4>+M$W`HbJ|g&P+$!U7-PHX4RAcR0szJ*( ze-417=bO2q{492SWrqDK+L3#ChUHtz*@MP)e^%@>_&#Yk^1|tv@j4%3T)diEX zATx4K*hcO`sY$jk#jN5WD<=C3nvuVsRh||qDHnc~;Kf59zr0;c7VkVSUPD%NnnJC_ zl3F^#f_rDu8l}l8qcAz0FFa)EAt32IUy_JLIhU_J^l~FRH&6-ivSpG2PRqzDdMWft>Zc(c)#tb%wgmWN%>IOPm zZi-noqS!^Ftb81pRcQi`X#UhWK70hy4tGW1mz|+vI8c*h@ zfFGJtW3r>qV>1Z0r|L>7I3un^gcep$AAWfZHRvB|E*kktY$qQP_$YG60C@X~tTQjB3%@`uz!qxtxF+LE!+=nrS^07hn` zEgAp!h|r03h7B!$#OZW#ACD+M;-5J!W+{h|6I;5cNnE(Y863%1(oH}_FTW})8zYb$7czP zg~Szk1+_NTm6SJ0MS_|oSz%e(S~P-&SFp;!k?uFayytV$8HPwuyELSXOs^27XvK-D zOx-Dl!P|28DK6iX>p#Yb%3`A&CG0X2S43FjN%IB}q(!hC$fG}yl1y9W&W&I@KTg6@ zK^kpH8=yFuP+vI^+59|3%Zqnb5lTDAykf z9S#X`3N(X^SpdMyWQGOQRjhiwlj!0W-yD<3aEj^&X%=?`6lCy~?`&WSWt z?U~EKFcCG_RJ(Qp7j=$I%H8t)Z@6VjA#>1f@EYiS8MRHZphp zMA_5`znM=pzUpBPO)pXGYpQ6gkine{6u_o!P@Q+NKJ}k!_X7u|qfpAyIJb$_#3@wJ z<1SE2Edkfk9C!0t%}8Yio09^F`YGzpaJHGk*-ffsn85@)%4@`;Fv^8q(-Wk7r=Q8p zT&hD`5(f?M{gfzGbbwh8(}G#|#fDuk7v1W)5H9wkorE0ZZjL0Q1=NRGY>zwgfm81DdoaVwNH;or{{eSyybt)m<=zXoA^RALYG-2t zouH|L*BLvmm9cdMmn+KGopyR@4*=&0&4g|FLoreZOhRmh=)R0bg~ zT2(8V_q7~42-zvb)+y959OAv!V$u(O3)%Es0M@CRFmG{5sovIq4%8Ahjk#*5w{+)+ zMWQoJI_r$HxL5km1#6(e@{lK3Udc~n0@g`g$s?VrnQJ$!oPnb?IHh-1qA`Rz$)Ai< z6w$-MJW-gKNvOhL+XMbE7&mFt`x1KY>k4(!KbbpZ`>`K@1J<(#vVbjx@Z@(6Q}MF# zMnbr-f55(cTa^q4+#)=s+ThMaV~E`B8V=|W_fZWDwiso8tNMTNse)RNBGi=gVwgg% zbOg8>mbRN%7^Um-7oj4=6`$|(K7!+t^90a{$18Z>}<#!bm%ZEFQ{X(yBZMc>lCz0f1I2w9Sq zuGh<9<=AO&g6BZte6hn>Qmvv;Rt)*cJfTr2=~EnGD8P$v3R|&1RCl&7)b+`=QGapi zPbLg_pxm`+HZurtFZ;wZ=`Vk*do~$wB zxoW&=j0OTbQ=Q%S8XJ%~qoa3Ea|au5o}_(P;=!y-AjFrERh%8la!z6Fn@lR?^E~H12D?8#ht=1F;7@o4$Q8GDj;sSC%Jfn01xgL&%F2 zwG1|5ikb^qHv&9hT8w83+yv&BQXOQyMVJSBL(Ky~p)gU3#%|blG?IR9rP^zUbs7rOA0X52Ao=GRt@C&zlyjNLv-} z9?*x{y(`509qhCV*B47f2hLrGl^<@SuRGR!KwHei?!CM10Tq*YDIoBNyRuO*>3FU? zHjipIE#B~y3FSfOsMfj~F9PNr*H?0oHyYB^G(YyNh{SxcE(Y-`x5jFMKb~HO*m+R% zrq|ic4fzJ#USpTm;X7K+E%xsT_3VHKe?*uc4-FsILUH;kL>_okY(w`VU*8+l>o>Jm ziU#?2^`>arnsl#)*R&nf_%>A+qwl%o{l(u)M?DK1^mf260_oteV3#E_>6Y4!_hhVD zM8AI6MM2V*^_M^sQ0dmHu11fy^kOqXqzpr?K$`}BKWG`=Es(9&S@K@)ZjA{lj3ea7_MBP zk(|hBFRjHVMN!sNUkrB;(cTP)T97M$0Dtc&UXSec<+q?y>5=)}S~{Z@ua;1xt@=T5 zI7{`Z=z_X*no8s>mY;>BvEXK%b`a6(DTS6t&b!vf_z#HM{Uoy_5fiB(zpkF{})ruka$iX*~pq1ZxD?q68dIo zIZSVls9kFGsTwvr4{T_LidcWtt$u{kJlW7moRaH6+A5hW&;;2O#$oKyEN8kx`LmG)Wfq4ykh+q{I3|RfVpkR&QH_x;t41Uw z`P+tft^E2B$domKT@|nNW`EHwyj>&}K;eDpe z1bNOh=fvIfk`&B61+S8ND<(KC%>y&?>opCnY*r5M+!UrWKxv0_QvTlJc>X#AaI^xo zaRXL}t5Ej_Z$y*|w*$6D+A?Lw-CO-$itm^{2Ct82-<0IW)0KMNvJHgBrdsIR0v~=H z?n6^}l{D``Me90`^o|q!olsF?UX3YSq^6Vu>Ijm>>PaZI8G@<^NGw{Cx&%|PwYrfw zR!gX_%AR=L3BFsf8LxI|K^J}deh0ZdV?$3r--FEX`#INxsOG6_=!v)DI>0q|BxT)z z-G6kzA01M?rba+G_mwNMQD1mbVbNTWmBi*{s_v_Ft9m2Avg!^78(QFu&n6mbRJ2bA zv!b;%yo{g*9l2)>tsZJOOp}U~8VUH`}$ z8p_}t*XIOehezolNa-a2x0BS})Y9}&*TPgua{Ewn-=wVrmJUeU39EKx+%w%=ixQWK zDLpwaNJs65#6o7Ln7~~X+p_o2BR1g~VCfxLzxA{HlWAI6^H;`juI=&r1jQrUv_q0Z z1Ja-tjdktrrP>GOC*#p?*xfQU5MqjMsBe!9lh(u8)w$e@Z|>aUHI5o;MGw*|Myiz3 z-f0;pHg~Q#%*Kx8MxH%AluVXjG2C$)WL-K63@Q`#y9_k_+}eR(x4~dp7oV-ek0H>I zgy8p#i4GN{>#v=pFYUQT(g&b$OeTy-X_#FDgNF8XyfGY6R!>inYn8IR2RDa&O!(6< znXs{W!bkP|s_YI*Yx%4stI`=ZO45IK6rBs`g7sP40ic}GZ58s?Mc$&i`kq_tfci>N zIHrC0H+Qpam1bNa=(`SRKjixBTtm&e`j9porEci!zdlg1RI0Jw#b(_Tb@RQK1Zxr_ z%7SUeH6=TrXt3J@js`4iDD0=IoHhK~I7^W8^Rcp~Yaf>2wVe|Hh1bUpX9ATD#moByY57-f2Ef1TP^lBi&p5_s7WGG9|0T}dlfxOx zXvScJO1Cnq`c`~{Dp;{;l<-KkCDE+pmexJkd}zCgE{eF=)K``-qC~IT6GcRog_)!X z?fK^F8UDz$(zFUrwuR$qro5>qqn>+Z%<5>;_*3pZ8QM|yv9CAtrAx;($>4l^_$_-L z*&?(77!-=zvnCVW&kUcZMb6;2!83si518Y%R*A3JZ8Is|kUCMu`!vxDgaWjs7^0j( ziTaS4HhQ)ldR=r)_7vYFUr%THE}cPF{0H45FJ5MQW^+W>P+eEX2kLp3zzFe*-pFVA zdDZRybv?H|>`9f$AKVjFWJ=wegO7hOOIYCtd?Vj{EYLT*^gl35|HQ`R=ti+ADm{jyQE7K@kdjuqJhWVSks>b^ zxha88-h3s;%3_5b1TqFCPTxVjvuB5U>v=HyZ$?JSk+&I%)M7KE*wOg<)1-Iy)8-K! z^XpIt|0ibmk9RtMmlUd7#Ap3Q!q9N4atQy)TmrhrFhfx1DAN`^vq@Q_SRl|V z#lU<~n67$mT)NvHh`%als+G-)x1`Y%4Bp*6Un5Ri9h=_Db zA-AdP!f>f0m@~>7X#uBM?diI@)Egjuz@jXKvm zJo+==juc9_<;CqeRaU9_Mz@;3e=E4=6TK+c`|uu#pIqhSyNm`G(X)&)B`8q0RBv#> z`gGlw(Q=1Xmf55VHj%C#^1lpc>LY8kfA@|rlC1EA<1#`iuyNO z(=;irt{_&K=i4)^x%;U(Xv<)+o=dczC5H3W~+e|f~{*ucxj@{Yi-cw^MqYr3fN zF5D+~!wd$#al?UfMnz(@K#wn`_5na@rRr8XqN@&M&FGEC@`+OEv}sI1hw>Up0qAWf zL#e4~&oM;TVfjRE+10B_gFlLEP9?Q-dARr3xi6nQqnw>k-S;~b z;!0s2VS4}W8b&pGuK=7im+t(`nz@FnT#VD|!)eQNp-W6)@>aA+j~K*H{$G`y2|QHY z|Hmy+CR@#jWY4~)lr1qBJB_RfHJFfP<}pK5(#ZZGSqcpyS&}01LnTWk5fzmXMGHkJ zTP6L^B+uj;lmB_W<~4=${+v0>z31M!-_O@o-O9GyW)j_mjx}!0@br_LE-7SIuPP84 z;5=O(U*g_um0tyG|61N@d9lEuOeiRd+#NY^{nd5;-CVlw&Ap7J?qwM^?E29wvS}2d zbzar4Fz&RSR(-|s!Z6+za&Z zY#D<5q_JUktIzvL0)yq_kLWG6DO{ri=?c!y!f(Dk%G{8)k`Gym%j#!OgXVDD3;$&v@qy#ISJfp=Vm>pls@9-mapVQChAHHd-x+OGx)(*Yr zC1qDUTZ6mM(b_hi!TuFF2k#8uI2;kD70AQ&di$L*4P*Y-@p`jdm%_c3f)XhYD^6M8&#Y$ZpzQMcR|6nsH>b=*R_Von!$BTRj7yGCXokoAQ z&ANvx0-Epw`QIEPgI(^cS2f(Y85yV@ygI{ewyv5Frng)e}KCZF7JbR(&W618_dcEh(#+^zZFY;o<815<5sOHQdeax9_!PyM&;{P zkBa5xymca0#)c#tke@3KNEM8a_mT&1gm;p&&JlMGH(cL(b)BckgMQ^9&vRwj!~3@l zY?L5}=Jzr080OGKb|y`ee(+`flQg|!lo6>=H)X4`$Gz~hLmu2a%kYW_Uu8x09Pa0J zKZ`E$BKJ=2GPj_3l*TEcZ*uYRr<*J^#5pILTT;k_cgto1ZL-%slyc16J~OH-(RgDA z%;EjEnoUkZ&acS{Q8`{i6T5^nywgqQI5bDIymoa7CSZG|WWVk>GM9)zy*bNih|QIm z%0+(Nnc*a_xo;$=!HQYaapLms>J1ToyjtFByY`C2H1wT#178#4+|{H0BBqtCdd$L% z_3Hc60j@{t9~MjM@LBalR&6@>B;9?r<7J~F+WXyYu*y3?px*=8MAK@EA+jRX8{CG?GI-< z54?Dc9CAh>QTAvyOEm0^+x;r2BWX|{3$Y7)L5l*qVE*y0`7J>l2wCmW zL1?|a`pJ-l{fb_N;R(Z9UMiSj6pQjOvQ^%DvhIJF!+Th7jO2~1f1N+(-TyCFYQZYw z4)>7caf^Ki_KJ^Zx2JUb z&$3zJy!*+rCV4%jqwyuNY3j1ZEiltS0xTzd+=itTb;IPYpaf?8Y+RSdVdpacB(bVQ zC(JupLfFp8y43%PMj2}T|VS@%LVp>hv4Y!RPMF?pp8U_$xCJ)S zQx!69>bphNTIb9yn*_yfj{N%bY)t{L1cs8<8|!f$;UQ*}IN=2<6lA;x^(`8t?;+ST zh)z4qeYYgZkIy{$4x28O-pugO&gauRh3;lti9)9Pvw+^)0!h~%m&8Q!AKX%urEMnl z?yEz?g#ODn$UM`+Q#$Q!6|zsq_`dLO5YK-6bJM6ya>}H+vnW^h?o$z;V&wvuM$dR& zeEq;uUUh$XR`TWeC$$c&Jjau2it3#%J-y}Qm>nW*s?En?R&6w@sDXMEr#8~$=b(gk zwDC3)NtAP;M2BW_lL^5ShpK$D%@|BnD{=!Tq)o(5@z3i7Z){} zGr}Exom_qDO{kAVkZ*MbLNHE666Kina#D{&>Jy%~w7yX$oj;cYCd^p9zy z8*+wgSEcj$4{WxKmCF(5o7U4jqwEvO&dm1H#7z}%VXAbW&W24v-tS6N3}qrm1OnE)fUkoE8yMMn9S$?IswS88tQWm4#Oid#ckgr6 zRtHm!mfNl-`d>O*1~d7%;~n+{Rph6BBy^95zqI{K((E!iFQ+h*C3EsbxNo_aRm5gj zKYug($r*Q#W9`p%Bf{bi6;IY0v`pB^^qu)gbg9QHQ7 zWBj(a1YSu)~2RK8Pi#C>{DMlrqFb9e_RehEHyI{n?e3vL_}L>kYJC z_ly$$)zFi*SFyNrnOt(B*7E$??s67EO%DgoZL2XNk8iVx~X_)o++4oaK1M|ou73vA0K^503j@uuVmLcHH4ya-kOIDfM%5%(E z+Xpt~#7y2!KB&)PoyCA+$~DXqxPxxALy!g-O?<9+9KTk4Pgq4AIdUkl`1<1#j^cJg zgU3`0hkHj_jxV>`Y~%LAZl^3o0}`Sm@iw7kwff{M%VwtN)|~!p{AsfA6vB5UolF~d zHWS%*uBDt<9y!9v2Xe|au&1j&iR1HXCdyCjxSgG*L{wmTD4(NQ=mFjpa~xooc6kju z`~+d{j7$h-;HAB04H!Zscu^hZffL#9!p$)9>sRI|Yovm)g@F>ZnosF2EgkU3ln0bR zTA}|+E(tt)!SG)-bEJi_0m{l+(cAz^pi}`9=~n?y&;2eG;d9{M6nj>BHGn(KA2n|O zt}$=FPq!j`p&kQ8>cirSzkU0c08%8{^Qyqi-w2LoO8)^E7;;I1;HQ6B$u0nNaX2CY zSmfi)F`m94zL8>#zu;8|{aBui@RzRKBlP1&mfFxEC@%cjl?NBs`cr^nm){>;$g?rhKr$AO&6qV_Wbn^}5tfFBry^e1`%du2~o zs$~dN;S_#%iwwA_QvmMjh%Qo?0?rR~6liyN5Xmej8(*V9ym*T`xAhHih-v$7U}8=dfXi2i*aAB!xM(Xekg*ix@r|ymDw*{*s0?dlVys2e)z62u1 z+k3esbJE=-P5S$&KdFp+2H7_2e=}OKDrf( z9-207?6$@f4m4B+9E*e((Y89!q?zH|mz_vM>kp*HGXldO0Hg#!EtFhRuOm$u8e~a9 z5(roy7m$Kh+zjW6@zw{&20u?1f2uP&boD}$#Zy)4o&T;vyBoqFiF2t;*g=|1=)PxB z8eM3Mp=l_obbc?I^xyLz?4Y1YDWPa+nm;O<$Cn;@ane616`J9OO2r=rZr{I_Kizyc zP#^^WCdIEp*()rRT+*YZK>V@^Zs=ht32x>Kwe zab)@ZEffz;VM4{XA6e421^h~`ji5r%)B{wZu#hD}f3$y@L0JV9f3g{-RK!A?vBUA}${YF(vO4)@`6f1 z-A|}e#LN{)(eXloDnX4Vs7eH|<@{r#LodP@Nz--$Dg_Par%DCpu2>2jUnqy~|J?eZ zBG4FVsz_A+ibdwv>mLp>P!(t}E>$JGaK$R~;fb{O3($y1ssQQo|5M;^JqC?7qe|hg zu0ZOqeFcp?qVn&Qu7FQJ4hcFi&|nR!*j)MF#b}QO^lN%5)4p*D^H+B){n8%VPUzi! zDihoGcP71a6!ab`l^hK&*dYrVYzJ0)#}xVrp!e;lI!+x+bfCN0KXwUAPU9@#l7@0& QuEJmfE|#`Dqx|px0L@K;Y5)KL literal 0 HcmV?d00001 diff --git a/intdash/gradle/wrapper/gradle-wrapper.properties b/intdash/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..ffed3a2 --- /dev/null +++ b/intdash/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/intdash/gradlew b/intdash/gradlew new file mode 100644 index 0000000..005bcde --- /dev/null +++ b/intdash/gradlew @@ -0,0 +1,234 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit + +APP_NAME="Gradle" +APP_BASE_NAME=${0##*/} + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + +# Collect all arguments for the java command; +# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of +# shell script including quotes and variable substitutions, so put them in +# double quotes to make sure that they get re-expanded; and +# * put everything else in single quotes, so that it's not re-expanded. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/intdash/gradlew.bat b/intdash/gradlew.bat new file mode 100644 index 0000000..6a68175 --- /dev/null +++ b/intdash/gradlew.bat @@ -0,0 +1,89 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS=-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/intdash/local.properties b/intdash/local.properties new file mode 100644 index 0000000..6b0d1d7 --- /dev/null +++ b/intdash/local.properties @@ -0,0 +1,8 @@ +## This file must *NOT* be checked into Version Control Systems, +# as it contains information specific to your local configuration. +# +# Location of the SDK. This is only used by Gradle. +# For customization when using a Version Control System, please read the +# header note. +#Tue Sep 19 17:58:10 GMT+09:00 2023 +sdk.dir=C\:\\Users\\aptpod\\AppData\\Local\\Android\\Sdk diff --git a/intdash/pom.xml b/intdash/pom.xml new file mode 100644 index 0000000..83c15a2 --- /dev/null +++ b/intdash/pom.xml @@ -0,0 +1,358 @@ + + 4.0.0 + com.aptpod + intdash + jar + intdash + v2.4.0-next-4a4316946 + https://github.com/openapitools/openapi-generator + OpenAPI Java + + scm:git:git@github.com:openapitools/openapi-generator.git + scm:git:git@github.com:openapitools/openapi-generator.git + https://github.com/openapitools/openapi-generator + + + + + Unlicense + http://unlicense.org + repo + + + + + + OpenAPI-Generator Contributors + team@openapitools.org + OpenAPITools.org + http://openapitools.org + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + true + 128m + 512m + + -Xlint:all + -J-Xss4m + + + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.1.0 + + + enforce-maven + + enforce + + + + + 2.2.0 + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.22.2 + + + + loggerPath + conf/log4j.properties + + + -Xms512m -Xmx1500m + methods + 10 + + + + + org.junit.jupiter + junit-jupiter-engine + ${junit-version} + + + + + maven-dependency-plugin + 3.3.0 + + + package + + copy-dependencies + + + ${project.build.directory}/lib + + + + + + + org.apache.maven.plugins + maven-jar-plugin + 3.3.0 + + + + test-jar + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.3.0 + + + add_sources + generate-sources + + add-source + + + + src/main/java + + + + + add_test_sources + generate-test-sources + + add-test-source + + + + src/test/java + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.4.1 + + + attach-javadocs + + jar + + + + + none + + + http.response.details + a + Http Response Details: + + + + + + org.apache.maven.plugins + maven-source-plugin + 3.2.1 + + + attach-sources + + jar-no-fork + + + + + + + com.diffplug.spotless + spotless-maven-plugin + ${spotless.version} + + + + + + + .gitignore + + + + + + true + 4 + + + + + + + + + + 1.8 + + true + + + + + + + + + + + + + + sign-artifacts + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.0.1 + + + sign-artifacts + verify + + sign + + + + + + + + + + + + + com.google.code.findbugs + jsr305 + 3.0.2 + + + com.squareup.okhttp3 + okhttp + ${okhttp-version} + + + com.squareup.okhttp3 + logging-interceptor + ${okhttp-version} + + + com.google.code.gson + gson + ${gson-version} + + + io.gsonfire + gson-fire + ${gson-fire-version} + + + org.apache.oltu.oauth2 + org.apache.oltu.oauth2.client + 1.0.2 + + + org.apache.commons + commons-lang3 + ${commons-lang3-version} + + + jakarta.annotation + jakarta.annotation-api + ${jakarta-annotation-version} + provided + + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} + + + + javax.ws.rs + jsr311-api + ${jsr311-api-version} + + + javax.ws.rs + javax.ws.rs-api + ${javax.ws.rs-api-version} + + + + org.junit.jupiter + junit-jupiter-engine + ${junit-version} + test + + + org.junit.platform + junit-platform-runner + ${junit-platform-runner.version} + test + + + org.mockito + mockito-core + ${mockito-core-version} + test + + + + 1.8 + ${java.version} + ${java.version} + 1.8.5 + 1.6.6 + 4.10.0 + 2.9.1 + 3.12.0 + 0.2.6 + 1.3.5 + 5.9.1 + 1.9.1 + 3.12.4 + 2.1.1 + 1.1.1 + UTF-8 + 2.27.2 + + diff --git a/intdash/settings.gradle b/intdash/settings.gradle new file mode 100644 index 0000000..8191955 --- /dev/null +++ b/intdash/settings.gradle @@ -0,0 +1 @@ +rootProject.name = "intdash" \ No newline at end of file diff --git a/intdash/src/main/AndroidManifest.xml b/intdash/src/main/AndroidManifest.xml new file mode 100644 index 0000000..0c9a5df --- /dev/null +++ b/intdash/src/main/AndroidManifest.xml @@ -0,0 +1,3 @@ + + + diff --git a/intdash/src/main/java/com/aptpod/ApiCallback.java b/intdash/src/main/java/com/aptpod/ApiCallback.java new file mode 100644 index 0000000..c65eca6 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/ApiCallback.java @@ -0,0 +1,62 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod; + +import java.io.IOException; + +import java.util.Map; +import java.util.List; + +/** + * Callback for asynchronous API call. + * + * @param The return type + */ +public interface ApiCallback { + /** + * This is called when the API call fails. + * + * @param e The exception causing the failure + * @param statusCode Status code of the response if available, otherwise it would be 0 + * @param responseHeaders Headers of the response if available, otherwise it would be null + */ + void onFailure(ApiException e, int statusCode, Map> responseHeaders); + + /** + * This is called when the API call succeeded. + * + * @param result The result deserialized from response + * @param statusCode Status code of the response + * @param responseHeaders Headers of the response + */ + void onSuccess(T result, int statusCode, Map> responseHeaders); + + /** + * This is called when the API upload processing. + * + * @param bytesWritten bytes Written + * @param contentLength content length of request body + * @param done write end + */ + void onUploadProgress(long bytesWritten, long contentLength, boolean done); + + /** + * This is called when the API download processing. + * + * @param bytesRead bytes Read + * @param contentLength content length of the response + * @param done Read end + */ + void onDownloadProgress(long bytesRead, long contentLength, boolean done); +} diff --git a/intdash/src/main/java/com/aptpod/ApiClient.java b/intdash/src/main/java/com/aptpod/ApiClient.java new file mode 100644 index 0000000..a2deb5b --- /dev/null +++ b/intdash/src/main/java/com/aptpod/ApiClient.java @@ -0,0 +1,1647 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod; + +import okhttp3.*; +import okhttp3.internal.http.HttpMethod; +import okhttp3.internal.tls.OkHostnameVerifier; +import okhttp3.logging.HttpLoggingInterceptor; +import okhttp3.logging.HttpLoggingInterceptor.Level; +import okio.Buffer; +import okio.BufferedSink; +import okio.Okio; +import org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder; +import org.apache.oltu.oauth2.common.message.types.GrantType; + +import javax.net.ssl.*; +import java.io.File; +import java.io.IOException; +import java.io.InputStream; +import java.io.UnsupportedEncodingException; +import java.lang.reflect.Type; +import java.net.URI; +import java.net.URLConnection; +import java.net.URLEncoder; +import java.nio.file.Files; +import java.nio.file.Paths; +import java.security.GeneralSecurityException; +import java.security.KeyStore; +import java.security.SecureRandom; +import java.security.cert.Certificate; +import java.security.cert.CertificateException; +import java.security.cert.CertificateFactory; +import java.security.cert.X509Certificate; +import java.text.DateFormat; +import java.time.LocalDate; +import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; +import java.util.*; +import java.util.Map.Entry; +import java.util.concurrent.TimeUnit; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +import com.aptpod.auth.Authentication; +import com.aptpod.auth.HttpBasicAuth; +import com.aptpod.auth.HttpBearerAuth; +import com.aptpod.auth.ApiKeyAuth; +import com.aptpod.auth.OAuth; +import com.aptpod.auth.RetryingOAuth; +import com.aptpod.auth.OAuthFlow; + +/** + *

ApiClient class.

+ */ +public class ApiClient { + + private String basePath = "https://example.intdash.jp/api"; + protected List servers = new ArrayList(Arrays.asList( + new ServerConfiguration( + "https://example.intdash.jp/api", + "URLのサンプルです。", + new HashMap() + ) + )); + protected Integer serverIndex = 0; + protected Map serverVariables = null; + private boolean debugging = false; + private Map defaultHeaderMap = new HashMap(); + private Map defaultCookieMap = new HashMap(); + private String tempFolderPath = null; + + private Map authentications; + + private DateFormat dateFormat; + private DateFormat datetimeFormat; + private boolean lenientDatetimeFormat; + private int dateLength; + + private InputStream sslCaCert; + private boolean verifyingSsl; + private KeyManager[] keyManagers; + + private OkHttpClient httpClient; + private JSON json; + + private HttpLoggingInterceptor loggingInterceptor; + + /** + * Basic constructor for ApiClient + */ + public ApiClient() { + init(); + initHttpClient(); + + // Setup authentications (key: authentication name, value: authentication). + authentications.put("BasicAuthForTenantAPI", new HttpBasicAuth()); + authentications.put("IntdashToken", new ApiKeyAuth("header", "X-Intdash-Token")); + authentications.put("OAuth2", new OAuth()); + authentications.put("OAuth2", new OAuth()); + authentications.put("OAuth2", new OAuth()); + authentications.put("OAuth2TokenInHeader", new HttpBearerAuth("bearer")); + authentications.put("OAuth2TokenInCookie", new ApiKeyAuth("cookie", "_bearer_token")); + // Prevent the authentications from being modified. + authentications = Collections.unmodifiableMap(authentications); + } + + /** + * Basic constructor with custom OkHttpClient + * + * @param client a {@link okhttp3.OkHttpClient} object + */ + public ApiClient(OkHttpClient client) { + init(); + + httpClient = client; + + // Setup authentications (key: authentication name, value: authentication). + authentications.put("BasicAuthForTenantAPI", new HttpBasicAuth()); + authentications.put("IntdashToken", new ApiKeyAuth("header", "X-Intdash-Token")); + authentications.put("OAuth2", new OAuth()); + authentications.put("OAuth2", new OAuth()); + authentications.put("OAuth2", new OAuth()); + authentications.put("OAuth2TokenInHeader", new HttpBearerAuth("bearer")); + authentications.put("OAuth2TokenInCookie", new ApiKeyAuth("cookie", "_bearer_token")); + // Prevent the authentications from being modified. + authentications = Collections.unmodifiableMap(authentications); + } + + /** + * Constructor for ApiClient to support access token retry on 401/403 configured with client ID + * + * @param clientId client ID + */ + public ApiClient(String clientId) { + this(clientId, null, null); + } + + /** + * Constructor for ApiClient to support access token retry on 401/403 configured with client ID and additional parameters + * + * @param clientId client ID + * @param parameters a {@link java.util.Map} of parameters + */ + public ApiClient(String clientId, Map parameters) { + this(clientId, null, parameters); + } + + /** + * Constructor for ApiClient to support access token retry on 401/403 configured with client ID, secret, and additional parameters + * + * @param clientId client ID + * @param clientSecret client secret + * @param parameters a {@link java.util.Map} of parameters + */ + public ApiClient(String clientId, String clientSecret, Map parameters) { + this(null, clientId, clientSecret, parameters); + } + + /** + * Constructor for ApiClient to support access token retry on 401/403 configured with base path, client ID, secret, and additional parameters + * + * @param basePath base path + * @param clientId client ID + * @param clientSecret client secret + * @param parameters a {@link java.util.Map} of parameters + */ + public ApiClient(String basePath, String clientId, String clientSecret, Map parameters) { + init(); + if (basePath != null) { + this.basePath = basePath; + } + + String tokenUrl = "/api/auth/oauth2/token"; + if (!"".equals(tokenUrl) && !URI.create(tokenUrl).isAbsolute()) { + URI uri = URI.create(getBasePath()); + tokenUrl = uri.getScheme() + ":" + + (uri.getAuthority() != null ? "//" + uri.getAuthority() : "") + + tokenUrl; + if (!URI.create(tokenUrl).isAbsolute()) { + throw new IllegalArgumentException("OAuth2 token URL must be an absolute URL"); + } + } + RetryingOAuth retryingOAuth = new RetryingOAuth(tokenUrl, clientId, OAuthFlow.PASSWORD, clientSecret, parameters); + authentications.put( + "OAuth2", + retryingOAuth + ); + initHttpClient(Collections.singletonList(retryingOAuth)); + // Setup authentications (key: authentication name, value: authentication). + authentications.put("BasicAuthForTenantAPI", new HttpBasicAuth()); + authentications.put("IntdashToken", new ApiKeyAuth("header", "X-Intdash-Token")); + authentications.put("OAuth2TokenInHeader", new HttpBearerAuth("bearer")); + authentications.put("OAuth2TokenInCookie", new ApiKeyAuth("cookie", "_bearer_token")); + + // Prevent the authentications from being modified. + authentications = Collections.unmodifiableMap(authentications); + } + + private void initHttpClient() { + initHttpClient(Collections.emptyList()); + } + + private void initHttpClient(List interceptors) { + OkHttpClient.Builder builder = new OkHttpClient.Builder(); + builder.addNetworkInterceptor(getProgressInterceptor()); + for (Interceptor interceptor: interceptors) { + builder.addInterceptor(interceptor); + } + + httpClient = builder.build(); + } + + private void init() { + verifyingSsl = true; + + json = new JSON(); + + // Set default User-Agent. + setUserAgent("OpenAPI-Generator/v2.4.0-next-4a4316946/java"); + + authentications = new HashMap(); + } + + /** + * Get base path + * + * @return Base path + */ + public String getBasePath() { + return basePath; + } + + /** + * Set base path + * + * @param basePath Base path of the URL (e.g https://example.intdash.jp/api + * @return An instance of OkHttpClient + */ + public ApiClient setBasePath(String basePath) { + this.basePath = basePath; + this.serverIndex = null; + return this; + } + + public List getServers() { + return servers; + } + + public ApiClient setServers(List servers) { + this.servers = servers; + return this; + } + + public Integer getServerIndex() { + return serverIndex; + } + + public ApiClient setServerIndex(Integer serverIndex) { + this.serverIndex = serverIndex; + return this; + } + + public Map getServerVariables() { + return serverVariables; + } + + public ApiClient setServerVariables(Map serverVariables) { + this.serverVariables = serverVariables; + return this; + } + + /** + * Get HTTP client + * + * @return An instance of OkHttpClient + */ + public OkHttpClient getHttpClient() { + return httpClient; + } + + /** + * Set HTTP client, which must never be null. + * + * @param newHttpClient An instance of OkHttpClient + * @return Api Client + * @throws java.lang.NullPointerException when newHttpClient is null + */ + public ApiClient setHttpClient(OkHttpClient newHttpClient) { + this.httpClient = Objects.requireNonNull(newHttpClient, "HttpClient must not be null!"); + return this; + } + + /** + * Get JSON + * + * @return JSON object + */ + public JSON getJSON() { + return json; + } + + /** + * Set JSON + * + * @param json JSON object + * @return Api client + */ + public ApiClient setJSON(JSON json) { + this.json = json; + return this; + } + + /** + * True if isVerifyingSsl flag is on + * + * @return True if isVerifySsl flag is on + */ + public boolean isVerifyingSsl() { + return verifyingSsl; + } + + /** + * Configure whether to verify certificate and hostname when making https requests. + * Default to true. + * NOTE: Do NOT set to false in production code, otherwise you would face multiple types of cryptographic attacks. + * + * @param verifyingSsl True to verify TLS/SSL connection + * @return ApiClient + */ + public ApiClient setVerifyingSsl(boolean verifyingSsl) { + this.verifyingSsl = verifyingSsl; + applySslSettings(); + return this; + } + + /** + * Get SSL CA cert. + * + * @return Input stream to the SSL CA cert + */ + public InputStream getSslCaCert() { + return sslCaCert; + } + + /** + * Configure the CA certificate to be trusted when making https requests. + * Use null to reset to default. + * + * @param sslCaCert input stream for SSL CA cert + * @return ApiClient + */ + public ApiClient setSslCaCert(InputStream sslCaCert) { + this.sslCaCert = sslCaCert; + applySslSettings(); + return this; + } + + /** + *

Getter for the field keyManagers.

+ * + * @return an array of {@link javax.net.ssl.KeyManager} objects + */ + public KeyManager[] getKeyManagers() { + return keyManagers; + } + + /** + * Configure client keys to use for authorization in an SSL session. + * Use null to reset to default. + * + * @param managers The KeyManagers to use + * @return ApiClient + */ + public ApiClient setKeyManagers(KeyManager[] managers) { + this.keyManagers = managers; + applySslSettings(); + return this; + } + + /** + *

Getter for the field dateFormat.

+ * + * @return a {@link java.text.DateFormat} object + */ + public DateFormat getDateFormat() { + return dateFormat; + } + + /** + *

Setter for the field dateFormat.

+ * + * @param dateFormat a {@link java.text.DateFormat} object + * @return a {@link com.aptpod.ApiClient} object + */ + public ApiClient setDateFormat(DateFormat dateFormat) { + JSON.setDateFormat(dateFormat); + return this; + } + + /** + *

Set SqlDateFormat.

+ * + * @param dateFormat a {@link java.text.DateFormat} object + * @return a {@link com.aptpod.ApiClient} object + */ + public ApiClient setSqlDateFormat(DateFormat dateFormat) { + JSON.setSqlDateFormat(dateFormat); + return this; + } + + /** + *

Set LenientOnJson.

+ * + * @param lenientOnJson a boolean + * @return a {@link com.aptpod.ApiClient} object + */ + public ApiClient setLenientOnJson(boolean lenientOnJson) { + JSON.setLenientOnJson(lenientOnJson); + return this; + } + + /** + * Get authentications (key: authentication name, value: authentication). + * + * @return Map of authentication objects + */ + public Map getAuthentications() { + return authentications; + } + + /** + * Get authentication for the given name. + * + * @param authName The authentication name + * @return The authentication, null if not found + */ + public Authentication getAuthentication(String authName) { + return authentications.get(authName); + } + + /** + * Helper method to set access token for the first Bearer authentication. + * @param bearerToken Bearer token + */ + public void setBearerToken(String bearerToken) { + for (Authentication auth : authentications.values()) { + if (auth instanceof HttpBearerAuth) { + ((HttpBearerAuth) auth).setBearerToken(bearerToken); + return; + } + } + throw new RuntimeException("No Bearer authentication configured!"); + } + + /** + * Helper method to set username for the first HTTP basic authentication. + * + * @param username Username + */ + public void setUsername(String username) { + for (Authentication auth : authentications.values()) { + if (auth instanceof HttpBasicAuth) { + ((HttpBasicAuth) auth).setUsername(username); + return; + } + } + throw new RuntimeException("No HTTP basic authentication configured!"); + } + + /** + * Helper method to set password for the first HTTP basic authentication. + * + * @param password Password + */ + public void setPassword(String password) { + for (Authentication auth : authentications.values()) { + if (auth instanceof HttpBasicAuth) { + ((HttpBasicAuth) auth).setPassword(password); + return; + } + } + throw new RuntimeException("No HTTP basic authentication configured!"); + } + + /** + * Helper method to set API key value for the first API key authentication. + * + * @param apiKey API key + */ + public void setApiKey(String apiKey) { + for (Authentication auth : authentications.values()) { + if (auth instanceof ApiKeyAuth) { + ((ApiKeyAuth) auth).setApiKey(apiKey); + return; + } + } + throw new RuntimeException("No API key authentication configured!"); + } + + /** + * Helper method to set API key prefix for the first API key authentication. + * + * @param apiKeyPrefix API key prefix + */ + public void setApiKeyPrefix(String apiKeyPrefix) { + for (Authentication auth : authentications.values()) { + if (auth instanceof ApiKeyAuth) { + ((ApiKeyAuth) auth).setApiKeyPrefix(apiKeyPrefix); + return; + } + } + throw new RuntimeException("No API key authentication configured!"); + } + + /** + * Helper method to set access token for the first OAuth2 authentication. + * + * @param accessToken Access token + */ + public void setAccessToken(String accessToken) { + for (Authentication auth : authentications.values()) { + if (auth instanceof OAuth) { + ((OAuth) auth).setAccessToken(accessToken); + return; + } + } + throw new RuntimeException("No OAuth2 authentication configured!"); + } + + /** + * Helper method to set credentials for AWSV4 Signature + * + * @param accessKey Access Key + * @param secretKey Secret Key + * @param region Region + * @param service Service to access to + */ + public void setAWS4Configuration(String accessKey, String secretKey, String region, String service) { + throw new RuntimeException("No AWS4 authentication configured!"); + } + + /** + * Set the User-Agent header's value (by adding to the default header map). + * + * @param userAgent HTTP request's user agent + * @return ApiClient + */ + public ApiClient setUserAgent(String userAgent) { + addDefaultHeader("User-Agent", userAgent); + return this; + } + + /** + * Add a default header. + * + * @param key The header's key + * @param value The header's value + * @return ApiClient + */ + public ApiClient addDefaultHeader(String key, String value) { + defaultHeaderMap.put(key, value); + return this; + } + + /** + * Add a default cookie. + * + * @param key The cookie's key + * @param value The cookie's value + * @return ApiClient + */ + public ApiClient addDefaultCookie(String key, String value) { + defaultCookieMap.put(key, value); + return this; + } + + /** + * Check that whether debugging is enabled for this API client. + * + * @return True if debugging is enabled, false otherwise. + */ + public boolean isDebugging() { + return debugging; + } + + /** + * Enable/disable debugging for this API client. + * + * @param debugging To enable (true) or disable (false) debugging + * @return ApiClient + */ + public ApiClient setDebugging(boolean debugging) { + if (debugging != this.debugging) { + if (debugging) { + loggingInterceptor = new HttpLoggingInterceptor(); + loggingInterceptor.setLevel(Level.BODY); + httpClient = httpClient.newBuilder().addInterceptor(loggingInterceptor).build(); + } else { + final OkHttpClient.Builder builder = httpClient.newBuilder(); + builder.interceptors().remove(loggingInterceptor); + httpClient = builder.build(); + loggingInterceptor = null; + } + } + this.debugging = debugging; + return this; + } + + /** + * The path of temporary folder used to store downloaded files from endpoints + * with file response. The default value is null, i.e. using + * the system's default temporary folder. + * + * @see
createTempFile + * @return Temporary folder path + */ + public String getTempFolderPath() { + return tempFolderPath; + } + + /** + * Set the temporary folder path (for downloading files) + * + * @param tempFolderPath Temporary folder path + * @return ApiClient + */ + public ApiClient setTempFolderPath(String tempFolderPath) { + this.tempFolderPath = tempFolderPath; + return this; + } + + /** + * Get connection timeout (in milliseconds). + * + * @return Timeout in milliseconds + */ + public int getConnectTimeout() { + return httpClient.connectTimeoutMillis(); + } + + /** + * Sets the connect timeout (in milliseconds). + * A value of 0 means no timeout, otherwise values must be between 1 and + * {@link java.lang.Integer#MAX_VALUE}. + * + * @param connectionTimeout connection timeout in milliseconds + * @return Api client + */ + public ApiClient setConnectTimeout(int connectionTimeout) { + httpClient = httpClient.newBuilder().connectTimeout(connectionTimeout, TimeUnit.MILLISECONDS).build(); + return this; + } + + /** + * Get read timeout (in milliseconds). + * + * @return Timeout in milliseconds + */ + public int getReadTimeout() { + return httpClient.readTimeoutMillis(); + } + + /** + * Sets the read timeout (in milliseconds). + * A value of 0 means no timeout, otherwise values must be between 1 and + * {@link java.lang.Integer#MAX_VALUE}. + * + * @param readTimeout read timeout in milliseconds + * @return Api client + */ + public ApiClient setReadTimeout(int readTimeout) { + httpClient = httpClient.newBuilder().readTimeout(readTimeout, TimeUnit.MILLISECONDS).build(); + return this; + } + + /** + * Get write timeout (in milliseconds). + * + * @return Timeout in milliseconds + */ + public int getWriteTimeout() { + return httpClient.writeTimeoutMillis(); + } + + /** + * Sets the write timeout (in milliseconds). + * A value of 0 means no timeout, otherwise values must be between 1 and + * {@link java.lang.Integer#MAX_VALUE}. + * + * @param writeTimeout connection timeout in milliseconds + * @return Api client + */ + public ApiClient setWriteTimeout(int writeTimeout) { + httpClient = httpClient.newBuilder().writeTimeout(writeTimeout, TimeUnit.MILLISECONDS).build(); + return this; + } + + /** + * Helper method to configure the token endpoint of the first oauth found in the apiAuthorizations (there should be only one) + * + * @return Token request builder + */ + public TokenRequestBuilder getTokenEndPoint() { + for (Authentication apiAuth : authentications.values()) { + if (apiAuth instanceof RetryingOAuth) { + RetryingOAuth retryingOAuth = (RetryingOAuth) apiAuth; + return retryingOAuth.getTokenRequestBuilder(); + } + } + return null; + } + + /** + * Format the given parameter object into string. + * + * @param param Parameter + * @return String representation of the parameter + */ + public String parameterToString(Object param) { + if (param == null) { + return ""; + } else if (param instanceof Date ) { + //Serialize to json string and remove the " enclosing characters + String jsonStr = JSON.serialize(param); + return jsonStr.substring(1, jsonStr.length() - 1); + } else if (param instanceof Collection) { + StringBuilder b = new StringBuilder(); + for (Object o : (Collection) param) { + if (b.length() > 0) { + b.append(","); + } + b.append(o); + } + return b.toString(); + } else { + return String.valueOf(param); + } + } + + /** + * Formats the specified query parameter to a list containing a single {@code Pair} object. + * + * Note that {@code value} must not be a collection. + * + * @param name The name of the parameter. + * @param value The value of the parameter. + * @return A list containing a single {@code Pair} object. + */ + public List parameterToPair(String name, Object value) { + List params = new ArrayList(); + + // preconditions + if (name == null || name.isEmpty() || value == null || value instanceof Collection) { + return params; + } + + params.add(new Pair(name, parameterToString(value))); + return params; + } + + /** + * Formats the specified collection query parameters to a list of {@code Pair} objects. + * + * Note that the values of each of the returned Pair objects are percent-encoded. + * + * @param collectionFormat The collection format of the parameter. + * @param name The name of the parameter. + * @param value The value of the parameter. + * @return A list of {@code Pair} objects. + */ + public List parameterToPairs(String collectionFormat, String name, Collection value) { + List params = new ArrayList(); + + // preconditions + if (name == null || name.isEmpty() || value == null || value.isEmpty()) { + return params; + } + + // create the params based on the collection format + if ("multi".equals(collectionFormat)) { + for (Object item : value) { + params.add(new Pair(name, escapeString(parameterToString(item)))); + } + return params; + } + + // collectionFormat is assumed to be "csv" by default + String delimiter = ","; + + // escape all delimiters except commas, which are URI reserved + // characters + if ("ssv".equals(collectionFormat)) { + delimiter = escapeString(" "); + } else if ("tsv".equals(collectionFormat)) { + delimiter = escapeString("\t"); + } else if ("pipes".equals(collectionFormat)) { + delimiter = escapeString("|"); + } + + StringBuilder sb = new StringBuilder(); + for (Object item : value) { + sb.append(delimiter); + sb.append(escapeString(parameterToString(item))); + } + + params.add(new Pair(name, sb.substring(delimiter.length()))); + + return params; + } + + /** + * Formats the specified collection path parameter to a string value. + * + * @param collectionFormat The collection format of the parameter. + * @param value The value of the parameter. + * @return String representation of the parameter + */ + public String collectionPathParameterToString(String collectionFormat, Collection value) { + // create the value based on the collection format + if ("multi".equals(collectionFormat)) { + // not valid for path params + return parameterToString(value); + } + + // collectionFormat is assumed to be "csv" by default + String delimiter = ","; + + if ("ssv".equals(collectionFormat)) { + delimiter = " "; + } else if ("tsv".equals(collectionFormat)) { + delimiter = "\t"; + } else if ("pipes".equals(collectionFormat)) { + delimiter = "|"; + } + + StringBuilder sb = new StringBuilder() ; + for (Object item : value) { + sb.append(delimiter); + sb.append(parameterToString(item)); + } + + return sb.substring(delimiter.length()); + } + + /** + * Sanitize filename by removing path. + * e.g. ../../sun.gif becomes sun.gif + * + * @param filename The filename to be sanitized + * @return The sanitized filename + */ + public String sanitizeFilename(String filename) { + return filename.replaceAll(".*[/\\\\]", ""); + } + + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * "* / *" is also default to JSON + * @param mime MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + public boolean isJsonMime(String mime) { + String jsonMime = "(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"; + return mime != null && (mime.matches(jsonMime) || mime.equals("*/*")); + } + + /** + * Select the Accept header's value from the given accepts array: + * if JSON exists in the given array, use it; + * otherwise use all of them (joining into a string) + * + * @param accepts The accepts array to select from + * @return The Accept header to use. If the given array is empty, + * null will be returned (not to set the Accept header explicitly). + */ + public String selectHeaderAccept(String[] accepts) { + if (accepts.length == 0) { + return null; + } + for (String accept : accepts) { + if (isJsonMime(accept)) { + return accept; + } + } + return StringUtil.join(accepts, ","); + } + + /** + * Select the Content-Type header's value from the given array: + * if JSON exists in the given array, use it; + * otherwise use the first one of the array. + * + * @param contentTypes The Content-Type array to select from + * @return The Content-Type header to use. If the given array is empty, + * returns null. If it matches "any", JSON will be used. + */ + public String selectHeaderContentType(String[] contentTypes) { + if (contentTypes.length == 0) { + return null; + } + + if (contentTypes[0].equals("*/*")) { + return "application/json"; + } + + for (String contentType : contentTypes) { + if (isJsonMime(contentType)) { + return contentType; + } + } + + return contentTypes[0]; + } + + /** + * Escape the given string to be used as URL query value. + * + * @param str String to be escaped + * @return Escaped string + */ + public String escapeString(String str) { + try { + return URLEncoder.encode(str, "utf8").replaceAll("\\+", "%20"); + } catch (UnsupportedEncodingException e) { + return str; + } + } + + /** + * Deserialize response body to Java object, according to the return type and + * the Content-Type response header. + * + * @param Type + * @param response HTTP response + * @param returnType The type of the Java object + * @return The deserialized Java object + * @throws com.aptpod.ApiException If fail to deserialize response body, i.e. cannot read response body + * or the Content-Type of the response is not supported. + */ + @SuppressWarnings("unchecked") + public T deserialize(Response response, Type returnType) throws ApiException { + if (response == null || returnType == null) { + return null; + } + + if ("byte[]".equals(returnType.toString())) { + // Handle binary response (byte array). + try { + return (T) response.body().bytes(); + } catch (IOException e) { + throw new ApiException(e); + } + } else if (returnType.equals(File.class)) { + // Handle file downloading. + return (T) downloadFileFromResponse(response); + } + + String respBody; + try { + if (response.body() != null) + respBody = response.body().string(); + else + respBody = null; + } catch (IOException e) { + throw new ApiException(e); + } + + if (respBody == null || "".equals(respBody)) { + return null; + } + + String contentType = response.headers().get("Content-Type"); + if (contentType == null) { + // ensuring a default content type + contentType = "application/json"; + } + if (isJsonMime(contentType)) { + return JSON.deserialize(respBody, returnType); + } else if (returnType.equals(String.class)) { + // Expecting string, return the raw response body. + return (T) respBody; + } else { + throw new ApiException( + "Content type \"" + contentType + "\" is not supported for type: " + returnType, + response.code(), + response.headers().toMultimap(), + respBody); + } + } + + /** + * Serialize the given Java object into request body according to the object's + * class and the request Content-Type. + * + * @param obj The Java object + * @param contentType The request Content-Type + * @return The serialized request body + * @throws com.aptpod.ApiException If fail to serialize the given object + */ + public RequestBody serialize(Object obj, String contentType) throws ApiException { + if (obj instanceof byte[]) { + // Binary (byte array) body parameter support. + return RequestBody.create((byte[]) obj, MediaType.parse(contentType)); + } else if (obj instanceof File) { + // File body parameter support. + return RequestBody.create((File) obj, MediaType.parse(contentType)); + } else if ("text/plain".equals(contentType) && obj instanceof String) { + return RequestBody.create((String) obj, MediaType.parse(contentType)); + } else if (isJsonMime(contentType)) { + String content; + if (obj != null) { + content = JSON.serialize(obj); + } else { + content = null; + } + return RequestBody.create(content, MediaType.parse(contentType)); + } else if (obj instanceof String) { + return RequestBody.create((String) obj, MediaType.parse(contentType)); + } else { + throw new ApiException("Content type \"" + contentType + "\" is not supported"); + } + } + + /** + * Download file from the given response. + * + * @param response An instance of the Response object + * @throws com.aptpod.ApiException If fail to read file content from response and write to disk + * @return Downloaded file + */ + public File downloadFileFromResponse(Response response) throws ApiException { + try { + File file = prepareDownloadFile(response); + BufferedSink sink = Okio.buffer(Okio.sink(file)); + sink.writeAll(response.body().source()); + sink.close(); + return file; + } catch (IOException e) { + throw new ApiException(e); + } + } + + /** + * Prepare file for download + * + * @param response An instance of the Response object + * @return Prepared file for the download + * @throws java.io.IOException If fail to prepare file for download + */ + public File prepareDownloadFile(Response response) throws IOException { + String filename = null; + String contentDisposition = response.header("Content-Disposition"); + if (contentDisposition != null && !"".equals(contentDisposition)) { + // Get filename from the Content-Disposition header. + Pattern pattern = Pattern.compile("filename=['\"]?([^'\"\\s]+)['\"]?"); + Matcher matcher = pattern.matcher(contentDisposition); + if (matcher.find()) { + filename = sanitizeFilename(matcher.group(1)); + } + } + + String prefix = null; + String suffix = null; + if (filename == null) { + prefix = "download-"; + suffix = ""; + } else { + int pos = filename.lastIndexOf("."); + if (pos == -1) { + prefix = filename + "-"; + } else { + prefix = filename.substring(0, pos) + "-"; + suffix = filename.substring(pos); + } + // Files.createTempFile requires the prefix to be at least three characters long + if (prefix.length() < 3) + prefix = "download-"; + } + + if (tempFolderPath == null) + return Files.createTempFile(prefix, suffix).toFile(); + else + return Files.createTempFile(Paths.get(tempFolderPath), prefix, suffix).toFile(); + } + + /** + * {@link #execute(Call, Type)} + * + * @param Type + * @param call An instance of the Call object + * @return ApiResponse<T> + * @throws com.aptpod.ApiException If fail to execute the call + */ + public ApiResponse execute(Call call) throws ApiException { + return execute(call, null); + } + + /** + * Execute HTTP call and deserialize the HTTP response body into the given return type. + * + * @param returnType The return type used to deserialize HTTP response body + * @param The return type corresponding to (same with) returnType + * @param call Call + * @return ApiResponse object containing response status, headers and + * data, which is a Java object deserialized from response body and would be null + * when returnType is null. + * @throws com.aptpod.ApiException If fail to execute the call + */ + public ApiResponse execute(Call call, Type returnType) throws ApiException { + try { + Response response = call.execute(); + T data = handleResponse(response, returnType); + return new ApiResponse(response.code(), response.headers().toMultimap(), data); + } catch (IOException e) { + throw new ApiException(e); + } + } + + /** + * {@link #executeAsync(Call, Type, ApiCallback)} + * + * @param Type + * @param call An instance of the Call object + * @param callback ApiCallback<T> + */ + public void executeAsync(Call call, ApiCallback callback) { + executeAsync(call, null, callback); + } + + /** + * Execute HTTP call asynchronously. + * + * @param Type + * @param call The callback to be executed when the API call finishes + * @param returnType Return type + * @param callback ApiCallback + * @see #execute(Call, Type) + */ + @SuppressWarnings("unchecked") + public void executeAsync(Call call, final Type returnType, final ApiCallback callback) { + call.enqueue(new Callback() { + @Override + public void onFailure(Call call, IOException e) { + callback.onFailure(new ApiException(e), 0, null); + } + + @Override + public void onResponse(Call call, Response response) throws IOException { + T result; + try { + result = (T) handleResponse(response, returnType); + } catch (ApiException e) { + callback.onFailure(e, response.code(), response.headers().toMultimap()); + return; + } catch (Exception e) { + callback.onFailure(new ApiException(e), response.code(), response.headers().toMultimap()); + return; + } + callback.onSuccess(result, response.code(), response.headers().toMultimap()); + } + }); + } + + /** + * Handle the given response, return the deserialized object when the response is successful. + * + * @param Type + * @param response Response + * @param returnType Return type + * @return Type + * @throws com.aptpod.ApiException If the response has an unsuccessful status code or + * fail to deserialize the response body + */ + public T handleResponse(Response response, Type returnType) throws ApiException { + if (response.isSuccessful()) { + if (returnType == null || response.code() == 204) { + // returning null if the returnType is not defined, + // or the status code is 204 (No Content) + if (response.body() != null) { + try { + response.body().close(); + } catch (Exception e) { + throw new ApiException(response.message(), e, response.code(), response.headers().toMultimap()); + } + } + return null; + } else { + return deserialize(response, returnType); + } + } else { + String respBody = null; + if (response.body() != null) { + try { + respBody = response.body().string(); + } catch (IOException e) { + throw new ApiException(response.message(), e, response.code(), response.headers().toMultimap()); + } + } + throw new ApiException(response.message(), response.code(), response.headers().toMultimap(), respBody); + } + } + + /** + * Build HTTP call with the given options. + * + * @param baseUrl The base URL + * @param path The sub-path of the HTTP URL + * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE" + * @param queryParams The query parameters + * @param collectionQueryParams The collection query parameters + * @param body The request body object + * @param headerParams The header parameters + * @param cookieParams The cookie parameters + * @param formParams The form parameters + * @param authNames The authentications to apply + * @param callback Callback for upload/download progress + * @return The HTTP call + * @throws com.aptpod.ApiException If fail to serialize the request body object + */ + public Call buildCall(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { + Request request = buildRequest(baseUrl, path, method, queryParams, collectionQueryParams, body, headerParams, cookieParams, formParams, authNames, callback); + + return httpClient.newCall(request); + } + + /** + * Build an HTTP request with the given options. + * + * @param baseUrl The base URL + * @param path The sub-path of the HTTP URL + * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE" + * @param queryParams The query parameters + * @param collectionQueryParams The collection query parameters + * @param body The request body object + * @param headerParams The header parameters + * @param cookieParams The cookie parameters + * @param formParams The form parameters + * @param authNames The authentications to apply + * @param callback Callback for upload/download progress + * @return The HTTP request + * @throws com.aptpod.ApiException If fail to serialize the request body object + */ + public Request buildRequest(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { + // aggregate queryParams (non-collection) and collectionQueryParams into allQueryParams + List allQueryParams = new ArrayList(queryParams); + allQueryParams.addAll(collectionQueryParams); + + final String url = buildUrl(baseUrl, path, queryParams, collectionQueryParams); + + // prepare HTTP request body + RequestBody reqBody; + String contentType = headerParams.get("Content-Type"); + + if (!HttpMethod.permitsRequestBody(method)) { + reqBody = null; + } else if ("application/x-www-form-urlencoded".equals(contentType)) { + reqBody = buildRequestBodyFormEncoding(formParams); + } else if ("multipart/form-data".equals(contentType)) { + reqBody = buildRequestBodyMultipart(formParams); + } else if (body == null) { + if ("DELETE".equals(method)) { + // allow calling DELETE without sending a request body + reqBody = null; + } else { + // use an empty request body (for POST, PUT and PATCH) + reqBody = RequestBody.create("", contentType == null ? null : MediaType.parse(contentType)); + } + } else { + reqBody = serialize(body, contentType); + } + + // update parameters with authentication settings + updateParamsForAuth(authNames, allQueryParams, headerParams, cookieParams, requestBodyToString(reqBody), method, URI.create(url)); + + final Request.Builder reqBuilder = new Request.Builder().url(url); + processHeaderParams(headerParams, reqBuilder); + processCookieParams(cookieParams, reqBuilder); + + // Associate callback with request (if not null) so interceptor can + // access it when creating ProgressResponseBody + reqBuilder.tag(callback); + + Request request = null; + + if (callback != null && reqBody != null) { + ProgressRequestBody progressRequestBody = new ProgressRequestBody(reqBody, callback); + request = reqBuilder.method(method, progressRequestBody).build(); + } else { + request = reqBuilder.method(method, reqBody).build(); + } + + return request; + } + + /** + * Build full URL by concatenating base path, the given sub path and query parameters. + * + * @param baseUrl The base URL + * @param path The sub path + * @param queryParams The query parameters + * @param collectionQueryParams The collection query parameters + * @return The full URL + */ + public String buildUrl(String baseUrl, String path, List queryParams, List collectionQueryParams) { + final StringBuilder url = new StringBuilder(); + if (baseUrl != null) { + url.append(baseUrl).append(path); + } else { + String baseURL; + if (serverIndex != null) { + if (serverIndex < 0 || serverIndex >= servers.size()) { + throw new ArrayIndexOutOfBoundsException(String.format( + "Invalid index %d when selecting the host settings. Must be less than %d", serverIndex, servers.size() + )); + } + baseURL = servers.get(serverIndex).URL(serverVariables); + } else { + baseURL = basePath; + } + url.append(baseURL).append(path); + } + + if (queryParams != null && !queryParams.isEmpty()) { + // support (constant) query string in `path`, e.g. "/posts?draft=1" + String prefix = path.contains("?") ? "&" : "?"; + for (Pair param : queryParams) { + if (param.getValue() != null) { + if (prefix != null) { + url.append(prefix); + prefix = null; + } else { + url.append("&"); + } + String value = parameterToString(param.getValue()); + url.append(escapeString(param.getName())).append("=").append(escapeString(value)); + } + } + } + + if (collectionQueryParams != null && !collectionQueryParams.isEmpty()) { + String prefix = url.toString().contains("?") ? "&" : "?"; + for (Pair param : collectionQueryParams) { + if (param.getValue() != null) { + if (prefix != null) { + url.append(prefix); + prefix = null; + } else { + url.append("&"); + } + String value = parameterToString(param.getValue()); + // collection query parameter value already escaped as part of parameterToPairs + url.append(escapeString(param.getName())).append("=").append(value); + } + } + } + + return url.toString(); + } + + /** + * Set header parameters to the request builder, including default headers. + * + * @param headerParams Header parameters in the form of Map + * @param reqBuilder Request.Builder + */ + public void processHeaderParams(Map headerParams, Request.Builder reqBuilder) { + for (Entry param : headerParams.entrySet()) { + reqBuilder.header(param.getKey(), parameterToString(param.getValue())); + } + for (Entry header : defaultHeaderMap.entrySet()) { + if (!headerParams.containsKey(header.getKey())) { + reqBuilder.header(header.getKey(), parameterToString(header.getValue())); + } + } + } + + /** + * Set cookie parameters to the request builder, including default cookies. + * + * @param cookieParams Cookie parameters in the form of Map + * @param reqBuilder Request.Builder + */ + public void processCookieParams(Map cookieParams, Request.Builder reqBuilder) { + for (Entry param : cookieParams.entrySet()) { + reqBuilder.addHeader("Cookie", String.format("%s=%s", param.getKey(), param.getValue())); + } + for (Entry param : defaultCookieMap.entrySet()) { + if (!cookieParams.containsKey(param.getKey())) { + reqBuilder.addHeader("Cookie", String.format("%s=%s", param.getKey(), param.getValue())); + } + } + } + + /** + * Update query and header parameters based on authentication settings. + * + * @param authNames The authentications to apply + * @param queryParams List of query parameters + * @param headerParams Map of header parameters + * @param cookieParams Map of cookie parameters + * @param payload HTTP request body + * @param method HTTP method + * @param uri URI + * @throws com.aptpod.ApiException If fails to update the parameters + */ + public void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams, + Map cookieParams, String payload, String method, URI uri) throws ApiException { + for (String authName : authNames) { + Authentication auth = authentications.get(authName); + if (auth == null) { + throw new RuntimeException("Authentication undefined: " + authName); + } + auth.applyToParams(queryParams, headerParams, cookieParams, payload, method, uri); + } + } + + /** + * Build a form-encoding request body with the given form parameters. + * + * @param formParams Form parameters in the form of Map + * @return RequestBody + */ + public RequestBody buildRequestBodyFormEncoding(Map formParams) { + okhttp3.FormBody.Builder formBuilder = new okhttp3.FormBody.Builder(); + for (Entry param : formParams.entrySet()) { + formBuilder.add(param.getKey(), parameterToString(param.getValue())); + } + return formBuilder.build(); + } + + /** + * Build a multipart (file uploading) request body with the given form parameters, + * which could contain text fields and file fields. + * + * @param formParams Form parameters in the form of Map + * @return RequestBody + */ + public RequestBody buildRequestBodyMultipart(Map formParams) { + MultipartBody.Builder mpBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); + for (Entry param : formParams.entrySet()) { + if (param.getValue() instanceof File) { + File file = (File) param.getValue(); + addPartToMultiPartBuilder(mpBuilder, param.getKey(), file); + } else if (param.getValue() instanceof List) { + List list = (List) param.getValue(); + for (Object item: list) { + if (item instanceof File) { + addPartToMultiPartBuilder(mpBuilder, param.getKey(), (File) item); + } else { + addPartToMultiPartBuilder(mpBuilder, param.getKey(), param.getValue()); + } + } + } else { + addPartToMultiPartBuilder(mpBuilder, param.getKey(), param.getValue()); + } + } + return mpBuilder.build(); + } + + /** + * Guess Content-Type header from the given file (defaults to "application/octet-stream"). + * + * @param file The given file + * @return The guessed Content-Type + */ + public String guessContentTypeFromFile(File file) { + String contentType = URLConnection.guessContentTypeFromName(file.getName()); + if (contentType == null) { + return "application/octet-stream"; + } else { + return contentType; + } + } + + /** + * Add a Content-Disposition Header for the given key and file to the MultipartBody Builder. + * + * @param mpBuilder MultipartBody.Builder + * @param key The key of the Header element + * @param file The file to add to the Header + */ + private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, File file) { + Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + key + "\"; filename=\"" + file.getName() + "\""); + MediaType mediaType = MediaType.parse(guessContentTypeFromFile(file)); + mpBuilder.addPart(partHeaders, RequestBody.create(file, mediaType)); + } + + /** + * Add a Content-Disposition Header for the given key and complex object to the MultipartBody Builder. + * + * @param mpBuilder MultipartBody.Builder + * @param key The key of the Header element + * @param obj The complex object to add to the Header + */ + private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, Object obj) { + RequestBody requestBody; + if (obj instanceof String) { + requestBody = RequestBody.create((String) obj, MediaType.parse("text/plain")); + } else { + String content; + if (obj != null) { + content = JSON.serialize(obj); + } else { + content = null; + } + requestBody = RequestBody.create(content, MediaType.parse("application/json")); + } + + Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + key + "\""); + mpBuilder.addPart(partHeaders, requestBody); + } + + /** + * Get network interceptor to add it to the httpClient to track download progress for + * async requests. + */ + private Interceptor getProgressInterceptor() { + return new Interceptor() { + @Override + public Response intercept(Interceptor.Chain chain) throws IOException { + final Request request = chain.request(); + final Response originalResponse = chain.proceed(request); + if (request.tag() instanceof ApiCallback) { + final ApiCallback callback = (ApiCallback) request.tag(); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), callback)) + .build(); + } + return originalResponse; + } + }; + } + + /** + * Apply SSL related settings to httpClient according to the current values of + * verifyingSsl and sslCaCert. + */ + private void applySslSettings() { + try { + TrustManager[] trustManagers; + HostnameVerifier hostnameVerifier; + if (!verifyingSsl) { + trustManagers = new TrustManager[]{ + new X509TrustManager() { + @Override + public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException { + } + + @Override + public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException { + } + + @Override + public java.security.cert.X509Certificate[] getAcceptedIssuers() { + return new java.security.cert.X509Certificate[]{}; + } + } + }; + hostnameVerifier = new HostnameVerifier() { + @Override + public boolean verify(String hostname, SSLSession session) { + return true; + } + }; + } else { + TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm()); + + if (sslCaCert == null) { + trustManagerFactory.init((KeyStore) null); + } else { + char[] password = null; // Any password will work. + CertificateFactory certificateFactory = CertificateFactory.getInstance("X.509"); + Collection certificates = certificateFactory.generateCertificates(sslCaCert); + if (certificates.isEmpty()) { + throw new IllegalArgumentException("expected non-empty set of trusted certificates"); + } + KeyStore caKeyStore = newEmptyKeyStore(password); + int index = 0; + for (Certificate certificate : certificates) { + String certificateAlias = "ca" + (index++); + caKeyStore.setCertificateEntry(certificateAlias, certificate); + } + trustManagerFactory.init(caKeyStore); + } + trustManagers = trustManagerFactory.getTrustManagers(); + hostnameVerifier = OkHostnameVerifier.INSTANCE; + } + + SSLContext sslContext = SSLContext.getInstance("TLS"); + sslContext.init(keyManagers, trustManagers, new SecureRandom()); + httpClient = httpClient.newBuilder() + .sslSocketFactory(sslContext.getSocketFactory(), (X509TrustManager) trustManagers[0]) + .hostnameVerifier(hostnameVerifier) + .build(); + } catch (GeneralSecurityException e) { + throw new RuntimeException(e); + } + } + + private KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityException { + try { + KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); + keyStore.load(null, password); + return keyStore; + } catch (IOException e) { + throw new AssertionError(e); + } + } + + /** + * Convert the HTTP request body to a string. + * + * @param requestBody The HTTP request object + * @return The string representation of the HTTP request body + * @throws com.aptpod.ApiException If fail to serialize the request body object into a string + */ + private String requestBodyToString(RequestBody requestBody) throws ApiException { + if (requestBody != null) { + try { + final Buffer buffer = new Buffer(); + requestBody.writeTo(buffer); + return buffer.readUtf8(); + } catch (final IOException e) { + throw new ApiException(e); + } + } + + // empty http request body + return ""; + } +} diff --git a/intdash/src/main/java/com/aptpod/ApiException.java b/intdash/src/main/java/com/aptpod/ApiException.java new file mode 100644 index 0000000..b3b5ce2 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/ApiException.java @@ -0,0 +1,166 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod; + +import java.util.Map; +import java.util.List; + +import javax.ws.rs.core.GenericType; + +/** + *

ApiException class.

+ */ +@SuppressWarnings("serial") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-19T17:57:54.384855300+09:00[GMT+09:00]") +public class ApiException extends Exception { + private int code = 0; + private Map> responseHeaders = null; + private String responseBody = null; + + /** + *

Constructor for ApiException.

+ */ + public ApiException() {} + + /** + *

Constructor for ApiException.

+ * + * @param throwable a {@link java.lang.Throwable} object + */ + public ApiException(Throwable throwable) { + super(throwable); + } + + /** + *

Constructor for ApiException.

+ * + * @param message the error message + */ + public ApiException(String message) { + super(message); + } + + /** + *

Constructor for ApiException.

+ * + * @param message the error message + * @param throwable a {@link java.lang.Throwable} object + * @param code HTTP status code + * @param responseHeaders a {@link java.util.Map} of HTTP response headers + * @param responseBody the response body + */ + public ApiException(String message, Throwable throwable, int code, Map> responseHeaders, String responseBody) { + super(message, throwable); + this.code = code; + this.responseHeaders = responseHeaders; + this.responseBody = responseBody; + } + + /** + *

Constructor for ApiException.

+ * + * @param message the error message + * @param code HTTP status code + * @param responseHeaders a {@link java.util.Map} of HTTP response headers + * @param responseBody the response body + */ + public ApiException(String message, int code, Map> responseHeaders, String responseBody) { + this(message, (Throwable) null, code, responseHeaders, responseBody); + } + + /** + *

Constructor for ApiException.

+ * + * @param message the error message + * @param throwable a {@link java.lang.Throwable} object + * @param code HTTP status code + * @param responseHeaders a {@link java.util.Map} of HTTP response headers + */ + public ApiException(String message, Throwable throwable, int code, Map> responseHeaders) { + this(message, throwable, code, responseHeaders, null); + } + + /** + *

Constructor for ApiException.

+ * + * @param code HTTP status code + * @param responseHeaders a {@link java.util.Map} of HTTP response headers + * @param responseBody the response body + */ + public ApiException(int code, Map> responseHeaders, String responseBody) { + this("Response Code: " + code + " Response Body: " + responseBody, (Throwable) null, code, responseHeaders, responseBody); + } + + /** + *

Constructor for ApiException.

+ * + * @param code HTTP status code + * @param message a {@link java.lang.String} object + */ + public ApiException(int code, String message) { + super(message); + this.code = code; + } + + /** + *

Constructor for ApiException.

+ * + * @param code HTTP status code + * @param message the error message + * @param responseHeaders a {@link java.util.Map} of HTTP response headers + * @param responseBody the response body + */ + public ApiException(int code, String message, Map> responseHeaders, String responseBody) { + this(code, message); + this.responseHeaders = responseHeaders; + this.responseBody = responseBody; + } + + /** + * Get the HTTP status code. + * + * @return HTTP status code + */ + public int getCode() { + return code; + } + + /** + * Get the HTTP response headers. + * + * @return A map of list of string + */ + public Map> getResponseHeaders() { + return responseHeaders; + } + + /** + * Get the HTTP response body. + * + * @return Response body in the form of string + */ + public String getResponseBody() { + return responseBody; + } + + /** + * Get the exception message including HTTP response data. + * + * @return The exception message + */ + public String getMessage() { + return String.format("Message: %s%nHTTP response code: %s%nHTTP response body: %s%nHTTP response headers: %s", + super.getMessage(), this.getCode(), this.getResponseBody(), this.getResponseHeaders()); + } +} diff --git a/intdash/src/main/java/com/aptpod/ApiResponse.java b/intdash/src/main/java/com/aptpod/ApiResponse.java new file mode 100644 index 0000000..27ff56d --- /dev/null +++ b/intdash/src/main/java/com/aptpod/ApiResponse.java @@ -0,0 +1,76 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod; + +import java.util.List; +import java.util.Map; + +/** + * API response returned by API call. + */ +public class ApiResponse { + final private int statusCode; + final private Map> headers; + final private T data; + + /** + *

Constructor for ApiResponse.

+ * + * @param statusCode The status code of HTTP response + * @param headers The headers of HTTP response + */ + public ApiResponse(int statusCode, Map> headers) { + this(statusCode, headers, null); + } + + /** + *

Constructor for ApiResponse.

+ * + * @param statusCode The status code of HTTP response + * @param headers The headers of HTTP response + * @param data The object deserialized from response bod + */ + public ApiResponse(int statusCode, Map> headers, T data) { + this.statusCode = statusCode; + this.headers = headers; + this.data = data; + } + + /** + *

Get the status code.

+ * + * @return the status code + */ + public int getStatusCode() { + return statusCode; + } + + /** + *

Get the headers.

+ * + * @return a {@link java.util.Map} of headers + */ + public Map> getHeaders() { + return headers; + } + + /** + *

Get the data.

+ * + * @return the data + */ + public T getData() { + return data; + } +} diff --git a/intdash/src/main/java/com/aptpod/Configuration.java b/intdash/src/main/java/com/aptpod/Configuration.java new file mode 100644 index 0000000..f263e8e --- /dev/null +++ b/intdash/src/main/java/com/aptpod/Configuration.java @@ -0,0 +1,41 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-19T17:57:54.384855300+09:00[GMT+09:00]") +public class Configuration { + public static final String VERSION = "v2.4.0-next-4a4316946"; + + private static ApiClient defaultApiClient = new ApiClient(); + + /** + * Get the default API client, which would be used when creating API + * instances without providing an API client. + * + * @return Default API client + */ + public static ApiClient getDefaultApiClient() { + return defaultApiClient; + } + + /** + * Set the default API client, which would be used when creating API + * instances without providing an API client. + * + * @param apiClient API client + */ + public static void setDefaultApiClient(ApiClient apiClient) { + defaultApiClient = apiClient; + } +} diff --git a/intdash/src/main/java/com/aptpod/GzipRequestInterceptor.java b/intdash/src/main/java/com/aptpod/GzipRequestInterceptor.java new file mode 100644 index 0000000..c20855d --- /dev/null +++ b/intdash/src/main/java/com/aptpod/GzipRequestInterceptor.java @@ -0,0 +1,85 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod; + +import okhttp3.*; +import okio.Buffer; +import okio.BufferedSink; +import okio.GzipSink; +import okio.Okio; + +import java.io.IOException; + +/** + * Encodes request bodies using gzip. + * + * Taken from https://github.com/square/okhttp/issues/350 + */ +class GzipRequestInterceptor implements Interceptor { + @Override + public Response intercept(Chain chain) throws IOException { + Request originalRequest = chain.request(); + if (originalRequest.body() == null || originalRequest.header("Content-Encoding") != null) { + return chain.proceed(originalRequest); + } + + Request compressedRequest = originalRequest.newBuilder() + .header("Content-Encoding", "gzip") + .method(originalRequest.method(), forceContentLength(gzip(originalRequest.body()))) + .build(); + return chain.proceed(compressedRequest); + } + + private RequestBody forceContentLength(final RequestBody requestBody) throws IOException { + final Buffer buffer = new Buffer(); + requestBody.writeTo(buffer); + return new RequestBody() { + @Override + public MediaType contentType() { + return requestBody.contentType(); + } + + @Override + public long contentLength() { + return buffer.size(); + } + + @Override + public void writeTo(BufferedSink sink) throws IOException { + sink.write(buffer.snapshot()); + } + }; + } + + private RequestBody gzip(final RequestBody body) { + return new RequestBody() { + @Override + public MediaType contentType() { + return body.contentType(); + } + + @Override + public long contentLength() { + return -1; // We don't know the compressed length in advance! + } + + @Override + public void writeTo(BufferedSink sink) throws IOException { + BufferedSink gzipSink = Okio.buffer(new GzipSink(sink)); + body.writeTo(gzipSink); + gzipSink.close(); + } + }; + } +} diff --git a/intdash/src/main/java/com/aptpod/JSON.java b/intdash/src/main/java/com/aptpod/JSON.java new file mode 100644 index 0000000..fedbd61 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/JSON.java @@ -0,0 +1,571 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapter; +import com.google.gson.internal.bind.util.ISO8601Utils; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.google.gson.JsonElement; +import io.gsonfire.GsonFireBuilder; +import io.gsonfire.TypeSelector; + +import okio.ByteString; + +import java.io.IOException; +import java.io.StringReader; +import java.lang.reflect.Type; +import java.text.DateFormat; +import java.text.ParseException; +import java.text.ParsePosition; +import java.time.LocalDate; +import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; +import java.util.Date; +import java.util.Locale; +import java.util.Map; +import java.util.HashMap; + +/* + * A JSON utility class + * + * NOTE: in the future, this class may be converted to static, which may break + * backward-compatibility + */ +public class JSON { + private static Gson gson; + private static boolean isLenientOnJson = false; + private static DateTypeAdapter dateTypeAdapter = new DateTypeAdapter(); + private static SqlDateTypeAdapter sqlDateTypeAdapter = new SqlDateTypeAdapter(); + private static ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter(); + + @SuppressWarnings("unchecked") + public static GsonBuilder createGson() { + GsonFireBuilder fireBuilder = new GsonFireBuilder() + .registerTypeSelector(org.openapitools.client.model.CreateMyOAuth2ClientRequest.class, new TypeSelector() { + @Override + public Class getClassForElement(JsonElement readElement) { + Map classByDiscriminatorValue = new HashMap(); + classByDiscriminatorValue.put("CreateOAuth2ClientAuthorizationCodeRequest", org.openapitools.client.model.CreateOAuth2ClientAuthorizationCodeRequest.class); + classByDiscriminatorValue.put("CreateOAuth2ClientClientCredentialsRequest", org.openapitools.client.model.CreateOAuth2ClientClientCredentialsRequest.class); + classByDiscriminatorValue.put("authorization_code", org.openapitools.client.model.CreateOAuth2ClientAuthorizationCodeRequest.class); + classByDiscriminatorValue.put("client_credentials", org.openapitools.client.model.CreateOAuth2ClientClientCredentialsRequest.class); + classByDiscriminatorValue.put("CreateMyOAuth2ClientRequest", org.openapitools.client.model.CreateMyOAuth2ClientRequest.class); + return getClassByDiscriminator(classByDiscriminatorValue, + getDiscriminatorValue(readElement, "grant_type")); + } + }) + .registerTypeSelector(org.openapitools.client.model.DataPoint.class, new TypeSelector() { + @Override + public Class getClassForElement(JsonElement readElement) { + Map classByDiscriminatorValue = new HashMap(); + classByDiscriminatorValue.put("*", org.openapitools.client.model.DataPointNormal.class); + classByDiscriminatorValue.put("<channel>intdash/measurement/get/data/error", org.openapitools.client.model.DataPointError.class); + classByDiscriminatorValue.put("DataPointError", org.openapitools.client.model.DataPointError.class); + classByDiscriminatorValue.put("DataPointNormal", org.openapitools.client.model.DataPointNormal.class); + classByDiscriminatorValue.put("DataPoint", org.openapitools.client.model.DataPoint.class); + return getClassByDiscriminator(classByDiscriminatorValue, + getDiscriminatorValue(readElement, "data_id")); + } + }) + .registerTypeSelector(org.openapitools.client.model.DataPointDataErrorData.class, new TypeSelector() { + @Override + public Class getClassForElement(JsonElement readElement) { + Map classByDiscriminatorValue = new HashMap(); + classByDiscriminatorValue.put("*", org.openapitools.client.model.ErrorExtraEmpty.class); + classByDiscriminatorValue.put("ErrorConverted", org.openapitools.client.model.ErrorConverted.class); + classByDiscriminatorValue.put("ErrorExtraEmpty", org.openapitools.client.model.ErrorExtraEmpty.class); + classByDiscriminatorValue.put("converted_error", org.openapitools.client.model.ErrorConverted.class); + classByDiscriminatorValue.put("DataPointDataErrorData", org.openapitools.client.model.DataPointDataErrorData.class); + return getClassByDiscriminator(classByDiscriminatorValue, + getDiscriminatorValue(readElement, "error")); + } + }) + .registerTypeSelector(org.openapitools.client.model.MeasurementMarker.class, new TypeSelector() { + @Override + public Class getClassForElement(JsonElement readElement) { + Map classByDiscriminatorValue = new HashMap(); + classByDiscriminatorValue.put("MeasurementMarkerPoint", org.openapitools.client.model.MeasurementMarkerPoint.class); + classByDiscriminatorValue.put("MeasurementMarkerRange", org.openapitools.client.model.MeasurementMarkerRange.class); + classByDiscriminatorValue.put("point", org.openapitools.client.model.MeasurementMarkerPoint.class); + classByDiscriminatorValue.put("range", org.openapitools.client.model.MeasurementMarkerRange.class); + classByDiscriminatorValue.put("MeasurementMarker", org.openapitools.client.model.MeasurementMarker.class); + return getClassByDiscriminator(classByDiscriminatorValue, + getDiscriminatorValue(readElement, "type")); + } + }) + .registerTypeSelector(org.openapitools.client.model.MeasurementMarkerPostRequest.class, new TypeSelector() { + @Override + public Class getClassForElement(JsonElement readElement) { + Map classByDiscriminatorValue = new HashMap(); + classByDiscriminatorValue.put("MeasurementMarkerPostRequestPoint", org.openapitools.client.model.MeasurementMarkerPostRequestPoint.class); + classByDiscriminatorValue.put("MeasurementMarkerPostRequestRange", org.openapitools.client.model.MeasurementMarkerPostRequestRange.class); + classByDiscriminatorValue.put("point", org.openapitools.client.model.MeasurementMarkerPostRequestPoint.class); + classByDiscriminatorValue.put("range", org.openapitools.client.model.MeasurementMarkerPostRequestRange.class); + classByDiscriminatorValue.put("MeasurementMarkerPostRequest", org.openapitools.client.model.MeasurementMarkerPostRequest.class); + return getClassByDiscriminator(classByDiscriminatorValue, + getDiscriminatorValue(readElement, "type")); + } + }) + .registerTypeSelector(org.openapitools.client.model.MeasurementMarkerPutRequest.class, new TypeSelector() { + @Override + public Class getClassForElement(JsonElement readElement) { + Map classByDiscriminatorValue = new HashMap(); + classByDiscriminatorValue.put("MeasurementMarkerPutRequestPoint", org.openapitools.client.model.MeasurementMarkerPutRequestPoint.class); + classByDiscriminatorValue.put("MeasurementMarkerPutRequestRange", org.openapitools.client.model.MeasurementMarkerPutRequestRange.class); + classByDiscriminatorValue.put("point", org.openapitools.client.model.MeasurementMarkerPutRequestPoint.class); + classByDiscriminatorValue.put("range", org.openapitools.client.model.MeasurementMarkerPutRequestRange.class); + classByDiscriminatorValue.put("MeasurementMarkerPutRequest", org.openapitools.client.model.MeasurementMarkerPutRequest.class); + return getClassByDiscriminator(classByDiscriminatorValue, + getDiscriminatorValue(readElement, "type")); + } + }) + .registerTypeSelector(org.openapitools.client.model.SignalConversion.class, new TypeSelector() { + @Override + public Class getClassForElement(JsonElement readElement) { + Map classByDiscriminatorValue = new HashMap(); + classByDiscriminatorValue.put("SignalConversionCSV", org.openapitools.client.model.SignalConversionCSV.class); + classByDiscriminatorValue.put("SignalConversionJSON", org.openapitools.client.model.SignalConversionJSON.class); + classByDiscriminatorValue.put("SignalConversionNumFixedPoint", org.openapitools.client.model.SignalConversionNumFixedPoint.class); + classByDiscriminatorValue.put("SignalConversionNumFloatingPoint", org.openapitools.client.model.SignalConversionNumFloatingPoint.class); + classByDiscriminatorValue.put("SignalConversionSubBytes", org.openapitools.client.model.SignalConversionSubBytes.class); + classByDiscriminatorValue.put("SignalConversionSubString", org.openapitools.client.model.SignalConversionSubString.class); + classByDiscriminatorValue.put("csv", org.openapitools.client.model.SignalConversionCSV.class); + classByDiscriminatorValue.put("json", org.openapitools.client.model.SignalConversionJSON.class); + classByDiscriminatorValue.put("num_fixed_point", org.openapitools.client.model.SignalConversionNumFixedPoint.class); + classByDiscriminatorValue.put("num_floating_point", org.openapitools.client.model.SignalConversionNumFloatingPoint.class); + classByDiscriminatorValue.put("sub_bytes", org.openapitools.client.model.SignalConversionSubBytes.class); + classByDiscriminatorValue.put("sub_string", org.openapitools.client.model.SignalConversionSubString.class); + classByDiscriminatorValue.put("SignalConversion", org.openapitools.client.model.SignalConversion.class); + return getClassByDiscriminator(classByDiscriminatorValue, + getDiscriminatorValue(readElement, "type")); + } + }) + ; + GsonBuilder builder = fireBuilder.createGsonBuilder(); + return builder; + } + + private static String getDiscriminatorValue(JsonElement readElement, String discriminatorField) { + JsonElement element = readElement.getAsJsonObject().get(discriminatorField); + if (null == element) { + throw new IllegalArgumentException("missing discriminator field: <" + discriminatorField + ">"); + } + return element.getAsString(); + } + + /** + * Returns the Java class that implements the OpenAPI schema for the specified discriminator value. + * + * @param classByDiscriminatorValue The map of discriminator values to Java classes. + * @param discriminatorValue The value of the OpenAPI discriminator in the input data. + * @return The Java class that implements the OpenAPI schema + */ + private static Class getClassByDiscriminator(Map classByDiscriminatorValue, String discriminatorValue) { + Class clazz = (Class) classByDiscriminatorValue.get(discriminatorValue); + if (null == clazz) { + throw new IllegalArgumentException("cannot determine model class of name: <" + discriminatorValue + ">"); + } + return clazz; + } + + { + GsonBuilder gsonBuilder = createGson(); + gsonBuilder.registerTypeAdapter(Date.class, dateTypeAdapter); + gsonBuilder.registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter); + gsonBuilder.registerTypeAdapter(byte[].class, byteArrayAdapter); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.APITokenIntrospectionRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.APITokenIntrospectionResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.AddGroupMemberRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.AddProjectEdgeRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.AddProjectMemberRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.AllowedEndpoint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.AllowedISCPMessage.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.AssignOwnerRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.AuthPage.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ChangePasswordRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.CheckAuthorizationResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.CheckHTTPAuthorizationRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.CheckMeHTTPAuthorizationRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.CheckPasswordRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.CheckPasswordResult.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.CheckPasswordResultErrorsInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.CreateEdgeRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.CreateEmailRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.CreateGroupRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.CreateJobRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.CreateJpegRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.CreateMP4Request.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.CreateMeasurementChunksResult.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.CreateMeasurementChunksResultItemsInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.CreateMyOAuth2ClientRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.CreateOAuth2ClientAuthorizationCodeRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.CreateOAuth2ClientAuthorizationCodeRequestAllOf.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.CreateOAuth2ClientClientCredentialsRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.CreateProjectRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.CreateSignalRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.CreateUserAPITokenRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.CreateUserRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.DataID.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.DataIDs.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.DataPoint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.DataPointDataError.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.DataPointDataErrorData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.DataPointDataID.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.DataPointDataIDs.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.DataPointError.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.DataPointErrorAllOf.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.DataPointNormal.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.DataPointTime.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.DeniedEndpoint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Edge.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.EdgeConnection.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.EdgeConnectionAllOf.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.EdgeConnectionDownstream.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.EdgeConnectionEdge.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.EdgeConnectionItem.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.EdgeConnectionList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.EdgeConnectionListPage.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.EdgeConnectionUpstream.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.EdgeOwner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Edges.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ErrorConverted.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ErrorConvertedAllOf.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ErrorConvertedAllOfErrorExtra.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ErrorExtraEmpty.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ErrorProblem.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ErrorProblemMedia.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.GetVersion200Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Group.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Groups.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.HLS.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.HLSList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ISCPTicket.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.IssueToken200Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.JSONWebKey.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Job.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.JobList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Jpeg.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Jpegs.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MP4.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MP4s.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasBaseTime.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasBaseTimePut.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasBaseTimes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasCreate.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasReplace.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Measurement.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasurementJob.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasurementJobs.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasurementMarker.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasurementMarkerBase.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasurementMarkerDetailPoint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasurementMarkerDetailRange.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasurementMarkerPoint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasurementMarkerPointAllOf.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasurementMarkerPostRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasurementMarkerPostRequestPoint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasurementMarkerPostRequestRange.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasurementMarkerPutRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasurementMarkerPutRequestBase.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasurementMarkerPutRequestPoint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasurementMarkerPutRequestRange.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasurementMarkerRange.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasurementMarkerRangeAllOf.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasurementMarkers.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasurementMarkersWithoutPage.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasurementSectionGetResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasurementSectionsGetResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasurementSequenceGroup.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasurementSequenceGroupReplace.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasurementSequenceGroups.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasurementSequencesSummary.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasurementUploadPostResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasurementUploadStatusGetResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MeasurementUploadStatusesGetResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Measurements.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MediaMeasurement.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Member.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Members.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.OAuth2Client.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.OAuth2ClientWithSecret.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.OAuth2ClientWithSecretAllOf.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.OAuth2Clients.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.OAuth2JWKs.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Page.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.PageDetail.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.PageV2.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.PatchEdgeRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.PatchEmailRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.PatchUserRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Playlist.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Project.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ProjectEdge.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ProjectEdges.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Projects.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Role.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Roles.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Scope.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Scopes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.SequenceSummary.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Signal.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.SignalConversion.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.SignalConversionCSV.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.SignalConversionJSON.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.SignalConversionNumFixedPoint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.SignalConversionNumFloatingPoint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.SignalConversionOptionCSV.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.SignalConversionOptionJSON.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.SignalConversionOptionNumFixedPoint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.SignalConversionOptionNumFloatingPoint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.SignalConversionOptionSubBytes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.SignalConversionOptionSubString.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.SignalConversionSubBytes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.SignalConversionSubString.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.SignalDisplay.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Signals.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.TrashedMeasurements.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.UpdateEmailVerifiedRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.UpdateGroupMemberRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.UpdateGroupRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.UpdateOAuth2ClientRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.UpdateProjectEdgeRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.UpdateProjectMemberRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.UpdateProjectRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.UpdateSignalRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.UpdateUserAPITokenRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.User.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.UserAPIToken.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.UserAPITokens.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.UserEmail.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.UserEmailVerification.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.UserPassword.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Users.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Video.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Videos.CustomTypeAdapterFactory()); + gson = gsonBuilder.create(); + } + + /** + * Get Gson. + * + * @return Gson + */ + public static Gson getGson() { + return gson; + } + + /** + * Set Gson. + * + * @param gson Gson + */ + public static void setGson(Gson gson) { + JSON.gson = gson; + } + + public static void setLenientOnJson(boolean lenientOnJson) { + isLenientOnJson = lenientOnJson; + } + + /** + * Serialize the given Java object into JSON string. + * + * @param obj Object + * @return String representation of the JSON + */ + public static String serialize(Object obj) { + return gson.toJson(obj); + } + + /** + * Deserialize the given JSON string to Java object. + * + * @param Type + * @param body The JSON string + * @param returnType The type to deserialize into + * @return The deserialized Java object + */ + @SuppressWarnings("unchecked") + public static T deserialize(String body, Type returnType) { + try { + if (isLenientOnJson) { + JsonReader jsonReader = new JsonReader(new StringReader(body)); + // see https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/stream/JsonReader.html#setLenient(boolean) + jsonReader.setLenient(true); + return gson.fromJson(jsonReader, returnType); + } else { + return gson.fromJson(body, returnType); + } + } catch (JsonParseException e) { + // Fallback processing when failed to parse JSON form response body: + // return the response body string directly for the String return type; + if (returnType.equals(String.class)) { + return (T) body; + } else { + throw (e); + } + } + } + + /** + * Gson TypeAdapter for Byte Array type + */ + public static class ByteArrayAdapter extends TypeAdapter { + + @Override + public void write(JsonWriter out, byte[] value) throws IOException { + if (value == null) { + out.nullValue(); + } else { + out.value(ByteString.of(value).base64()); + } + } + + @Override + public byte[] read(JsonReader in) throws IOException { + switch (in.peek()) { + case NULL: + in.nextNull(); + return null; + default: + String bytesAsBase64 = in.nextString(); + ByteString byteString = ByteString.decodeBase64(bytesAsBase64); + return byteString.toByteArray(); + } + } + } + + /** + * Gson TypeAdapter for java.sql.Date type + * If the dateFormat is null, a simple "yyyy-MM-dd" format will be used + * (more efficient than SimpleDateFormat). + */ + public static class SqlDateTypeAdapter extends TypeAdapter { + + private DateFormat dateFormat; + + public SqlDateTypeAdapter() {} + + public SqlDateTypeAdapter(DateFormat dateFormat) { + this.dateFormat = dateFormat; + } + + public void setFormat(DateFormat dateFormat) { + this.dateFormat = dateFormat; + } + + @Override + public void write(JsonWriter out, java.sql.Date date) throws IOException { + if (date == null) { + out.nullValue(); + } else { + String value; + if (dateFormat != null) { + value = dateFormat.format(date); + } else { + value = date.toString(); + } + out.value(value); + } + } + + @Override + public java.sql.Date read(JsonReader in) throws IOException { + switch (in.peek()) { + case NULL: + in.nextNull(); + return null; + default: + String date = in.nextString(); + try { + if (dateFormat != null) { + return new java.sql.Date(dateFormat.parse(date).getTime()); + } + return new java.sql.Date(ISO8601Utils.parse(date, new ParsePosition(0)).getTime()); + } catch (ParseException e) { + throw new JsonParseException(e); + } + } + } + } + + /** + * Gson TypeAdapter for java.util.Date type + * If the dateFormat is null, ISO8601Utils will be used. + */ + public static class DateTypeAdapter extends TypeAdapter { + + private DateFormat dateFormat; + + public DateTypeAdapter() {} + + public DateTypeAdapter(DateFormat dateFormat) { + this.dateFormat = dateFormat; + } + + public void setFormat(DateFormat dateFormat) { + this.dateFormat = dateFormat; + } + + @Override + public void write(JsonWriter out, Date date) throws IOException { + if (date == null) { + out.nullValue(); + } else { + String value; + if (dateFormat != null) { + value = dateFormat.format(date); + } else { + value = ISO8601Utils.format(date, true); + } + out.value(value); + } + } + + @Override + public Date read(JsonReader in) throws IOException { + try { + switch (in.peek()) { + case NULL: + in.nextNull(); + return null; + default: + String date = in.nextString(); + try { + if (dateFormat != null) { + return dateFormat.parse(date); + } + return ISO8601Utils.parse(date, new ParsePosition(0)); + } catch (ParseException e) { + throw new JsonParseException(e); + } + } + } catch (IllegalArgumentException e) { + throw new JsonParseException(e); + } + } + } + + public static void setDateFormat(DateFormat dateFormat) { + dateTypeAdapter.setFormat(dateFormat); + } + + public static void setSqlDateFormat(DateFormat dateFormat) { + sqlDateTypeAdapter.setFormat(dateFormat); + } +} diff --git a/intdash/src/main/java/com/aptpod/Pair.java b/intdash/src/main/java/com/aptpod/Pair.java new file mode 100644 index 0000000..a9961e0 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/Pair.java @@ -0,0 +1,57 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-19T17:57:54.384855300+09:00[GMT+09:00]") +public class Pair { + private String name = ""; + private String value = ""; + + public Pair (String name, String value) { + setName(name); + setValue(value); + } + + private void setName(String name) { + if (!isValidString(name)) { + return; + } + + this.name = name; + } + + private void setValue(String value) { + if (!isValidString(value)) { + return; + } + + this.value = value; + } + + public String getName() { + return this.name; + } + + public String getValue() { + return this.value; + } + + private boolean isValidString(String arg) { + if (arg == null) { + return false; + } + + return true; + } +} diff --git a/intdash/src/main/java/com/aptpod/ProgressRequestBody.java b/intdash/src/main/java/com/aptpod/ProgressRequestBody.java new file mode 100644 index 0000000..689280f --- /dev/null +++ b/intdash/src/main/java/com/aptpod/ProgressRequestBody.java @@ -0,0 +1,73 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod; + +import okhttp3.MediaType; +import okhttp3.RequestBody; + +import java.io.IOException; + +import okio.Buffer; +import okio.BufferedSink; +import okio.ForwardingSink; +import okio.Okio; +import okio.Sink; + +public class ProgressRequestBody extends RequestBody { + + private final RequestBody requestBody; + + private final ApiCallback callback; + + public ProgressRequestBody(RequestBody requestBody, ApiCallback callback) { + this.requestBody = requestBody; + this.callback = callback; + } + + @Override + public MediaType contentType() { + return requestBody.contentType(); + } + + @Override + public long contentLength() throws IOException { + return requestBody.contentLength(); + } + + @Override + public void writeTo(BufferedSink sink) throws IOException { + BufferedSink bufferedSink = Okio.buffer(sink(sink)); + requestBody.writeTo(bufferedSink); + bufferedSink.flush(); + } + + private Sink sink(Sink sink) { + return new ForwardingSink(sink) { + + long bytesWritten = 0L; + long contentLength = 0L; + + @Override + public void write(Buffer source, long byteCount) throws IOException { + super.write(source, byteCount); + if (contentLength == 0) { + contentLength = contentLength(); + } + + bytesWritten += byteCount; + callback.onUploadProgress(bytesWritten, contentLength, bytesWritten == contentLength); + } + }; + } +} diff --git a/intdash/src/main/java/com/aptpod/ProgressResponseBody.java b/intdash/src/main/java/com/aptpod/ProgressResponseBody.java new file mode 100644 index 0000000..bbf29ae --- /dev/null +++ b/intdash/src/main/java/com/aptpod/ProgressResponseBody.java @@ -0,0 +1,70 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod; + +import okhttp3.MediaType; +import okhttp3.ResponseBody; + +import java.io.IOException; + +import okio.Buffer; +import okio.BufferedSource; +import okio.ForwardingSource; +import okio.Okio; +import okio.Source; + +public class ProgressResponseBody extends ResponseBody { + + private final ResponseBody responseBody; + private final ApiCallback callback; + private BufferedSource bufferedSource; + + public ProgressResponseBody(ResponseBody responseBody, ApiCallback callback) { + this.responseBody = responseBody; + this.callback = callback; + } + + @Override + public MediaType contentType() { + return responseBody.contentType(); + } + + @Override + public long contentLength() { + return responseBody.contentLength(); + } + + @Override + public BufferedSource source() { + if (bufferedSource == null) { + bufferedSource = Okio.buffer(source(responseBody.source())); + } + return bufferedSource; + } + + private Source source(Source source) { + return new ForwardingSource(source) { + long totalBytesRead = 0L; + + @Override + public long read(Buffer sink, long byteCount) throws IOException { + long bytesRead = super.read(sink, byteCount); + // read() returns the number of bytes read, or -1 if this source is exhausted. + totalBytesRead += bytesRead != -1 ? bytesRead : 0; + callback.onDownloadProgress(totalBytesRead, responseBody.contentLength(), bytesRead == -1); + return bytesRead; + } + }; + } +} diff --git a/intdash/src/main/java/com/aptpod/ServerConfiguration.java b/intdash/src/main/java/com/aptpod/ServerConfiguration.java new file mode 100644 index 0000000..0891395 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/ServerConfiguration.java @@ -0,0 +1,58 @@ +package com.aptpod; + +import java.util.Map; + +/** + * Representing a Server configuration. + */ +public class ServerConfiguration { + public String URL; + public String description; + public Map variables; + + /** + * @param URL A URL to the target host. + * @param description A description of the host designated by the URL. + * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. + */ + public ServerConfiguration(String URL, String description, Map variables) { + this.URL = URL; + this.description = description; + this.variables = variables; + } + + /** + * Format URL template using given variables. + * + * @param variables A map between a variable name and its value. + * @return Formatted URL. + */ + public String URL(Map variables) { + String url = this.URL; + + // go through variables and replace placeholders + for (Map.Entry variable: this.variables.entrySet()) { + String name = variable.getKey(); + ServerVariable serverVariable = variable.getValue(); + String value = serverVariable.defaultValue; + + if (variables != null && variables.containsKey(name)) { + value = variables.get(name); + if (serverVariable.enumValues.size() > 0 && !serverVariable.enumValues.contains(value)) { + throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + "."); + } + } + url = url.replace("{" + name + "}", value); + } + return url; + } + + /** + * Format URL template using default server variables. + * + * @return Formatted URL. + */ + public String URL() { + return URL(null); + } +} diff --git a/intdash/src/main/java/com/aptpod/ServerVariable.java b/intdash/src/main/java/com/aptpod/ServerVariable.java new file mode 100644 index 0000000..a71ba35 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/ServerVariable.java @@ -0,0 +1,23 @@ +package com.aptpod; + +import java.util.HashSet; + +/** + * Representing a Server Variable for server URL template substitution. + */ +public class ServerVariable { + public String description; + public String defaultValue; + public HashSet enumValues = null; + + /** + * @param description A description for the server variable. + * @param defaultValue The default value to use for substitution. + * @param enumValues An enumeration of string values to be used if the substitution options are from a limited set. + */ + public ServerVariable(String description, String defaultValue, HashSet enumValues) { + this.description = description; + this.defaultValue = defaultValue; + this.enumValues = enumValues; + } +} diff --git a/intdash/src/main/java/com/aptpod/StringUtil.java b/intdash/src/main/java/com/aptpod/StringUtil.java new file mode 100644 index 0000000..049c666 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/StringUtil.java @@ -0,0 +1,83 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod; + +import java.util.Collection; +import java.util.Iterator; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-19T17:57:54.384855300+09:00[GMT+09:00]") +public class StringUtil { + /** + * Check if the given array contains the given value (with case-insensitive comparison). + * + * @param array The array + * @param value The value to search + * @return true if the array contains the value + */ + public static boolean containsIgnoreCase(String[] array, String value) { + for (String str : array) { + if (value == null && str == null) { + return true; + } + if (value != null && value.equalsIgnoreCase(str)) { + return true; + } + } + return false; + } + + /** + * Join an array of strings with the given separator. + *

+ * Note: This might be replaced by utility method from commons-lang or guava someday + * if one of those libraries is added as dependency. + *

+ * + * @param array The array of strings + * @param separator The separator + * @return the resulting string + */ + public static String join(String[] array, String separator) { + int len = array.length; + if (len == 0) { + return ""; + } + + StringBuilder out = new StringBuilder(); + out.append(array[0]); + for (int i = 1; i < len; i++) { + out.append(separator).append(array[i]); + } + return out.toString(); + } + + /** + * Join a list of strings with the given separator. + * + * @param list The list of strings + * @param separator The separator + * @return the resulting string + */ + public static String join(Collection list, String separator) { + Iterator iterator = list.iterator(); + StringBuilder out = new StringBuilder(); + if (iterator.hasNext()) { + out.append(iterator.next()); + } + while (iterator.hasNext()) { + out.append(separator).append(iterator.next()); + } + return out.toString(); + } +} diff --git a/intdash/src/main/java/com/aptpod/auth/ApiKeyAuth.java b/intdash/src/main/java/com/aptpod/auth/ApiKeyAuth.java new file mode 100644 index 0000000..3a0e45f --- /dev/null +++ b/intdash/src/main/java/com/aptpod/auth/ApiKeyAuth.java @@ -0,0 +1,80 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.auth; + +import com.aptpod.ApiException; +import com.aptpod.Pair; + +import java.net.URI; +import java.util.Map; +import java.util.List; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-19T17:57:54.384855300+09:00[GMT+09:00]") +public class ApiKeyAuth implements Authentication { + private final String location; + private final String paramName; + + private String apiKey; + private String apiKeyPrefix; + + public ApiKeyAuth(String location, String paramName) { + this.location = location; + this.paramName = paramName; + } + + public String getLocation() { + return location; + } + + public String getParamName() { + return paramName; + } + + public String getApiKey() { + return apiKey; + } + + public void setApiKey(String apiKey) { + this.apiKey = apiKey; + } + + public String getApiKeyPrefix() { + return apiKeyPrefix; + } + + public void setApiKeyPrefix(String apiKeyPrefix) { + this.apiKeyPrefix = apiKeyPrefix; + } + + @Override + public void applyToParams(List queryParams, Map headerParams, Map cookieParams, + String payload, String method, URI uri) throws ApiException { + if (apiKey == null) { + return; + } + String value; + if (apiKeyPrefix != null) { + value = apiKeyPrefix + " " + apiKey; + } else { + value = apiKey; + } + if ("query".equals(location)) { + queryParams.add(new Pair(paramName, value)); + } else if ("header".equals(location)) { + headerParams.put(paramName, value); + } else if ("cookie".equals(location)) { + cookieParams.put(paramName, value); + } + } +} diff --git a/intdash/src/main/java/com/aptpod/auth/Authentication.java b/intdash/src/main/java/com/aptpod/auth/Authentication.java new file mode 100644 index 0000000..99252de --- /dev/null +++ b/intdash/src/main/java/com/aptpod/auth/Authentication.java @@ -0,0 +1,36 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.auth; + +import com.aptpod.Pair; +import com.aptpod.ApiException; + +import java.net.URI; +import java.util.Map; +import java.util.List; + +public interface Authentication { + /** + * Apply authentication settings to header and query params. + * + * @param queryParams List of query parameters + * @param headerParams Map of header parameters + * @param cookieParams Map of cookie parameters + * @param payload HTTP request body + * @param method HTTP method + * @param uri URI + * @throws ApiException if failed to update the parameters + */ + void applyToParams(List queryParams, Map headerParams, Map cookieParams, String payload, String method, URI uri) throws ApiException; +} diff --git a/intdash/src/main/java/com/aptpod/auth/HttpBasicAuth.java b/intdash/src/main/java/com/aptpod/auth/HttpBasicAuth.java new file mode 100644 index 0000000..4de2fd3 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/auth/HttpBasicAuth.java @@ -0,0 +1,57 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.auth; + +import com.aptpod.Pair; +import com.aptpod.ApiException; + +import okhttp3.Credentials; + +import java.net.URI; +import java.util.Map; +import java.util.List; + +import java.io.UnsupportedEncodingException; + +public class HttpBasicAuth implements Authentication { + private String username; + private String password; + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + @Override + public void applyToParams(List queryParams, Map headerParams, Map cookieParams, + String payload, String method, URI uri) throws ApiException { + if (username == null && password == null) { + return; + } + headerParams.put("Authorization", Credentials.basic( + username == null ? "" : username, + password == null ? "" : password)); + } +} diff --git a/intdash/src/main/java/com/aptpod/auth/HttpBearerAuth.java b/intdash/src/main/java/com/aptpod/auth/HttpBearerAuth.java new file mode 100644 index 0000000..f742595 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/auth/HttpBearerAuth.java @@ -0,0 +1,63 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.auth; + +import com.aptpod.ApiException; +import com.aptpod.Pair; + +import java.net.URI; +import java.util.Map; +import java.util.List; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-19T17:57:54.384855300+09:00[GMT+09:00]") +public class HttpBearerAuth implements Authentication { + private final String scheme; + private String bearerToken; + + public HttpBearerAuth(String scheme) { + this.scheme = scheme; + } + + /** + * Gets the token, which together with the scheme, will be sent as the value of the Authorization header. + * + * @return The bearer token + */ + public String getBearerToken() { + return bearerToken; + } + + /** + * Sets the token, which together with the scheme, will be sent as the value of the Authorization header. + * + * @param bearerToken The bearer token to send in the Authorization header + */ + public void setBearerToken(String bearerToken) { + this.bearerToken = bearerToken; + } + + @Override + public void applyToParams(List queryParams, Map headerParams, Map cookieParams, + String payload, String method, URI uri) throws ApiException { + if (bearerToken == null) { + return; + } + + headerParams.put("Authorization", (scheme != null ? upperCaseBearer(scheme) + " " : "") + bearerToken); + } + + private static String upperCaseBearer(String scheme) { + return ("bearer".equalsIgnoreCase(scheme)) ? "Bearer" : scheme; + } +} diff --git a/intdash/src/main/java/com/aptpod/auth/OAuth.java b/intdash/src/main/java/com/aptpod/auth/OAuth.java new file mode 100644 index 0000000..97b7b3d --- /dev/null +++ b/intdash/src/main/java/com/aptpod/auth/OAuth.java @@ -0,0 +1,42 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.auth; + +import com.aptpod.Pair; +import com.aptpod.ApiException; + +import java.net.URI; +import java.util.Map; +import java.util.List; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-19T17:57:54.384855300+09:00[GMT+09:00]") +public class OAuth implements Authentication { + private String accessToken; + + public String getAccessToken() { + return accessToken; + } + + public void setAccessToken(String accessToken) { + this.accessToken = accessToken; + } + + @Override + public void applyToParams(List queryParams, Map headerParams, Map cookieParams, + String payload, String method, URI uri) throws ApiException { + if (accessToken != null) { + headerParams.put("Authorization", "Bearer " + accessToken); + } + } +} diff --git a/intdash/src/main/java/com/aptpod/auth/OAuthFlow.java b/intdash/src/main/java/com/aptpod/auth/OAuthFlow.java new file mode 100644 index 0000000..bf5b3fc --- /dev/null +++ b/intdash/src/main/java/com/aptpod/auth/OAuthFlow.java @@ -0,0 +1,25 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.auth; + +/** + * OAuth flows that are supported by this client + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-09-19T17:57:54.384855300+09:00[GMT+09:00]") +public enum OAuthFlow { + ACCESS_CODE, //called authorizationCode in OpenAPI 3.0 + IMPLICIT, + PASSWORD, + APPLICATION //called clientCredentials in OpenAPI 3.0 +} diff --git a/intdash/src/main/java/com/aptpod/auth/OAuthOkHttpClient.java b/intdash/src/main/java/com/aptpod/auth/OAuthOkHttpClient.java new file mode 100644 index 0000000..40f1af5 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/auth/OAuthOkHttpClient.java @@ -0,0 +1,69 @@ +package com.aptpod.auth; + +import okhttp3.OkHttpClient; +import okhttp3.MediaType; +import okhttp3.Request; +import okhttp3.RequestBody; +import okhttp3.Response; + +import org.apache.oltu.oauth2.client.HttpClient; +import org.apache.oltu.oauth2.client.request.OAuthClientRequest; +import org.apache.oltu.oauth2.client.response.OAuthClientResponse; +import org.apache.oltu.oauth2.client.response.OAuthClientResponseFactory; +import org.apache.oltu.oauth2.common.exception.OAuthProblemException; +import org.apache.oltu.oauth2.common.exception.OAuthSystemException; + +import java.io.IOException; +import java.util.Map; +import java.util.Map.Entry; + +public class OAuthOkHttpClient implements HttpClient { + private OkHttpClient client; + + public OAuthOkHttpClient() { + this.client = new OkHttpClient(); + } + + public OAuthOkHttpClient(OkHttpClient client) { + this.client = client; + } + + @Override + public T execute(OAuthClientRequest request, Map headers, + String requestMethod, Class responseClass) + throws OAuthSystemException, OAuthProblemException { + + MediaType mediaType = MediaType.parse("application/json"); + Request.Builder requestBuilder = new Request.Builder().url(request.getLocationUri()); + + if(headers != null) { + for (Entry entry : headers.entrySet()) { + if (entry.getKey().equalsIgnoreCase("Content-Type")) { + mediaType = MediaType.parse(entry.getValue()); + } else { + requestBuilder.addHeader(entry.getKey(), entry.getValue()); + } + } + } + + RequestBody body = request.getBody() != null ? RequestBody.create(request.getBody(), mediaType) : null; + requestBuilder.method(requestMethod, body); + + try { + Response response = client.newCall(requestBuilder.build()).execute(); + return OAuthClientResponseFactory.createCustomResponse( + response.body().string(), + response.body().contentType().toString(), + response.code(), + response.headers().toMultimap(), + responseClass); + } catch (IOException e) { + throw new OAuthSystemException(e); + } + } + + @Override + public void shutdown() { + // Nothing to do here + } +} diff --git a/intdash/src/main/java/com/aptpod/auth/RetryingOAuth.java b/intdash/src/main/java/com/aptpod/auth/RetryingOAuth.java new file mode 100644 index 0000000..32ba48b --- /dev/null +++ b/intdash/src/main/java/com/aptpod/auth/RetryingOAuth.java @@ -0,0 +1,210 @@ +package com.aptpod.auth; + +import com.aptpod.ApiException; +import com.aptpod.Pair; + +import okhttp3.Interceptor; +import okhttp3.OkHttpClient; +import okhttp3.Request; +import okhttp3.Response; + +import org.apache.oltu.oauth2.client.OAuthClient; +import org.apache.oltu.oauth2.client.request.OAuthBearerClientRequest; +import org.apache.oltu.oauth2.client.request.OAuthClientRequest; +import org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder; +import org.apache.oltu.oauth2.client.response.OAuthJSONAccessTokenResponse; +import org.apache.oltu.oauth2.common.exception.OAuthProblemException; +import org.apache.oltu.oauth2.common.exception.OAuthSystemException; +import org.apache.oltu.oauth2.common.message.types.GrantType; + +import java.io.IOException; +import java.net.HttpURLConnection; +import java.net.URI; +import java.util.Map; +import java.util.List; + +public class RetryingOAuth extends OAuth implements Interceptor { + private OAuthClient oAuthClient; + + private TokenRequestBuilder tokenRequestBuilder; + + /** + * @param client An OkHttp client + * @param tokenRequestBuilder A token request builder + */ + public RetryingOAuth(OkHttpClient client, TokenRequestBuilder tokenRequestBuilder) { + this.oAuthClient = new OAuthClient(new OAuthOkHttpClient(client)); + this.tokenRequestBuilder = tokenRequestBuilder; + } + + /** + * @param tokenRequestBuilder A token request builder + */ + public RetryingOAuth(TokenRequestBuilder tokenRequestBuilder) { + this(new OkHttpClient(), tokenRequestBuilder); + } + + /** + * @param tokenUrl The token URL to be used for this OAuth2 flow. + * Applicable to the following OAuth2 flows: "password", "clientCredentials" and "authorizationCode". + * The value must be an absolute URL. + * @param clientId The OAuth2 client ID for the "clientCredentials" flow. + * @param flow OAuth flow. + * @param clientSecret The OAuth2 client secret for the "clientCredentials" flow. + * @param parameters A map of string. + */ + public RetryingOAuth( + String tokenUrl, + String clientId, + OAuthFlow flow, + String clientSecret, + Map parameters + ) { + this(OAuthClientRequest.tokenLocation(tokenUrl) + .setClientId(clientId) + .setClientSecret(clientSecret)); + setFlow(flow); + if (parameters != null) { + for (Map.Entry entry : parameters.entrySet()) { + tokenRequestBuilder.setParameter(entry.getKey(), entry.getValue()); + } + } + } + + /** + * Set the OAuth flow + * + * @param flow The OAuth flow. + */ + public void setFlow(OAuthFlow flow) { + switch(flow) { + case ACCESS_CODE: + tokenRequestBuilder.setGrantType(GrantType.AUTHORIZATION_CODE); + break; + case IMPLICIT: + tokenRequestBuilder.setGrantType(GrantType.IMPLICIT); + break; + case PASSWORD: + tokenRequestBuilder.setGrantType(GrantType.PASSWORD); + break; + case APPLICATION: + tokenRequestBuilder.setGrantType(GrantType.CLIENT_CREDENTIALS); + break; + default: + break; + } + } + + @Override + public Response intercept(Chain chain) throws IOException { + return retryingIntercept(chain, true); + } + + private Response retryingIntercept(Chain chain, boolean updateTokenAndRetryOnAuthorizationFailure) throws IOException { + Request request = chain.request(); + + // If the request already has an authorization (e.g. Basic auth), proceed with the request as is + if (request.header("Authorization") != null) { + return chain.proceed(request); + } + + // Get the token if it has not yet been acquired + if (getAccessToken() == null) { + updateAccessToken(null); + } + + OAuthClientRequest oAuthRequest; + if (getAccessToken() != null) { + // Build the request + Request.Builder requestBuilder = request.newBuilder(); + + String requestAccessToken = getAccessToken(); + try { + oAuthRequest = + new OAuthBearerClientRequest(request.url().toString()). + setAccessToken(requestAccessToken). + buildHeaderMessage(); + } catch (OAuthSystemException e) { + throw new IOException(e); + } + + Map headers = oAuthRequest.getHeaders(); + for (Map.Entry entry : headers.entrySet()) { + requestBuilder.addHeader(entry.getKey(), entry.getValue()); + } + requestBuilder.url(oAuthRequest.getLocationUri()); + + // Execute the request + Response response = chain.proceed(requestBuilder.build()); + + // 401/403 response codes most likely indicate an expired access token, unless it happens two times in a row + if ( + response != null && + ( response.code() == HttpURLConnection.HTTP_UNAUTHORIZED || + response.code() == HttpURLConnection.HTTP_FORBIDDEN ) && + updateTokenAndRetryOnAuthorizationFailure + ) { + try { + if (updateAccessToken(requestAccessToken)) { + response.body().close(); + return retryingIntercept(chain, false); + } + } catch (Exception e) { + response.body().close(); + throw e; + } + } + return response; + } + else { + return chain.proceed(chain.request()); + } + } + + /** + * Returns true if the access token has been updated + * + * @param requestAccessToken the request access token + * @return True if the update is successful + * @throws java.io.IOException If fail to update the access token + */ + public synchronized boolean updateAccessToken(String requestAccessToken) throws IOException { + if (getAccessToken() == null || getAccessToken().equals(requestAccessToken)) { + try { + OAuthJSONAccessTokenResponse accessTokenResponse = + oAuthClient.accessToken(tokenRequestBuilder.buildBodyMessage()); + if (accessTokenResponse != null && accessTokenResponse.getAccessToken() != null) { + setAccessToken(accessTokenResponse.getAccessToken()); + } + } catch (OAuthSystemException | OAuthProblemException e) { + throw new IOException(e); + } + } + return getAccessToken() == null || !getAccessToken().equals(requestAccessToken); + } + + /** + * Gets the token request builder + * + * @return A token request builder + */ + public TokenRequestBuilder getTokenRequestBuilder() { + return tokenRequestBuilder; + } + + /** + * Sets the token request builder + * + * @param tokenRequestBuilder Token request builder + */ + public void setTokenRequestBuilder(TokenRequestBuilder tokenRequestBuilder) { + this.tokenRequestBuilder = tokenRequestBuilder; + } + + // Applying authorization to parameters is performed in the retryingIntercept method + @Override + public void applyToParams(List queryParams, Map headerParams, Map cookieParams, + String payload, String method, URI uri) throws ApiException { + // No implementation necessary + } +} diff --git a/intdash/src/main/java/com/aptpod/intdash/AuthAuthorizationApi.java b/intdash/src/main/java/com/aptpod/intdash/AuthAuthorizationApi.java new file mode 100644 index 0000000..b745162 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/intdash/AuthAuthorizationApi.java @@ -0,0 +1,314 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.intdash; + +import com.aptpod.ApiCallback; +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.ApiResponse; +import com.aptpod.Configuration; +import com.aptpod.Pair; +import com.aptpod.ProgressRequestBody; +import com.aptpod.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.openapitools.client.model.CheckAuthorizationResponse; +import org.openapitools.client.model.CheckHTTPAuthorizationRequest; +import org.openapitools.client.model.CheckMeHTTPAuthorizationRequest; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class AuthAuthorizationApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public AuthAuthorizationApi() { + this(Configuration.getDefaultApiClient()); + } + + public AuthAuthorizationApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for checkHTTPAuthorization + * @param checkHTTPAuthorizationRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call checkHTTPAuthorizationCall(CheckHTTPAuthorizationRequest checkHTTPAuthorizationRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = checkHTTPAuthorizationRequest; + + // create path and map variables + String localVarPath = "/auth/authorize/http"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call checkHTTPAuthorizationValidateBeforeCall(CheckHTTPAuthorizationRequest checkHTTPAuthorizationRequest, final ApiCallback _callback) throws ApiException { + return checkHTTPAuthorizationCall(checkHTTPAuthorizationRequest, _callback); + + } + + /** + * Check HTTP Authorization + * + * @param checkHTTPAuthorizationRequest (optional) + * @return CheckAuthorizationResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public CheckAuthorizationResponse checkHTTPAuthorization(CheckHTTPAuthorizationRequest checkHTTPAuthorizationRequest) throws ApiException { + ApiResponse localVarResp = checkHTTPAuthorizationWithHttpInfo(checkHTTPAuthorizationRequest); + return localVarResp.getData(); + } + + /** + * Check HTTP Authorization + * + * @param checkHTTPAuthorizationRequest (optional) + * @return ApiResponse<CheckAuthorizationResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse checkHTTPAuthorizationWithHttpInfo(CheckHTTPAuthorizationRequest checkHTTPAuthorizationRequest) throws ApiException { + okhttp3.Call localVarCall = checkHTTPAuthorizationValidateBeforeCall(checkHTTPAuthorizationRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Check HTTP Authorization (asynchronously) + * + * @param checkHTTPAuthorizationRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call checkHTTPAuthorizationAsync(CheckHTTPAuthorizationRequest checkHTTPAuthorizationRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = checkHTTPAuthorizationValidateBeforeCall(checkHTTPAuthorizationRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for checkMeHTTPAuthorization + * @param checkMeHTTPAuthorizationRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call checkMeHTTPAuthorizationCall(CheckMeHTTPAuthorizationRequest checkMeHTTPAuthorizationRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = checkMeHTTPAuthorizationRequest; + + // create path and map variables + String localVarPath = "/auth/users/me/authorize/http"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call checkMeHTTPAuthorizationValidateBeforeCall(CheckMeHTTPAuthorizationRequest checkMeHTTPAuthorizationRequest, final ApiCallback _callback) throws ApiException { + return checkMeHTTPAuthorizationCall(checkMeHTTPAuthorizationRequest, _callback); + + } + + /** + * Check Me HTTP Authorization + * + * @param checkMeHTTPAuthorizationRequest (optional) + * @return CheckAuthorizationResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public CheckAuthorizationResponse checkMeHTTPAuthorization(CheckMeHTTPAuthorizationRequest checkMeHTTPAuthorizationRequest) throws ApiException { + ApiResponse localVarResp = checkMeHTTPAuthorizationWithHttpInfo(checkMeHTTPAuthorizationRequest); + return localVarResp.getData(); + } + + /** + * Check Me HTTP Authorization + * + * @param checkMeHTTPAuthorizationRequest (optional) + * @return ApiResponse<CheckAuthorizationResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse checkMeHTTPAuthorizationWithHttpInfo(CheckMeHTTPAuthorizationRequest checkMeHTTPAuthorizationRequest) throws ApiException { + okhttp3.Call localVarCall = checkMeHTTPAuthorizationValidateBeforeCall(checkMeHTTPAuthorizationRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Check Me HTTP Authorization (asynchronously) + * + * @param checkMeHTTPAuthorizationRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call checkMeHTTPAuthorizationAsync(CheckMeHTTPAuthorizationRequest checkMeHTTPAuthorizationRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = checkMeHTTPAuthorizationValidateBeforeCall(checkMeHTTPAuthorizationRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/intdash/src/main/java/com/aptpod/intdash/AuthClientsApi.java b/intdash/src/main/java/com/aptpod/intdash/AuthClientsApi.java new file mode 100644 index 0000000..9ff7548 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/intdash/AuthClientsApi.java @@ -0,0 +1,1329 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.intdash; + +import com.aptpod.ApiCallback; +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.ApiResponse; +import com.aptpod.Configuration; +import com.aptpod.Pair; +import com.aptpod.ProgressRequestBody; +import com.aptpod.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.openapitools.client.model.CreateMyOAuth2ClientRequest; +import org.openapitools.client.model.OAuth2Client; +import org.openapitools.client.model.OAuth2ClientWithSecret; +import org.openapitools.client.model.OAuth2Clients; +import org.openapitools.client.model.UpdateOAuth2ClientRequest; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class AuthClientsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public AuthClientsApi() { + this(Configuration.getDefaultApiClient()); + } + + public AuthClientsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for createMyOAuth2Clients + * @param createMyOAuth2ClientRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public okhttp3.Call createMyOAuth2ClientsCall(CreateMyOAuth2ClientRequest createMyOAuth2ClientRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = createMyOAuth2ClientRequest; + + // create path and map variables + String localVarPath = "/auth/users/me/clients"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createMyOAuth2ClientsValidateBeforeCall(CreateMyOAuth2ClientRequest createMyOAuth2ClientRequest, final ApiCallback _callback) throws ApiException { + return createMyOAuth2ClientsCall(createMyOAuth2ClientRequest, _callback); + + } + + /** + * Create My OAuth2Client + * 自分(ユーザー)のOAuth2クライアントを作成します。 + * @param createMyOAuth2ClientRequest (optional) + * @return OAuth2ClientWithSecret + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public OAuth2ClientWithSecret createMyOAuth2Clients(CreateMyOAuth2ClientRequest createMyOAuth2ClientRequest) throws ApiException { + ApiResponse localVarResp = createMyOAuth2ClientsWithHttpInfo(createMyOAuth2ClientRequest); + return localVarResp.getData(); + } + + /** + * Create My OAuth2Client + * 自分(ユーザー)のOAuth2クライアントを作成します。 + * @param createMyOAuth2ClientRequest (optional) + * @return ApiResponse<OAuth2ClientWithSecret> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public ApiResponse createMyOAuth2ClientsWithHttpInfo(CreateMyOAuth2ClientRequest createMyOAuth2ClientRequest) throws ApiException { + okhttp3.Call localVarCall = createMyOAuth2ClientsValidateBeforeCall(createMyOAuth2ClientRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create My OAuth2Client (asynchronously) + * 自分(ユーザー)のOAuth2クライアントを作成します。 + * @param createMyOAuth2ClientRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public okhttp3.Call createMyOAuth2ClientsAsync(CreateMyOAuth2ClientRequest createMyOAuth2ClientRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createMyOAuth2ClientsValidateBeforeCall(createMyOAuth2ClientRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteMyOAuth2Client + * @param clientId OAuth2クライアントID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteMyOAuth2ClientCall(String clientId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/me/clients/{client_id}" + .replace("{" + "client_id" + "}", localVarApiClient.escapeString(clientId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteMyOAuth2ClientValidateBeforeCall(String clientId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'clientId' is set + if (clientId == null) { + throw new ApiException("Missing the required parameter 'clientId' when calling deleteMyOAuth2Client(Async)"); + } + + return deleteMyOAuth2ClientCall(clientId, _callback); + + } + + /** + * Delete My OAuth2Client + * 自分(ユーザー)のOAuth2クライアントを削除します。 + * @param clientId OAuth2クライアントID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void deleteMyOAuth2Client(String clientId) throws ApiException { + deleteMyOAuth2ClientWithHttpInfo(clientId); + } + + /** + * Delete My OAuth2Client + * 自分(ユーザー)のOAuth2クライアントを削除します。 + * @param clientId OAuth2クライアントID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse deleteMyOAuth2ClientWithHttpInfo(String clientId) throws ApiException { + okhttp3.Call localVarCall = deleteMyOAuth2ClientValidateBeforeCall(clientId, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete My OAuth2Client (asynchronously) + * 自分(ユーザー)のOAuth2クライアントを削除します。 + * @param clientId OAuth2クライアントID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteMyOAuth2ClientAsync(String clientId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteMyOAuth2ClientValidateBeforeCall(clientId, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteOAuth2Client + * @param clientId OAuth2クライアントID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteOAuth2ClientCall(String clientId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/clients/{client_id}" + .replace("{" + "client_id" + "}", localVarApiClient.escapeString(clientId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteOAuth2ClientValidateBeforeCall(String clientId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'clientId' is set + if (clientId == null) { + throw new ApiException("Missing the required parameter 'clientId' when calling deleteOAuth2Client(Async)"); + } + + return deleteOAuth2ClientCall(clientId, _callback); + + } + + /** + * Delete OAuth2Client + * OAuth2クライアントを削除します。 + * @param clientId OAuth2クライアントID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void deleteOAuth2Client(String clientId) throws ApiException { + deleteOAuth2ClientWithHttpInfo(clientId); + } + + /** + * Delete OAuth2Client + * OAuth2クライアントを削除します。 + * @param clientId OAuth2クライアントID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse deleteOAuth2ClientWithHttpInfo(String clientId) throws ApiException { + okhttp3.Call localVarCall = deleteOAuth2ClientValidateBeforeCall(clientId, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete OAuth2Client (asynchronously) + * OAuth2クライアントを削除します。 + * @param clientId OAuth2クライアントID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteOAuth2ClientAsync(String clientId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteOAuth2ClientValidateBeforeCall(clientId, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getMyOAuth2Client + * @param clientId OAuth2クライアントID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getMyOAuth2ClientCall(String clientId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/me/clients/{client_id}" + .replace("{" + "client_id" + "}", localVarApiClient.escapeString(clientId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getMyOAuth2ClientValidateBeforeCall(String clientId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'clientId' is set + if (clientId == null) { + throw new ApiException("Missing the required parameter 'clientId' when calling getMyOAuth2Client(Async)"); + } + + return getMyOAuth2ClientCall(clientId, _callback); + + } + + /** + * Get My OAuth2Client + * 自分(ユーザー)のOAuth2クライアントを取得します。 + * @param clientId OAuth2クライアントID (required) + * @return OAuth2Client + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public OAuth2Client getMyOAuth2Client(String clientId) throws ApiException { + ApiResponse localVarResp = getMyOAuth2ClientWithHttpInfo(clientId); + return localVarResp.getData(); + } + + /** + * Get My OAuth2Client + * 自分(ユーザー)のOAuth2クライアントを取得します。 + * @param clientId OAuth2クライアントID (required) + * @return ApiResponse<OAuth2Client> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getMyOAuth2ClientWithHttpInfo(String clientId) throws ApiException { + okhttp3.Call localVarCall = getMyOAuth2ClientValidateBeforeCall(clientId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get My OAuth2Client (asynchronously) + * 自分(ユーザー)のOAuth2クライアントを取得します。 + * @param clientId OAuth2クライアントID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getMyOAuth2ClientAsync(String clientId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getMyOAuth2ClientValidateBeforeCall(clientId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getOAuth2Client + * @param clientId OAuth2クライアントID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getOAuth2ClientCall(String clientId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/clients/{client_id}" + .replace("{" + "client_id" + "}", localVarApiClient.escapeString(clientId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getOAuth2ClientValidateBeforeCall(String clientId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'clientId' is set + if (clientId == null) { + throw new ApiException("Missing the required parameter 'clientId' when calling getOAuth2Client(Async)"); + } + + return getOAuth2ClientCall(clientId, _callback); + + } + + /** + * Get OAuth2Client + * OAuth2クライアントを取得します。 + * @param clientId OAuth2クライアントID (required) + * @return OAuth2Client + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public OAuth2Client getOAuth2Client(String clientId) throws ApiException { + ApiResponse localVarResp = getOAuth2ClientWithHttpInfo(clientId); + return localVarResp.getData(); + } + + /** + * Get OAuth2Client + * OAuth2クライアントを取得します。 + * @param clientId OAuth2クライアントID (required) + * @return ApiResponse<OAuth2Client> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getOAuth2ClientWithHttpInfo(String clientId) throws ApiException { + okhttp3.Call localVarCall = getOAuth2ClientValidateBeforeCall(clientId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get OAuth2Client (asynchronously) + * OAuth2クライアントを取得します。 + * @param clientId OAuth2クライアントID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getOAuth2ClientAsync(String clientId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getOAuth2ClientValidateBeforeCall(clientId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listMyOAuth2Clients + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listMyOAuth2ClientsCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/me/clients"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listMyOAuth2ClientsValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return listMyOAuth2ClientsCall(_callback); + + } + + /** + * List My OAuth2Clients + * 自分(ユーザー)のOAuth2クライアントのリストを取得します。 + * @return OAuth2Clients + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public OAuth2Clients listMyOAuth2Clients() throws ApiException { + ApiResponse localVarResp = listMyOAuth2ClientsWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * List My OAuth2Clients + * 自分(ユーザー)のOAuth2クライアントのリストを取得します。 + * @return ApiResponse<OAuth2Clients> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listMyOAuth2ClientsWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = listMyOAuth2ClientsValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List My OAuth2Clients (asynchronously) + * 自分(ユーザー)のOAuth2クライアントのリストを取得します。 + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listMyOAuth2ClientsAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listMyOAuth2ClientsValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listOAuth2Clients + * @param id OAuth2クライアントID (optional) + * @param name 名前による部分一致検索 (optional) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 - name - created_at - updated_at (optional, default to name+) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listOAuth2ClientsCall(List id, List name, String sort, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/clients"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (id != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "id", id)); + } + + if (name != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "name", name)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listOAuth2ClientsValidateBeforeCall(List id, List name, String sort, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + return listOAuth2ClientsCall(id, name, sort, page, perPage, _callback); + + } + + /** + * List OAuth2Clients + * OAuth2クライアントのリストを取得します。 + * @param id OAuth2クライアントID (optional) + * @param name 名前による部分一致検索 (optional) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 - name - created_at - updated_at (optional, default to name+) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @return OAuth2Clients + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public OAuth2Clients listOAuth2Clients(List id, List name, String sort, Integer page, Integer perPage) throws ApiException { + ApiResponse localVarResp = listOAuth2ClientsWithHttpInfo(id, name, sort, page, perPage); + return localVarResp.getData(); + } + + /** + * List OAuth2Clients + * OAuth2クライアントのリストを取得します。 + * @param id OAuth2クライアントID (optional) + * @param name 名前による部分一致検索 (optional) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 - name - created_at - updated_at (optional, default to name+) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @return ApiResponse<OAuth2Clients> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listOAuth2ClientsWithHttpInfo(List id, List name, String sort, Integer page, Integer perPage) throws ApiException { + okhttp3.Call localVarCall = listOAuth2ClientsValidateBeforeCall(id, name, sort, page, perPage, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List OAuth2Clients (asynchronously) + * OAuth2クライアントのリストを取得します。 + * @param id OAuth2クライアントID (optional) + * @param name 名前による部分一致検索 (optional) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 - name - created_at - updated_at (optional, default to name+) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listOAuth2ClientsAsync(List id, List name, String sort, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listOAuth2ClientsValidateBeforeCall(id, name, sort, page, perPage, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listUsersOAuth2Clients + * @param userUuid (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listUsersOAuth2ClientsCall(String userUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/{user_uuid}/clients" + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listUsersOAuth2ClientsValidateBeforeCall(String userUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling listUsersOAuth2Clients(Async)"); + } + + return listUsersOAuth2ClientsCall(userUuid, _callback); + + } + + /** + * List User's OAuth2Clients + * ユーザーのOAuth2クライアントのリストを取得します。 + * @param userUuid (required) + * @return OAuth2Clients + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public OAuth2Clients listUsersOAuth2Clients(String userUuid) throws ApiException { + ApiResponse localVarResp = listUsersOAuth2ClientsWithHttpInfo(userUuid); + return localVarResp.getData(); + } + + /** + * List User's OAuth2Clients + * ユーザーのOAuth2クライアントのリストを取得します。 + * @param userUuid (required) + * @return ApiResponse<OAuth2Clients> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listUsersOAuth2ClientsWithHttpInfo(String userUuid) throws ApiException { + okhttp3.Call localVarCall = listUsersOAuth2ClientsValidateBeforeCall(userUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List User's OAuth2Clients (asynchronously) + * ユーザーのOAuth2クライアントのリストを取得します。 + * @param userUuid (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listUsersOAuth2ClientsAsync(String userUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listUsersOAuth2ClientsValidateBeforeCall(userUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateMyOAuth2Client + * @param clientId OAuth2クライアントID (required) + * @param updateOAuth2ClientRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
304 Not Modified -
+ */ + public okhttp3.Call updateMyOAuth2ClientCall(String clientId, UpdateOAuth2ClientRequest updateOAuth2ClientRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateOAuth2ClientRequest; + + // create path and map variables + String localVarPath = "/auth/users/me/clients/{client_id}" + .replace("{" + "client_id" + "}", localVarApiClient.escapeString(clientId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateMyOAuth2ClientValidateBeforeCall(String clientId, UpdateOAuth2ClientRequest updateOAuth2ClientRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'clientId' is set + if (clientId == null) { + throw new ApiException("Missing the required parameter 'clientId' when calling updateMyOAuth2Client(Async)"); + } + + return updateMyOAuth2ClientCall(clientId, updateOAuth2ClientRequest, _callback); + + } + + /** + * Update My OAuth2Client + * 自分(ユーザー)のOAuth2クライアントを更新します。 + * @param clientId OAuth2クライアントID (required) + * @param updateOAuth2ClientRequest (optional) + * @return OAuth2Client + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
304 Not Modified -
+ */ + public OAuth2Client updateMyOAuth2Client(String clientId, UpdateOAuth2ClientRequest updateOAuth2ClientRequest) throws ApiException { + ApiResponse localVarResp = updateMyOAuth2ClientWithHttpInfo(clientId, updateOAuth2ClientRequest); + return localVarResp.getData(); + } + + /** + * Update My OAuth2Client + * 自分(ユーザー)のOAuth2クライアントを更新します。 + * @param clientId OAuth2クライアントID (required) + * @param updateOAuth2ClientRequest (optional) + * @return ApiResponse<OAuth2Client> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
304 Not Modified -
+ */ + public ApiResponse updateMyOAuth2ClientWithHttpInfo(String clientId, UpdateOAuth2ClientRequest updateOAuth2ClientRequest) throws ApiException { + okhttp3.Call localVarCall = updateMyOAuth2ClientValidateBeforeCall(clientId, updateOAuth2ClientRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update My OAuth2Client (asynchronously) + * 自分(ユーザー)のOAuth2クライアントを更新します。 + * @param clientId OAuth2クライアントID (required) + * @param updateOAuth2ClientRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
304 Not Modified -
+ */ + public okhttp3.Call updateMyOAuth2ClientAsync(String clientId, UpdateOAuth2ClientRequest updateOAuth2ClientRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateMyOAuth2ClientValidateBeforeCall(clientId, updateOAuth2ClientRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateOAuth2Client + * @param clientId OAuth2クライアントID (required) + * @param updateOAuth2ClientRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateOAuth2ClientCall(String clientId, UpdateOAuth2ClientRequest updateOAuth2ClientRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateOAuth2ClientRequest; + + // create path and map variables + String localVarPath = "/auth/clients/{client_id}" + .replace("{" + "client_id" + "}", localVarApiClient.escapeString(clientId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateOAuth2ClientValidateBeforeCall(String clientId, UpdateOAuth2ClientRequest updateOAuth2ClientRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'clientId' is set + if (clientId == null) { + throw new ApiException("Missing the required parameter 'clientId' when calling updateOAuth2Client(Async)"); + } + + return updateOAuth2ClientCall(clientId, updateOAuth2ClientRequest, _callback); + + } + + /** + * Update OAuth2Client + * OAuth2クライアントを更新します。 + * @param clientId OAuth2クライアントID (required) + * @param updateOAuth2ClientRequest (optional) + * @return OAuth2Client + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public OAuth2Client updateOAuth2Client(String clientId, UpdateOAuth2ClientRequest updateOAuth2ClientRequest) throws ApiException { + ApiResponse localVarResp = updateOAuth2ClientWithHttpInfo(clientId, updateOAuth2ClientRequest); + return localVarResp.getData(); + } + + /** + * Update OAuth2Client + * OAuth2クライアントを更新します。 + * @param clientId OAuth2クライアントID (required) + * @param updateOAuth2ClientRequest (optional) + * @return ApiResponse<OAuth2Client> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateOAuth2ClientWithHttpInfo(String clientId, UpdateOAuth2ClientRequest updateOAuth2ClientRequest) throws ApiException { + okhttp3.Call localVarCall = updateOAuth2ClientValidateBeforeCall(clientId, updateOAuth2ClientRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update OAuth2Client (asynchronously) + * OAuth2クライアントを更新します。 + * @param clientId OAuth2クライアントID (required) + * @param updateOAuth2ClientRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateOAuth2ClientAsync(String clientId, UpdateOAuth2ClientRequest updateOAuth2ClientRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateOAuth2ClientValidateBeforeCall(clientId, updateOAuth2ClientRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/intdash/src/main/java/com/aptpod/intdash/AuthEdgesApi.java b/intdash/src/main/java/com/aptpod/intdash/AuthEdgesApi.java new file mode 100644 index 0000000..6f45770 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/intdash/AuthEdgesApi.java @@ -0,0 +1,2487 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.intdash; + +import com.aptpod.ApiCallback; +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.ApiResponse; +import com.aptpod.Configuration; +import com.aptpod.Pair; +import com.aptpod.ProgressRequestBody; +import com.aptpod.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.openapitools.client.model.AssignOwnerRequest; +import org.openapitools.client.model.CreateEdgeRequest; +import org.openapitools.client.model.Edge; +import org.openapitools.client.model.EdgeOwner; +import org.openapitools.client.model.Edges; +import org.openapitools.client.model.ErrorProblem; +import org.openapitools.client.model.PatchEdgeRequest; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class AuthEdgesApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public AuthEdgesApi() { + this(Configuration.getDefaultApiClient()); + } + + public AuthEdgesApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for assignOwner + * @param edgeUuid エッジのUUID (required) + * @param assignOwnerRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
409 Conflict -
+ */ + public okhttp3.Call assignOwnerCall(String edgeUuid, AssignOwnerRequest assignOwnerRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = assignOwnerRequest; + + // create path and map variables + String localVarPath = "/auth/edges/{edge_uuid}/owner" + .replace("{" + "edge_uuid" + "}", localVarApiClient.escapeString(edgeUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call assignOwnerValidateBeforeCall(String edgeUuid, AssignOwnerRequest assignOwnerRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'edgeUuid' is set + if (edgeUuid == null) { + throw new ApiException("Missing the required parameter 'edgeUuid' when calling assignOwner(Async)"); + } + + return assignOwnerCall(edgeUuid, assignOwnerRequest, _callback); + + } + + /** + * Assign Owner + * エッジに所有者を割り当てます。 + * @param edgeUuid エッジのUUID (required) + * @param assignOwnerRequest (optional) + * @return EdgeOwner + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
409 Conflict -
+ */ + public EdgeOwner assignOwner(String edgeUuid, AssignOwnerRequest assignOwnerRequest) throws ApiException { + ApiResponse localVarResp = assignOwnerWithHttpInfo(edgeUuid, assignOwnerRequest); + return localVarResp.getData(); + } + + /** + * Assign Owner + * エッジに所有者を割り当てます。 + * @param edgeUuid エッジのUUID (required) + * @param assignOwnerRequest (optional) + * @return ApiResponse<EdgeOwner> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
409 Conflict -
+ */ + public ApiResponse assignOwnerWithHttpInfo(String edgeUuid, AssignOwnerRequest assignOwnerRequest) throws ApiException { + okhttp3.Call localVarCall = assignOwnerValidateBeforeCall(edgeUuid, assignOwnerRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Assign Owner (asynchronously) + * エッジに所有者を割り当てます。 + * @param edgeUuid エッジのUUID (required) + * @param assignOwnerRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
409 Conflict -
+ */ + public okhttp3.Call assignOwnerAsync(String edgeUuid, AssignOwnerRequest assignOwnerRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = assignOwnerValidateBeforeCall(edgeUuid, assignOwnerRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createEdge + * @param createEdgeRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public okhttp3.Call createEdgeCall(CreateEdgeRequest createEdgeRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = createEdgeRequest; + + // create path and map variables + String localVarPath = "/auth/edges"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createEdgeValidateBeforeCall(CreateEdgeRequest createEdgeRequest, final ApiCallback _callback) throws ApiException { + return createEdgeCall(createEdgeRequest, _callback); + + } + + /** + * Create Edge + * 所有者がない状態でエッジを作成します。 + * @param createEdgeRequest (optional) + * @return Edge + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public Edge createEdge(CreateEdgeRequest createEdgeRequest) throws ApiException { + ApiResponse localVarResp = createEdgeWithHttpInfo(createEdgeRequest); + return localVarResp.getData(); + } + + /** + * Create Edge + * 所有者がない状態でエッジを作成します。 + * @param createEdgeRequest (optional) + * @return ApiResponse<Edge> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public ApiResponse createEdgeWithHttpInfo(CreateEdgeRequest createEdgeRequest) throws ApiException { + okhttp3.Call localVarCall = createEdgeValidateBeforeCall(createEdgeRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Edge (asynchronously) + * 所有者がない状態でエッジを作成します。 + * @param createEdgeRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public okhttp3.Call createEdgeAsync(CreateEdgeRequest createEdgeRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createEdgeValidateBeforeCall(createEdgeRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createMyEdge + * @param createEdgeRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public okhttp3.Call createMyEdgeCall(CreateEdgeRequest createEdgeRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = createEdgeRequest; + + // create path and map variables + String localVarPath = "/auth/users/me/edges"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createMyEdgeValidateBeforeCall(CreateEdgeRequest createEdgeRequest, final ApiCallback _callback) throws ApiException { + return createMyEdgeCall(createEdgeRequest, _callback); + + } + + /** + * Create My Edge + * 新しいエッジを作成し、自分(ユーザー)を所有者に設定します。 + * @param createEdgeRequest (optional) + * @return Edge + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public Edge createMyEdge(CreateEdgeRequest createEdgeRequest) throws ApiException { + ApiResponse localVarResp = createMyEdgeWithHttpInfo(createEdgeRequest); + return localVarResp.getData(); + } + + /** + * Create My Edge + * 新しいエッジを作成し、自分(ユーザー)を所有者に設定します。 + * @param createEdgeRequest (optional) + * @return ApiResponse<Edge> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public ApiResponse createMyEdgeWithHttpInfo(CreateEdgeRequest createEdgeRequest) throws ApiException { + okhttp3.Call localVarCall = createMyEdgeValidateBeforeCall(createEdgeRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create My Edge (asynchronously) + * 新しいエッジを作成し、自分(ユーザー)を所有者に設定します。 + * @param createEdgeRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public okhttp3.Call createMyEdgeAsync(CreateEdgeRequest createEdgeRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createMyEdgeValidateBeforeCall(createEdgeRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createMyEdgeWithUUID + * @param edgeUuid エッジのUUID (required) + * @param createEdgeRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public okhttp3.Call createMyEdgeWithUUIDCall(String edgeUuid, CreateEdgeRequest createEdgeRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = createEdgeRequest; + + // create path and map variables + String localVarPath = "/auth/users/me/edges/{edge_uuid}" + .replace("{" + "edge_uuid" + "}", localVarApiClient.escapeString(edgeUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createMyEdgeWithUUIDValidateBeforeCall(String edgeUuid, CreateEdgeRequest createEdgeRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'edgeUuid' is set + if (edgeUuid == null) { + throw new ApiException("Missing the required parameter 'edgeUuid' when calling createMyEdgeWithUUID(Async)"); + } + + return createMyEdgeWithUUIDCall(edgeUuid, createEdgeRequest, _callback); + + } + + /** + * Create My Edge With UUID + * 指定したUUIDを持つ新しいエッジを作成し、自分を所有者に設定します。 + * @param edgeUuid エッジのUUID (required) + * @param createEdgeRequest (optional) + * @return Edge + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public Edge createMyEdgeWithUUID(String edgeUuid, CreateEdgeRequest createEdgeRequest) throws ApiException { + ApiResponse localVarResp = createMyEdgeWithUUIDWithHttpInfo(edgeUuid, createEdgeRequest); + return localVarResp.getData(); + } + + /** + * Create My Edge With UUID + * 指定したUUIDを持つ新しいエッジを作成し、自分を所有者に設定します。 + * @param edgeUuid エッジのUUID (required) + * @param createEdgeRequest (optional) + * @return ApiResponse<Edge> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public ApiResponse createMyEdgeWithUUIDWithHttpInfo(String edgeUuid, CreateEdgeRequest createEdgeRequest) throws ApiException { + okhttp3.Call localVarCall = createMyEdgeWithUUIDValidateBeforeCall(edgeUuid, createEdgeRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create My Edge With UUID (asynchronously) + * 指定したUUIDを持つ新しいエッジを作成し、自分を所有者に設定します。 + * @param edgeUuid エッジのUUID (required) + * @param createEdgeRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public okhttp3.Call createMyEdgeWithUUIDAsync(String edgeUuid, CreateEdgeRequest createEdgeRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createMyEdgeWithUUIDValidateBeforeCall(edgeUuid, createEdgeRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createUsersEdge + * @param userUuid (required) + * @param createEdgeRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public okhttp3.Call createUsersEdgeCall(String userUuid, CreateEdgeRequest createEdgeRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = createEdgeRequest; + + // create path and map variables + String localVarPath = "/auth/users/{user_uuid}/edges" + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createUsersEdgeValidateBeforeCall(String userUuid, CreateEdgeRequest createEdgeRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling createUsersEdge(Async)"); + } + + return createUsersEdgeCall(userUuid, createEdgeRequest, _callback); + + } + + /** + * Create User's Edge + * 指定されたユーザーを所有者とするエッジを作成します。 + * @param userUuid (required) + * @param createEdgeRequest (optional) + * @return Edge + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public Edge createUsersEdge(String userUuid, CreateEdgeRequest createEdgeRequest) throws ApiException { + ApiResponse localVarResp = createUsersEdgeWithHttpInfo(userUuid, createEdgeRequest); + return localVarResp.getData(); + } + + /** + * Create User's Edge + * 指定されたユーザーを所有者とするエッジを作成します。 + * @param userUuid (required) + * @param createEdgeRequest (optional) + * @return ApiResponse<Edge> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public ApiResponse createUsersEdgeWithHttpInfo(String userUuid, CreateEdgeRequest createEdgeRequest) throws ApiException { + okhttp3.Call localVarCall = createUsersEdgeValidateBeforeCall(userUuid, createEdgeRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create User's Edge (asynchronously) + * 指定されたユーザーを所有者とするエッジを作成します。 + * @param userUuid (required) + * @param createEdgeRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public okhttp3.Call createUsersEdgeAsync(String userUuid, CreateEdgeRequest createEdgeRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createUsersEdgeValidateBeforeCall(userUuid, createEdgeRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteEdge + * @param edgeUuid エッジのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteEdgeCall(String edgeUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/edges/{edge_uuid}" + .replace("{" + "edge_uuid" + "}", localVarApiClient.escapeString(edgeUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteEdgeValidateBeforeCall(String edgeUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'edgeUuid' is set + if (edgeUuid == null) { + throw new ApiException("Missing the required parameter 'edgeUuid' when calling deleteEdge(Async)"); + } + + return deleteEdgeCall(edgeUuid, _callback); + + } + + /** + * Delete Edge + * エッジを削除します。 + * @param edgeUuid エッジのUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void deleteEdge(String edgeUuid) throws ApiException { + deleteEdgeWithHttpInfo(edgeUuid); + } + + /** + * Delete Edge + * エッジを削除します。 + * @param edgeUuid エッジのUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse deleteEdgeWithHttpInfo(String edgeUuid) throws ApiException { + okhttp3.Call localVarCall = deleteEdgeValidateBeforeCall(edgeUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete Edge (asynchronously) + * エッジを削除します。 + * @param edgeUuid エッジのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteEdgeAsync(String edgeUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteEdgeValidateBeforeCall(edgeUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteMyEdge + * @param edgeUuid エッジのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteMyEdgeCall(String edgeUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/me/edges/{edge_uuid}" + .replace("{" + "edge_uuid" + "}", localVarApiClient.escapeString(edgeUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteMyEdgeValidateBeforeCall(String edgeUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'edgeUuid' is set + if (edgeUuid == null) { + throw new ApiException("Missing the required parameter 'edgeUuid' when calling deleteMyEdge(Async)"); + } + + return deleteMyEdgeCall(edgeUuid, _callback); + + } + + /** + * Delete My Edge + * 自分(ユーザー)が所有するエッジを削除します。 + * @param edgeUuid エッジのUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void deleteMyEdge(String edgeUuid) throws ApiException { + deleteMyEdgeWithHttpInfo(edgeUuid); + } + + /** + * Delete My Edge + * 自分(ユーザー)が所有するエッジを削除します。 + * @param edgeUuid エッジのUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse deleteMyEdgeWithHttpInfo(String edgeUuid) throws ApiException { + okhttp3.Call localVarCall = deleteMyEdgeValidateBeforeCall(edgeUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete My Edge (asynchronously) + * 自分(ユーザー)が所有するエッジを削除します。 + * @param edgeUuid エッジのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteMyEdgeAsync(String edgeUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteMyEdgeValidateBeforeCall(edgeUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteUsersEdge + * @param userUuid (required) + * @param edgeUuid エッジのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteUsersEdgeCall(String userUuid, String edgeUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/{user_uuid}/edges/{edge_uuid}" + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())) + .replace("{" + "edge_uuid" + "}", localVarApiClient.escapeString(edgeUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteUsersEdgeValidateBeforeCall(String userUuid, String edgeUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling deleteUsersEdge(Async)"); + } + + // verify the required parameter 'edgeUuid' is set + if (edgeUuid == null) { + throw new ApiException("Missing the required parameter 'edgeUuid' when calling deleteUsersEdge(Async)"); + } + + return deleteUsersEdgeCall(userUuid, edgeUuid, _callback); + + } + + /** + * Delete User's Edge + * ユーザーが所有するエッジを削除します。 + * @param userUuid (required) + * @param edgeUuid エッジのUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void deleteUsersEdge(String userUuid, String edgeUuid) throws ApiException { + deleteUsersEdgeWithHttpInfo(userUuid, edgeUuid); + } + + /** + * Delete User's Edge + * ユーザーが所有するエッジを削除します。 + * @param userUuid (required) + * @param edgeUuid エッジのUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse deleteUsersEdgeWithHttpInfo(String userUuid, String edgeUuid) throws ApiException { + okhttp3.Call localVarCall = deleteUsersEdgeValidateBeforeCall(userUuid, edgeUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete User's Edge (asynchronously) + * ユーザーが所有するエッジを削除します。 + * @param userUuid (required) + * @param edgeUuid エッジのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteUsersEdgeAsync(String userUuid, String edgeUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteUsersEdgeValidateBeforeCall(userUuid, edgeUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getEdge + * @param edgeUuid エッジのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getEdgeCall(String edgeUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/edges/{edge_uuid}" + .replace("{" + "edge_uuid" + "}", localVarApiClient.escapeString(edgeUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getEdgeValidateBeforeCall(String edgeUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'edgeUuid' is set + if (edgeUuid == null) { + throw new ApiException("Missing the required parameter 'edgeUuid' when calling getEdge(Async)"); + } + + return getEdgeCall(edgeUuid, _callback); + + } + + /** + * Get Edge + * エッジを取得します。 + * @param edgeUuid エッジのUUID (required) + * @return Edge + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Edge getEdge(String edgeUuid) throws ApiException { + ApiResponse localVarResp = getEdgeWithHttpInfo(edgeUuid); + return localVarResp.getData(); + } + + /** + * Get Edge + * エッジを取得します。 + * @param edgeUuid エッジのUUID (required) + * @return ApiResponse<Edge> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getEdgeWithHttpInfo(String edgeUuid) throws ApiException { + okhttp3.Call localVarCall = getEdgeValidateBeforeCall(edgeUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Edge (asynchronously) + * エッジを取得します。 + * @param edgeUuid エッジのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getEdgeAsync(String edgeUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getEdgeValidateBeforeCall(edgeUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getMeAsEdge + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getMeAsEdgeCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/edges/me"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getMeAsEdgeValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return getMeAsEdgeCall(_callback); + + } + + /** + * Get Edge having the same UUID as Me + * 自分のUUIDと同じエッジUUIDを持つエッジを取得します。 + * @return Edge + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Edge getMeAsEdge() throws ApiException { + ApiResponse localVarResp = getMeAsEdgeWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Get Edge having the same UUID as Me + * 自分のUUIDと同じエッジUUIDを持つエッジを取得します。 + * @return ApiResponse<Edge> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getMeAsEdgeWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getMeAsEdgeValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Edge having the same UUID as Me (asynchronously) + * 自分のUUIDと同じエッジUUIDを持つエッジを取得します。 + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getMeAsEdgeAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getMeAsEdgeValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getMyEdge + * @param edgeUuid エッジのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getMyEdgeCall(String edgeUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/me/edges/{edge_uuid}" + .replace("{" + "edge_uuid" + "}", localVarApiClient.escapeString(edgeUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getMyEdgeValidateBeforeCall(String edgeUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'edgeUuid' is set + if (edgeUuid == null) { + throw new ApiException("Missing the required parameter 'edgeUuid' when calling getMyEdge(Async)"); + } + + return getMyEdgeCall(edgeUuid, _callback); + + } + + /** + * Get My Edge + * 自分(ユーザー)が所有するエッジを取得します。 + * @param edgeUuid エッジのUUID (required) + * @return Edge + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Edge getMyEdge(String edgeUuid) throws ApiException { + ApiResponse localVarResp = getMyEdgeWithHttpInfo(edgeUuid); + return localVarResp.getData(); + } + + /** + * Get My Edge + * 自分(ユーザー)が所有するエッジを取得します。 + * @param edgeUuid エッジのUUID (required) + * @return ApiResponse<Edge> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getMyEdgeWithHttpInfo(String edgeUuid) throws ApiException { + okhttp3.Call localVarCall = getMyEdgeValidateBeforeCall(edgeUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get My Edge (asynchronously) + * 自分(ユーザー)が所有するエッジを取得します。 + * @param edgeUuid エッジのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getMyEdgeAsync(String edgeUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getMyEdgeValidateBeforeCall(edgeUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getUsersEdge + * @param userUuid (required) + * @param edgeUuid エッジのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getUsersEdgeCall(String userUuid, String edgeUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/{user_uuid}/edges/{edge_uuid}" + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())) + .replace("{" + "edge_uuid" + "}", localVarApiClient.escapeString(edgeUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getUsersEdgeValidateBeforeCall(String userUuid, String edgeUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling getUsersEdge(Async)"); + } + + // verify the required parameter 'edgeUuid' is set + if (edgeUuid == null) { + throw new ApiException("Missing the required parameter 'edgeUuid' when calling getUsersEdge(Async)"); + } + + return getUsersEdgeCall(userUuid, edgeUuid, _callback); + + } + + /** + * Get User's Edge + * ユーザーが所有するエッジを取得します。 + * @param userUuid (required) + * @param edgeUuid エッジのUUID (required) + * @return Edge + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Edge getUsersEdge(String userUuid, String edgeUuid) throws ApiException { + ApiResponse localVarResp = getUsersEdgeWithHttpInfo(userUuid, edgeUuid); + return localVarResp.getData(); + } + + /** + * Get User's Edge + * ユーザーが所有するエッジを取得します。 + * @param userUuid (required) + * @param edgeUuid エッジのUUID (required) + * @return ApiResponse<Edge> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getUsersEdgeWithHttpInfo(String userUuid, String edgeUuid) throws ApiException { + okhttp3.Call localVarCall = getUsersEdgeValidateBeforeCall(userUuid, edgeUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get User's Edge (asynchronously) + * ユーザーが所有するエッジを取得します。 + * @param userUuid (required) + * @param edgeUuid エッジのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getUsersEdgeAsync(String userUuid, String edgeUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getUsersEdgeValidateBeforeCall(userUuid, edgeUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listEdges + * @param uuid エッジのUUID (optional) + * @param name 名前による部分一致検索 (optional) + * @param nickname 表示名による部分一致検索 (optional) + * @param ownerUuid 所有者ユーザーのUUID (optional) + * @param hasOwner 所有者の有無。 * `true` : 所有者が設定されているエッジを取得します。 * `false` : 所有者が設定されていないエッジを取得します。 (optional) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 - name - created_at - updated_at (optional, default to name+) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listEdgesCall(List uuid, List name, List nickname, List ownerUuid, String hasOwner, String sort, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/edges"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (uuid != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "uuid", uuid)); + } + + if (name != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "name", name)); + } + + if (nickname != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "nickname", nickname)); + } + + if (ownerUuid != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "owner_uuid", ownerUuid)); + } + + if (hasOwner != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("has_owner", hasOwner)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listEdgesValidateBeforeCall(List uuid, List name, List nickname, List ownerUuid, String hasOwner, String sort, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + return listEdgesCall(uuid, name, nickname, ownerUuid, hasOwner, sort, page, perPage, _callback); + + } + + /** + * List Edges + * エッジのリストを取得します。 + * @param uuid エッジのUUID (optional) + * @param name 名前による部分一致検索 (optional) + * @param nickname 表示名による部分一致検索 (optional) + * @param ownerUuid 所有者ユーザーのUUID (optional) + * @param hasOwner 所有者の有無。 * `true` : 所有者が設定されているエッジを取得します。 * `false` : 所有者が設定されていないエッジを取得します。 (optional) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 - name - created_at - updated_at (optional, default to name+) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @return Edges + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Edges listEdges(List uuid, List name, List nickname, List ownerUuid, String hasOwner, String sort, Integer page, Integer perPage) throws ApiException { + ApiResponse localVarResp = listEdgesWithHttpInfo(uuid, name, nickname, ownerUuid, hasOwner, sort, page, perPage); + return localVarResp.getData(); + } + + /** + * List Edges + * エッジのリストを取得します。 + * @param uuid エッジのUUID (optional) + * @param name 名前による部分一致検索 (optional) + * @param nickname 表示名による部分一致検索 (optional) + * @param ownerUuid 所有者ユーザーのUUID (optional) + * @param hasOwner 所有者の有無。 * `true` : 所有者が設定されているエッジを取得します。 * `false` : 所有者が設定されていないエッジを取得します。 (optional) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 - name - created_at - updated_at (optional, default to name+) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @return ApiResponse<Edges> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listEdgesWithHttpInfo(List uuid, List name, List nickname, List ownerUuid, String hasOwner, String sort, Integer page, Integer perPage) throws ApiException { + okhttp3.Call localVarCall = listEdgesValidateBeforeCall(uuid, name, nickname, ownerUuid, hasOwner, sort, page, perPage, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Edges (asynchronously) + * エッジのリストを取得します。 + * @param uuid エッジのUUID (optional) + * @param name 名前による部分一致検索 (optional) + * @param nickname 表示名による部分一致検索 (optional) + * @param ownerUuid 所有者ユーザーのUUID (optional) + * @param hasOwner 所有者の有無。 * `true` : 所有者が設定されているエッジを取得します。 * `false` : 所有者が設定されていないエッジを取得します。 (optional) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 - name - created_at - updated_at (optional, default to name+) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listEdgesAsync(List uuid, List name, List nickname, List ownerUuid, String hasOwner, String sort, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listEdgesValidateBeforeCall(uuid, name, nickname, ownerUuid, hasOwner, sort, page, perPage, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listMyEdges + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listMyEdgesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/me/edges"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listMyEdgesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return listMyEdgesCall(_callback); + + } + + /** + * List My Edges + * 自分(ユーザー)が所有するエッジのリストを取得します。 + * @return Edges + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Edges listMyEdges() throws ApiException { + ApiResponse localVarResp = listMyEdgesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * List My Edges + * 自分(ユーザー)が所有するエッジのリストを取得します。 + * @return ApiResponse<Edges> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listMyEdgesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = listMyEdgesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List My Edges (asynchronously) + * 自分(ユーザー)が所有するエッジのリストを取得します。 + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listMyEdgesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listMyEdgesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listUsersEdges + * @param userUuid (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listUsersEdgesCall(String userUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/{user_uuid}/edges" + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listUsersEdgesValidateBeforeCall(String userUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling listUsersEdges(Async)"); + } + + return listUsersEdgesCall(userUuid, _callback); + + } + + /** + * List User's Edges + * 指定されたユーザーが所有するエッジのリストを取得します。 + * @param userUuid (required) + * @return Edges + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Edges listUsersEdges(String userUuid) throws ApiException { + ApiResponse localVarResp = listUsersEdgesWithHttpInfo(userUuid); + return localVarResp.getData(); + } + + /** + * List User's Edges + * 指定されたユーザーが所有するエッジのリストを取得します。 + * @param userUuid (required) + * @return ApiResponse<Edges> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listUsersEdgesWithHttpInfo(String userUuid) throws ApiException { + okhttp3.Call localVarCall = listUsersEdgesValidateBeforeCall(userUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List User's Edges (asynchronously) + * 指定されたユーザーが所有するエッジのリストを取得します。 + * @param userUuid (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listUsersEdgesAsync(String userUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listUsersEdgesValidateBeforeCall(userUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for removeOwner + * @param edgeUuid エッジのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call removeOwnerCall(String edgeUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/edges/{edge_uuid}/owner" + .replace("{" + "edge_uuid" + "}", localVarApiClient.escapeString(edgeUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call removeOwnerValidateBeforeCall(String edgeUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'edgeUuid' is set + if (edgeUuid == null) { + throw new ApiException("Missing the required parameter 'edgeUuid' when calling removeOwner(Async)"); + } + + return removeOwnerCall(edgeUuid, _callback); + + } + + /** + * Unassign Owner + * エッジに所有者がない状態にします。 + * @param edgeUuid エッジのUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void removeOwner(String edgeUuid) throws ApiException { + removeOwnerWithHttpInfo(edgeUuid); + } + + /** + * Unassign Owner + * エッジに所有者がない状態にします。 + * @param edgeUuid エッジのUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse removeOwnerWithHttpInfo(String edgeUuid) throws ApiException { + okhttp3.Call localVarCall = removeOwnerValidateBeforeCall(edgeUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Unassign Owner (asynchronously) + * エッジに所有者がない状態にします。 + * @param edgeUuid エッジのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call removeOwnerAsync(String edgeUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = removeOwnerValidateBeforeCall(edgeUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for updateEdge + * @param edgeUuid エッジのUUID (required) + * @param patchEdgeRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateEdgeCall(String edgeUuid, PatchEdgeRequest patchEdgeRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = patchEdgeRequest; + + // create path and map variables + String localVarPath = "/auth/edges/{edge_uuid}" + .replace("{" + "edge_uuid" + "}", localVarApiClient.escapeString(edgeUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateEdgeValidateBeforeCall(String edgeUuid, PatchEdgeRequest patchEdgeRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'edgeUuid' is set + if (edgeUuid == null) { + throw new ApiException("Missing the required parameter 'edgeUuid' when calling updateEdge(Async)"); + } + + return updateEdgeCall(edgeUuid, patchEdgeRequest, _callback); + + } + + /** + * Update Edge + * エッジを更新します。 + * @param edgeUuid エッジのUUID (required) + * @param patchEdgeRequest (optional) + * @return Edge + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Edge updateEdge(String edgeUuid, PatchEdgeRequest patchEdgeRequest) throws ApiException { + ApiResponse localVarResp = updateEdgeWithHttpInfo(edgeUuid, patchEdgeRequest); + return localVarResp.getData(); + } + + /** + * Update Edge + * エッジを更新します。 + * @param edgeUuid エッジのUUID (required) + * @param patchEdgeRequest (optional) + * @return ApiResponse<Edge> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateEdgeWithHttpInfo(String edgeUuid, PatchEdgeRequest patchEdgeRequest) throws ApiException { + okhttp3.Call localVarCall = updateEdgeValidateBeforeCall(edgeUuid, patchEdgeRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Edge (asynchronously) + * エッジを更新します。 + * @param edgeUuid エッジのUUID (required) + * @param patchEdgeRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateEdgeAsync(String edgeUuid, PatchEdgeRequest patchEdgeRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateEdgeValidateBeforeCall(edgeUuid, patchEdgeRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateMyEdge + * @param edgeUuid エッジのUUID (required) + * @param patchEdgeRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateMyEdgeCall(String edgeUuid, PatchEdgeRequest patchEdgeRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = patchEdgeRequest; + + // create path and map variables + String localVarPath = "/auth/users/me/edges/{edge_uuid}" + .replace("{" + "edge_uuid" + "}", localVarApiClient.escapeString(edgeUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateMyEdgeValidateBeforeCall(String edgeUuid, PatchEdgeRequest patchEdgeRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'edgeUuid' is set + if (edgeUuid == null) { + throw new ApiException("Missing the required parameter 'edgeUuid' when calling updateMyEdge(Async)"); + } + + return updateMyEdgeCall(edgeUuid, patchEdgeRequest, _callback); + + } + + /** + * Update My Edge + * 自分(ユーザー)が所有するエッジを更新します。 + * @param edgeUuid エッジのUUID (required) + * @param patchEdgeRequest (optional) + * @return Edge + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Edge updateMyEdge(String edgeUuid, PatchEdgeRequest patchEdgeRequest) throws ApiException { + ApiResponse localVarResp = updateMyEdgeWithHttpInfo(edgeUuid, patchEdgeRequest); + return localVarResp.getData(); + } + + /** + * Update My Edge + * 自分(ユーザー)が所有するエッジを更新します。 + * @param edgeUuid エッジのUUID (required) + * @param patchEdgeRequest (optional) + * @return ApiResponse<Edge> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateMyEdgeWithHttpInfo(String edgeUuid, PatchEdgeRequest patchEdgeRequest) throws ApiException { + okhttp3.Call localVarCall = updateMyEdgeValidateBeforeCall(edgeUuid, patchEdgeRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update My Edge (asynchronously) + * 自分(ユーザー)が所有するエッジを更新します。 + * @param edgeUuid エッジのUUID (required) + * @param patchEdgeRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateMyEdgeAsync(String edgeUuid, PatchEdgeRequest patchEdgeRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateMyEdgeValidateBeforeCall(edgeUuid, patchEdgeRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateUsersEdge + * @param userUuid (required) + * @param edgeUuid エッジのUUID (required) + * @param patchEdgeRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateUsersEdgeCall(String userUuid, String edgeUuid, PatchEdgeRequest patchEdgeRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = patchEdgeRequest; + + // create path and map variables + String localVarPath = "/auth/users/{user_uuid}/edges/{edge_uuid}" + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())) + .replace("{" + "edge_uuid" + "}", localVarApiClient.escapeString(edgeUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateUsersEdgeValidateBeforeCall(String userUuid, String edgeUuid, PatchEdgeRequest patchEdgeRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling updateUsersEdge(Async)"); + } + + // verify the required parameter 'edgeUuid' is set + if (edgeUuid == null) { + throw new ApiException("Missing the required parameter 'edgeUuid' when calling updateUsersEdge(Async)"); + } + + return updateUsersEdgeCall(userUuid, edgeUuid, patchEdgeRequest, _callback); + + } + + /** + * Update User's Edge + * ユーザーが所有するエッジを更新します。 + * @param userUuid (required) + * @param edgeUuid エッジのUUID (required) + * @param patchEdgeRequest (optional) + * @return Edge + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Edge updateUsersEdge(String userUuid, String edgeUuid, PatchEdgeRequest patchEdgeRequest) throws ApiException { + ApiResponse localVarResp = updateUsersEdgeWithHttpInfo(userUuid, edgeUuid, patchEdgeRequest); + return localVarResp.getData(); + } + + /** + * Update User's Edge + * ユーザーが所有するエッジを更新します。 + * @param userUuid (required) + * @param edgeUuid エッジのUUID (required) + * @param patchEdgeRequest (optional) + * @return ApiResponse<Edge> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateUsersEdgeWithHttpInfo(String userUuid, String edgeUuid, PatchEdgeRequest patchEdgeRequest) throws ApiException { + okhttp3.Call localVarCall = updateUsersEdgeValidateBeforeCall(userUuid, edgeUuid, patchEdgeRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update User's Edge (asynchronously) + * ユーザーが所有するエッジを更新します。 + * @param userUuid (required) + * @param edgeUuid エッジのUUID (required) + * @param patchEdgeRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateUsersEdgeAsync(String userUuid, String edgeUuid, PatchEdgeRequest patchEdgeRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateUsersEdgeValidateBeforeCall(userUuid, edgeUuid, patchEdgeRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/intdash/src/main/java/com/aptpod/intdash/AuthGroupMembersApi.java b/intdash/src/main/java/com/aptpod/intdash/AuthGroupMembersApi.java new file mode 100644 index 0000000..99b59c4 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/intdash/AuthGroupMembersApi.java @@ -0,0 +1,1061 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.intdash; + +import com.aptpod.ApiCallback; +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.ApiResponse; +import com.aptpod.Configuration; +import com.aptpod.Pair; +import com.aptpod.ProgressRequestBody; +import com.aptpod.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.openapitools.client.model.AddGroupMemberRequest; +import org.openapitools.client.model.ErrorProblem; +import org.openapitools.client.model.Member; +import org.openapitools.client.model.Members; +import org.openapitools.client.model.UpdateGroupMemberRequest; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class AuthGroupMembersApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public AuthGroupMembersApi() { + this(Configuration.getDefaultApiClient()); + } + + public AuthGroupMembersApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addGroupMember + * @param groupUuid グループのUUID (required) + * @param addGroupMemberRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
409 Conflict -
+ */ + public okhttp3.Call addGroupMemberCall(String groupUuid, AddGroupMemberRequest addGroupMemberRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addGroupMemberRequest; + + // create path and map variables + String localVarPath = "/auth/groups/{group_uuid}/members" + .replace("{" + "group_uuid" + "}", localVarApiClient.escapeString(groupUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addGroupMemberValidateBeforeCall(String groupUuid, AddGroupMemberRequest addGroupMemberRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'groupUuid' is set + if (groupUuid == null) { + throw new ApiException("Missing the required parameter 'groupUuid' when calling addGroupMember(Async)"); + } + + return addGroupMemberCall(groupUuid, addGroupMemberRequest, _callback); + + } + + /** + * Add Group Member + * グループメンバーを追加します。 + * @param groupUuid グループのUUID (required) + * @param addGroupMemberRequest (optional) + * @return Member + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
409 Conflict -
+ */ + public Member addGroupMember(String groupUuid, AddGroupMemberRequest addGroupMemberRequest) throws ApiException { + ApiResponse localVarResp = addGroupMemberWithHttpInfo(groupUuid, addGroupMemberRequest); + return localVarResp.getData(); + } + + /** + * Add Group Member + * グループメンバーを追加します。 + * @param groupUuid グループのUUID (required) + * @param addGroupMemberRequest (optional) + * @return ApiResponse<Member> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
409 Conflict -
+ */ + public ApiResponse addGroupMemberWithHttpInfo(String groupUuid, AddGroupMemberRequest addGroupMemberRequest) throws ApiException { + okhttp3.Call localVarCall = addGroupMemberValidateBeforeCall(groupUuid, addGroupMemberRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add Group Member (asynchronously) + * グループメンバーを追加します。 + * @param groupUuid グループのUUID (required) + * @param addGroupMemberRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
409 Conflict -
+ */ + public okhttp3.Call addGroupMemberAsync(String groupUuid, AddGroupMemberRequest addGroupMemberRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addGroupMemberValidateBeforeCall(groupUuid, addGroupMemberRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for addGroupOwnerAttribute + * @param groupUuid グループのUUID (required) + * @param userUuid (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
304 Not Modified -
+ */ + public okhttp3.Call addGroupOwnerAttributeCall(String groupUuid, String userUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/groups/{group_uuid}/members/{user_uuid}/owner" + .replace("{" + "group_uuid" + "}", localVarApiClient.escapeString(groupUuid.toString())) + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addGroupOwnerAttributeValidateBeforeCall(String groupUuid, String userUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'groupUuid' is set + if (groupUuid == null) { + throw new ApiException("Missing the required parameter 'groupUuid' when calling addGroupOwnerAttribute(Async)"); + } + + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling addGroupOwnerAttribute(Async)"); + } + + return addGroupOwnerAttributeCall(groupUuid, userUuid, _callback); + + } + + /** + * Add Group Owner Attribute + * オーナー属性を追加します。オーナー属性を追加したメンバーは自動的にそのグループにおける全ての権限が付与されます。 + * @param groupUuid グループのUUID (required) + * @param userUuid (required) + * @return Member + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
304 Not Modified -
+ */ + public Member addGroupOwnerAttribute(String groupUuid, String userUuid) throws ApiException { + ApiResponse localVarResp = addGroupOwnerAttributeWithHttpInfo(groupUuid, userUuid); + return localVarResp.getData(); + } + + /** + * Add Group Owner Attribute + * オーナー属性を追加します。オーナー属性を追加したメンバーは自動的にそのグループにおける全ての権限が付与されます。 + * @param groupUuid グループのUUID (required) + * @param userUuid (required) + * @return ApiResponse<Member> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
304 Not Modified -
+ */ + public ApiResponse addGroupOwnerAttributeWithHttpInfo(String groupUuid, String userUuid) throws ApiException { + okhttp3.Call localVarCall = addGroupOwnerAttributeValidateBeforeCall(groupUuid, userUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add Group Owner Attribute (asynchronously) + * オーナー属性を追加します。オーナー属性を追加したメンバーは自動的にそのグループにおける全ての権限が付与されます。 + * @param groupUuid グループのUUID (required) + * @param userUuid (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
304 Not Modified -
+ */ + public okhttp3.Call addGroupOwnerAttributeAsync(String groupUuid, String userUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addGroupOwnerAttributeValidateBeforeCall(groupUuid, userUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getGroupMember + * @param groupUuid グループのUUID (required) + * @param userUuid (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
404 Not Found -
+ */ + public okhttp3.Call getGroupMemberCall(String groupUuid, String userUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/groups/{group_uuid}/members/{user_uuid}" + .replace("{" + "group_uuid" + "}", localVarApiClient.escapeString(groupUuid.toString())) + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getGroupMemberValidateBeforeCall(String groupUuid, String userUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'groupUuid' is set + if (groupUuid == null) { + throw new ApiException("Missing the required parameter 'groupUuid' when calling getGroupMember(Async)"); + } + + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling getGroupMember(Async)"); + } + + return getGroupMemberCall(groupUuid, userUuid, _callback); + + } + + /** + * Get Group Member + * グループメンバーを取得します。 + * @param groupUuid グループのUUID (required) + * @param userUuid (required) + * @return Member + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
404 Not Found -
+ */ + public Member getGroupMember(String groupUuid, String userUuid) throws ApiException { + ApiResponse localVarResp = getGroupMemberWithHttpInfo(groupUuid, userUuid); + return localVarResp.getData(); + } + + /** + * Get Group Member + * グループメンバーを取得します。 + * @param groupUuid グループのUUID (required) + * @param userUuid (required) + * @return ApiResponse<Member> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
404 Not Found -
+ */ + public ApiResponse getGroupMemberWithHttpInfo(String groupUuid, String userUuid) throws ApiException { + okhttp3.Call localVarCall = getGroupMemberValidateBeforeCall(groupUuid, userUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Group Member (asynchronously) + * グループメンバーを取得します。 + * @param groupUuid グループのUUID (required) + * @param userUuid (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
404 Not Found -
+ */ + public okhttp3.Call getGroupMemberAsync(String groupUuid, String userUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getGroupMemberValidateBeforeCall(groupUuid, userUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listGroupMembers + * @param groupUuid グループのUUID (required) + * @param isOwner * `true` を指定した場合、オーナーのみを取得します。 * `false` を指定した場合、オーナー以外を取得します。 * 指定を省略した場合、オーナーであるかにかかわらずメンバーを取得します。 (optional) + * @param userUuid ユーザーのUUID (optional) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listGroupMembersCall(String groupUuid, Boolean isOwner, List userUuid, Integer page, Integer perPage, String sort, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/groups/{group_uuid}/members" + .replace("{" + "group_uuid" + "}", localVarApiClient.escapeString(groupUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (isOwner != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("is_owner", isOwner)); + } + + if (userUuid != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "user_uuid", userUuid)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listGroupMembersValidateBeforeCall(String groupUuid, Boolean isOwner, List userUuid, Integer page, Integer perPage, String sort, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'groupUuid' is set + if (groupUuid == null) { + throw new ApiException("Missing the required parameter 'groupUuid' when calling listGroupMembers(Async)"); + } + + return listGroupMembersCall(groupUuid, isOwner, userUuid, page, perPage, sort, _callback); + + } + + /** + * List Group Members + * グループメンバーリストを取得します。 + * @param groupUuid グループのUUID (required) + * @param isOwner * `true` を指定した場合、オーナーのみを取得します。 * `false` を指定した場合、オーナー以外を取得します。 * 指定を省略した場合、オーナーであるかにかかわらずメンバーを取得します。 (optional) + * @param userUuid ユーザーのUUID (optional) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @return Members + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Members listGroupMembers(String groupUuid, Boolean isOwner, List userUuid, Integer page, Integer perPage, String sort) throws ApiException { + ApiResponse localVarResp = listGroupMembersWithHttpInfo(groupUuid, isOwner, userUuid, page, perPage, sort); + return localVarResp.getData(); + } + + /** + * List Group Members + * グループメンバーリストを取得します。 + * @param groupUuid グループのUUID (required) + * @param isOwner * `true` を指定した場合、オーナーのみを取得します。 * `false` を指定した場合、オーナー以外を取得します。 * 指定を省略した場合、オーナーであるかにかかわらずメンバーを取得します。 (optional) + * @param userUuid ユーザーのUUID (optional) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @return ApiResponse<Members> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listGroupMembersWithHttpInfo(String groupUuid, Boolean isOwner, List userUuid, Integer page, Integer perPage, String sort) throws ApiException { + okhttp3.Call localVarCall = listGroupMembersValidateBeforeCall(groupUuid, isOwner, userUuid, page, perPage, sort, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Group Members (asynchronously) + * グループメンバーリストを取得します。 + * @param groupUuid グループのUUID (required) + * @param isOwner * `true` を指定した場合、オーナーのみを取得します。 * `false` を指定した場合、オーナー以外を取得します。 * 指定を省略した場合、オーナーであるかにかかわらずメンバーを取得します。 (optional) + * @param userUuid ユーザーのUUID (optional) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listGroupMembersAsync(String groupUuid, Boolean isOwner, List userUuid, Integer page, Integer perPage, String sort, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listGroupMembersValidateBeforeCall(groupUuid, isOwner, userUuid, page, perPage, sort, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for removeGroupMember + * @param groupUuid グループのUUID (required) + * @param userUuid (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
204 No Content -
403 Forbidden -
+ */ + public okhttp3.Call removeGroupMemberCall(String groupUuid, String userUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/groups/{group_uuid}/members/{user_uuid}" + .replace("{" + "group_uuid" + "}", localVarApiClient.escapeString(groupUuid.toString())) + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call removeGroupMemberValidateBeforeCall(String groupUuid, String userUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'groupUuid' is set + if (groupUuid == null) { + throw new ApiException("Missing the required parameter 'groupUuid' when calling removeGroupMember(Async)"); + } + + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling removeGroupMember(Async)"); + } + + return removeGroupMemberCall(groupUuid, userUuid, _callback); + + } + + /** + * Remove Group Member + * グループメンバーを除名します。 + * @param groupUuid グループのUUID (required) + * @param userUuid (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
204 No Content -
403 Forbidden -
+ */ + public void removeGroupMember(String groupUuid, String userUuid) throws ApiException { + removeGroupMemberWithHttpInfo(groupUuid, userUuid); + } + + /** + * Remove Group Member + * グループメンバーを除名します。 + * @param groupUuid グループのUUID (required) + * @param userUuid (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
204 No Content -
403 Forbidden -
+ */ + public ApiResponse removeGroupMemberWithHttpInfo(String groupUuid, String userUuid) throws ApiException { + okhttp3.Call localVarCall = removeGroupMemberValidateBeforeCall(groupUuid, userUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Remove Group Member (asynchronously) + * グループメンバーを除名します。 + * @param groupUuid グループのUUID (required) + * @param userUuid (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
204 No Content -
403 Forbidden -
+ */ + public okhttp3.Call removeGroupMemberAsync(String groupUuid, String userUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = removeGroupMemberValidateBeforeCall(groupUuid, userUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for removeGroupOwnerAttribute + * @param groupUuid グループのUUID (required) + * @param userUuid (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
204 No Content -
304 Not Modified -
403 Forbidden -
+ */ + public okhttp3.Call removeGroupOwnerAttributeCall(String groupUuid, String userUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/groups/{group_uuid}/members/{user_uuid}/owner" + .replace("{" + "group_uuid" + "}", localVarApiClient.escapeString(groupUuid.toString())) + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call removeGroupOwnerAttributeValidateBeforeCall(String groupUuid, String userUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'groupUuid' is set + if (groupUuid == null) { + throw new ApiException("Missing the required parameter 'groupUuid' when calling removeGroupOwnerAttribute(Async)"); + } + + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling removeGroupOwnerAttribute(Async)"); + } + + return removeGroupOwnerAttributeCall(groupUuid, userUuid, _callback); + + } + + /** + * Remove Group Owner Attribute + * オーナー属性を取り除きます。 + * @param groupUuid グループのUUID (required) + * @param userUuid (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
204 No Content -
304 Not Modified -
403 Forbidden -
+ */ + public void removeGroupOwnerAttribute(String groupUuid, String userUuid) throws ApiException { + removeGroupOwnerAttributeWithHttpInfo(groupUuid, userUuid); + } + + /** + * Remove Group Owner Attribute + * オーナー属性を取り除きます。 + * @param groupUuid グループのUUID (required) + * @param userUuid (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
204 No Content -
304 Not Modified -
403 Forbidden -
+ */ + public ApiResponse removeGroupOwnerAttributeWithHttpInfo(String groupUuid, String userUuid) throws ApiException { + okhttp3.Call localVarCall = removeGroupOwnerAttributeValidateBeforeCall(groupUuid, userUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Remove Group Owner Attribute (asynchronously) + * オーナー属性を取り除きます。 + * @param groupUuid グループのUUID (required) + * @param userUuid (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
204 No Content -
304 Not Modified -
403 Forbidden -
+ */ + public okhttp3.Call removeGroupOwnerAttributeAsync(String groupUuid, String userUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = removeGroupOwnerAttributeValidateBeforeCall(groupUuid, userUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for updateGroupMember + * @param groupUuid グループのUUID (required) + * @param userUuid (required) + * @param updateGroupMemberRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateGroupMemberCall(String groupUuid, String userUuid, UpdateGroupMemberRequest updateGroupMemberRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateGroupMemberRequest; + + // create path and map variables + String localVarPath = "/auth/groups/{group_uuid}/members/{user_uuid}" + .replace("{" + "group_uuid" + "}", localVarApiClient.escapeString(groupUuid.toString())) + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateGroupMemberValidateBeforeCall(String groupUuid, String userUuid, UpdateGroupMemberRequest updateGroupMemberRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'groupUuid' is set + if (groupUuid == null) { + throw new ApiException("Missing the required parameter 'groupUuid' when calling updateGroupMember(Async)"); + } + + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling updateGroupMember(Async)"); + } + + return updateGroupMemberCall(groupUuid, userUuid, updateGroupMemberRequest, _callback); + + } + + /** + * Update Group Member + * グループメンバーを更新します。 + * @param groupUuid グループのUUID (required) + * @param userUuid (required) + * @param updateGroupMemberRequest (optional) + * @return Member + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Member updateGroupMember(String groupUuid, String userUuid, UpdateGroupMemberRequest updateGroupMemberRequest) throws ApiException { + ApiResponse localVarResp = updateGroupMemberWithHttpInfo(groupUuid, userUuid, updateGroupMemberRequest); + return localVarResp.getData(); + } + + /** + * Update Group Member + * グループメンバーを更新します。 + * @param groupUuid グループのUUID (required) + * @param userUuid (required) + * @param updateGroupMemberRequest (optional) + * @return ApiResponse<Member> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateGroupMemberWithHttpInfo(String groupUuid, String userUuid, UpdateGroupMemberRequest updateGroupMemberRequest) throws ApiException { + okhttp3.Call localVarCall = updateGroupMemberValidateBeforeCall(groupUuid, userUuid, updateGroupMemberRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Group Member (asynchronously) + * グループメンバーを更新します。 + * @param groupUuid グループのUUID (required) + * @param userUuid (required) + * @param updateGroupMemberRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateGroupMemberAsync(String groupUuid, String userUuid, UpdateGroupMemberRequest updateGroupMemberRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateGroupMemberValidateBeforeCall(groupUuid, userUuid, updateGroupMemberRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/intdash/src/main/java/com/aptpod/intdash/AuthGroupsApi.java b/intdash/src/main/java/com/aptpod/intdash/AuthGroupsApi.java new file mode 100644 index 0000000..8fa3dcc --- /dev/null +++ b/intdash/src/main/java/com/aptpod/intdash/AuthGroupsApi.java @@ -0,0 +1,1128 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.intdash; + +import com.aptpod.ApiCallback; +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.ApiResponse; +import com.aptpod.Configuration; +import com.aptpod.Pair; +import com.aptpod.ProgressRequestBody; +import com.aptpod.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.openapitools.client.model.CreateGroupRequest; +import org.openapitools.client.model.ErrorProblem; +import org.openapitools.client.model.Group; +import org.openapitools.client.model.Groups; +import org.openapitools.client.model.UpdateGroupRequest; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class AuthGroupsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public AuthGroupsApi() { + this(Configuration.getDefaultApiClient()); + } + + public AuthGroupsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for createGroup + * @param createGroupRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
409 Conflict -
+ */ + public okhttp3.Call createGroupCall(CreateGroupRequest createGroupRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = createGroupRequest; + + // create path and map variables + String localVarPath = "/auth/groups"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createGroupValidateBeforeCall(CreateGroupRequest createGroupRequest, final ApiCallback _callback) throws ApiException { + return createGroupCall(createGroupRequest, _callback); + + } + + /** + * Create Group + * グループを作成します。 + * @param createGroupRequest (optional) + * @return Group + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
409 Conflict -
+ */ + public Group createGroup(CreateGroupRequest createGroupRequest) throws ApiException { + ApiResponse localVarResp = createGroupWithHttpInfo(createGroupRequest); + return localVarResp.getData(); + } + + /** + * Create Group + * グループを作成します。 + * @param createGroupRequest (optional) + * @return ApiResponse<Group> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
409 Conflict -
+ */ + public ApiResponse createGroupWithHttpInfo(CreateGroupRequest createGroupRequest) throws ApiException { + okhttp3.Call localVarCall = createGroupValidateBeforeCall(createGroupRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Group (asynchronously) + * グループを作成します。 + * @param createGroupRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
409 Conflict -
+ */ + public okhttp3.Call createGroupAsync(CreateGroupRequest createGroupRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createGroupValidateBeforeCall(createGroupRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createSubGroup + * @param groupUuid グループのUUID (required) + * @param createGroupRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
201 Created -
403 Forbidden -
409 Conflict -
+ */ + public okhttp3.Call createSubGroupCall(String groupUuid, CreateGroupRequest createGroupRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = createGroupRequest; + + // create path and map variables + String localVarPath = "/auth/groups/{group_uuid}/groups" + .replace("{" + "group_uuid" + "}", localVarApiClient.escapeString(groupUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createSubGroupValidateBeforeCall(String groupUuid, CreateGroupRequest createGroupRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'groupUuid' is set + if (groupUuid == null) { + throw new ApiException("Missing the required parameter 'groupUuid' when calling createSubGroup(Async)"); + } + + return createSubGroupCall(groupUuid, createGroupRequest, _callback); + + } + + /** + * Create Sub Group + * サブグループを作成します。 + * @param groupUuid グループのUUID (required) + * @param createGroupRequest (optional) + * @return Group + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
201 Created -
403 Forbidden -
409 Conflict -
+ */ + public Group createSubGroup(String groupUuid, CreateGroupRequest createGroupRequest) throws ApiException { + ApiResponse localVarResp = createSubGroupWithHttpInfo(groupUuid, createGroupRequest); + return localVarResp.getData(); + } + + /** + * Create Sub Group + * サブグループを作成します。 + * @param groupUuid グループのUUID (required) + * @param createGroupRequest (optional) + * @return ApiResponse<Group> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
201 Created -
403 Forbidden -
409 Conflict -
+ */ + public ApiResponse createSubGroupWithHttpInfo(String groupUuid, CreateGroupRequest createGroupRequest) throws ApiException { + okhttp3.Call localVarCall = createSubGroupValidateBeforeCall(groupUuid, createGroupRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Sub Group (asynchronously) + * サブグループを作成します。 + * @param groupUuid グループのUUID (required) + * @param createGroupRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
201 Created -
403 Forbidden -
409 Conflict -
+ */ + public okhttp3.Call createSubGroupAsync(String groupUuid, CreateGroupRequest createGroupRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createSubGroupValidateBeforeCall(groupUuid, createGroupRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteGroup + * @param groupUuid グループのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteGroupCall(String groupUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/groups/{group_uuid}" + .replace("{" + "group_uuid" + "}", localVarApiClient.escapeString(groupUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteGroupValidateBeforeCall(String groupUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'groupUuid' is set + if (groupUuid == null) { + throw new ApiException("Missing the required parameter 'groupUuid' when calling deleteGroup(Async)"); + } + + return deleteGroupCall(groupUuid, _callback); + + } + + /** + * Delete Group + * グループを削除します。 + * @param groupUuid グループのUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void deleteGroup(String groupUuid) throws ApiException { + deleteGroupWithHttpInfo(groupUuid); + } + + /** + * Delete Group + * グループを削除します。 + * @param groupUuid グループのUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse deleteGroupWithHttpInfo(String groupUuid) throws ApiException { + okhttp3.Call localVarCall = deleteGroupValidateBeforeCall(groupUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete Group (asynchronously) + * グループを削除します。 + * @param groupUuid グループのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteGroupAsync(String groupUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteGroupValidateBeforeCall(groupUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getGroup + * @param groupUuid グループのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getGroupCall(String groupUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/groups/{group_uuid}" + .replace("{" + "group_uuid" + "}", localVarApiClient.escapeString(groupUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getGroupValidateBeforeCall(String groupUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'groupUuid' is set + if (groupUuid == null) { + throw new ApiException("Missing the required parameter 'groupUuid' when calling getGroup(Async)"); + } + + return getGroupCall(groupUuid, _callback); + + } + + /** + * Get Group + * グループを取得します。 + * @param groupUuid グループのUUID (required) + * @return Group + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Group getGroup(String groupUuid) throws ApiException { + ApiResponse localVarResp = getGroupWithHttpInfo(groupUuid); + return localVarResp.getData(); + } + + /** + * Get Group + * グループを取得します。 + * @param groupUuid グループのUUID (required) + * @return ApiResponse<Group> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getGroupWithHttpInfo(String groupUuid) throws ApiException { + okhttp3.Call localVarCall = getGroupValidateBeforeCall(groupUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Group (asynchronously) + * グループを取得します。 + * @param groupUuid グループのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getGroupAsync(String groupUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getGroupValidateBeforeCall(groupUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listGroups + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listGroupsCall(Integer page, Integer perPage, String sort, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/groups"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listGroupsValidateBeforeCall(Integer page, Integer perPage, String sort, final ApiCallback _callback) throws ApiException { + return listGroupsCall(page, perPage, sort, _callback); + + } + + /** + * List Groups + * グループのリストを取得します。 + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @return Groups + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Groups listGroups(Integer page, Integer perPage, String sort) throws ApiException { + ApiResponse localVarResp = listGroupsWithHttpInfo(page, perPage, sort); + return localVarResp.getData(); + } + + /** + * List Groups + * グループのリストを取得します。 + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @return ApiResponse<Groups> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listGroupsWithHttpInfo(Integer page, Integer perPage, String sort) throws ApiException { + okhttp3.Call localVarCall = listGroupsValidateBeforeCall(page, perPage, sort, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Groups (asynchronously) + * グループのリストを取得します。 + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listGroupsAsync(Integer page, Integer perPage, String sort, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listGroupsValidateBeforeCall(page, perPage, sort, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listMyGroups + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listMyGroupsCall(Integer page, Integer perPage, String sort, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/me/groups"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listMyGroupsValidateBeforeCall(Integer page, Integer perPage, String sort, final ApiCallback _callback) throws ApiException { + return listMyGroupsCall(page, perPage, sort, _callback); + + } + + /** + * List My Groups + * 自分(ユーザー)が所属するグループのリストを取得します。 + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @return Groups + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Groups listMyGroups(Integer page, Integer perPage, String sort) throws ApiException { + ApiResponse localVarResp = listMyGroupsWithHttpInfo(page, perPage, sort); + return localVarResp.getData(); + } + + /** + * List My Groups + * 自分(ユーザー)が所属するグループのリストを取得します。 + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @return ApiResponse<Groups> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listMyGroupsWithHttpInfo(Integer page, Integer perPage, String sort) throws ApiException { + okhttp3.Call localVarCall = listMyGroupsValidateBeforeCall(page, perPage, sort, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List My Groups (asynchronously) + * 自分(ユーザー)が所属するグループのリストを取得します。 + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listMyGroupsAsync(Integer page, Integer perPage, String sort, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listMyGroupsValidateBeforeCall(page, perPage, sort, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listSubGroup + * @param groupUuid グループのUUID (required) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listSubGroupCall(String groupUuid, Integer page, Integer perPage, String sort, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/groups/{group_uuid}/groups" + .replace("{" + "group_uuid" + "}", localVarApiClient.escapeString(groupUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listSubGroupValidateBeforeCall(String groupUuid, Integer page, Integer perPage, String sort, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'groupUuid' is set + if (groupUuid == null) { + throw new ApiException("Missing the required parameter 'groupUuid' when calling listSubGroup(Async)"); + } + + return listSubGroupCall(groupUuid, page, perPage, sort, _callback); + + } + + /** + * List Sub Groups + * サブグループを取得します。 + * @param groupUuid グループのUUID (required) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @return Groups + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Groups listSubGroup(String groupUuid, Integer page, Integer perPage, String sort) throws ApiException { + ApiResponse localVarResp = listSubGroupWithHttpInfo(groupUuid, page, perPage, sort); + return localVarResp.getData(); + } + + /** + * List Sub Groups + * サブグループを取得します。 + * @param groupUuid グループのUUID (required) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @return ApiResponse<Groups> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listSubGroupWithHttpInfo(String groupUuid, Integer page, Integer perPage, String sort) throws ApiException { + okhttp3.Call localVarCall = listSubGroupValidateBeforeCall(groupUuid, page, perPage, sort, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Sub Groups (asynchronously) + * サブグループを取得します。 + * @param groupUuid グループのUUID (required) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listSubGroupAsync(String groupUuid, Integer page, Integer perPage, String sort, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listSubGroupValidateBeforeCall(groupUuid, page, perPage, sort, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateGroup + * @param groupUuid グループのUUID (required) + * @param updateGroupRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateGroupCall(String groupUuid, UpdateGroupRequest updateGroupRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateGroupRequest; + + // create path and map variables + String localVarPath = "/auth/groups/{group_uuid}" + .replace("{" + "group_uuid" + "}", localVarApiClient.escapeString(groupUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateGroupValidateBeforeCall(String groupUuid, UpdateGroupRequest updateGroupRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'groupUuid' is set + if (groupUuid == null) { + throw new ApiException("Missing the required parameter 'groupUuid' when calling updateGroup(Async)"); + } + + return updateGroupCall(groupUuid, updateGroupRequest, _callback); + + } + + /** + * Update Group + * グループを更新します。 + * @param groupUuid グループのUUID (required) + * @param updateGroupRequest (optional) + * @return Group + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Group updateGroup(String groupUuid, UpdateGroupRequest updateGroupRequest) throws ApiException { + ApiResponse localVarResp = updateGroupWithHttpInfo(groupUuid, updateGroupRequest); + return localVarResp.getData(); + } + + /** + * Update Group + * グループを更新します。 + * @param groupUuid グループのUUID (required) + * @param updateGroupRequest (optional) + * @return ApiResponse<Group> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateGroupWithHttpInfo(String groupUuid, UpdateGroupRequest updateGroupRequest) throws ApiException { + okhttp3.Call localVarCall = updateGroupValidateBeforeCall(groupUuid, updateGroupRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Group (asynchronously) + * グループを更新します。 + * @param groupUuid グループのUUID (required) + * @param updateGroupRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateGroupAsync(String groupUuid, UpdateGroupRequest updateGroupRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateGroupValidateBeforeCall(groupUuid, updateGroupRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/intdash/src/main/java/com/aptpod/intdash/AuthMeApi.java b/intdash/src/main/java/com/aptpod/intdash/AuthMeApi.java new file mode 100644 index 0000000..1699c4c --- /dev/null +++ b/intdash/src/main/java/com/aptpod/intdash/AuthMeApi.java @@ -0,0 +1,1792 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.intdash; + +import com.aptpod.ApiCallback; +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.ApiResponse; +import com.aptpod.Configuration; +import com.aptpod.Pair; +import com.aptpod.ProgressRequestBody; +import com.aptpod.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.openapitools.client.model.ChangePasswordRequest; +import org.openapitools.client.model.CheckPasswordRequest; +import org.openapitools.client.model.CheckPasswordResult; +import org.openapitools.client.model.CreateEmailRequest; +import org.openapitools.client.model.CreateUserAPITokenRequest; +import org.openapitools.client.model.ErrorProblem; +import org.openapitools.client.model.PatchEmailRequest; +import org.openapitools.client.model.PatchUserRequest; +import org.openapitools.client.model.Roles; +import org.openapitools.client.model.UpdateEmailVerifiedRequest; +import org.openapitools.client.model.UpdateUserAPITokenRequest; +import org.openapitools.client.model.User; +import org.openapitools.client.model.UserAPIToken; +import org.openapitools.client.model.UserAPITokens; +import org.openapitools.client.model.UserEmail; +import org.openapitools.client.model.UserEmailVerification; +import org.openapitools.client.model.UserPassword; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class AuthMeApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public AuthMeApi() { + this(Configuration.getDefaultApiClient()); + } + + public AuthMeApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for changePassword + * @param changePasswordRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public okhttp3.Call changePasswordCall(ChangePasswordRequest changePasswordRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = changePasswordRequest; + + // create path and map variables + String localVarPath = "/auth/users/me/password"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call changePasswordValidateBeforeCall(ChangePasswordRequest changePasswordRequest, final ApiCallback _callback) throws ApiException { + return changePasswordCall(changePasswordRequest, _callback); + + } + + /** + * Change Password + * パスワードを変更します。 現在のパスワード `old_password` または `recovery_token` が必要です。 + * @param changePasswordRequest (optional) + * @return UserPassword + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public UserPassword changePassword(ChangePasswordRequest changePasswordRequest) throws ApiException { + ApiResponse localVarResp = changePasswordWithHttpInfo(changePasswordRequest); + return localVarResp.getData(); + } + + /** + * Change Password + * パスワードを変更します。 現在のパスワード `old_password` または `recovery_token` が必要です。 + * @param changePasswordRequest (optional) + * @return ApiResponse<UserPassword> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public ApiResponse changePasswordWithHttpInfo(ChangePasswordRequest changePasswordRequest) throws ApiException { + okhttp3.Call localVarCall = changePasswordValidateBeforeCall(changePasswordRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Change Password (asynchronously) + * パスワードを変更します。 現在のパスワード `old_password` または `recovery_token` が必要です。 + * @param changePasswordRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public okhttp3.Call changePasswordAsync(ChangePasswordRequest changePasswordRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = changePasswordValidateBeforeCall(changePasswordRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for checkPassword + * @param checkPasswordRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call checkPasswordCall(CheckPasswordRequest checkPasswordRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = checkPasswordRequest; + + // create path and map variables + String localVarPath = "/auth/users/me/password/check"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json; charset=utf-8" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call checkPasswordValidateBeforeCall(CheckPasswordRequest checkPasswordRequest, final ApiCallback _callback) throws ApiException { + return checkPasswordCall(checkPasswordRequest, _callback); + + } + + /** + * Check Password + * パスワードがポリシーに適合しているかをチェックします。 + * @param checkPasswordRequest (optional) + * @return CheckPasswordResult + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public CheckPasswordResult checkPassword(CheckPasswordRequest checkPasswordRequest) throws ApiException { + ApiResponse localVarResp = checkPasswordWithHttpInfo(checkPasswordRequest); + return localVarResp.getData(); + } + + /** + * Check Password + * パスワードがポリシーに適合しているかをチェックします。 + * @param checkPasswordRequest (optional) + * @return ApiResponse<CheckPasswordResult> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse checkPasswordWithHttpInfo(CheckPasswordRequest checkPasswordRequest) throws ApiException { + okhttp3.Call localVarCall = checkPasswordValidateBeforeCall(checkPasswordRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Check Password (asynchronously) + * パスワードがポリシーに適合しているかをチェックします。 + * @param checkPasswordRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call checkPasswordAsync(CheckPasswordRequest checkPasswordRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = checkPasswordValidateBeforeCall(checkPasswordRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createMyAPIToken + * @param createUserAPITokenRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
409 Conflict -
+ */ + public okhttp3.Call createMyAPITokenCall(CreateUserAPITokenRequest createUserAPITokenRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = createUserAPITokenRequest; + + // create path and map variables + String localVarPath = "/auth/users/me/tokens"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createMyAPITokenValidateBeforeCall(CreateUserAPITokenRequest createUserAPITokenRequest, final ApiCallback _callback) throws ApiException { + return createMyAPITokenCall(createUserAPITokenRequest, _callback); + + } + + /** + * Create My API Token + * 自分(ユーザー)のAPIトークンを作成します。 + * @param createUserAPITokenRequest (optional) + * @return UserAPIToken + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
409 Conflict -
+ */ + public UserAPIToken createMyAPIToken(CreateUserAPITokenRequest createUserAPITokenRequest) throws ApiException { + ApiResponse localVarResp = createMyAPITokenWithHttpInfo(createUserAPITokenRequest); + return localVarResp.getData(); + } + + /** + * Create My API Token + * 自分(ユーザー)のAPIトークンを作成します。 + * @param createUserAPITokenRequest (optional) + * @return ApiResponse<UserAPIToken> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
409 Conflict -
+ */ + public ApiResponse createMyAPITokenWithHttpInfo(CreateUserAPITokenRequest createUserAPITokenRequest) throws ApiException { + okhttp3.Call localVarCall = createMyAPITokenValidateBeforeCall(createUserAPITokenRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create My API Token (asynchronously) + * 自分(ユーザー)のAPIトークンを作成します。 + * @param createUserAPITokenRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
409 Conflict -
+ */ + public okhttp3.Call createMyAPITokenAsync(CreateUserAPITokenRequest createUserAPITokenRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createMyAPITokenValidateBeforeCall(createUserAPITokenRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createMyEmail + * @param createEmailRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
409 Conflict -
+ */ + public okhttp3.Call createMyEmailCall(CreateEmailRequest createEmailRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = createEmailRequest; + + // create path and map variables + String localVarPath = "/auth/users/me/emails"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createMyEmailValidateBeforeCall(CreateEmailRequest createEmailRequest, final ApiCallback _callback) throws ApiException { + return createMyEmailCall(createEmailRequest, _callback); + + } + + /** + * Create My Email + * 自分(ユーザー)のメールアドレスを設定します。 メールアドレスの設定が成功すると、確認用URLを含むメールがそのアドレスに送信されます。 確認用URLには、メールアドレス確認用トークンとメールアドレスのIDが含まれます。 + * @param createEmailRequest (optional) + * @return UserEmail + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
409 Conflict -
+ */ + public UserEmail createMyEmail(CreateEmailRequest createEmailRequest) throws ApiException { + ApiResponse localVarResp = createMyEmailWithHttpInfo(createEmailRequest); + return localVarResp.getData(); + } + + /** + * Create My Email + * 自分(ユーザー)のメールアドレスを設定します。 メールアドレスの設定が成功すると、確認用URLを含むメールがそのアドレスに送信されます。 確認用URLには、メールアドレス確認用トークンとメールアドレスのIDが含まれます。 + * @param createEmailRequest (optional) + * @return ApiResponse<UserEmail> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
409 Conflict -
+ */ + public ApiResponse createMyEmailWithHttpInfo(CreateEmailRequest createEmailRequest) throws ApiException { + okhttp3.Call localVarCall = createMyEmailValidateBeforeCall(createEmailRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create My Email (asynchronously) + * 自分(ユーザー)のメールアドレスを設定します。 メールアドレスの設定が成功すると、確認用URLを含むメールがそのアドレスに送信されます。 確認用URLには、メールアドレス確認用トークンとメールアドレスのIDが含まれます。 + * @param createEmailRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
409 Conflict -
+ */ + public okhttp3.Call createMyEmailAsync(CreateEmailRequest createEmailRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createMyEmailValidateBeforeCall(createEmailRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteMyAPIToken + * @param userApiTokenId APIトークンのID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteMyAPITokenCall(Long userApiTokenId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/me/tokens/{user_api_token_id}" + .replace("{" + "user_api_token_id" + "}", localVarApiClient.escapeString(userApiTokenId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteMyAPITokenValidateBeforeCall(Long userApiTokenId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userApiTokenId' is set + if (userApiTokenId == null) { + throw new ApiException("Missing the required parameter 'userApiTokenId' when calling deleteMyAPIToken(Async)"); + } + + return deleteMyAPITokenCall(userApiTokenId, _callback); + + } + + /** + * Delete My API Token + * 自分(ユーザー)のAPIトークンを削除します。 + * @param userApiTokenId APIトークンのID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void deleteMyAPIToken(Long userApiTokenId) throws ApiException { + deleteMyAPITokenWithHttpInfo(userApiTokenId); + } + + /** + * Delete My API Token + * 自分(ユーザー)のAPIトークンを削除します。 + * @param userApiTokenId APIトークンのID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse deleteMyAPITokenWithHttpInfo(Long userApiTokenId) throws ApiException { + okhttp3.Call localVarCall = deleteMyAPITokenValidateBeforeCall(userApiTokenId, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete My API Token (asynchronously) + * 自分(ユーザー)のAPIトークンを削除します。 + * @param userApiTokenId APIトークンのID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteMyAPITokenAsync(Long userApiTokenId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteMyAPITokenValidateBeforeCall(userApiTokenId, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteMyEmail + * @param userEmailId ユーザーのメールアドレスのID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteMyEmailCall(Long userEmailId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/me/emails/{user_email_id}" + .replace("{" + "user_email_id" + "}", localVarApiClient.escapeString(userEmailId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteMyEmailValidateBeforeCall(Long userEmailId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userEmailId' is set + if (userEmailId == null) { + throw new ApiException("Missing the required parameter 'userEmailId' when calling deleteMyEmail(Async)"); + } + + return deleteMyEmailCall(userEmailId, _callback); + + } + + /** + * Delete My Email + * 自分(ユーザー)のメールアドレスを削除します。 + * @param userEmailId ユーザーのメールアドレスのID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void deleteMyEmail(Long userEmailId) throws ApiException { + deleteMyEmailWithHttpInfo(userEmailId); + } + + /** + * Delete My Email + * 自分(ユーザー)のメールアドレスを削除します。 + * @param userEmailId ユーザーのメールアドレスのID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse deleteMyEmailWithHttpInfo(Long userEmailId) throws ApiException { + okhttp3.Call localVarCall = deleteMyEmailValidateBeforeCall(userEmailId, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete My Email (asynchronously) + * 自分(ユーザー)のメールアドレスを削除します。 + * @param userEmailId ユーザーのメールアドレスのID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteMyEmailAsync(Long userEmailId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteMyEmailValidateBeforeCall(userEmailId, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getMe + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getMeCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/me"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getMeValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return getMeCall(_callback); + + } + + /** + * Get Me + * 自分(ユーザー)を取得します。 + * @return User + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public User getMe() throws ApiException { + ApiResponse localVarResp = getMeWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Get Me + * 自分(ユーザー)を取得します。 + * @return ApiResponse<User> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getMeWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getMeValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Me (asynchronously) + * 自分(ユーザー)を取得します。 + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getMeAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getMeValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listMyAPITokens + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listMyAPITokensCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/me/tokens"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listMyAPITokensValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return listMyAPITokensCall(_callback); + + } + + /** + * List My API Tokens + * 自分(ユーザー)のAPIトークンのリストを取得します。 + * @return UserAPITokens + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public UserAPITokens listMyAPITokens() throws ApiException { + ApiResponse localVarResp = listMyAPITokensWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * List My API Tokens + * 自分(ユーザー)のAPIトークンのリストを取得します。 + * @return ApiResponse<UserAPITokens> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listMyAPITokensWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = listMyAPITokensValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List My API Tokens (asynchronously) + * 自分(ユーザー)のAPIトークンのリストを取得します。 + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listMyAPITokensAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listMyAPITokensValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listMyRoles + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listMyRolesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/me/roles"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listMyRolesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return listMyRolesCall(_callback); + + } + + /** + * List My Roles + * 自分(ユーザー)に割り当てられたロールのリストを取得します。 + * @return Roles + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Roles listMyRoles() throws ApiException { + ApiResponse localVarResp = listMyRolesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * List My Roles + * 自分(ユーザー)に割り当てられたロールのリストを取得します。 + * @return ApiResponse<Roles> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listMyRolesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = listMyRolesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List My Roles (asynchronously) + * 自分(ユーザー)に割り当てられたロールのリストを取得します。 + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listMyRolesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listMyRolesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for sendVerificationEmailToMyAddress + * @param userEmailId ユーザーのメールアドレスのID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public okhttp3.Call sendVerificationEmailToMyAddressCall(Long userEmailId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/me/emails/{user_email_id}/verification" + .replace("{" + "user_email_id" + "}", localVarApiClient.escapeString(userEmailId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call sendVerificationEmailToMyAddressValidateBeforeCall(Long userEmailId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userEmailId' is set + if (userEmailId == null) { + throw new ApiException("Missing the required parameter 'userEmailId' when calling sendVerificationEmailToMyAddress(Async)"); + } + + return sendVerificationEmailToMyAddressCall(userEmailId, _callback); + + } + + /** + * Send Verification Email to Me + * メールアドレスを確認するための確認メールを送信します。 + * @param userEmailId ユーザーのメールアドレスのID (required) + * @return UserEmailVerification + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public UserEmailVerification sendVerificationEmailToMyAddress(Long userEmailId) throws ApiException { + ApiResponse localVarResp = sendVerificationEmailToMyAddressWithHttpInfo(userEmailId); + return localVarResp.getData(); + } + + /** + * Send Verification Email to Me + * メールアドレスを確認するための確認メールを送信します。 + * @param userEmailId ユーザーのメールアドレスのID (required) + * @return ApiResponse<UserEmailVerification> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public ApiResponse sendVerificationEmailToMyAddressWithHttpInfo(Long userEmailId) throws ApiException { + okhttp3.Call localVarCall = sendVerificationEmailToMyAddressValidateBeforeCall(userEmailId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Send Verification Email to Me (asynchronously) + * メールアドレスを確認するための確認メールを送信します。 + * @param userEmailId ユーザーのメールアドレスのID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public okhttp3.Call sendVerificationEmailToMyAddressAsync(Long userEmailId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = sendVerificationEmailToMyAddressValidateBeforeCall(userEmailId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateMe + * @param patchUserRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
403 Forbidden -
409 Conflict -
+ */ + public okhttp3.Call updateMeCall(PatchUserRequest patchUserRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = patchUserRequest; + + // create path and map variables + String localVarPath = "/auth/users/me"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateMeValidateBeforeCall(PatchUserRequest patchUserRequest, final ApiCallback _callback) throws ApiException { + return updateMeCall(patchUserRequest, _callback); + + } + + /** + * Update Me + * 自分(ユーザー)を更新します。 + * @param patchUserRequest (optional) + * @return User + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
403 Forbidden -
409 Conflict -
+ */ + public User updateMe(PatchUserRequest patchUserRequest) throws ApiException { + ApiResponse localVarResp = updateMeWithHttpInfo(patchUserRequest); + return localVarResp.getData(); + } + + /** + * Update Me + * 自分(ユーザー)を更新します。 + * @param patchUserRequest (optional) + * @return ApiResponse<User> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
403 Forbidden -
409 Conflict -
+ */ + public ApiResponse updateMeWithHttpInfo(PatchUserRequest patchUserRequest) throws ApiException { + okhttp3.Call localVarCall = updateMeValidateBeforeCall(patchUserRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Me (asynchronously) + * 自分(ユーザー)を更新します。 + * @param patchUserRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
403 Forbidden -
409 Conflict -
+ */ + public okhttp3.Call updateMeAsync(PatchUserRequest patchUserRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateMeValidateBeforeCall(patchUserRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateMyAPIToken + * @param userApiTokenId APIトークンのID (required) + * @param updateUserAPITokenRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateMyAPITokenCall(Long userApiTokenId, UpdateUserAPITokenRequest updateUserAPITokenRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateUserAPITokenRequest; + + // create path and map variables + String localVarPath = "/auth/users/me/tokens/{user_api_token_id}" + .replace("{" + "user_api_token_id" + "}", localVarApiClient.escapeString(userApiTokenId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json; charset=utf-8" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateMyAPITokenValidateBeforeCall(Long userApiTokenId, UpdateUserAPITokenRequest updateUserAPITokenRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userApiTokenId' is set + if (userApiTokenId == null) { + throw new ApiException("Missing the required parameter 'userApiTokenId' when calling updateMyAPIToken(Async)"); + } + + return updateMyAPITokenCall(userApiTokenId, updateUserAPITokenRequest, _callback); + + } + + /** + * Update My API Token + * 自分(ユーザー)のAPIトークンを作成します。 + * @param userApiTokenId APIトークンのID (required) + * @param updateUserAPITokenRequest (optional) + * @return UserAPIToken + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public UserAPIToken updateMyAPIToken(Long userApiTokenId, UpdateUserAPITokenRequest updateUserAPITokenRequest) throws ApiException { + ApiResponse localVarResp = updateMyAPITokenWithHttpInfo(userApiTokenId, updateUserAPITokenRequest); + return localVarResp.getData(); + } + + /** + * Update My API Token + * 自分(ユーザー)のAPIトークンを作成します。 + * @param userApiTokenId APIトークンのID (required) + * @param updateUserAPITokenRequest (optional) + * @return ApiResponse<UserAPIToken> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateMyAPITokenWithHttpInfo(Long userApiTokenId, UpdateUserAPITokenRequest updateUserAPITokenRequest) throws ApiException { + okhttp3.Call localVarCall = updateMyAPITokenValidateBeforeCall(userApiTokenId, updateUserAPITokenRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update My API Token (asynchronously) + * 自分(ユーザー)のAPIトークンを作成します。 + * @param userApiTokenId APIトークンのID (required) + * @param updateUserAPITokenRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateMyAPITokenAsync(Long userApiTokenId, UpdateUserAPITokenRequest updateUserAPITokenRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateMyAPITokenValidateBeforeCall(userApiTokenId, updateUserAPITokenRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateMyAddressToVerified + * @param userEmailId ユーザーのメールアドレスのID (required) + * @param updateEmailVerifiedRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateMyAddressToVerifiedCall(Long userEmailId, UpdateEmailVerifiedRequest updateEmailVerifiedRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateEmailVerifiedRequest; + + // create path and map variables + String localVarPath = "/auth/users/me/emails/{user_email_id}/verified" + .replace("{" + "user_email_id" + "}", localVarApiClient.escapeString(userEmailId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateMyAddressToVerifiedValidateBeforeCall(Long userEmailId, UpdateEmailVerifiedRequest updateEmailVerifiedRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userEmailId' is set + if (userEmailId == null) { + throw new ApiException("Missing the required parameter 'userEmailId' when calling updateMyAddressToVerified(Async)"); + } + + return updateMyAddressToVerifiedCall(userEmailId, updateEmailVerifiedRequest, _callback); + + } + + /** + * Set My Email as Verified + * 自分(ユーザー)のメールアドレスを確認済みにします。 + * @param userEmailId ユーザーのメールアドレスのID (required) + * @param updateEmailVerifiedRequest (optional) + * @return UserEmail + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public UserEmail updateMyAddressToVerified(Long userEmailId, UpdateEmailVerifiedRequest updateEmailVerifiedRequest) throws ApiException { + ApiResponse localVarResp = updateMyAddressToVerifiedWithHttpInfo(userEmailId, updateEmailVerifiedRequest); + return localVarResp.getData(); + } + + /** + * Set My Email as Verified + * 自分(ユーザー)のメールアドレスを確認済みにします。 + * @param userEmailId ユーザーのメールアドレスのID (required) + * @param updateEmailVerifiedRequest (optional) + * @return ApiResponse<UserEmail> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateMyAddressToVerifiedWithHttpInfo(Long userEmailId, UpdateEmailVerifiedRequest updateEmailVerifiedRequest) throws ApiException { + okhttp3.Call localVarCall = updateMyAddressToVerifiedValidateBeforeCall(userEmailId, updateEmailVerifiedRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Set My Email as Verified (asynchronously) + * 自分(ユーザー)のメールアドレスを確認済みにします。 + * @param userEmailId ユーザーのメールアドレスのID (required) + * @param updateEmailVerifiedRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateMyAddressToVerifiedAsync(Long userEmailId, UpdateEmailVerifiedRequest updateEmailVerifiedRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateMyAddressToVerifiedValidateBeforeCall(userEmailId, updateEmailVerifiedRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateMyEmail + * @param userEmailId ユーザーのメールアドレスのID (required) + * @param patchEmailRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
409 Conflict -
+ */ + public okhttp3.Call updateMyEmailCall(Long userEmailId, PatchEmailRequest patchEmailRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = patchEmailRequest; + + // create path and map variables + String localVarPath = "/auth/users/me/emails/{user_email_id}" + .replace("{" + "user_email_id" + "}", localVarApiClient.escapeString(userEmailId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateMyEmailValidateBeforeCall(Long userEmailId, PatchEmailRequest patchEmailRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userEmailId' is set + if (userEmailId == null) { + throw new ApiException("Missing the required parameter 'userEmailId' when calling updateMyEmail(Async)"); + } + + return updateMyEmailCall(userEmailId, patchEmailRequest, _callback); + + } + + /** + * Update My Email + * 自分(ユーザー)のメールアドレスを更新します。 メールアドレスの設定が成功すると、確認用URLを含むメールがそのアドレスに送信されます。 確認用URLには、メールアドレス確認用トークンとメールアドレスのIDが含まれます。 + * @param userEmailId ユーザーのメールアドレスのID (required) + * @param patchEmailRequest (optional) + * @return UserEmail + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
409 Conflict -
+ */ + public UserEmail updateMyEmail(Long userEmailId, PatchEmailRequest patchEmailRequest) throws ApiException { + ApiResponse localVarResp = updateMyEmailWithHttpInfo(userEmailId, patchEmailRequest); + return localVarResp.getData(); + } + + /** + * Update My Email + * 自分(ユーザー)のメールアドレスを更新します。 メールアドレスの設定が成功すると、確認用URLを含むメールがそのアドレスに送信されます。 確認用URLには、メールアドレス確認用トークンとメールアドレスのIDが含まれます。 + * @param userEmailId ユーザーのメールアドレスのID (required) + * @param patchEmailRequest (optional) + * @return ApiResponse<UserEmail> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
409 Conflict -
+ */ + public ApiResponse updateMyEmailWithHttpInfo(Long userEmailId, PatchEmailRequest patchEmailRequest) throws ApiException { + okhttp3.Call localVarCall = updateMyEmailValidateBeforeCall(userEmailId, patchEmailRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update My Email (asynchronously) + * 自分(ユーザー)のメールアドレスを更新します。 メールアドレスの設定が成功すると、確認用URLを含むメールがそのアドレスに送信されます。 確認用URLには、メールアドレス確認用トークンとメールアドレスのIDが含まれます。 + * @param userEmailId ユーザーのメールアドレスのID (required) + * @param patchEmailRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
409 Conflict -
+ */ + public okhttp3.Call updateMyEmailAsync(Long userEmailId, PatchEmailRequest patchEmailRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateMyEmailValidateBeforeCall(userEmailId, patchEmailRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/intdash/src/main/java/com/aptpod/intdash/AuthOAuth2Api.java b/intdash/src/main/java/com/aptpod/intdash/AuthOAuth2Api.java new file mode 100644 index 0000000..1de1276 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/intdash/AuthOAuth2Api.java @@ -0,0 +1,706 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.intdash; + +import com.aptpod.ApiCallback; +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.ApiResponse; +import com.aptpod.Configuration; +import com.aptpod.Pair; +import com.aptpod.ProgressRequestBody; +import com.aptpod.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.openapitools.client.model.IssueToken200Response; +import org.openapitools.client.model.OAuth2JWKs; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class AuthOAuth2Api { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public AuthOAuth2Api() { + this(Configuration.getDefaultApiClient()); + } + + public AuthOAuth2Api(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for authOauth2JwksGet + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call authOauth2JwksGetCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/oauth2/jwks"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/jwk-set+json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call authOauth2JwksGetValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return authOauth2JwksGetCall(_callback); + + } + + /** + * List JSON Web Keys + * JSON Web Keysのリストを取得します。 [RFC7517:JSON Web Key](https://tools.ietf.org/html/rfc7517) + * @return OAuth2JWKs + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public OAuth2JWKs authOauth2JwksGet() throws ApiException { + ApiResponse localVarResp = authOauth2JwksGetWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * List JSON Web Keys + * JSON Web Keysのリストを取得します。 [RFC7517:JSON Web Key](https://tools.ietf.org/html/rfc7517) + * @return ApiResponse<OAuth2JWKs> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse authOauth2JwksGetWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = authOauth2JwksGetValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List JSON Web Keys (asynchronously) + * JSON Web Keysのリストを取得します。 [RFC7517:JSON Web Key](https://tools.ietf.org/html/rfc7517) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call authOauth2JwksGetAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = authOauth2JwksGetValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for issueToken + * @param grantType グラントタイプ (optional) + * @param refreshToken 認可時に発行されたリフレッシュトークン。grant_typeが `refresh_token` の場合にだけ指定します。 (optional) + * @param tenantUuid テナントのUUID。grant_typeが `password` の場合にだけ指定します。 grant_typeが `password` で、テナントUUIDを省略した場合は、デフォルトのテナントが使用されます。 (optional, default to 00000000-0000-0000-0000-000000000000) + * @param username ユーザーの名前。grant_typeが `password` の場合にだけ指定します。 (optional) + * @param password パスワード。grant_typeが `password` の場合にだけ指定します。 (optional) + * @param clientId OAuth2クライアントのID (optional) + * @param clientSecret OAuth2のクライアントシークレット。 OAuth2クライアントの `token_endpoint_auth_method` が `client_secret_post` の場合にだけ指定します。 (optional) + * @param clientCertification OAuth2のクライアント証明書。 OAuth2クライアントの `token_endpoint_auth_method` が `tls_client_auth` の場合にだけ指定します。 (optional) + * @param redirectUri 認可後のリダイレクト先URI。 grant_typeが `authorization_code` の場合にだけ必要です。 (optional) + * @param codeVerifier PKCE code verifier. * 使用可能な文字: `[a-Z] / [0-9] / \\\"-\\\" / \\\".\\\" / \\\"_\\\" / \\\"~\\\"` * 長さ: 43文字以上、128文字以下 (optional) + * @param code 認可コード (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call issueTokenCall(String grantType, String refreshToken, String tenantUuid, String username, String password, String clientId, String clientSecret, String clientCertification, String redirectUri, String codeVerifier, String code, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/oauth2/token"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (grantType != null) { + localVarFormParams.put("grant_type", grantType); + } + + if (refreshToken != null) { + localVarFormParams.put("refresh_token", refreshToken); + } + + if (tenantUuid != null) { + localVarFormParams.put("tenant_uuid", tenantUuid); + } + + if (username != null) { + localVarFormParams.put("username", username); + } + + if (password != null) { + localVarFormParams.put("password", password); + } + + if (clientId != null) { + localVarFormParams.put("client_id", clientId); + } + + if (clientSecret != null) { + localVarFormParams.put("client_secret", clientSecret); + } + + if (clientCertification != null) { + localVarFormParams.put("client_certification", clientCertification); + } + + if (redirectUri != null) { + localVarFormParams.put("redirect_uri", redirectUri); + } + + if (codeVerifier != null) { + localVarFormParams.put("code_verifier", codeVerifier); + } + + if (code != null) { + localVarFormParams.put("code", code); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/x-www-form-urlencoded" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call issueTokenValidateBeforeCall(String grantType, String refreshToken, String tenantUuid, String username, String password, String clientId, String clientSecret, String clientCertification, String redirectUri, String codeVerifier, String code, final ApiCallback _callback) throws ApiException { + return issueTokenCall(grantType, refreshToken, tenantUuid, username, password, clientId, clientSecret, clientCertification, redirectUri, codeVerifier, code, _callback); + + } + + /** + * Token Endpoint + * OAuth2のアクセストークンを取得します。 [RFC6749:The OAuth 2.0 Authorization Framework](https://tools.ietf.org/html/rfc6749) + * @param grantType グラントタイプ (optional) + * @param refreshToken 認可時に発行されたリフレッシュトークン。grant_typeが `refresh_token` の場合にだけ指定します。 (optional) + * @param tenantUuid テナントのUUID。grant_typeが `password` の場合にだけ指定します。 grant_typeが `password` で、テナントUUIDを省略した場合は、デフォルトのテナントが使用されます。 (optional, default to 00000000-0000-0000-0000-000000000000) + * @param username ユーザーの名前。grant_typeが `password` の場合にだけ指定します。 (optional) + * @param password パスワード。grant_typeが `password` の場合にだけ指定します。 (optional) + * @param clientId OAuth2クライアントのID (optional) + * @param clientSecret OAuth2のクライアントシークレット。 OAuth2クライアントの `token_endpoint_auth_method` が `client_secret_post` の場合にだけ指定します。 (optional) + * @param clientCertification OAuth2のクライアント証明書。 OAuth2クライアントの `token_endpoint_auth_method` が `tls_client_auth` の場合にだけ指定します。 (optional) + * @param redirectUri 認可後のリダイレクト先URI。 grant_typeが `authorization_code` の場合にだけ必要です。 (optional) + * @param codeVerifier PKCE code verifier. * 使用可能な文字: `[a-Z] / [0-9] / \\\"-\\\" / \\\".\\\" / \\\"_\\\" / \\\"~\\\"` * 長さ: 43文字以上、128文字以下 (optional) + * @param code 認可コード (optional) + * @return IssueToken200Response + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public IssueToken200Response issueToken(String grantType, String refreshToken, String tenantUuid, String username, String password, String clientId, String clientSecret, String clientCertification, String redirectUri, String codeVerifier, String code) throws ApiException { + ApiResponse localVarResp = issueTokenWithHttpInfo(grantType, refreshToken, tenantUuid, username, password, clientId, clientSecret, clientCertification, redirectUri, codeVerifier, code); + return localVarResp.getData(); + } + + /** + * Token Endpoint + * OAuth2のアクセストークンを取得します。 [RFC6749:The OAuth 2.0 Authorization Framework](https://tools.ietf.org/html/rfc6749) + * @param grantType グラントタイプ (optional) + * @param refreshToken 認可時に発行されたリフレッシュトークン。grant_typeが `refresh_token` の場合にだけ指定します。 (optional) + * @param tenantUuid テナントのUUID。grant_typeが `password` の場合にだけ指定します。 grant_typeが `password` で、テナントUUIDを省略した場合は、デフォルトのテナントが使用されます。 (optional, default to 00000000-0000-0000-0000-000000000000) + * @param username ユーザーの名前。grant_typeが `password` の場合にだけ指定します。 (optional) + * @param password パスワード。grant_typeが `password` の場合にだけ指定します。 (optional) + * @param clientId OAuth2クライアントのID (optional) + * @param clientSecret OAuth2のクライアントシークレット。 OAuth2クライアントの `token_endpoint_auth_method` が `client_secret_post` の場合にだけ指定します。 (optional) + * @param clientCertification OAuth2のクライアント証明書。 OAuth2クライアントの `token_endpoint_auth_method` が `tls_client_auth` の場合にだけ指定します。 (optional) + * @param redirectUri 認可後のリダイレクト先URI。 grant_typeが `authorization_code` の場合にだけ必要です。 (optional) + * @param codeVerifier PKCE code verifier. * 使用可能な文字: `[a-Z] / [0-9] / \\\"-\\\" / \\\".\\\" / \\\"_\\\" / \\\"~\\\"` * 長さ: 43文字以上、128文字以下 (optional) + * @param code 認可コード (optional) + * @return ApiResponse<IssueToken200Response> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse issueTokenWithHttpInfo(String grantType, String refreshToken, String tenantUuid, String username, String password, String clientId, String clientSecret, String clientCertification, String redirectUri, String codeVerifier, String code) throws ApiException { + okhttp3.Call localVarCall = issueTokenValidateBeforeCall(grantType, refreshToken, tenantUuid, username, password, clientId, clientSecret, clientCertification, redirectUri, codeVerifier, code, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Token Endpoint (asynchronously) + * OAuth2のアクセストークンを取得します。 [RFC6749:The OAuth 2.0 Authorization Framework](https://tools.ietf.org/html/rfc6749) + * @param grantType グラントタイプ (optional) + * @param refreshToken 認可時に発行されたリフレッシュトークン。grant_typeが `refresh_token` の場合にだけ指定します。 (optional) + * @param tenantUuid テナントのUUID。grant_typeが `password` の場合にだけ指定します。 grant_typeが `password` で、テナントUUIDを省略した場合は、デフォルトのテナントが使用されます。 (optional, default to 00000000-0000-0000-0000-000000000000) + * @param username ユーザーの名前。grant_typeが `password` の場合にだけ指定します。 (optional) + * @param password パスワード。grant_typeが `password` の場合にだけ指定します。 (optional) + * @param clientId OAuth2クライアントのID (optional) + * @param clientSecret OAuth2のクライアントシークレット。 OAuth2クライアントの `token_endpoint_auth_method` が `client_secret_post` の場合にだけ指定します。 (optional) + * @param clientCertification OAuth2のクライアント証明書。 OAuth2クライアントの `token_endpoint_auth_method` が `tls_client_auth` の場合にだけ指定します。 (optional) + * @param redirectUri 認可後のリダイレクト先URI。 grant_typeが `authorization_code` の場合にだけ必要です。 (optional) + * @param codeVerifier PKCE code verifier. * 使用可能な文字: `[a-Z] / [0-9] / \\\"-\\\" / \\\".\\\" / \\\"_\\\" / \\\"~\\\"` * 長さ: 43文字以上、128文字以下 (optional) + * @param code 認可コード (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call issueTokenAsync(String grantType, String refreshToken, String tenantUuid, String username, String password, String clientId, String clientSecret, String clientCertification, String redirectUri, String codeVerifier, String code, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = issueTokenValidateBeforeCall(grantType, refreshToken, tenantUuid, username, password, clientId, clientSecret, clientCertification, redirectUri, codeVerifier, code, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for oauth2Authorization + * @param clientId OAuth2クライアントID (required) + * @param responseType OAuth2のresponse_type。 `code` のみサポートされています。 (required) + * @param redirectUri 認可後のリダイレクト先URI (required) + * @param state CSRF対策のためのstate (required) + * @param codeChallenge PKCEコードチャレンジ。 `code_verifier` から計算したSHA-256ハッシュを、Base64 URLエンコードしたもの。 (optional) + * @param codeChallengeMethod PKCEコードチャレンジの方式。 `S256` (SHA-256)のみサポートされます。 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
302 APIサーバーで設定されているログインページや同意ページへのリダイレクト -
+ */ + public okhttp3.Call oauth2AuthorizationCall(String clientId, String responseType, String redirectUri, String state, String codeChallenge, String codeChallengeMethod, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/oauth2/authorization"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (clientId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("client_id", clientId)); + } + + if (responseType != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("response_type", responseType)); + } + + if (redirectUri != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("redirect_uri", redirectUri)); + } + + if (state != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("state", state)); + } + + if (codeChallenge != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("code_challenge", codeChallenge)); + } + + if (codeChallengeMethod != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("code_challenge_method", codeChallengeMethod)); + } + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call oauth2AuthorizationValidateBeforeCall(String clientId, String responseType, String redirectUri, String state, String codeChallenge, String codeChallengeMethod, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'clientId' is set + if (clientId == null) { + throw new ApiException("Missing the required parameter 'clientId' when calling oauth2Authorization(Async)"); + } + + // verify the required parameter 'responseType' is set + if (responseType == null) { + throw new ApiException("Missing the required parameter 'responseType' when calling oauth2Authorization(Async)"); + } + + // verify the required parameter 'redirectUri' is set + if (redirectUri == null) { + throw new ApiException("Missing the required parameter 'redirectUri' when calling oauth2Authorization(Async)"); + } + + // verify the required parameter 'state' is set + if (state == null) { + throw new ApiException("Missing the required parameter 'state' when calling oauth2Authorization(Async)"); + } + + return oauth2AuthorizationCall(clientId, responseType, redirectUri, state, codeChallenge, codeChallengeMethod, _callback); + + } + + /** + * Authorization Endpoint + * OAuth2認可エンドポイント。 [RFC6749:The OAuth 2.0 Authorization Framework](https://tools.ietf.org/html/rfc6749) + * @param clientId OAuth2クライアントID (required) + * @param responseType OAuth2のresponse_type。 `code` のみサポートされています。 (required) + * @param redirectUri 認可後のリダイレクト先URI (required) + * @param state CSRF対策のためのstate (required) + * @param codeChallenge PKCEコードチャレンジ。 `code_verifier` から計算したSHA-256ハッシュを、Base64 URLエンコードしたもの。 (optional) + * @param codeChallengeMethod PKCEコードチャレンジの方式。 `S256` (SHA-256)のみサポートされます。 (optional) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
302 APIサーバーで設定されているログインページや同意ページへのリダイレクト -
+ */ + public void oauth2Authorization(String clientId, String responseType, String redirectUri, String state, String codeChallenge, String codeChallengeMethod) throws ApiException { + oauth2AuthorizationWithHttpInfo(clientId, responseType, redirectUri, state, codeChallenge, codeChallengeMethod); + } + + /** + * Authorization Endpoint + * OAuth2認可エンドポイント。 [RFC6749:The OAuth 2.0 Authorization Framework](https://tools.ietf.org/html/rfc6749) + * @param clientId OAuth2クライアントID (required) + * @param responseType OAuth2のresponse_type。 `code` のみサポートされています。 (required) + * @param redirectUri 認可後のリダイレクト先URI (required) + * @param state CSRF対策のためのstate (required) + * @param codeChallenge PKCEコードチャレンジ。 `code_verifier` から計算したSHA-256ハッシュを、Base64 URLエンコードしたもの。 (optional) + * @param codeChallengeMethod PKCEコードチャレンジの方式。 `S256` (SHA-256)のみサポートされます。 (optional) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
302 APIサーバーで設定されているログインページや同意ページへのリダイレクト -
+ */ + public ApiResponse oauth2AuthorizationWithHttpInfo(String clientId, String responseType, String redirectUri, String state, String codeChallenge, String codeChallengeMethod) throws ApiException { + okhttp3.Call localVarCall = oauth2AuthorizationValidateBeforeCall(clientId, responseType, redirectUri, state, codeChallenge, codeChallengeMethod, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Authorization Endpoint (asynchronously) + * OAuth2認可エンドポイント。 [RFC6749:The OAuth 2.0 Authorization Framework](https://tools.ietf.org/html/rfc6749) + * @param clientId OAuth2クライアントID (required) + * @param responseType OAuth2のresponse_type。 `code` のみサポートされています。 (required) + * @param redirectUri 認可後のリダイレクト先URI (required) + * @param state CSRF対策のためのstate (required) + * @param codeChallenge PKCEコードチャレンジ。 `code_verifier` から計算したSHA-256ハッシュを、Base64 URLエンコードしたもの。 (optional) + * @param codeChallengeMethod PKCEコードチャレンジの方式。 `S256` (SHA-256)のみサポートされます。 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
302 APIサーバーで設定されているログインページや同意ページへのリダイレクト -
+ */ + public okhttp3.Call oauth2AuthorizationAsync(String clientId, String responseType, String redirectUri, String state, String codeChallenge, String codeChallengeMethod, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = oauth2AuthorizationValidateBeforeCall(clientId, responseType, redirectUri, state, codeChallenge, codeChallengeMethod, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for reovokeToken + * @param clientId OAuth2クライアントID (required) + * @param tokenTypeHint OAuth2トークンタイプについてのヒント (optional, default to refresh_token) + * @param token 無効化したいリフレッシュトークンまたはアクセストークン。 指定を省略した場合、サーバーは、cookieの `_bearer_token` に指定されたアクセストークン、または、Authorizationヘッダーに指定されたアクセストークン( `Bearer` トークン)を無効化します。 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call reovokeTokenCall(String clientId, String tokenTypeHint, String token, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/oauth2/revocation"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (clientId != null) { + localVarFormParams.put("client_id", clientId); + } + + if (tokenTypeHint != null) { + localVarFormParams.put("token_type_hint", tokenTypeHint); + } + + if (token != null) { + localVarFormParams.put("token", token); + } + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/x-www-form-urlencoded" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call reovokeTokenValidateBeforeCall(String clientId, String tokenTypeHint, String token, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'clientId' is set + if (clientId == null) { + throw new ApiException("Missing the required parameter 'clientId' when calling reovokeToken(Async)"); + } + + return reovokeTokenCall(clientId, tokenTypeHint, token, _callback); + + } + + /** + * Revoke Token + * トークンを無効化します。 このエンドポイントをコールしてからトークンが無効化されるまで、通常数秒程度かかります。 [RFC7009:OAuth 2.0 Token Revocation](https://tools.ietf.org/html/rfc7009) + * @param clientId OAuth2クライアントID (required) + * @param tokenTypeHint OAuth2トークンタイプについてのヒント (optional, default to refresh_token) + * @param token 無効化したいリフレッシュトークンまたはアクセストークン。 指定を省略した場合、サーバーは、cookieの `_bearer_token` に指定されたアクセストークン、または、Authorizationヘッダーに指定されたアクセストークン( `Bearer` トークン)を無効化します。 (optional) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public void reovokeToken(String clientId, String tokenTypeHint, String token) throws ApiException { + reovokeTokenWithHttpInfo(clientId, tokenTypeHint, token); + } + + /** + * Revoke Token + * トークンを無効化します。 このエンドポイントをコールしてからトークンが無効化されるまで、通常数秒程度かかります。 [RFC7009:OAuth 2.0 Token Revocation](https://tools.ietf.org/html/rfc7009) + * @param clientId OAuth2クライアントID (required) + * @param tokenTypeHint OAuth2トークンタイプについてのヒント (optional, default to refresh_token) + * @param token 無効化したいリフレッシュトークンまたはアクセストークン。 指定を省略した場合、サーバーは、cookieの `_bearer_token` に指定されたアクセストークン、または、Authorizationヘッダーに指定されたアクセストークン( `Bearer` トークン)を無効化します。 (optional) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse reovokeTokenWithHttpInfo(String clientId, String tokenTypeHint, String token) throws ApiException { + okhttp3.Call localVarCall = reovokeTokenValidateBeforeCall(clientId, tokenTypeHint, token, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Revoke Token (asynchronously) + * トークンを無効化します。 このエンドポイントをコールしてからトークンが無効化されるまで、通常数秒程度かかります。 [RFC7009:OAuth 2.0 Token Revocation](https://tools.ietf.org/html/rfc7009) + * @param clientId OAuth2クライアントID (required) + * @param tokenTypeHint OAuth2トークンタイプについてのヒント (optional, default to refresh_token) + * @param token 無効化したいリフレッシュトークンまたはアクセストークン。 指定を省略した場合、サーバーは、cookieの `_bearer_token` に指定されたアクセストークン、または、Authorizationヘッダーに指定されたアクセストークン( `Bearer` トークン)を無効化します。 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call reovokeTokenAsync(String clientId, String tokenTypeHint, String token, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = reovokeTokenValidateBeforeCall(clientId, tokenTypeHint, token, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } +} diff --git a/intdash/src/main/java/com/aptpod/intdash/AuthProjectEdgesApi.java b/intdash/src/main/java/com/aptpod/intdash/AuthProjectEdgesApi.java new file mode 100644 index 0000000..8b4fe2d --- /dev/null +++ b/intdash/src/main/java/com/aptpod/intdash/AuthProjectEdgesApi.java @@ -0,0 +1,774 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.intdash; + +import com.aptpod.ApiCallback; +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.ApiResponse; +import com.aptpod.Configuration; +import com.aptpod.Pair; +import com.aptpod.ProgressRequestBody; +import com.aptpod.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.openapitools.client.model.AddProjectEdgeRequest; +import org.openapitools.client.model.ErrorProblem; +import org.openapitools.client.model.ProjectEdge; +import org.openapitools.client.model.ProjectEdges; +import org.openapitools.client.model.UpdateProjectEdgeRequest; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class AuthProjectEdgesApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public AuthProjectEdgesApi() { + this(Configuration.getDefaultApiClient()); + } + + public AuthProjectEdgesApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addProjectEdges + * @param projectUuid プロジェクトのUUID (required) + * @param addProjectEdgeRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
409 Conflict -
+ */ + public okhttp3.Call addProjectEdgesCall(String projectUuid, AddProjectEdgeRequest addProjectEdgeRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addProjectEdgeRequest; + + // create path and map variables + String localVarPath = "/auth/projects/{project_uuid}/edges" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addProjectEdgesValidateBeforeCall(String projectUuid, AddProjectEdgeRequest addProjectEdgeRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling addProjectEdges(Async)"); + } + + return addProjectEdgesCall(projectUuid, addProjectEdgeRequest, _callback); + + } + + /** + * Add Project Edge + * エッジをプロジェクトに追加します。 + * @param projectUuid プロジェクトのUUID (required) + * @param addProjectEdgeRequest (optional) + * @return ProjectEdge + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
409 Conflict -
+ */ + public ProjectEdge addProjectEdges(String projectUuid, AddProjectEdgeRequest addProjectEdgeRequest) throws ApiException { + ApiResponse localVarResp = addProjectEdgesWithHttpInfo(projectUuid, addProjectEdgeRequest); + return localVarResp.getData(); + } + + /** + * Add Project Edge + * エッジをプロジェクトに追加します。 + * @param projectUuid プロジェクトのUUID (required) + * @param addProjectEdgeRequest (optional) + * @return ApiResponse<ProjectEdge> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
409 Conflict -
+ */ + public ApiResponse addProjectEdgesWithHttpInfo(String projectUuid, AddProjectEdgeRequest addProjectEdgeRequest) throws ApiException { + okhttp3.Call localVarCall = addProjectEdgesValidateBeforeCall(projectUuid, addProjectEdgeRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add Project Edge (asynchronously) + * エッジをプロジェクトに追加します。 + * @param projectUuid プロジェクトのUUID (required) + * @param addProjectEdgeRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
409 Conflict -
+ */ + public okhttp3.Call addProjectEdgesAsync(String projectUuid, AddProjectEdgeRequest addProjectEdgeRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addProjectEdgesValidateBeforeCall(projectUuid, addProjectEdgeRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getProjectEdge + * @param projectUuid プロジェクトのUUID (required) + * @param edgeUuid エッジのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectEdgeCall(String projectUuid, String edgeUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/projects/{project_uuid}/edges/{edge_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "edge_uuid" + "}", localVarApiClient.escapeString(edgeUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getProjectEdgeValidateBeforeCall(String projectUuid, String edgeUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling getProjectEdge(Async)"); + } + + // verify the required parameter 'edgeUuid' is set + if (edgeUuid == null) { + throw new ApiException("Missing the required parameter 'edgeUuid' when calling getProjectEdge(Async)"); + } + + return getProjectEdgeCall(projectUuid, edgeUuid, _callback); + + } + + /** + * Get Project Edge + * プロジェクトに所属するエッジを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param edgeUuid エッジのUUID (required) + * @return ProjectEdge + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ProjectEdge getProjectEdge(String projectUuid, String edgeUuid) throws ApiException { + ApiResponse localVarResp = getProjectEdgeWithHttpInfo(projectUuid, edgeUuid); + return localVarResp.getData(); + } + + /** + * Get Project Edge + * プロジェクトに所属するエッジを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param edgeUuid エッジのUUID (required) + * @return ApiResponse<ProjectEdge> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getProjectEdgeWithHttpInfo(String projectUuid, String edgeUuid) throws ApiException { + okhttp3.Call localVarCall = getProjectEdgeValidateBeforeCall(projectUuid, edgeUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Project Edge (asynchronously) + * プロジェクトに所属するエッジを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param edgeUuid エッジのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectEdgeAsync(String projectUuid, String edgeUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getProjectEdgeValidateBeforeCall(projectUuid, edgeUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listProjectEdges + * @param projectUuid プロジェクトのUUID (required) + * @param edgeUuid エッジのUUID (optional) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listProjectEdgesCall(String projectUuid, List edgeUuid, Integer page, Integer perPage, String sort, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/projects/{project_uuid}/edges" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (edgeUuid != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "edge_uuid", edgeUuid)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listProjectEdgesValidateBeforeCall(String projectUuid, List edgeUuid, Integer page, Integer perPage, String sort, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling listProjectEdges(Async)"); + } + + return listProjectEdgesCall(projectUuid, edgeUuid, page, perPage, sort, _callback); + + } + + /** + * List Project Edges + * プロジェクトに所属するエッジのリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param edgeUuid エッジのUUID (optional) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @return ProjectEdges + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ProjectEdges listProjectEdges(String projectUuid, List edgeUuid, Integer page, Integer perPage, String sort) throws ApiException { + ApiResponse localVarResp = listProjectEdgesWithHttpInfo(projectUuid, edgeUuid, page, perPage, sort); + return localVarResp.getData(); + } + + /** + * List Project Edges + * プロジェクトに所属するエッジのリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param edgeUuid エッジのUUID (optional) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @return ApiResponse<ProjectEdges> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listProjectEdgesWithHttpInfo(String projectUuid, List edgeUuid, Integer page, Integer perPage, String sort) throws ApiException { + okhttp3.Call localVarCall = listProjectEdgesValidateBeforeCall(projectUuid, edgeUuid, page, perPage, sort, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Project Edges (asynchronously) + * プロジェクトに所属するエッジのリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param edgeUuid エッジのUUID (optional) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listProjectEdgesAsync(String projectUuid, List edgeUuid, Integer page, Integer perPage, String sort, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listProjectEdgesValidateBeforeCall(projectUuid, edgeUuid, page, perPage, sort, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for removeProjectEdge + * @param projectUuid プロジェクトのUUID (required) + * @param edgeUuid エッジのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call removeProjectEdgeCall(String projectUuid, String edgeUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/projects/{project_uuid}/edges/{edge_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "edge_uuid" + "}", localVarApiClient.escapeString(edgeUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call removeProjectEdgeValidateBeforeCall(String projectUuid, String edgeUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling removeProjectEdge(Async)"); + } + + // verify the required parameter 'edgeUuid' is set + if (edgeUuid == null) { + throw new ApiException("Missing the required parameter 'edgeUuid' when calling removeProjectEdge(Async)"); + } + + return removeProjectEdgeCall(projectUuid, edgeUuid, _callback); + + } + + /** + * Remove Project Edge + * プロジェクトからエッジを外します。 + * @param projectUuid プロジェクトのUUID (required) + * @param edgeUuid エッジのUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void removeProjectEdge(String projectUuid, String edgeUuid) throws ApiException { + removeProjectEdgeWithHttpInfo(projectUuid, edgeUuid); + } + + /** + * Remove Project Edge + * プロジェクトからエッジを外します。 + * @param projectUuid プロジェクトのUUID (required) + * @param edgeUuid エッジのUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse removeProjectEdgeWithHttpInfo(String projectUuid, String edgeUuid) throws ApiException { + okhttp3.Call localVarCall = removeProjectEdgeValidateBeforeCall(projectUuid, edgeUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Remove Project Edge (asynchronously) + * プロジェクトからエッジを外します。 + * @param projectUuid プロジェクトのUUID (required) + * @param edgeUuid エッジのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call removeProjectEdgeAsync(String projectUuid, String edgeUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = removeProjectEdgeValidateBeforeCall(projectUuid, edgeUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for updateProjectEdge + * @param projectUuid プロジェクトのUUID (required) + * @param edgeUuid エッジのUUID (required) + * @param updateProjectEdgeRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
304 Not Modified -
+ */ + public okhttp3.Call updateProjectEdgeCall(String projectUuid, String edgeUuid, UpdateProjectEdgeRequest updateProjectEdgeRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateProjectEdgeRequest; + + // create path and map variables + String localVarPath = "/auth/projects/{project_uuid}/edges/{edge_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "edge_uuid" + "}", localVarApiClient.escapeString(edgeUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateProjectEdgeValidateBeforeCall(String projectUuid, String edgeUuid, UpdateProjectEdgeRequest updateProjectEdgeRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling updateProjectEdge(Async)"); + } + + // verify the required parameter 'edgeUuid' is set + if (edgeUuid == null) { + throw new ApiException("Missing the required parameter 'edgeUuid' when calling updateProjectEdge(Async)"); + } + + return updateProjectEdgeCall(projectUuid, edgeUuid, updateProjectEdgeRequest, _callback); + + } + + /** + * Update Project Edge + * プロジェクトエッジを更新します。 + * @param projectUuid プロジェクトのUUID (required) + * @param edgeUuid エッジのUUID (required) + * @param updateProjectEdgeRequest (optional) + * @return ProjectEdge + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
304 Not Modified -
+ */ + public ProjectEdge updateProjectEdge(String projectUuid, String edgeUuid, UpdateProjectEdgeRequest updateProjectEdgeRequest) throws ApiException { + ApiResponse localVarResp = updateProjectEdgeWithHttpInfo(projectUuid, edgeUuid, updateProjectEdgeRequest); + return localVarResp.getData(); + } + + /** + * Update Project Edge + * プロジェクトエッジを更新します。 + * @param projectUuid プロジェクトのUUID (required) + * @param edgeUuid エッジのUUID (required) + * @param updateProjectEdgeRequest (optional) + * @return ApiResponse<ProjectEdge> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
304 Not Modified -
+ */ + public ApiResponse updateProjectEdgeWithHttpInfo(String projectUuid, String edgeUuid, UpdateProjectEdgeRequest updateProjectEdgeRequest) throws ApiException { + okhttp3.Call localVarCall = updateProjectEdgeValidateBeforeCall(projectUuid, edgeUuid, updateProjectEdgeRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Project Edge (asynchronously) + * プロジェクトエッジを更新します。 + * @param projectUuid プロジェクトのUUID (required) + * @param edgeUuid エッジのUUID (required) + * @param updateProjectEdgeRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
304 Not Modified -
+ */ + public okhttp3.Call updateProjectEdgeAsync(String projectUuid, String edgeUuid, UpdateProjectEdgeRequest updateProjectEdgeRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateProjectEdgeValidateBeforeCall(projectUuid, edgeUuid, updateProjectEdgeRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/intdash/src/main/java/com/aptpod/intdash/AuthProjectMembersApi.java b/intdash/src/main/java/com/aptpod/intdash/AuthProjectMembersApi.java new file mode 100644 index 0000000..ae488e6 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/intdash/AuthProjectMembersApi.java @@ -0,0 +1,1061 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.intdash; + +import com.aptpod.ApiCallback; +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.ApiResponse; +import com.aptpod.Configuration; +import com.aptpod.Pair; +import com.aptpod.ProgressRequestBody; +import com.aptpod.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.openapitools.client.model.AddProjectMemberRequest; +import org.openapitools.client.model.ErrorProblem; +import org.openapitools.client.model.Member; +import org.openapitools.client.model.Members; +import org.openapitools.client.model.UpdateProjectMemberRequest; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class AuthProjectMembersApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public AuthProjectMembersApi() { + this(Configuration.getDefaultApiClient()); + } + + public AuthProjectMembersApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for addProjectMember + * @param projectUuid プロジェクトのUUID (required) + * @param addProjectMemberRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
409 Conflict -
+ */ + public okhttp3.Call addProjectMemberCall(String projectUuid, AddProjectMemberRequest addProjectMemberRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = addProjectMemberRequest; + + // create path and map variables + String localVarPath = "/auth/projects/{project_uuid}/members" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addProjectMemberValidateBeforeCall(String projectUuid, AddProjectMemberRequest addProjectMemberRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling addProjectMember(Async)"); + } + + return addProjectMemberCall(projectUuid, addProjectMemberRequest, _callback); + + } + + /** + * Add Project Member + * プロジェクトメンバーを追加します。 + * @param projectUuid プロジェクトのUUID (required) + * @param addProjectMemberRequest (optional) + * @return Member + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
409 Conflict -
+ */ + public Member addProjectMember(String projectUuid, AddProjectMemberRequest addProjectMemberRequest) throws ApiException { + ApiResponse localVarResp = addProjectMemberWithHttpInfo(projectUuid, addProjectMemberRequest); + return localVarResp.getData(); + } + + /** + * Add Project Member + * プロジェクトメンバーを追加します。 + * @param projectUuid プロジェクトのUUID (required) + * @param addProjectMemberRequest (optional) + * @return ApiResponse<Member> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
409 Conflict -
+ */ + public ApiResponse addProjectMemberWithHttpInfo(String projectUuid, AddProjectMemberRequest addProjectMemberRequest) throws ApiException { + okhttp3.Call localVarCall = addProjectMemberValidateBeforeCall(projectUuid, addProjectMemberRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add Project Member (asynchronously) + * プロジェクトメンバーを追加します。 + * @param projectUuid プロジェクトのUUID (required) + * @param addProjectMemberRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
409 Conflict -
+ */ + public okhttp3.Call addProjectMemberAsync(String projectUuid, AddProjectMemberRequest addProjectMemberRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addProjectMemberValidateBeforeCall(projectUuid, addProjectMemberRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for addProjectOwnerAttribute + * @param projectUuid プロジェクトのUUID (required) + * @param userUuid (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
304 Not Modified -
+ */ + public okhttp3.Call addProjectOwnerAttributeCall(String projectUuid, String userUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/projects/{project_uuid}/members/{user_uuid}/owner" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addProjectOwnerAttributeValidateBeforeCall(String projectUuid, String userUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling addProjectOwnerAttribute(Async)"); + } + + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling addProjectOwnerAttribute(Async)"); + } + + return addProjectOwnerAttributeCall(projectUuid, userUuid, _callback); + + } + + /** + * Add Project Owner Attribute + * オーナー属性を追加します。オーナー属性を追加したメンバーは自動的にそのプロジェクトにおける全ての権限が付与されます。 + * @param projectUuid プロジェクトのUUID (required) + * @param userUuid (required) + * @return Member + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
304 Not Modified -
+ */ + public Member addProjectOwnerAttribute(String projectUuid, String userUuid) throws ApiException { + ApiResponse localVarResp = addProjectOwnerAttributeWithHttpInfo(projectUuid, userUuid); + return localVarResp.getData(); + } + + /** + * Add Project Owner Attribute + * オーナー属性を追加します。オーナー属性を追加したメンバーは自動的にそのプロジェクトにおける全ての権限が付与されます。 + * @param projectUuid プロジェクトのUUID (required) + * @param userUuid (required) + * @return ApiResponse<Member> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
304 Not Modified -
+ */ + public ApiResponse addProjectOwnerAttributeWithHttpInfo(String projectUuid, String userUuid) throws ApiException { + okhttp3.Call localVarCall = addProjectOwnerAttributeValidateBeforeCall(projectUuid, userUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Add Project Owner Attribute (asynchronously) + * オーナー属性を追加します。オーナー属性を追加したメンバーは自動的にそのプロジェクトにおける全ての権限が付与されます。 + * @param projectUuid プロジェクトのUUID (required) + * @param userUuid (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
304 Not Modified -
+ */ + public okhttp3.Call addProjectOwnerAttributeAsync(String projectUuid, String userUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addProjectOwnerAttributeValidateBeforeCall(projectUuid, userUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getProjectMember + * @param projectUuid プロジェクトのUUID (required) + * @param userUuid (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
404 Not Found -
+ */ + public okhttp3.Call getProjectMemberCall(String projectUuid, String userUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/projects/{project_uuid}/members/{user_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getProjectMemberValidateBeforeCall(String projectUuid, String userUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling getProjectMember(Async)"); + } + + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling getProjectMember(Async)"); + } + + return getProjectMemberCall(projectUuid, userUuid, _callback); + + } + + /** + * Get Project Member + * プロジェクトメンバーを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param userUuid (required) + * @return Member + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
404 Not Found -
+ */ + public Member getProjectMember(String projectUuid, String userUuid) throws ApiException { + ApiResponse localVarResp = getProjectMemberWithHttpInfo(projectUuid, userUuid); + return localVarResp.getData(); + } + + /** + * Get Project Member + * プロジェクトメンバーを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param userUuid (required) + * @return ApiResponse<Member> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
404 Not Found -
+ */ + public ApiResponse getProjectMemberWithHttpInfo(String projectUuid, String userUuid) throws ApiException { + okhttp3.Call localVarCall = getProjectMemberValidateBeforeCall(projectUuid, userUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Project Member (asynchronously) + * プロジェクトメンバーを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param userUuid (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
404 Not Found -
+ */ + public okhttp3.Call getProjectMemberAsync(String projectUuid, String userUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getProjectMemberValidateBeforeCall(projectUuid, userUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listProjectMembers + * @param projectUuid プロジェクトのUUID (required) + * @param userUuid ユーザーのUUID (optional) + * @param isOwner * `true` を指定した場合、オーナーのみを取得します。 * `false` を指定した場合、オーナー以外を取得します。 * 指定を省略した場合、オーナーであるかにかかわらずメンバーを取得します。 (optional) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listProjectMembersCall(String projectUuid, List userUuid, Boolean isOwner, Integer page, Integer perPage, String sort, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/projects/{project_uuid}/members" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (userUuid != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "user_uuid", userUuid)); + } + + if (isOwner != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("is_owner", isOwner)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listProjectMembersValidateBeforeCall(String projectUuid, List userUuid, Boolean isOwner, Integer page, Integer perPage, String sort, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling listProjectMembers(Async)"); + } + + return listProjectMembersCall(projectUuid, userUuid, isOwner, page, perPage, sort, _callback); + + } + + /** + * List Project Members + * プロジェクトメンバーリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param userUuid ユーザーのUUID (optional) + * @param isOwner * `true` を指定した場合、オーナーのみを取得します。 * `false` を指定した場合、オーナー以外を取得します。 * 指定を省略した場合、オーナーであるかにかかわらずメンバーを取得します。 (optional) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @return Members + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Members listProjectMembers(String projectUuid, List userUuid, Boolean isOwner, Integer page, Integer perPage, String sort) throws ApiException { + ApiResponse localVarResp = listProjectMembersWithHttpInfo(projectUuid, userUuid, isOwner, page, perPage, sort); + return localVarResp.getData(); + } + + /** + * List Project Members + * プロジェクトメンバーリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param userUuid ユーザーのUUID (optional) + * @param isOwner * `true` を指定した場合、オーナーのみを取得します。 * `false` を指定した場合、オーナー以外を取得します。 * 指定を省略した場合、オーナーであるかにかかわらずメンバーを取得します。 (optional) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @return ApiResponse<Members> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listProjectMembersWithHttpInfo(String projectUuid, List userUuid, Boolean isOwner, Integer page, Integer perPage, String sort) throws ApiException { + okhttp3.Call localVarCall = listProjectMembersValidateBeforeCall(projectUuid, userUuid, isOwner, page, perPage, sort, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Project Members (asynchronously) + * プロジェクトメンバーリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param userUuid ユーザーのUUID (optional) + * @param isOwner * `true` を指定した場合、オーナーのみを取得します。 * `false` を指定した場合、オーナー以外を取得します。 * 指定を省略した場合、オーナーであるかにかかわらずメンバーを取得します。 (optional) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listProjectMembersAsync(String projectUuid, List userUuid, Boolean isOwner, Integer page, Integer perPage, String sort, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listProjectMembersValidateBeforeCall(projectUuid, userUuid, isOwner, page, perPage, sort, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for removeProjectMember + * @param projectUuid プロジェクトのUUID (required) + * @param userUuid (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
204 No Content -
403 Forbidden -
+ */ + public okhttp3.Call removeProjectMemberCall(String projectUuid, String userUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/projects/{project_uuid}/members/{user_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call removeProjectMemberValidateBeforeCall(String projectUuid, String userUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling removeProjectMember(Async)"); + } + + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling removeProjectMember(Async)"); + } + + return removeProjectMemberCall(projectUuid, userUuid, _callback); + + } + + /** + * Remove Project Member + * プロジェクトからメンバーを外します。 + * @param projectUuid プロジェクトのUUID (required) + * @param userUuid (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
204 No Content -
403 Forbidden -
+ */ + public void removeProjectMember(String projectUuid, String userUuid) throws ApiException { + removeProjectMemberWithHttpInfo(projectUuid, userUuid); + } + + /** + * Remove Project Member + * プロジェクトからメンバーを外します。 + * @param projectUuid プロジェクトのUUID (required) + * @param userUuid (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
204 No Content -
403 Forbidden -
+ */ + public ApiResponse removeProjectMemberWithHttpInfo(String projectUuid, String userUuid) throws ApiException { + okhttp3.Call localVarCall = removeProjectMemberValidateBeforeCall(projectUuid, userUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Remove Project Member (asynchronously) + * プロジェクトからメンバーを外します。 + * @param projectUuid プロジェクトのUUID (required) + * @param userUuid (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
204 No Content -
403 Forbidden -
+ */ + public okhttp3.Call removeProjectMemberAsync(String projectUuid, String userUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = removeProjectMemberValidateBeforeCall(projectUuid, userUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for removeProjectOwnerAttribute + * @param projectUuid プロジェクトのUUID (required) + * @param userUuid (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
204 No Content -
304 Not Modified -
403 Forbidden -
+ */ + public okhttp3.Call removeProjectOwnerAttributeCall(String projectUuid, String userUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/projects/{project_uuid}/members/{user_uuid}/owner" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call removeProjectOwnerAttributeValidateBeforeCall(String projectUuid, String userUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling removeProjectOwnerAttribute(Async)"); + } + + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling removeProjectOwnerAttribute(Async)"); + } + + return removeProjectOwnerAttributeCall(projectUuid, userUuid, _callback); + + } + + /** + * Remove Project Owner Attribute + * オーナー属性を取り除きます。 + * @param projectUuid プロジェクトのUUID (required) + * @param userUuid (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
204 No Content -
304 Not Modified -
403 Forbidden -
+ */ + public void removeProjectOwnerAttribute(String projectUuid, String userUuid) throws ApiException { + removeProjectOwnerAttributeWithHttpInfo(projectUuid, userUuid); + } + + /** + * Remove Project Owner Attribute + * オーナー属性を取り除きます。 + * @param projectUuid プロジェクトのUUID (required) + * @param userUuid (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
204 No Content -
304 Not Modified -
403 Forbidden -
+ */ + public ApiResponse removeProjectOwnerAttributeWithHttpInfo(String projectUuid, String userUuid) throws ApiException { + okhttp3.Call localVarCall = removeProjectOwnerAttributeValidateBeforeCall(projectUuid, userUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Remove Project Owner Attribute (asynchronously) + * オーナー属性を取り除きます。 + * @param projectUuid プロジェクトのUUID (required) + * @param userUuid (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
204 No Content -
304 Not Modified -
403 Forbidden -
+ */ + public okhttp3.Call removeProjectOwnerAttributeAsync(String projectUuid, String userUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = removeProjectOwnerAttributeValidateBeforeCall(projectUuid, userUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for updateProjectMember + * @param projectUuid プロジェクトのUUID (required) + * @param userUuid (required) + * @param updateProjectMemberRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateProjectMemberCall(String projectUuid, String userUuid, UpdateProjectMemberRequest updateProjectMemberRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateProjectMemberRequest; + + // create path and map variables + String localVarPath = "/auth/projects/{project_uuid}/members/{user_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateProjectMemberValidateBeforeCall(String projectUuid, String userUuid, UpdateProjectMemberRequest updateProjectMemberRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling updateProjectMember(Async)"); + } + + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling updateProjectMember(Async)"); + } + + return updateProjectMemberCall(projectUuid, userUuid, updateProjectMemberRequest, _callback); + + } + + /** + * Update Project Member + * プロジェクトメンバーを更新します。 + * @param projectUuid プロジェクトのUUID (required) + * @param userUuid (required) + * @param updateProjectMemberRequest (optional) + * @return Member + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Member updateProjectMember(String projectUuid, String userUuid, UpdateProjectMemberRequest updateProjectMemberRequest) throws ApiException { + ApiResponse localVarResp = updateProjectMemberWithHttpInfo(projectUuid, userUuid, updateProjectMemberRequest); + return localVarResp.getData(); + } + + /** + * Update Project Member + * プロジェクトメンバーを更新します。 + * @param projectUuid プロジェクトのUUID (required) + * @param userUuid (required) + * @param updateProjectMemberRequest (optional) + * @return ApiResponse<Member> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateProjectMemberWithHttpInfo(String projectUuid, String userUuid, UpdateProjectMemberRequest updateProjectMemberRequest) throws ApiException { + okhttp3.Call localVarCall = updateProjectMemberValidateBeforeCall(projectUuid, userUuid, updateProjectMemberRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Project Member (asynchronously) + * プロジェクトメンバーを更新します。 + * @param projectUuid プロジェクトのUUID (required) + * @param userUuid (required) + * @param updateProjectMemberRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateProjectMemberAsync(String projectUuid, String userUuid, UpdateProjectMemberRequest updateProjectMemberRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateProjectMemberValidateBeforeCall(projectUuid, userUuid, updateProjectMemberRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/intdash/src/main/java/com/aptpod/intdash/AuthProjectsApi.java b/intdash/src/main/java/com/aptpod/intdash/AuthProjectsApi.java new file mode 100644 index 0000000..f39a247 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/intdash/AuthProjectsApi.java @@ -0,0 +1,1024 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.intdash; + +import com.aptpod.ApiCallback; +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.ApiResponse; +import com.aptpod.Configuration; +import com.aptpod.Pair; +import com.aptpod.ProgressRequestBody; +import com.aptpod.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.openapitools.client.model.CreateProjectRequest; +import java.util.Date; +import org.openapitools.client.model.ErrorProblem; +import org.openapitools.client.model.Project; +import org.openapitools.client.model.Projects; +import org.openapitools.client.model.UpdateProjectRequest; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class AuthProjectsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public AuthProjectsApi() { + this(Configuration.getDefaultApiClient()); + } + + public AuthProjectsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for createProject + * @param groupUuid グループのUUID (required) + * @param createProjectRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
201 Created -
403 Forbidden -
409 Conflict -
+ */ + public okhttp3.Call createProjectCall(String groupUuid, CreateProjectRequest createProjectRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = createProjectRequest; + + // create path and map variables + String localVarPath = "/auth/groups/{group_uuid}/projects" + .replace("{" + "group_uuid" + "}", localVarApiClient.escapeString(groupUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createProjectValidateBeforeCall(String groupUuid, CreateProjectRequest createProjectRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'groupUuid' is set + if (groupUuid == null) { + throw new ApiException("Missing the required parameter 'groupUuid' when calling createProject(Async)"); + } + + return createProjectCall(groupUuid, createProjectRequest, _callback); + + } + + /** + * Create Project + * プロジェクトを作成します。 + * @param groupUuid グループのUUID (required) + * @param createProjectRequest (optional) + * @return Project + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
201 Created -
403 Forbidden -
409 Conflict -
+ */ + public Project createProject(String groupUuid, CreateProjectRequest createProjectRequest) throws ApiException { + ApiResponse localVarResp = createProjectWithHttpInfo(groupUuid, createProjectRequest); + return localVarResp.getData(); + } + + /** + * Create Project + * プロジェクトを作成します。 + * @param groupUuid グループのUUID (required) + * @param createProjectRequest (optional) + * @return ApiResponse<Project> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
201 Created -
403 Forbidden -
409 Conflict -
+ */ + public ApiResponse createProjectWithHttpInfo(String groupUuid, CreateProjectRequest createProjectRequest) throws ApiException { + okhttp3.Call localVarCall = createProjectValidateBeforeCall(groupUuid, createProjectRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Project (asynchronously) + * プロジェクトを作成します。 + * @param groupUuid グループのUUID (required) + * @param createProjectRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
201 Created -
403 Forbidden -
409 Conflict -
+ */ + public okhttp3.Call createProjectAsync(String groupUuid, CreateProjectRequest createProjectRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createProjectValidateBeforeCall(groupUuid, createProjectRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteProject + * @param projectUuid プロジェクトのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
204 No Content -
403 Forbidden -
+ */ + public okhttp3.Call deleteProjectCall(String projectUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/projects/{project_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteProjectValidateBeforeCall(String projectUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling deleteProject(Async)"); + } + + return deleteProjectCall(projectUuid, _callback); + + } + + /** + * Delete Project + * プロジェクトを削除します。プロジェクトを削除できるのはプロジェクトのオーナーのみです。 + * @param projectUuid プロジェクトのUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
204 No Content -
403 Forbidden -
+ */ + public void deleteProject(String projectUuid) throws ApiException { + deleteProjectWithHttpInfo(projectUuid); + } + + /** + * Delete Project + * プロジェクトを削除します。プロジェクトを削除できるのはプロジェクトのオーナーのみです。 + * @param projectUuid プロジェクトのUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
204 No Content -
403 Forbidden -
+ */ + public ApiResponse deleteProjectWithHttpInfo(String projectUuid) throws ApiException { + okhttp3.Call localVarCall = deleteProjectValidateBeforeCall(projectUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete Project (asynchronously) + * プロジェクトを削除します。プロジェクトを削除できるのはプロジェクトのオーナーのみです。 + * @param projectUuid プロジェクトのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
204 No Content -
403 Forbidden -
+ */ + public okhttp3.Call deleteProjectAsync(String projectUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteProjectValidateBeforeCall(projectUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getProject + * @param projectUuid プロジェクトのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectCall(String projectUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/projects/{project_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getProjectValidateBeforeCall(String projectUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling getProject(Async)"); + } + + return getProjectCall(projectUuid, _callback); + + } + + /** + * Get Project + * プロジェクトを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @return Project + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Project getProject(String projectUuid) throws ApiException { + ApiResponse localVarResp = getProjectWithHttpInfo(projectUuid); + return localVarResp.getData(); + } + + /** + * Get Project + * プロジェクトを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @return ApiResponse<Project> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getProjectWithHttpInfo(String projectUuid) throws ApiException { + okhttp3.Call localVarCall = getProjectValidateBeforeCall(projectUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Project (asynchronously) + * プロジェクトを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectAsync(String projectUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getProjectValidateBeforeCall(projectUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listGroupProjects + * @param groupUuid グループのUUID (required) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listGroupProjectsCall(String groupUuid, Integer page, Integer perPage, String sort, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/groups/{group_uuid}/projects" + .replace("{" + "group_uuid" + "}", localVarApiClient.escapeString(groupUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listGroupProjectsValidateBeforeCall(String groupUuid, Integer page, Integer perPage, String sort, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'groupUuid' is set + if (groupUuid == null) { + throw new ApiException("Missing the required parameter 'groupUuid' when calling listGroupProjects(Async)"); + } + + return listGroupProjectsCall(groupUuid, page, perPage, sort, _callback); + + } + + /** + * List Group Projects + * プロジェクトのリストを取得します。 + * @param groupUuid グループのUUID (required) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @return Projects + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Projects listGroupProjects(String groupUuid, Integer page, Integer perPage, String sort) throws ApiException { + ApiResponse localVarResp = listGroupProjectsWithHttpInfo(groupUuid, page, perPage, sort); + return localVarResp.getData(); + } + + /** + * List Group Projects + * プロジェクトのリストを取得します。 + * @param groupUuid グループのUUID (required) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @return ApiResponse<Projects> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listGroupProjectsWithHttpInfo(String groupUuid, Integer page, Integer perPage, String sort) throws ApiException { + okhttp3.Call localVarCall = listGroupProjectsValidateBeforeCall(groupUuid, page, perPage, sort, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Group Projects (asynchronously) + * プロジェクトのリストを取得します。 + * @param groupUuid グループのUUID (required) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listGroupProjectsAsync(String groupUuid, Integer page, Integer perPage, String sort, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listGroupProjectsValidateBeforeCall(groupUuid, page, perPage, sort, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listMyProjects + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listMyProjectsCall(Integer page, Integer perPage, String sort, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/me/projects"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listMyProjectsValidateBeforeCall(Integer page, Integer perPage, String sort, final ApiCallback _callback) throws ApiException { + return listMyProjectsCall(page, perPage, sort, _callback); + + } + + /** + * List My Projects + * 自分(ユーザー)が所属するプロジェクトのリストを取得します。 + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @return Projects + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Projects listMyProjects(Integer page, Integer perPage, String sort) throws ApiException { + ApiResponse localVarResp = listMyProjectsWithHttpInfo(page, perPage, sort); + return localVarResp.getData(); + } + + /** + * List My Projects + * 自分(ユーザー)が所属するプロジェクトのリストを取得します。 + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @return ApiResponse<Projects> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listMyProjectsWithHttpInfo(Integer page, Integer perPage, String sort) throws ApiException { + okhttp3.Call localVarCall = listMyProjectsValidateBeforeCall(page, perPage, sort, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List My Projects (asynchronously) + * 自分(ユーザー)が所属するプロジェクトのリストを取得します。 + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listMyProjectsAsync(Integer page, Integer perPage, String sort, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listMyProjectsValidateBeforeCall(page, perPage, sort, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listProjects + * @param sinceCreatedAt 指定した時刻より後に作成されたリソースを取得します。 (optional) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listProjectsCall(Date sinceCreatedAt, Integer page, Integer perPage, String sort, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/projects"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (sinceCreatedAt != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("since_created_at", sinceCreatedAt)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listProjectsValidateBeforeCall(Date sinceCreatedAt, Integer page, Integer perPage, String sort, final ApiCallback _callback) throws ApiException { + return listProjectsCall(sinceCreatedAt, page, perPage, sort, _callback); + + } + + /** + * List Projects + * プロジェクトのリストを取得します。 + * @param sinceCreatedAt 指定した時刻より後に作成されたリソースを取得します。 (optional) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @return Projects + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Projects listProjects(Date sinceCreatedAt, Integer page, Integer perPage, String sort) throws ApiException { + ApiResponse localVarResp = listProjectsWithHttpInfo(sinceCreatedAt, page, perPage, sort); + return localVarResp.getData(); + } + + /** + * List Projects + * プロジェクトのリストを取得します。 + * @param sinceCreatedAt 指定した時刻より後に作成されたリソースを取得します。 (optional) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @return ApiResponse<Projects> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listProjectsWithHttpInfo(Date sinceCreatedAt, Integer page, Integer perPage, String sort) throws ApiException { + okhttp3.Call localVarCall = listProjectsValidateBeforeCall(sinceCreatedAt, page, perPage, sort, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Projects (asynchronously) + * プロジェクトのリストを取得します。 + * @param sinceCreatedAt 指定した時刻より後に作成されたリソースを取得します。 (optional) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listProjectsAsync(Date sinceCreatedAt, Integer page, Integer perPage, String sort, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listProjectsValidateBeforeCall(sinceCreatedAt, page, perPage, sort, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateProject + * @param projectUuid プロジェクトのUUID (required) + * @param updateProjectRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
409 Conflict -
+ */ + public okhttp3.Call updateProjectCall(String projectUuid, UpdateProjectRequest updateProjectRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateProjectRequest; + + // create path and map variables + String localVarPath = "/auth/projects/{project_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateProjectValidateBeforeCall(String projectUuid, UpdateProjectRequest updateProjectRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling updateProject(Async)"); + } + + return updateProjectCall(projectUuid, updateProjectRequest, _callback); + + } + + /** + * Update Project + * プロジェクトを更新します。 + * @param projectUuid プロジェクトのUUID (required) + * @param updateProjectRequest (optional) + * @return Project + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
409 Conflict -
+ */ + public Project updateProject(String projectUuid, UpdateProjectRequest updateProjectRequest) throws ApiException { + ApiResponse localVarResp = updateProjectWithHttpInfo(projectUuid, updateProjectRequest); + return localVarResp.getData(); + } + + /** + * Update Project + * プロジェクトを更新します。 + * @param projectUuid プロジェクトのUUID (required) + * @param updateProjectRequest (optional) + * @return ApiResponse<Project> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
409 Conflict -
+ */ + public ApiResponse updateProjectWithHttpInfo(String projectUuid, UpdateProjectRequest updateProjectRequest) throws ApiException { + okhttp3.Call localVarCall = updateProjectValidateBeforeCall(projectUuid, updateProjectRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Project (asynchronously) + * プロジェクトを更新します。 + * @param projectUuid プロジェクトのUUID (required) + * @param updateProjectRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
409 Conflict -
+ */ + public okhttp3.Call updateProjectAsync(String projectUuid, UpdateProjectRequest updateProjectRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateProjectValidateBeforeCall(projectUuid, updateProjectRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/intdash/src/main/java/com/aptpod/intdash/AuthRolesApi.java b/intdash/src/main/java/com/aptpod/intdash/AuthRolesApi.java new file mode 100644 index 0000000..c2e32f9 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/intdash/AuthRolesApi.java @@ -0,0 +1,350 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.intdash; + +import com.aptpod.ApiCallback; +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.ApiResponse; +import com.aptpod.Configuration; +import com.aptpod.Pair; +import com.aptpod.ProgressRequestBody; +import com.aptpod.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.openapitools.client.model.ErrorProblem; +import org.openapitools.client.model.Role; +import org.openapitools.client.model.Roles; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class AuthRolesApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public AuthRolesApi() { + this(Configuration.getDefaultApiClient()); + } + + public AuthRolesApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for getRole + * @param roleUuid ロールのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getRoleCall(String roleUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/roles/{role_uuid}" + .replace("{" + "role_uuid" + "}", localVarApiClient.escapeString(roleUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getRoleValidateBeforeCall(String roleUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'roleUuid' is set + if (roleUuid == null) { + throw new ApiException("Missing the required parameter 'roleUuid' when calling getRole(Async)"); + } + + return getRoleCall(roleUuid, _callback); + + } + + /** + * Get Role + * ロールを取得します。 + * @param roleUuid ロールのUUID (required) + * @return Role + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Role getRole(String roleUuid) throws ApiException { + ApiResponse localVarResp = getRoleWithHttpInfo(roleUuid); + return localVarResp.getData(); + } + + /** + * Get Role + * ロールを取得します。 + * @param roleUuid ロールのUUID (required) + * @return ApiResponse<Role> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getRoleWithHttpInfo(String roleUuid) throws ApiException { + okhttp3.Call localVarCall = getRoleValidateBeforeCall(roleUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Role (asynchronously) + * ロールを取得します。 + * @param roleUuid ロールのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getRoleAsync(String roleUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getRoleValidateBeforeCall(roleUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listRoles + * @param uuid ロールのUUID (optional) + * @param name ロールの名前による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 (optional) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public okhttp3.Call listRolesCall(List uuid, List name, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/roles"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (uuid != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "uuid", uuid)); + } + + if (name != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "name", name)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listRolesValidateBeforeCall(List uuid, List name, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + return listRolesCall(uuid, name, page, perPage, _callback); + + } + + /** + * List Roles + * ロールのリストを取得します。 + * @param uuid ロールのUUID (optional) + * @param name ロールの名前による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 (optional) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @return Roles + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public Roles listRoles(List uuid, List name, Integer page, Integer perPage) throws ApiException { + ApiResponse localVarResp = listRolesWithHttpInfo(uuid, name, page, perPage); + return localVarResp.getData(); + } + + /** + * List Roles + * ロールのリストを取得します。 + * @param uuid ロールのUUID (optional) + * @param name ロールの名前による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 (optional) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @return ApiResponse<Roles> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public ApiResponse listRolesWithHttpInfo(List uuid, List name, Integer page, Integer perPage) throws ApiException { + okhttp3.Call localVarCall = listRolesValidateBeforeCall(uuid, name, page, perPage, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Roles (asynchronously) + * ロールのリストを取得します。 + * @param uuid ロールのUUID (optional) + * @param name ロールの名前による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 (optional) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public okhttp3.Call listRolesAsync(List uuid, List name, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listRolesValidateBeforeCall(uuid, name, page, perPage, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/intdash/src/main/java/com/aptpod/intdash/AuthScopesApi.java b/intdash/src/main/java/com/aptpod/intdash/AuthScopesApi.java new file mode 100644 index 0000000..f834cab --- /dev/null +++ b/intdash/src/main/java/com/aptpod/intdash/AuthScopesApi.java @@ -0,0 +1,350 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.intdash; + +import com.aptpod.ApiCallback; +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.ApiResponse; +import com.aptpod.Configuration; +import com.aptpod.Pair; +import com.aptpod.ProgressRequestBody; +import com.aptpod.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.openapitools.client.model.ErrorProblem; +import org.openapitools.client.model.Scope; +import org.openapitools.client.model.Scopes; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class AuthScopesApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public AuthScopesApi() { + this(Configuration.getDefaultApiClient()); + } + + public AuthScopesApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for getScope + * @param scopeUuid The Scope UUID. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getScopeCall(String scopeUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/scopes/{scope_uuid}" + .replace("{" + "scope_uuid" + "}", localVarApiClient.escapeString(scopeUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getScopeValidateBeforeCall(String scopeUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'scopeUuid' is set + if (scopeUuid == null) { + throw new ApiException("Missing the required parameter 'scopeUuid' when calling getScope(Async)"); + } + + return getScopeCall(scopeUuid, _callback); + + } + + /** + * Get Scope + * スコープを取得します。 + * @param scopeUuid The Scope UUID. (required) + * @return Scope + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Scope getScope(String scopeUuid) throws ApiException { + ApiResponse localVarResp = getScopeWithHttpInfo(scopeUuid); + return localVarResp.getData(); + } + + /** + * Get Scope + * スコープを取得します。 + * @param scopeUuid The Scope UUID. (required) + * @return ApiResponse<Scope> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getScopeWithHttpInfo(String scopeUuid) throws ApiException { + okhttp3.Call localVarCall = getScopeValidateBeforeCall(scopeUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Scope (asynchronously) + * スコープを取得します。 + * @param scopeUuid The Scope UUID. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getScopeAsync(String scopeUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getScopeValidateBeforeCall(scopeUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listScopes + * @param uuid スコープのUUID (optional) + * @param name スコープの名前による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 (optional) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public okhttp3.Call listScopesCall(List uuid, List name, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/scopes"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (uuid != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "uuid", uuid)); + } + + if (name != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "name", name)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listScopesValidateBeforeCall(List uuid, List name, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + return listScopesCall(uuid, name, page, perPage, _callback); + + } + + /** + * List Scopes + * スコープのリストを取得します。 + * @param uuid スコープのUUID (optional) + * @param name スコープの名前による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 (optional) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @return Scopes + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public Scopes listScopes(List uuid, List name, Integer page, Integer perPage) throws ApiException { + ApiResponse localVarResp = listScopesWithHttpInfo(uuid, name, page, perPage); + return localVarResp.getData(); + } + + /** + * List Scopes + * スコープのリストを取得します。 + * @param uuid スコープのUUID (optional) + * @param name スコープの名前による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 (optional) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @return ApiResponse<Scopes> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public ApiResponse listScopesWithHttpInfo(List uuid, List name, Integer page, Integer perPage) throws ApiException { + okhttp3.Call localVarCall = listScopesValidateBeforeCall(uuid, name, page, perPage, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Scopes (asynchronously) + * スコープのリストを取得します。 + * @param uuid スコープのUUID (optional) + * @param name スコープの名前による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 (optional) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public okhttp3.Call listScopesAsync(List uuid, List name, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listScopesValidateBeforeCall(uuid, name, page, perPage, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/intdash/src/main/java/com/aptpod/intdash/AuthUsersApi.java b/intdash/src/main/java/com/aptpod/intdash/AuthUsersApi.java new file mode 100644 index 0000000..1fe5f43 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/intdash/AuthUsersApi.java @@ -0,0 +1,3019 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.intdash; + +import com.aptpod.ApiCallback; +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.ApiResponse; +import com.aptpod.Configuration; +import com.aptpod.Pair; +import com.aptpod.ProgressRequestBody; +import com.aptpod.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.openapitools.client.model.APITokenIntrospectionRequest; +import org.openapitools.client.model.APITokenIntrospectionResponse; +import org.openapitools.client.model.CreateEmailRequest; +import org.openapitools.client.model.CreateUserAPITokenRequest; +import org.openapitools.client.model.CreateUserRequest; +import org.openapitools.client.model.ErrorProblem; +import org.openapitools.client.model.PatchEmailRequest; +import org.openapitools.client.model.PatchUserRequest; +import org.openapitools.client.model.Role; +import org.openapitools.client.model.Roles; +import org.openapitools.client.model.UpdateEmailVerifiedRequest; +import org.openapitools.client.model.UpdateUserAPITokenRequest; +import org.openapitools.client.model.User; +import org.openapitools.client.model.UserAPIToken; +import org.openapitools.client.model.UserAPITokens; +import org.openapitools.client.model.UserEmail; +import org.openapitools.client.model.UserEmailVerification; +import org.openapitools.client.model.UserPassword; +import org.openapitools.client.model.Users; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class AuthUsersApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public AuthUsersApi() { + this(Configuration.getDefaultApiClient()); + } + + public AuthUsersApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for assignRole + * @param userUuid (required) + * @param roleUuid ロールのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
304 Not Modified -
+ */ + public okhttp3.Call assignRoleCall(String userUuid, String roleUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/{user_uuid}/roles/{role_uuid}" + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())) + .replace("{" + "role_uuid" + "}", localVarApiClient.escapeString(roleUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call assignRoleValidateBeforeCall(String userUuid, String roleUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling assignRole(Async)"); + } + + // verify the required parameter 'roleUuid' is set + if (roleUuid == null) { + throw new ApiException("Missing the required parameter 'roleUuid' when calling assignRole(Async)"); + } + + return assignRoleCall(userUuid, roleUuid, _callback); + + } + + /** + * Assign Role + * ユーザーにロールを割り当てます。 + * @param userUuid (required) + * @param roleUuid ロールのUUID (required) + * @return Role + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
304 Not Modified -
+ */ + public Role assignRole(String userUuid, String roleUuid) throws ApiException { + ApiResponse localVarResp = assignRoleWithHttpInfo(userUuid, roleUuid); + return localVarResp.getData(); + } + + /** + * Assign Role + * ユーザーにロールを割り当てます。 + * @param userUuid (required) + * @param roleUuid ロールのUUID (required) + * @return ApiResponse<Role> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
304 Not Modified -
+ */ + public ApiResponse assignRoleWithHttpInfo(String userUuid, String roleUuid) throws ApiException { + okhttp3.Call localVarCall = assignRoleValidateBeforeCall(userUuid, roleUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Assign Role (asynchronously) + * ユーザーにロールを割り当てます。 + * @param userUuid (required) + * @param roleUuid ロールのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
304 Not Modified -
+ */ + public okhttp3.Call assignRoleAsync(String userUuid, String roleUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = assignRoleValidateBeforeCall(userUuid, roleUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createAPIToken + * @param userUuid (required) + * @param createUserAPITokenRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
409 Conflict -
+ */ + public okhttp3.Call createAPITokenCall(String userUuid, CreateUserAPITokenRequest createUserAPITokenRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = createUserAPITokenRequest; + + // create path and map variables + String localVarPath = "/auth/users/{user_uuid}/tokens" + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createAPITokenValidateBeforeCall(String userUuid, CreateUserAPITokenRequest createUserAPITokenRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling createAPIToken(Async)"); + } + + return createAPITokenCall(userUuid, createUserAPITokenRequest, _callback); + + } + + /** + * Create API Token + * ユーザーのAPIトークンを作成します。 + * @param userUuid (required) + * @param createUserAPITokenRequest (optional) + * @return UserAPIToken + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
409 Conflict -
+ */ + public UserAPIToken createAPIToken(String userUuid, CreateUserAPITokenRequest createUserAPITokenRequest) throws ApiException { + ApiResponse localVarResp = createAPITokenWithHttpInfo(userUuid, createUserAPITokenRequest); + return localVarResp.getData(); + } + + /** + * Create API Token + * ユーザーのAPIトークンを作成します。 + * @param userUuid (required) + * @param createUserAPITokenRequest (optional) + * @return ApiResponse<UserAPIToken> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
409 Conflict -
+ */ + public ApiResponse createAPITokenWithHttpInfo(String userUuid, CreateUserAPITokenRequest createUserAPITokenRequest) throws ApiException { + okhttp3.Call localVarCall = createAPITokenValidateBeforeCall(userUuid, createUserAPITokenRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create API Token (asynchronously) + * ユーザーのAPIトークンを作成します。 + * @param userUuid (required) + * @param createUserAPITokenRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
409 Conflict -
+ */ + public okhttp3.Call createAPITokenAsync(String userUuid, CreateUserAPITokenRequest createUserAPITokenRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createAPITokenValidateBeforeCall(userUuid, createUserAPITokenRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createEmail + * @param userUuid (required) + * @param createEmailRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
409 Conflict -
+ */ + public okhttp3.Call createEmailCall(String userUuid, CreateEmailRequest createEmailRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = createEmailRequest; + + // create path and map variables + String localVarPath = "/auth/users/{user_uuid}/emails" + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createEmailValidateBeforeCall(String userUuid, CreateEmailRequest createEmailRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling createEmail(Async)"); + } + + return createEmailCall(userUuid, createEmailRequest, _callback); + + } + + /** + * Create Email + * ユーザーのメールアドレスを設定します。 メールアドレスの設定が成功すると、確認用URLを含むメールがそのアドレスに送信されます。 確認用URLには、メールアドレス確認用トークンとメールアドレスのIDが含まれます。 + * @param userUuid (required) + * @param createEmailRequest (optional) + * @return UserEmail + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
409 Conflict -
+ */ + public UserEmail createEmail(String userUuid, CreateEmailRequest createEmailRequest) throws ApiException { + ApiResponse localVarResp = createEmailWithHttpInfo(userUuid, createEmailRequest); + return localVarResp.getData(); + } + + /** + * Create Email + * ユーザーのメールアドレスを設定します。 メールアドレスの設定が成功すると、確認用URLを含むメールがそのアドレスに送信されます。 確認用URLには、メールアドレス確認用トークンとメールアドレスのIDが含まれます。 + * @param userUuid (required) + * @param createEmailRequest (optional) + * @return ApiResponse<UserEmail> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
409 Conflict -
+ */ + public ApiResponse createEmailWithHttpInfo(String userUuid, CreateEmailRequest createEmailRequest) throws ApiException { + okhttp3.Call localVarCall = createEmailValidateBeforeCall(userUuid, createEmailRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Email (asynchronously) + * ユーザーのメールアドレスを設定します。 メールアドレスの設定が成功すると、確認用URLを含むメールがそのアドレスに送信されます。 確認用URLには、メールアドレス確認用トークンとメールアドレスのIDが含まれます。 + * @param userUuid (required) + * @param createEmailRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
409 Conflict -
+ */ + public okhttp3.Call createEmailAsync(String userUuid, CreateEmailRequest createEmailRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createEmailValidateBeforeCall(userUuid, createEmailRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createTemporaryPassword + * @param userUuid (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createTemporaryPasswordCall(String userUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/{user_uuid}/password" + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createTemporaryPasswordValidateBeforeCall(String userUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling createTemporaryPassword(Async)"); + } + + return createTemporaryPasswordCall(userUuid, _callback); + + } + + /** + * Create Temporary Password + * ユーザーのパスワードを、ランダムな一時パスワードに変更します。 + * @param userUuid (required) + * @return UserPassword + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public UserPassword createTemporaryPassword(String userUuid) throws ApiException { + ApiResponse localVarResp = createTemporaryPasswordWithHttpInfo(userUuid); + return localVarResp.getData(); + } + + /** + * Create Temporary Password + * ユーザーのパスワードを、ランダムな一時パスワードに変更します。 + * @param userUuid (required) + * @return ApiResponse<UserPassword> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse createTemporaryPasswordWithHttpInfo(String userUuid) throws ApiException { + okhttp3.Call localVarCall = createTemporaryPasswordValidateBeforeCall(userUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Temporary Password (asynchronously) + * ユーザーのパスワードを、ランダムな一時パスワードに変更します。 + * @param userUuid (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createTemporaryPasswordAsync(String userUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createTemporaryPasswordValidateBeforeCall(userUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createUser + * @param createUserRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
409 Conflict -
+ */ + public okhttp3.Call createUserCall(CreateUserRequest createUserRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = createUserRequest; + + // create path and map variables + String localVarPath = "/auth/users"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createUserValidateBeforeCall(CreateUserRequest createUserRequest, final ApiCallback _callback) throws ApiException { + return createUserCall(createUserRequest, _callback); + + } + + /** + * Create User + * ユーザーを作成します。新しいユーザーには自動生成された一時パスワードが設定されます。 ユーザー作成のリクエストにメールアドレス( `email` )が含まれていた場合は、 そのメールアドレスに確認メールが送信されます。 + * @param createUserRequest (optional) + * @return User + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
409 Conflict -
+ */ + public User createUser(CreateUserRequest createUserRequest) throws ApiException { + ApiResponse localVarResp = createUserWithHttpInfo(createUserRequest); + return localVarResp.getData(); + } + + /** + * Create User + * ユーザーを作成します。新しいユーザーには自動生成された一時パスワードが設定されます。 ユーザー作成のリクエストにメールアドレス( `email` )が含まれていた場合は、 そのメールアドレスに確認メールが送信されます。 + * @param createUserRequest (optional) + * @return ApiResponse<User> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
409 Conflict -
+ */ + public ApiResponse createUserWithHttpInfo(CreateUserRequest createUserRequest) throws ApiException { + okhttp3.Call localVarCall = createUserValidateBeforeCall(createUserRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create User (asynchronously) + * ユーザーを作成します。新しいユーザーには自動生成された一時パスワードが設定されます。 ユーザー作成のリクエストにメールアドレス( `email` )が含まれていた場合は、 そのメールアドレスに確認メールが送信されます。 + * @param createUserRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
409 Conflict -
+ */ + public okhttp3.Call createUserAsync(CreateUserRequest createUserRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createUserValidateBeforeCall(createUserRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteAPIToken + * @param userUuid (required) + * @param userApiTokenId APIトークンのID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteAPITokenCall(String userUuid, Long userApiTokenId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/{user_uuid}/tokens/{user_api_token_id}" + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())) + .replace("{" + "user_api_token_id" + "}", localVarApiClient.escapeString(userApiTokenId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteAPITokenValidateBeforeCall(String userUuid, Long userApiTokenId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling deleteAPIToken(Async)"); + } + + // verify the required parameter 'userApiTokenId' is set + if (userApiTokenId == null) { + throw new ApiException("Missing the required parameter 'userApiTokenId' when calling deleteAPIToken(Async)"); + } + + return deleteAPITokenCall(userUuid, userApiTokenId, _callback); + + } + + /** + * Delete API Token + * ユーザーのAPIトークンを削除します。 + * @param userUuid (required) + * @param userApiTokenId APIトークンのID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void deleteAPIToken(String userUuid, Long userApiTokenId) throws ApiException { + deleteAPITokenWithHttpInfo(userUuid, userApiTokenId); + } + + /** + * Delete API Token + * ユーザーのAPIトークンを削除します。 + * @param userUuid (required) + * @param userApiTokenId APIトークンのID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse deleteAPITokenWithHttpInfo(String userUuid, Long userApiTokenId) throws ApiException { + okhttp3.Call localVarCall = deleteAPITokenValidateBeforeCall(userUuid, userApiTokenId, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete API Token (asynchronously) + * ユーザーのAPIトークンを削除します。 + * @param userUuid (required) + * @param userApiTokenId APIトークンのID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteAPITokenAsync(String userUuid, Long userApiTokenId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteAPITokenValidateBeforeCall(userUuid, userApiTokenId, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteEmail + * @param userUuid (required) + * @param userEmailId ユーザーのメールアドレスのID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteEmailCall(String userUuid, Long userEmailId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/{user_uuid}/emails/{user_email_id}" + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())) + .replace("{" + "user_email_id" + "}", localVarApiClient.escapeString(userEmailId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteEmailValidateBeforeCall(String userUuid, Long userEmailId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling deleteEmail(Async)"); + } + + // verify the required parameter 'userEmailId' is set + if (userEmailId == null) { + throw new ApiException("Missing the required parameter 'userEmailId' when calling deleteEmail(Async)"); + } + + return deleteEmailCall(userUuid, userEmailId, _callback); + + } + + /** + * Delete Email + * ユーザーのメールアドレスを削除します。 + * @param userUuid (required) + * @param userEmailId ユーザーのメールアドレスのID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void deleteEmail(String userUuid, Long userEmailId) throws ApiException { + deleteEmailWithHttpInfo(userUuid, userEmailId); + } + + /** + * Delete Email + * ユーザーのメールアドレスを削除します。 + * @param userUuid (required) + * @param userEmailId ユーザーのメールアドレスのID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse deleteEmailWithHttpInfo(String userUuid, Long userEmailId) throws ApiException { + okhttp3.Call localVarCall = deleteEmailValidateBeforeCall(userUuid, userEmailId, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete Email (asynchronously) + * ユーザーのメールアドレスを削除します。 + * @param userUuid (required) + * @param userEmailId ユーザーのメールアドレスのID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteEmailAsync(String userUuid, Long userEmailId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteEmailValidateBeforeCall(userUuid, userEmailId, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteUser + * @param userUuid (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
204 No Content -
403 Forbidden -
+ */ + public okhttp3.Call deleteUserCall(String userUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/{user_uuid}" + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteUserValidateBeforeCall(String userUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling deleteUser(Async)"); + } + + return deleteUserCall(userUuid, _callback); + + } + + /** + * Delete User + * ユーザーを削除します。 + * @param userUuid (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
204 No Content -
403 Forbidden -
+ */ + public void deleteUser(String userUuid) throws ApiException { + deleteUserWithHttpInfo(userUuid); + } + + /** + * Delete User + * ユーザーを削除します。 + * @param userUuid (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
204 No Content -
403 Forbidden -
+ */ + public ApiResponse deleteUserWithHttpInfo(String userUuid) throws ApiException { + okhttp3.Call localVarCall = deleteUserValidateBeforeCall(userUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete User (asynchronously) + * ユーザーを削除します。 + * @param userUuid (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
204 No Content -
403 Forbidden -
+ */ + public okhttp3.Call deleteUserAsync(String userUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteUserValidateBeforeCall(userUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for disableUser + * @param userUuid (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
403 Forbidden -
+ */ + public okhttp3.Call disableUserCall(String userUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/{user_uuid}/disable" + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call disableUserValidateBeforeCall(String userUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling disableUser(Async)"); + } + + return disableUserCall(userUuid, _callback); + + } + + /** + * Disable User + * ユーザーを無効化します。 + * @param userUuid (required) + * @return User + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
403 Forbidden -
+ */ + public User disableUser(String userUuid) throws ApiException { + ApiResponse localVarResp = disableUserWithHttpInfo(userUuid); + return localVarResp.getData(); + } + + /** + * Disable User + * ユーザーを無効化します。 + * @param userUuid (required) + * @return ApiResponse<User> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
403 Forbidden -
+ */ + public ApiResponse disableUserWithHttpInfo(String userUuid) throws ApiException { + okhttp3.Call localVarCall = disableUserValidateBeforeCall(userUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Disable User (asynchronously) + * ユーザーを無効化します。 + * @param userUuid (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
403 Forbidden -
+ */ + public okhttp3.Call disableUserAsync(String userUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = disableUserValidateBeforeCall(userUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for enableUser + * @param userUuid (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
403 Forbidden -
+ */ + public okhttp3.Call enableUserCall(String userUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/{user_uuid}/enable" + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call enableUserValidateBeforeCall(String userUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling enableUser(Async)"); + } + + return enableUserCall(userUuid, _callback); + + } + + /** + * Enable User + * ユーザーを有効化します。 + * @param userUuid (required) + * @return User + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
403 Forbidden -
+ */ + public User enableUser(String userUuid) throws ApiException { + ApiResponse localVarResp = enableUserWithHttpInfo(userUuid); + return localVarResp.getData(); + } + + /** + * Enable User + * ユーザーを有効化します。 + * @param userUuid (required) + * @return ApiResponse<User> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
403 Forbidden -
+ */ + public ApiResponse enableUserWithHttpInfo(String userUuid) throws ApiException { + okhttp3.Call localVarCall = enableUserValidateBeforeCall(userUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Enable User (asynchronously) + * ユーザーを有効化します。 + * @param userUuid (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
403 Forbidden -
+ */ + public okhttp3.Call enableUserAsync(String userUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = enableUserValidateBeforeCall(userUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getUser + * @param userUuid (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getUserCall(String userUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/{user_uuid}" + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getUserValidateBeforeCall(String userUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling getUser(Async)"); + } + + return getUserCall(userUuid, _callback); + + } + + /** + * Get User + * ユーザーを取得します。 + * @param userUuid (required) + * @return User + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public User getUser(String userUuid) throws ApiException { + ApiResponse localVarResp = getUserWithHttpInfo(userUuid); + return localVarResp.getData(); + } + + /** + * Get User + * ユーザーを取得します。 + * @param userUuid (required) + * @return ApiResponse<User> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getUserWithHttpInfo(String userUuid) throws ApiException { + okhttp3.Call localVarCall = getUserValidateBeforeCall(userUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get User (asynchronously) + * ユーザーを取得します。 + * @param userUuid (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getUserAsync(String userUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getUserValidateBeforeCall(userUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for introspectAPIToken + * @param apITokenIntrospectionRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call introspectAPITokenCall(APITokenIntrospectionRequest apITokenIntrospectionRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = apITokenIntrospectionRequest; + + // create path and map variables + String localVarPath = "/auth/users/tokens/introspection"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json; charset=utf-8" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call introspectAPITokenValidateBeforeCall(APITokenIntrospectionRequest apITokenIntrospectionRequest, final ApiCallback _callback) throws ApiException { + return introspectAPITokenCall(apITokenIntrospectionRequest, _callback); + + } + + /** + * Introspect API Token + * APIトークンの検証を行います。 + * @param apITokenIntrospectionRequest (optional) + * @return APITokenIntrospectionResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public APITokenIntrospectionResponse introspectAPIToken(APITokenIntrospectionRequest apITokenIntrospectionRequest) throws ApiException { + ApiResponse localVarResp = introspectAPITokenWithHttpInfo(apITokenIntrospectionRequest); + return localVarResp.getData(); + } + + /** + * Introspect API Token + * APIトークンの検証を行います。 + * @param apITokenIntrospectionRequest (optional) + * @return ApiResponse<APITokenIntrospectionResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse introspectAPITokenWithHttpInfo(APITokenIntrospectionRequest apITokenIntrospectionRequest) throws ApiException { + okhttp3.Call localVarCall = introspectAPITokenValidateBeforeCall(apITokenIntrospectionRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Introspect API Token (asynchronously) + * APIトークンの検証を行います。 + * @param apITokenIntrospectionRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call introspectAPITokenAsync(APITokenIntrospectionRequest apITokenIntrospectionRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = introspectAPITokenValidateBeforeCall(apITokenIntrospectionRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listAPITokens + * @param userUuid (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listAPITokensCall(String userUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/{user_uuid}/tokens" + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listAPITokensValidateBeforeCall(String userUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling listAPITokens(Async)"); + } + + return listAPITokensCall(userUuid, _callback); + + } + + /** + * List API Tokens + * ユーザーのAPIトークンのリストを取得します。 + * @param userUuid (required) + * @return UserAPITokens + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public UserAPITokens listAPITokens(String userUuid) throws ApiException { + ApiResponse localVarResp = listAPITokensWithHttpInfo(userUuid); + return localVarResp.getData(); + } + + /** + * List API Tokens + * ユーザーのAPIトークンのリストを取得します。 + * @param userUuid (required) + * @return ApiResponse<UserAPITokens> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listAPITokensWithHttpInfo(String userUuid) throws ApiException { + okhttp3.Call localVarCall = listAPITokensValidateBeforeCall(userUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List API Tokens (asynchronously) + * ユーザーのAPIトークンのリストを取得します。 + * @param userUuid (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listAPITokensAsync(String userUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listAPITokensValidateBeforeCall(userUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listUsers + * @param uuid ユーザーのUUID (optional) + * @param roleUuid ロールのUUID (optional) + * @param name ユーザーの名前による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 (optional) + * @param nickname ユーザーの表示名による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 (optional) + * @param email メールアドレスによる部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 (optional) + * @param disabled * `true` を指定した場合、無効化されているユーザーのみを取得します。 * `false` を指定した場合、有効なユーザーのみを取得します。 * 指定を省略した場合、有効/無効にかかわらずユーザーを取得します。 (optional) + * @param isSuper * `true` を指定した場合、スーパーユーザーのみを取得します。 * `false` を指定した場合、スーパーユーザー以外を取得します。 * 指定を省略した場合、スーパーユーザーであるかにかかわらずユーザーを取得します。 (optional) + * @param isTemporary * `true` を指定した場合、一時パスワードを使用しているユーザーのみを取得します。 * `false` を指定した場合、パスワードを設定済みのユーザーのみを取得します。 * 指定を省略した場合、一時パスワードを使用しているかにかかわらずユーザーを取得します。 (optional) + * @param minSignInAttemptCount ログイン失敗回数の最小値。ログイン失敗回数がこの数値以上のユーザーを取得します。 (optional) + * @param maxSignInAttemptCount ログイン失敗回数の最大値。ログイン失敗回数がこの数値以下のユーザーを取得します。 (optional) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 - name - created_at - updated_at - last_sign_in_at (optional, default to name+) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listUsersCall(List uuid, List roleUuid, List name, List nickname, List email, Boolean disabled, Boolean isSuper, Boolean isTemporary, Integer minSignInAttemptCount, Integer maxSignInAttemptCount, String sort, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (uuid != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "uuid", uuid)); + } + + if (roleUuid != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "role_uuid", roleUuid)); + } + + if (name != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "name", name)); + } + + if (nickname != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "nickname", nickname)); + } + + if (email != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "email", email)); + } + + if (disabled != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("disabled", disabled)); + } + + if (isSuper != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("is_super", isSuper)); + } + + if (isTemporary != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("is_temporary", isTemporary)); + } + + if (minSignInAttemptCount != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("min_sign_in_attempt_count", minSignInAttemptCount)); + } + + if (maxSignInAttemptCount != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_sign_in_attempt_count", maxSignInAttemptCount)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listUsersValidateBeforeCall(List uuid, List roleUuid, List name, List nickname, List email, Boolean disabled, Boolean isSuper, Boolean isTemporary, Integer minSignInAttemptCount, Integer maxSignInAttemptCount, String sort, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + return listUsersCall(uuid, roleUuid, name, nickname, email, disabled, isSuper, isTemporary, minSignInAttemptCount, maxSignInAttemptCount, sort, page, perPage, _callback); + + } + + /** + * List Users + * ユーザーのリストを取得します。 + * @param uuid ユーザーのUUID (optional) + * @param roleUuid ロールのUUID (optional) + * @param name ユーザーの名前による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 (optional) + * @param nickname ユーザーの表示名による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 (optional) + * @param email メールアドレスによる部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 (optional) + * @param disabled * `true` を指定した場合、無効化されているユーザーのみを取得します。 * `false` を指定した場合、有効なユーザーのみを取得します。 * 指定を省略した場合、有効/無効にかかわらずユーザーを取得します。 (optional) + * @param isSuper * `true` を指定した場合、スーパーユーザーのみを取得します。 * `false` を指定した場合、スーパーユーザー以外を取得します。 * 指定を省略した場合、スーパーユーザーであるかにかかわらずユーザーを取得します。 (optional) + * @param isTemporary * `true` を指定した場合、一時パスワードを使用しているユーザーのみを取得します。 * `false` を指定した場合、パスワードを設定済みのユーザーのみを取得します。 * 指定を省略した場合、一時パスワードを使用しているかにかかわらずユーザーを取得します。 (optional) + * @param minSignInAttemptCount ログイン失敗回数の最小値。ログイン失敗回数がこの数値以上のユーザーを取得します。 (optional) + * @param maxSignInAttemptCount ログイン失敗回数の最大値。ログイン失敗回数がこの数値以下のユーザーを取得します。 (optional) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 - name - created_at - updated_at - last_sign_in_at (optional, default to name+) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @return Users + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Users listUsers(List uuid, List roleUuid, List name, List nickname, List email, Boolean disabled, Boolean isSuper, Boolean isTemporary, Integer minSignInAttemptCount, Integer maxSignInAttemptCount, String sort, Integer page, Integer perPage) throws ApiException { + ApiResponse localVarResp = listUsersWithHttpInfo(uuid, roleUuid, name, nickname, email, disabled, isSuper, isTemporary, minSignInAttemptCount, maxSignInAttemptCount, sort, page, perPage); + return localVarResp.getData(); + } + + /** + * List Users + * ユーザーのリストを取得します。 + * @param uuid ユーザーのUUID (optional) + * @param roleUuid ロールのUUID (optional) + * @param name ユーザーの名前による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 (optional) + * @param nickname ユーザーの表示名による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 (optional) + * @param email メールアドレスによる部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 (optional) + * @param disabled * `true` を指定した場合、無効化されているユーザーのみを取得します。 * `false` を指定した場合、有効なユーザーのみを取得します。 * 指定を省略した場合、有効/無効にかかわらずユーザーを取得します。 (optional) + * @param isSuper * `true` を指定した場合、スーパーユーザーのみを取得します。 * `false` を指定した場合、スーパーユーザー以外を取得します。 * 指定を省略した場合、スーパーユーザーであるかにかかわらずユーザーを取得します。 (optional) + * @param isTemporary * `true` を指定した場合、一時パスワードを使用しているユーザーのみを取得します。 * `false` を指定した場合、パスワードを設定済みのユーザーのみを取得します。 * 指定を省略した場合、一時パスワードを使用しているかにかかわらずユーザーを取得します。 (optional) + * @param minSignInAttemptCount ログイン失敗回数の最小値。ログイン失敗回数がこの数値以上のユーザーを取得します。 (optional) + * @param maxSignInAttemptCount ログイン失敗回数の最大値。ログイン失敗回数がこの数値以下のユーザーを取得します。 (optional) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 - name - created_at - updated_at - last_sign_in_at (optional, default to name+) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @return ApiResponse<Users> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listUsersWithHttpInfo(List uuid, List roleUuid, List name, List nickname, List email, Boolean disabled, Boolean isSuper, Boolean isTemporary, Integer minSignInAttemptCount, Integer maxSignInAttemptCount, String sort, Integer page, Integer perPage) throws ApiException { + okhttp3.Call localVarCall = listUsersValidateBeforeCall(uuid, roleUuid, name, nickname, email, disabled, isSuper, isTemporary, minSignInAttemptCount, maxSignInAttemptCount, sort, page, perPage, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Users (asynchronously) + * ユーザーのリストを取得します。 + * @param uuid ユーザーのUUID (optional) + * @param roleUuid ロールのUUID (optional) + * @param name ユーザーの名前による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 (optional) + * @param nickname ユーザーの表示名による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 (optional) + * @param email メールアドレスによる部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 (optional) + * @param disabled * `true` を指定した場合、無効化されているユーザーのみを取得します。 * `false` を指定した場合、有効なユーザーのみを取得します。 * 指定を省略した場合、有効/無効にかかわらずユーザーを取得します。 (optional) + * @param isSuper * `true` を指定した場合、スーパーユーザーのみを取得します。 * `false` を指定した場合、スーパーユーザー以外を取得します。 * 指定を省略した場合、スーパーユーザーであるかにかかわらずユーザーを取得します。 (optional) + * @param isTemporary * `true` を指定した場合、一時パスワードを使用しているユーザーのみを取得します。 * `false` を指定した場合、パスワードを設定済みのユーザーのみを取得します。 * 指定を省略した場合、一時パスワードを使用しているかにかかわらずユーザーを取得します。 (optional) + * @param minSignInAttemptCount ログイン失敗回数の最小値。ログイン失敗回数がこの数値以上のユーザーを取得します。 (optional) + * @param maxSignInAttemptCount ログイン失敗回数の最大値。ログイン失敗回数がこの数値以下のユーザーを取得します。 (optional) + * @param sort 並べ替えに使用するキー。接尾辞 `+` を付けた場合は昇順、 `-` を付けた場合は降順で出力されます。 接尾辞を省略した場合は昇順となります。 例えば、 `name-` を指定すると、nameによる降順で出力されます。 - name - created_at - updated_at - last_sign_in_at (optional, default to name+) + * @param page 取得するページの番号 (optional, default to 1) + * @param perPage 1回のリクエストで取得する件数 (optional, default to 30) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listUsersAsync(List uuid, List roleUuid, List name, List nickname, List email, Boolean disabled, Boolean isSuper, Boolean isTemporary, Integer minSignInAttemptCount, Integer maxSignInAttemptCount, String sort, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listUsersValidateBeforeCall(uuid, roleUuid, name, nickname, email, disabled, isSuper, isTemporary, minSignInAttemptCount, maxSignInAttemptCount, sort, page, perPage, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listUsersRoles + * @param userUuid (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listUsersRolesCall(String userUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/{user_uuid}/roles" + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listUsersRolesValidateBeforeCall(String userUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling listUsersRoles(Async)"); + } + + return listUsersRolesCall(userUuid, _callback); + + } + + /** + * List User's Roles + * ユーザーのロールのリストを取得します。 + * @param userUuid (required) + * @return Roles + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Roles listUsersRoles(String userUuid) throws ApiException { + ApiResponse localVarResp = listUsersRolesWithHttpInfo(userUuid); + return localVarResp.getData(); + } + + /** + * List User's Roles + * ユーザーのロールのリストを取得します。 + * @param userUuid (required) + * @return ApiResponse<Roles> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listUsersRolesWithHttpInfo(String userUuid) throws ApiException { + okhttp3.Call localVarCall = listUsersRolesValidateBeforeCall(userUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List User's Roles (asynchronously) + * ユーザーのロールのリストを取得します。 + * @param userUuid (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listUsersRolesAsync(String userUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listUsersRolesValidateBeforeCall(userUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for sendVerificationEmail + * @param userUuid (required) + * @param userEmailId ユーザーのメールアドレスのID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public okhttp3.Call sendVerificationEmailCall(String userUuid, Long userEmailId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/{user_uuid}/emails/{user_email_id}/verification" + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())) + .replace("{" + "user_email_id" + "}", localVarApiClient.escapeString(userEmailId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call sendVerificationEmailValidateBeforeCall(String userUuid, Long userEmailId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling sendVerificationEmail(Async)"); + } + + // verify the required parameter 'userEmailId' is set + if (userEmailId == null) { + throw new ApiException("Missing the required parameter 'userEmailId' when calling sendVerificationEmail(Async)"); + } + + return sendVerificationEmailCall(userUuid, userEmailId, _callback); + + } + + /** + * Send Verification Email + * メールアドレスを確認するため確認メールを送信します。メールアドレス確認用トークンを使用します。 + * @param userUuid (required) + * @param userEmailId ユーザーのメールアドレスのID (required) + * @return UserEmailVerification + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public UserEmailVerification sendVerificationEmail(String userUuid, Long userEmailId) throws ApiException { + ApiResponse localVarResp = sendVerificationEmailWithHttpInfo(userUuid, userEmailId); + return localVarResp.getData(); + } + + /** + * Send Verification Email + * メールアドレスを確認するため確認メールを送信します。メールアドレス確認用トークンを使用します。 + * @param userUuid (required) + * @param userEmailId ユーザーのメールアドレスのID (required) + * @return ApiResponse<UserEmailVerification> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public ApiResponse sendVerificationEmailWithHttpInfo(String userUuid, Long userEmailId) throws ApiException { + okhttp3.Call localVarCall = sendVerificationEmailValidateBeforeCall(userUuid, userEmailId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Send Verification Email (asynchronously) + * メールアドレスを確認するため確認メールを送信します。メールアドレス確認用トークンを使用します。 + * @param userUuid (required) + * @param userEmailId ユーザーのメールアドレスのID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public okhttp3.Call sendVerificationEmailAsync(String userUuid, Long userEmailId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = sendVerificationEmailValidateBeforeCall(userUuid, userEmailId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for unassignRole + * @param userUuid (required) + * @param roleUuid ロールのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call unassignRoleCall(String userUuid, String roleUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/{user_uuid}/roles/{role_uuid}" + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())) + .replace("{" + "role_uuid" + "}", localVarApiClient.escapeString(roleUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call unassignRoleValidateBeforeCall(String userUuid, String roleUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling unassignRole(Async)"); + } + + // verify the required parameter 'roleUuid' is set + if (roleUuid == null) { + throw new ApiException("Missing the required parameter 'roleUuid' when calling unassignRole(Async)"); + } + + return unassignRoleCall(userUuid, roleUuid, _callback); + + } + + /** + * Unassign Role + * ユーザーへのロールの割り当てを解除します。 + * @param userUuid (required) + * @param roleUuid ロールのUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void unassignRole(String userUuid, String roleUuid) throws ApiException { + unassignRoleWithHttpInfo(userUuid, roleUuid); + } + + /** + * Unassign Role + * ユーザーへのロールの割り当てを解除します。 + * @param userUuid (required) + * @param roleUuid ロールのUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse unassignRoleWithHttpInfo(String userUuid, String roleUuid) throws ApiException { + okhttp3.Call localVarCall = unassignRoleValidateBeforeCall(userUuid, roleUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Unassign Role (asynchronously) + * ユーザーへのロールの割り当てを解除します。 + * @param userUuid (required) + * @param roleUuid ロールのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call unassignRoleAsync(String userUuid, String roleUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = unassignRoleValidateBeforeCall(userUuid, roleUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for unlockPassword + * @param userUuid (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call unlockPasswordCall(String userUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/auth/users/{user_uuid}/password/unlock" + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call unlockPasswordValidateBeforeCall(String userUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling unlockPassword(Async)"); + } + + return unlockPasswordCall(userUuid, _callback); + + } + + /** + * Unlock Password + * ユーザーのパスワードのロックを解除します。このユーザーのログイン失敗回数は0にリセットされます。 + * @param userUuid (required) + * @return UserPassword + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public UserPassword unlockPassword(String userUuid) throws ApiException { + ApiResponse localVarResp = unlockPasswordWithHttpInfo(userUuid); + return localVarResp.getData(); + } + + /** + * Unlock Password + * ユーザーのパスワードのロックを解除します。このユーザーのログイン失敗回数は0にリセットされます。 + * @param userUuid (required) + * @return ApiResponse<UserPassword> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse unlockPasswordWithHttpInfo(String userUuid) throws ApiException { + okhttp3.Call localVarCall = unlockPasswordValidateBeforeCall(userUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Unlock Password (asynchronously) + * ユーザーのパスワードのロックを解除します。このユーザーのログイン失敗回数は0にリセットされます。 + * @param userUuid (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call unlockPasswordAsync(String userUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = unlockPasswordValidateBeforeCall(userUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateAPIToken + * @param userUuid (required) + * @param userApiTokenId APIトークンのID (required) + * @param updateUserAPITokenRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateAPITokenCall(String userUuid, Long userApiTokenId, UpdateUserAPITokenRequest updateUserAPITokenRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateUserAPITokenRequest; + + // create path and map variables + String localVarPath = "/auth/users/{user_uuid}/tokens/{user_api_token_id}" + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())) + .replace("{" + "user_api_token_id" + "}", localVarApiClient.escapeString(userApiTokenId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json; charset=utf-8" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateAPITokenValidateBeforeCall(String userUuid, Long userApiTokenId, UpdateUserAPITokenRequest updateUserAPITokenRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling updateAPIToken(Async)"); + } + + // verify the required parameter 'userApiTokenId' is set + if (userApiTokenId == null) { + throw new ApiException("Missing the required parameter 'userApiTokenId' when calling updateAPIToken(Async)"); + } + + return updateAPITokenCall(userUuid, userApiTokenId, updateUserAPITokenRequest, _callback); + + } + + /** + * Update API Token + * ユーザーのAPIトークンを更新します。 + * @param userUuid (required) + * @param userApiTokenId APIトークンのID (required) + * @param updateUserAPITokenRequest (optional) + * @return UserAPIToken + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public UserAPIToken updateAPIToken(String userUuid, Long userApiTokenId, UpdateUserAPITokenRequest updateUserAPITokenRequest) throws ApiException { + ApiResponse localVarResp = updateAPITokenWithHttpInfo(userUuid, userApiTokenId, updateUserAPITokenRequest); + return localVarResp.getData(); + } + + /** + * Update API Token + * ユーザーのAPIトークンを更新します。 + * @param userUuid (required) + * @param userApiTokenId APIトークンのID (required) + * @param updateUserAPITokenRequest (optional) + * @return ApiResponse<UserAPIToken> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateAPITokenWithHttpInfo(String userUuid, Long userApiTokenId, UpdateUserAPITokenRequest updateUserAPITokenRequest) throws ApiException { + okhttp3.Call localVarCall = updateAPITokenValidateBeforeCall(userUuid, userApiTokenId, updateUserAPITokenRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update API Token (asynchronously) + * ユーザーのAPIトークンを更新します。 + * @param userUuid (required) + * @param userApiTokenId APIトークンのID (required) + * @param updateUserAPITokenRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateAPITokenAsync(String userUuid, Long userApiTokenId, UpdateUserAPITokenRequest updateUserAPITokenRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateAPITokenValidateBeforeCall(userUuid, userApiTokenId, updateUserAPITokenRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateEmail + * @param userUuid (required) + * @param userEmailId ユーザーのメールアドレスのID (required) + * @param patchEmailRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
409 Conflict -
+ */ + public okhttp3.Call updateEmailCall(String userUuid, Long userEmailId, PatchEmailRequest patchEmailRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = patchEmailRequest; + + // create path and map variables + String localVarPath = "/auth/users/{user_uuid}/emails/{user_email_id}" + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())) + .replace("{" + "user_email_id" + "}", localVarApiClient.escapeString(userEmailId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateEmailValidateBeforeCall(String userUuid, Long userEmailId, PatchEmailRequest patchEmailRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling updateEmail(Async)"); + } + + // verify the required parameter 'userEmailId' is set + if (userEmailId == null) { + throw new ApiException("Missing the required parameter 'userEmailId' when calling updateEmail(Async)"); + } + + return updateEmailCall(userUuid, userEmailId, patchEmailRequest, _callback); + + } + + /** + * Update Email + * ユーザーのメールアドレスを更新します。 メールアドレスの設定が成功すると、確認用URLを含むメールがそのアドレスに送信されます。 確認用URLには、メールアドレス確認用トークンとメールアドレスのIDが含まれます。 + * @param userUuid (required) + * @param userEmailId ユーザーのメールアドレスのID (required) + * @param patchEmailRequest (optional) + * @return UserEmail + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
409 Conflict -
+ */ + public UserEmail updateEmail(String userUuid, Long userEmailId, PatchEmailRequest patchEmailRequest) throws ApiException { + ApiResponse localVarResp = updateEmailWithHttpInfo(userUuid, userEmailId, patchEmailRequest); + return localVarResp.getData(); + } + + /** + * Update Email + * ユーザーのメールアドレスを更新します。 メールアドレスの設定が成功すると、確認用URLを含むメールがそのアドレスに送信されます。 確認用URLには、メールアドレス確認用トークンとメールアドレスのIDが含まれます。 + * @param userUuid (required) + * @param userEmailId ユーザーのメールアドレスのID (required) + * @param patchEmailRequest (optional) + * @return ApiResponse<UserEmail> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
409 Conflict -
+ */ + public ApiResponse updateEmailWithHttpInfo(String userUuid, Long userEmailId, PatchEmailRequest patchEmailRequest) throws ApiException { + okhttp3.Call localVarCall = updateEmailValidateBeforeCall(userUuid, userEmailId, patchEmailRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Email (asynchronously) + * ユーザーのメールアドレスを更新します。 メールアドレスの設定が成功すると、確認用URLを含むメールがそのアドレスに送信されます。 確認用URLには、メールアドレス確認用トークンとメールアドレスのIDが含まれます。 + * @param userUuid (required) + * @param userEmailId ユーザーのメールアドレスのID (required) + * @param patchEmailRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
409 Conflict -
+ */ + public okhttp3.Call updateEmailAsync(String userUuid, Long userEmailId, PatchEmailRequest patchEmailRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateEmailValidateBeforeCall(userUuid, userEmailId, patchEmailRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateToVerified + * @param userUuid (required) + * @param userEmailId ユーザーのメールアドレスのID (required) + * @param updateEmailVerifiedRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateToVerifiedCall(String userUuid, Long userEmailId, UpdateEmailVerifiedRequest updateEmailVerifiedRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateEmailVerifiedRequest; + + // create path and map variables + String localVarPath = "/auth/users/{user_uuid}/emails/{user_email_id}/verified" + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())) + .replace("{" + "user_email_id" + "}", localVarApiClient.escapeString(userEmailId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateToVerifiedValidateBeforeCall(String userUuid, Long userEmailId, UpdateEmailVerifiedRequest updateEmailVerifiedRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling updateToVerified(Async)"); + } + + // verify the required parameter 'userEmailId' is set + if (userEmailId == null) { + throw new ApiException("Missing the required parameter 'userEmailId' when calling updateToVerified(Async)"); + } + + return updateToVerifiedCall(userUuid, userEmailId, updateEmailVerifiedRequest, _callback); + + } + + /** + * Set Email as Verified + * ユーザーのメールアドレスを確認済みにします。 + * @param userUuid (required) + * @param userEmailId ユーザーのメールアドレスのID (required) + * @param updateEmailVerifiedRequest (optional) + * @return UserEmail + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public UserEmail updateToVerified(String userUuid, Long userEmailId, UpdateEmailVerifiedRequest updateEmailVerifiedRequest) throws ApiException { + ApiResponse localVarResp = updateToVerifiedWithHttpInfo(userUuid, userEmailId, updateEmailVerifiedRequest); + return localVarResp.getData(); + } + + /** + * Set Email as Verified + * ユーザーのメールアドレスを確認済みにします。 + * @param userUuid (required) + * @param userEmailId ユーザーのメールアドレスのID (required) + * @param updateEmailVerifiedRequest (optional) + * @return ApiResponse<UserEmail> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateToVerifiedWithHttpInfo(String userUuid, Long userEmailId, UpdateEmailVerifiedRequest updateEmailVerifiedRequest) throws ApiException { + okhttp3.Call localVarCall = updateToVerifiedValidateBeforeCall(userUuid, userEmailId, updateEmailVerifiedRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Set Email as Verified (asynchronously) + * ユーザーのメールアドレスを確認済みにします。 + * @param userUuid (required) + * @param userEmailId ユーザーのメールアドレスのID (required) + * @param updateEmailVerifiedRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateToVerifiedAsync(String userUuid, Long userEmailId, UpdateEmailVerifiedRequest updateEmailVerifiedRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateToVerifiedValidateBeforeCall(userUuid, userEmailId, updateEmailVerifiedRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateUser + * @param userUuid (required) + * @param patchUserRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
403 Forbidden -
409 Conflict -
+ */ + public okhttp3.Call updateUserCall(String userUuid, PatchUserRequest patchUserRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = patchUserRequest; + + // create path and map variables + String localVarPath = "/auth/users/{user_uuid}" + .replace("{" + "user_uuid" + "}", localVarApiClient.escapeString(userUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateUserValidateBeforeCall(String userUuid, PatchUserRequest patchUserRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'userUuid' is set + if (userUuid == null) { + throw new ApiException("Missing the required parameter 'userUuid' when calling updateUser(Async)"); + } + + return updateUserCall(userUuid, patchUserRequest, _callback); + + } + + /** + * Update User + * ユーザーを更新します。 + * @param userUuid (required) + * @param patchUserRequest (optional) + * @return User + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
403 Forbidden -
409 Conflict -
+ */ + public User updateUser(String userUuid, PatchUserRequest patchUserRequest) throws ApiException { + ApiResponse localVarResp = updateUserWithHttpInfo(userUuid, patchUserRequest); + return localVarResp.getData(); + } + + /** + * Update User + * ユーザーを更新します。 + * @param userUuid (required) + * @param patchUserRequest (optional) + * @return ApiResponse<User> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
403 Forbidden -
409 Conflict -
+ */ + public ApiResponse updateUserWithHttpInfo(String userUuid, PatchUserRequest patchUserRequest) throws ApiException { + okhttp3.Call localVarCall = updateUserValidateBeforeCall(userUuid, patchUserRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update User (asynchronously) + * ユーザーを更新します。 + * @param userUuid (required) + * @param patchUserRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
403 Forbidden -
409 Conflict -
+ */ + public okhttp3.Call updateUserAsync(String userUuid, PatchUserRequest patchUserRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateUserValidateBeforeCall(userUuid, patchUserRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/intdash/src/main/java/com/aptpod/intdash/BrokerEdgeConnectionsApi.java b/intdash/src/main/java/com/aptpod/intdash/BrokerEdgeConnectionsApi.java new file mode 100644 index 0000000..bbd27ac --- /dev/null +++ b/intdash/src/main/java/com/aptpod/intdash/BrokerEdgeConnectionsApi.java @@ -0,0 +1,667 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.intdash; + +import com.aptpod.ApiCallback; +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.ApiResponse; +import com.aptpod.Configuration; +import com.aptpod.Pair; +import com.aptpod.ProgressRequestBody; +import com.aptpod.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.openapitools.client.model.EdgeConnection; +import org.openapitools.client.model.EdgeConnectionList; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class BrokerEdgeConnectionsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public BrokerEdgeConnectionsApi() { + this(Configuration.getDefaultApiClient()); + } + + public BrokerEdgeConnectionsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for getEdgeConnection + * @param edgeConnectionUuid エッジ接続のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getEdgeConnectionCall(String edgeConnectionUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/edge_connections/{edge_connection_uuid}" + .replace("{" + "edge_connection_uuid" + "}", localVarApiClient.escapeString(edgeConnectionUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call getEdgeConnectionValidateBeforeCall(String edgeConnectionUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'edgeConnectionUuid' is set + if (edgeConnectionUuid == null) { + throw new ApiException("Missing the required parameter 'edgeConnectionUuid' when calling getEdgeConnection(Async)"); + } + + return getEdgeConnectionCall(edgeConnectionUuid, _callback); + + } + + /** + * Get Edge Connection + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/edge_connection/{edge_connection_uuid}` を使用してください) エッジ接続( `/v1/ws/measurements` に接続されたエッジの接続情報)を取得します。 + * @param edgeConnectionUuid エッジ接続のUUID (required) + * @return EdgeConnection + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public EdgeConnection getEdgeConnection(String edgeConnectionUuid) throws ApiException { + ApiResponse localVarResp = getEdgeConnectionWithHttpInfo(edgeConnectionUuid); + return localVarResp.getData(); + } + + /** + * Get Edge Connection + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/edge_connection/{edge_connection_uuid}` を使用してください) エッジ接続( `/v1/ws/measurements` に接続されたエッジの接続情報)を取得します。 + * @param edgeConnectionUuid エッジ接続のUUID (required) + * @return ApiResponse<EdgeConnection> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse getEdgeConnectionWithHttpInfo(String edgeConnectionUuid) throws ApiException { + okhttp3.Call localVarCall = getEdgeConnectionValidateBeforeCall(edgeConnectionUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Edge Connection (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/edge_connection/{edge_connection_uuid}` を使用してください) エッジ接続( `/v1/ws/measurements` に接続されたエッジの接続情報)を取得します。 + * @param edgeConnectionUuid エッジ接続のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getEdgeConnectionAsync(String edgeConnectionUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getEdgeConnectionValidateBeforeCall(edgeConnectionUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getProjectEdgeConnection + * @param projectUuid プロジェクトのUUID (required) + * @param edgeConnectionUuid エッジ接続のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectEdgeConnectionCall(String projectUuid, String edgeConnectionUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/edge_connections/{edge_connection_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "edge_connection_uuid" + "}", localVarApiClient.escapeString(edgeConnectionUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getProjectEdgeConnectionValidateBeforeCall(String projectUuid, String edgeConnectionUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling getProjectEdgeConnection(Async)"); + } + + // verify the required parameter 'edgeConnectionUuid' is set + if (edgeConnectionUuid == null) { + throw new ApiException("Missing the required parameter 'edgeConnectionUuid' when calling getProjectEdgeConnection(Async)"); + } + + return getProjectEdgeConnectionCall(projectUuid, edgeConnectionUuid, _callback); + + } + + /** + * Get Project Edge Connection + * エッジ接続( `/v1/ws/measurements` に接続されたエッジの接続情報)を取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param edgeConnectionUuid エッジ接続のUUID (required) + * @return EdgeConnection + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public EdgeConnection getProjectEdgeConnection(String projectUuid, String edgeConnectionUuid) throws ApiException { + ApiResponse localVarResp = getProjectEdgeConnectionWithHttpInfo(projectUuid, edgeConnectionUuid); + return localVarResp.getData(); + } + + /** + * Get Project Edge Connection + * エッジ接続( `/v1/ws/measurements` に接続されたエッジの接続情報)を取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param edgeConnectionUuid エッジ接続のUUID (required) + * @return ApiResponse<EdgeConnection> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getProjectEdgeConnectionWithHttpInfo(String projectUuid, String edgeConnectionUuid) throws ApiException { + okhttp3.Call localVarCall = getProjectEdgeConnectionValidateBeforeCall(projectUuid, edgeConnectionUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Project Edge Connection (asynchronously) + * エッジ接続( `/v1/ws/measurements` に接続されたエッジの接続情報)を取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param edgeConnectionUuid エッジ接続のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectEdgeConnectionAsync(String projectUuid, String edgeConnectionUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getProjectEdgeConnectionValidateBeforeCall(projectUuid, edgeConnectionUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listEdgeConnections + * @param edge エッジのUUID (optional) + * @param sort 並べ替えに使用するキー (optional, default to last_lived_at) + * @param order 並べ替えの順序 (optional, default to desc) + * @param limit 1回のリクエストで取得する件数 (optional, default to 100) + * @param page 取得するページの番号 (optional, default to 1) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call listEdgeConnectionsCall(List edge, String sort, String order, Integer limit, Integer page, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/edge_connections"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (edge != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "edge", edge)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + if (order != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("order", order)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call listEdgeConnectionsValidateBeforeCall(List edge, String sort, String order, Integer limit, Integer page, final ApiCallback _callback) throws ApiException { + return listEdgeConnectionsCall(edge, sort, order, limit, page, _callback); + + } + + /** + * List Edge Connections + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/edge_connection` を使用してください) エッジ接続のリストを取得します。 エッジ接続は、エッジが `/v1/ws/measurements` エンドポイントに接続したときに新規作成され、 3日間更新がないと削除されます。 + * @param edge エッジのUUID (optional) + * @param sort 並べ替えに使用するキー (optional, default to last_lived_at) + * @param order 並べ替えの順序 (optional, default to desc) + * @param limit 1回のリクエストで取得する件数 (optional, default to 100) + * @param page 取得するページの番号 (optional, default to 1) + * @return EdgeConnectionList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public EdgeConnectionList listEdgeConnections(List edge, String sort, String order, Integer limit, Integer page) throws ApiException { + ApiResponse localVarResp = listEdgeConnectionsWithHttpInfo(edge, sort, order, limit, page); + return localVarResp.getData(); + } + + /** + * List Edge Connections + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/edge_connection` を使用してください) エッジ接続のリストを取得します。 エッジ接続は、エッジが `/v1/ws/measurements` エンドポイントに接続したときに新規作成され、 3日間更新がないと削除されます。 + * @param edge エッジのUUID (optional) + * @param sort 並べ替えに使用するキー (optional, default to last_lived_at) + * @param order 並べ替えの順序 (optional, default to desc) + * @param limit 1回のリクエストで取得する件数 (optional, default to 100) + * @param page 取得するページの番号 (optional, default to 1) + * @return ApiResponse<EdgeConnectionList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse listEdgeConnectionsWithHttpInfo(List edge, String sort, String order, Integer limit, Integer page) throws ApiException { + okhttp3.Call localVarCall = listEdgeConnectionsValidateBeforeCall(edge, sort, order, limit, page, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Edge Connections (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/edge_connection` を使用してください) エッジ接続のリストを取得します。 エッジ接続は、エッジが `/v1/ws/measurements` エンドポイントに接続したときに新規作成され、 3日間更新がないと削除されます。 + * @param edge エッジのUUID (optional) + * @param sort 並べ替えに使用するキー (optional, default to last_lived_at) + * @param order 並べ替えの順序 (optional, default to desc) + * @param limit 1回のリクエストで取得する件数 (optional, default to 100) + * @param page 取得するページの番号 (optional, default to 1) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call listEdgeConnectionsAsync(List edge, String sort, String order, Integer limit, Integer page, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listEdgeConnectionsValidateBeforeCall(edge, sort, order, limit, page, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listProjectEdgeConnections + * @param projectUuid プロジェクトのUUID (required) + * @param edge エッジのUUID (optional) + * @param sort 並べ替えに使用するキー (optional, default to last_lived_at) + * @param order 並べ替えの順序 (optional, default to desc) + * @param limit 1回のリクエストで取得する件数 (optional, default to 100) + * @param page 取得するページの番号 (optional, default to 1) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listProjectEdgeConnectionsCall(String projectUuid, List edge, String sort, String order, Integer limit, Integer page, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/edge_connections" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (edge != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "edge", edge)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + if (order != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("order", order)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listProjectEdgeConnectionsValidateBeforeCall(String projectUuid, List edge, String sort, String order, Integer limit, Integer page, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling listProjectEdgeConnections(Async)"); + } + + return listProjectEdgeConnectionsCall(projectUuid, edge, sort, order, limit, page, _callback); + + } + + /** + * List Project Edge Connections + * エッジ接続のリストを取得します。 エッジ接続は、エッジが `/v1/ws/measurements` エンドポイントに接続したときに新規作成され、 3日間更新がないと削除されます。 + * @param projectUuid プロジェクトのUUID (required) + * @param edge エッジのUUID (optional) + * @param sort 並べ替えに使用するキー (optional, default to last_lived_at) + * @param order 並べ替えの順序 (optional, default to desc) + * @param limit 1回のリクエストで取得する件数 (optional, default to 100) + * @param page 取得するページの番号 (optional, default to 1) + * @return EdgeConnectionList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public EdgeConnectionList listProjectEdgeConnections(String projectUuid, List edge, String sort, String order, Integer limit, Integer page) throws ApiException { + ApiResponse localVarResp = listProjectEdgeConnectionsWithHttpInfo(projectUuid, edge, sort, order, limit, page); + return localVarResp.getData(); + } + + /** + * List Project Edge Connections + * エッジ接続のリストを取得します。 エッジ接続は、エッジが `/v1/ws/measurements` エンドポイントに接続したときに新規作成され、 3日間更新がないと削除されます。 + * @param projectUuid プロジェクトのUUID (required) + * @param edge エッジのUUID (optional) + * @param sort 並べ替えに使用するキー (optional, default to last_lived_at) + * @param order 並べ替えの順序 (optional, default to desc) + * @param limit 1回のリクエストで取得する件数 (optional, default to 100) + * @param page 取得するページの番号 (optional, default to 1) + * @return ApiResponse<EdgeConnectionList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listProjectEdgeConnectionsWithHttpInfo(String projectUuid, List edge, String sort, String order, Integer limit, Integer page) throws ApiException { + okhttp3.Call localVarCall = listProjectEdgeConnectionsValidateBeforeCall(projectUuid, edge, sort, order, limit, page, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Project Edge Connections (asynchronously) + * エッジ接続のリストを取得します。 エッジ接続は、エッジが `/v1/ws/measurements` エンドポイントに接続したときに新規作成され、 3日間更新がないと削除されます。 + * @param projectUuid プロジェクトのUUID (required) + * @param edge エッジのUUID (optional) + * @param sort 並べ替えに使用するキー (optional, default to last_lived_at) + * @param order 並べ替えの順序 (optional, default to desc) + * @param limit 1回のリクエストで取得する件数 (optional, default to 100) + * @param page 取得するページの番号 (optional, default to 1) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listProjectEdgeConnectionsAsync(String projectUuid, List edge, String sort, String order, Integer limit, Integer page, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listProjectEdgeConnectionsValidateBeforeCall(projectUuid, edge, sort, order, limit, page, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/intdash/src/main/java/com/aptpod/intdash/BrokerIScpApi.java b/intdash/src/main/java/com/aptpod/intdash/BrokerIScpApi.java new file mode 100644 index 0000000..f1b3fa0 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/intdash/BrokerIScpApi.java @@ -0,0 +1,532 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.intdash; + +import com.aptpod.ApiCallback; +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.ApiResponse; +import com.aptpod.Configuration; +import com.aptpod.Pair; +import com.aptpod.ProgressRequestBody; +import com.aptpod.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.openapitools.client.model.ISCPTicket; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class BrokerIScpApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public BrokerIScpApi() { + this(Configuration.getDefaultApiClient()); + } + + public BrokerIScpApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for connectISCPV1 + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
101 Switching Protocols -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call connectISCPV1Call(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/ws/measurements"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call connectISCPV1ValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return connectISCPV1Call(_callback); + + } + + /** + * Connect ISCPv1 + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/ws/measurements` を使用してください) iSCP v1(WebSocket上でリアルタイムデータを送受信するintdash独自プロトコル)の使用を開始するためのエンドポイントです。 このリクエストを送ることで、プロトコルがWebSocketに切り替えられ、iSCP v1を使用できます。 \"permessage-deflate\" (RFC 7692) が使用できます。 iSCP v1の詳細については、別ドキュメント [詳説iSCP 1.0](https://docs.intdash.jp/manual/iscp1-essentials/latest/ja/iscp1-essentials-ja.pdf) を参照してください。 「詳説iSCP 1.0」に記載されいていない事項ついては、 [アプトポッド](https://www.aptpod.co.jp/contact/) にお問い合わせください。 + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
101 Switching Protocols -
+ * @deprecated + */ + @Deprecated + public void connectISCPV1() throws ApiException { + connectISCPV1WithHttpInfo(); + } + + /** + * Connect ISCPv1 + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/ws/measurements` を使用してください) iSCP v1(WebSocket上でリアルタイムデータを送受信するintdash独自プロトコル)の使用を開始するためのエンドポイントです。 このリクエストを送ることで、プロトコルがWebSocketに切り替えられ、iSCP v1を使用できます。 \"permessage-deflate\" (RFC 7692) が使用できます。 iSCP v1の詳細については、別ドキュメント [詳説iSCP 1.0](https://docs.intdash.jp/manual/iscp1-essentials/latest/ja/iscp1-essentials-ja.pdf) を参照してください。 「詳説iSCP 1.0」に記載されいていない事項ついては、 [アプトポッド](https://www.aptpod.co.jp/contact/) にお問い合わせください。 + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
101 Switching Protocols -
+ * @deprecated + */ + @Deprecated + public ApiResponse connectISCPV1WithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = connectISCPV1ValidateBeforeCall(null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Connect ISCPv1 (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/ws/measurements` を使用してください) iSCP v1(WebSocket上でリアルタイムデータを送受信するintdash独自プロトコル)の使用を開始するためのエンドポイントです。 このリクエストを送ることで、プロトコルがWebSocketに切り替えられ、iSCP v1を使用できます。 \"permessage-deflate\" (RFC 7692) が使用できます。 iSCP v1の詳細については、別ドキュメント [詳説iSCP 1.0](https://docs.intdash.jp/manual/iscp1-essentials/latest/ja/iscp1-essentials-ja.pdf) を参照してください。 「詳説iSCP 1.0」に記載されいていない事項ついては、 [アプトポッド](https://www.aptpod.co.jp/contact/) にお問い合わせください。 + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
101 Switching Protocols -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call connectISCPV1Async(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = connectISCPV1ValidateBeforeCall(_callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for connectISCPV2 + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
101 Switching Protocols -
+ */ + public okhttp3.Call connectISCPV2Call(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/iscp/connect"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call connectISCPV2ValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return connectISCPV2Call(_callback); + + } + + /** + * Connect ISCPv2 + * iSCP v2(WebSocket上でリアルタイムデータを送受信するintdash独自プロトコル)の使用を開始するためのエンドポイントです。 このリクエストを送ることで、プロトコルがWebSocketに切り替えられ、iSCP v2を使用できます。 iSCP v2の詳細については、 [アプトポッド](https://www.aptpod.co.jp/contact/) にお問い合わせください。 + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
101 Switching Protocols -
+ */ + public void connectISCPV2() throws ApiException { + connectISCPV2WithHttpInfo(); + } + + /** + * Connect ISCPv2 + * iSCP v2(WebSocket上でリアルタイムデータを送受信するintdash独自プロトコル)の使用を開始するためのエンドポイントです。 このリクエストを送ることで、プロトコルがWebSocketに切り替えられ、iSCP v2を使用できます。 iSCP v2の詳細については、 [アプトポッド](https://www.aptpod.co.jp/contact/) にお問い合わせください。 + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
101 Switching Protocols -
+ */ + public ApiResponse connectISCPV2WithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = connectISCPV2ValidateBeforeCall(null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Connect ISCPv2 (asynchronously) + * iSCP v2(WebSocket上でリアルタイムデータを送受信するintdash独自プロトコル)の使用を開始するためのエンドポイントです。 このリクエストを送ることで、プロトコルがWebSocketに切り替えられ、iSCP v2を使用できます。 iSCP v2の詳細については、 [アプトポッド](https://www.aptpod.co.jp/contact/) にお問い合わせください。 + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
101 Switching Protocols -
+ */ + public okhttp3.Call connectISCPV2Async(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = connectISCPV2ValidateBeforeCall(_callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for connectProjectISCPV1 + * @param projectUuid プロジェクトのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
101 Switching Protocols -
+ */ + public okhttp3.Call connectProjectISCPV1Call(String projectUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/ws/measurements" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call connectProjectISCPV1ValidateBeforeCall(String projectUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling connectProjectISCPV1(Async)"); + } + + return connectProjectISCPV1Call(projectUuid, _callback); + + } + + /** + * Connect Project ISCPv1 + * iSCP v1(WebSocket上でリアルタイムデータを送受信するintdash独自プロトコル)の使用を開始するためのエンドポイントです。 このリクエストを送ることで、プロトコルがWebSocketに切り替えられ、iSCP v1を使用できます。 \"permessage-deflate\" (RFC 7692) が使用できます。 iSCP v1の詳細については、別ドキュメント [詳説iSCP 1.0](https://docs.intdash.jp/manual/iscp1-essentials/latest/ja/iscp1-essentials-ja.pdf) を参照してください。 「詳説iSCP 1.0」に記載されいていない事項ついては、 [アプトポッド](https://www.aptpod.co.jp/contact/) にお問い合わせください。 + * @param projectUuid プロジェクトのUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
101 Switching Protocols -
+ */ + public void connectProjectISCPV1(String projectUuid) throws ApiException { + connectProjectISCPV1WithHttpInfo(projectUuid); + } + + /** + * Connect Project ISCPv1 + * iSCP v1(WebSocket上でリアルタイムデータを送受信するintdash独自プロトコル)の使用を開始するためのエンドポイントです。 このリクエストを送ることで、プロトコルがWebSocketに切り替えられ、iSCP v1を使用できます。 \"permessage-deflate\" (RFC 7692) が使用できます。 iSCP v1の詳細については、別ドキュメント [詳説iSCP 1.0](https://docs.intdash.jp/manual/iscp1-essentials/latest/ja/iscp1-essentials-ja.pdf) を参照してください。 「詳説iSCP 1.0」に記載されいていない事項ついては、 [アプトポッド](https://www.aptpod.co.jp/contact/) にお問い合わせください。 + * @param projectUuid プロジェクトのUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
101 Switching Protocols -
+ */ + public ApiResponse connectProjectISCPV1WithHttpInfo(String projectUuid) throws ApiException { + okhttp3.Call localVarCall = connectProjectISCPV1ValidateBeforeCall(projectUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Connect Project ISCPv1 (asynchronously) + * iSCP v1(WebSocket上でリアルタイムデータを送受信するintdash独自プロトコル)の使用を開始するためのエンドポイントです。 このリクエストを送ることで、プロトコルがWebSocketに切り替えられ、iSCP v1を使用できます。 \"permessage-deflate\" (RFC 7692) が使用できます。 iSCP v1の詳細については、別ドキュメント [詳説iSCP 1.0](https://docs.intdash.jp/manual/iscp1-essentials/latest/ja/iscp1-essentials-ja.pdf) を参照してください。 「詳説iSCP 1.0」に記載されいていない事項ついては、 [アプトポッド](https://www.aptpod.co.jp/contact/) にお問い合わせください。 + * @param projectUuid プロジェクトのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
101 Switching Protocols -
+ */ + public okhttp3.Call connectProjectISCPV1Async(String projectUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = connectProjectISCPV1ValidateBeforeCall(projectUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for issueISCPTicket + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public okhttp3.Call issueISCPTicketCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/iscp/tickets"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call issueISCPTicketValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return issueISCPTicketCall(_callback); + + } + + /** + * Issue ISCP Ticket + * iSCPの認証チケットを発行します。 iSCPの認証チケットは、iSCPv2の接続リクエスト時の拡張用アクセストークンとして使用することができます。 また、認証チケットは有効期限内で一回のみ使用することができます。 一度使用した認証チケットは有効期限に関わらず使用することはできません。 + * @return ISCPTicket + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public ISCPTicket issueISCPTicket() throws ApiException { + ApiResponse localVarResp = issueISCPTicketWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Issue ISCP Ticket + * iSCPの認証チケットを発行します。 iSCPの認証チケットは、iSCPv2の接続リクエスト時の拡張用アクセストークンとして使用することができます。 また、認証チケットは有効期限内で一回のみ使用することができます。 一度使用した認証チケットは有効期限に関わらず使用することはできません。 + * @return ApiResponse<ISCPTicket> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public ApiResponse issueISCPTicketWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = issueISCPTicketValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Issue ISCP Ticket (asynchronously) + * iSCPの認証チケットを発行します。 iSCPの認証チケットは、iSCPv2の接続リクエスト時の拡張用アクセストークンとして使用することができます。 また、認証チケットは有効期限内で一回のみ使用することができます。 一度使用した認証チケットは有効期限に関わらず使用することはできません。 + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public okhttp3.Call issueISCPTicketAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = issueISCPTicketValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/intdash/src/main/java/com/aptpod/intdash/BrokerStreamApi.java b/intdash/src/main/java/com/aptpod/intdash/BrokerStreamApi.java new file mode 100644 index 0000000..6d6c055 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/intdash/BrokerStreamApi.java @@ -0,0 +1,310 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.intdash; + +import com.aptpod.ApiCallback; +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.ApiResponse; +import com.aptpod.Configuration; +import com.aptpod.Pair; +import com.aptpod.ProgressRequestBody; +import com.aptpod.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class BrokerStreamApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public BrokerStreamApi() { + this(Configuration.getDefaultApiClient()); + } + + public BrokerStreamApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for projectStream + * @param projectUuid プロジェクトのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
101 Switching Protocols. -
+ */ + public okhttp3.Call projectStreamCall(String projectUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/stream" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call projectStreamValidateBeforeCall(String projectUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling projectStream(Async)"); + } + + return projectStreamCall(projectUuid, _callback); + + } + + /** + * Get Project Realtime Streaming Data + * WebSocketを使ってリアルタイムデータを取得します。 同じくWebSocketを使ってリアルタイムデータを扱う `/v1/ws/measurements` では、 iSCP (intdash Stream Control Protocol)を使用しますが、 本エンドポイントではJSONとしてデータポイントを取得することができます。 ## クエリパラメータ | パラメータ名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | -------------------------- | ---------- | ---------- | ----- | | flush_interval | string | true | - | メッセージがフラッシュされる間隔を指定します。 単位は\"ns\"、\"us\" (または\"µs\")、\"ms\"、\"s\"、\"m\"、\"h\"のいずれかを使用してください (参考: [Goのtimeパッケージ](https://golang.org/pkg/time/#ParseDuration))。 指定がない場合は、メッセージごとにフラッシュされます。 | ## メッセージのフォーマット ### JSON Lines リクエストメッセージおよびレスポンスメッセージには [JSON lines](http://jsonlines.org/) 形式を使用します。 1つのメッセージが1行です。 例: ``` { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} . . ``` 注意: メッセージに改行を含むことはできません。 改行が入ったメッセージの例(悪い例): ``` { \"type\" : \"message_type\", \"contents\" : { depends on message_type } } ``` メッセージには、 `type` 属性および `contents` 属性が必要です。 `contents` のスキーマは、 `type` により決定されます。 ## ダウンストリーム開始リクエスト ### ダウンストリーム開始リクエストメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | | type | string | true | `\"open_downstream\"` | 固定値 | | contents | object(次の表を参照) | true | - | | ### ダウンストリーム開始リクエスト内 `contents` のスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ------------------ | ------ | | edge | string | true | - | データの送信元エッジを、エッジのUUIDまたはエッジの名前で指定します。 最初に、一致するエッジUUIDが検索され、一致するエッジUUIDがなければ一致する名前が検索されます。 | | filter | string array | false | `[]` | 「フィルター」を参照してください。 | ### フィルター データコードとデータ名を指定することにより、指定にマッチしたデータポイントだけを受信することができます。 ただし、メタデータのデータポイントは、フィルターの設定に関係なくすべて受信されます。 フィルターは以下のフォーマットで設定します: `<型コード>:<データ名>` データコードについては、後述の 時系列データのペイロードフォーマット を参照してください。 フィルター設定文字列の各セグメントにはワイルドカード( `**` )を使用することができます。 例: - 型コードが `can_data_field` のデータポイント(CAN)を受信する -> `can_data_field:**` - 型コードが `string/` で始まるデータポイントを受信する(`string/json` 、 `string/csv` など) -> `string/_**:**` - 文字列のデータポイントのうち、データ名が `my-string` のものを受信する -> `string:my-string` `filter` として空の配列が指定された場合は、すべてのデータポイントを受信します。 ### ダウンストリーム開始リクエストの例 リクエスト: ``` { \"type\" : \"open_downstream\", \"contents\" : { \"edge\" : \"edge_name_or_uuid\", \"filter\" : [\"string:a/b\"] } } ``` レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: open downstream\" } } ``` ## ダウンストリーム更新リクエスト ### ダウンストリーム更新リクエストメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | | type | string | true | `\"update_downstream\"` | 固定値 | | contents | object(次の表を参照) | true | - | | ### ダウンストリーム更新リクエスト内 `contents` のスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | filter | string array | true | - |「フィルター」を参照してください。 | ### ダウンストリーム更新リクエストの例 フィルターを指定する場合のリクエスト: ``` { \"type\" : \"update_downstream\", \"contents\" : { \"filter\" : [\"string:a/b\"] } } ``` フィルターを指定せずすべてのデータポイントを受信する場合のリクエスト: ``` { \"type\" : \"update_downstream\", \"contents\" : { \"filter\" : [] } } ``` レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: update downstream\" } } ``` ## ダウンストリーム終了リクエスト ### ダウンストリーム終了リクエストメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | | type | string | true | `\"close_downstream\"` | 固定値| ### ダウンストリーム終了リクエストの例 リクエスト: ``` { \"type\" : \"close_downstream\"} ``` レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: close downstream\" } } ``` ## レスポンスメッセージ リクエストの処理結果が返却されます。 ### レスポンスメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ----- | | type | string | true | `\"response\"` | 固定値| | ack | number | false | - | リクエストで `id` が指定されていた場合、その値 | | contents | object(次の表を参照) | true | - | | ### レスポンス内 `contents` のスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ----- | | code | number | true | - | 10000 < code < 20000 の場合、成功。 20000 < code < 30000 の場合、不正なリクエスト。50000 < code の場合、予期しないエラー | | message | string | true | - | リクエストで `id` が指定されていた場合、その値 | ### レスポンスの例 ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: open downstream\" } } ``` リクエストで `id` が指定されている場合のレスポンス例( `id` の値が `ack` として返ります): ``` { \"ack\": 1, \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: open downstream\" } } ``` # 時系列データのペイロードフォーマット 時系列データポイントが格納するペイロードのフォーマットです。各データ型に対する `contents`のフォーマットは [このページ](https://git.aptpod.co.jp/intdash-protocol/dataformat/-/tree/master/data) を参照してください。 ## データ型 各データバイナリには、ペイロードのフォーマットを示すデータ型が付与されます。各データ型には、型を識別するためのコード名が割り当てられます。 ## 標準データ型 単一のデータを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :---------------------- | :-------- | :------: | :--------------------------- | | Bytes | `bytes` | 可変 | フォーマットなしバイト列 | | String | `string` | 可変 | フォーマットなし文字列 | | Float64 | `float64` | 8 | IEEE754 64ビット浮動小数点数 | | Int64 | `int64` | 8 | 符号付き 64ビット整数 | | Bool | `bool` | 1 | 真偽値 | ## メディアデータ型 メディア(動画/音声)関連のデータを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :---------------------- | :----------- | :------: | :------------------------- | | JPEG | `video/jpeg` | 可変 | JPEG 形式の画像データ | | H264 | `video/h264` | 可変 | H264 形式の映像データ | ### 拡張バイナリ型 フォーマット付きのバイナリデータを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :------------------------------------------------ | :---------------- | :------: | :---------------------------------------- | | BSON | `bson` | 可変 | BSON フォーマット | | CAN Frame | `can_frame` | 可変 | CAN フレーム フォーマット | | CAN Data Field | `can_data_field` | 可変 | CAN データフィールド フォーマット | | MAVLink1 Packet | `mavlink1_packet` | 可変 | MAVLink パケット フォーマット | | Generic (非推奨) | `generic` | 可変 | iSCPv1互換 汎用フォーマット | | Controlpad (非推奨) | `control_pad` | 可変 | iSCPv1互換 コントロールパッドフォーマット | | GeneralSensor (非推奨) | `general_sensor` | 可変 | iSCPv1互換 汎用センサーフォーマット | ### 拡張文字列型 フォーマット付きの文字列データを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :----------------------- | :------------ | :------: | :---------------- | | JSON | `string/json` | 可変 | JSON フォーマット | | CSV | `string/csv` | 可変 | CSV フォーマット | | NMEA | `string/nmea` | 可変 | NMEA フォーマット | + * @param projectUuid プロジェクトのUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
101 Switching Protocols. -
+ */ + public void projectStream(String projectUuid) throws ApiException { + projectStreamWithHttpInfo(projectUuid); + } + + /** + * Get Project Realtime Streaming Data + * WebSocketを使ってリアルタイムデータを取得します。 同じくWebSocketを使ってリアルタイムデータを扱う `/v1/ws/measurements` では、 iSCP (intdash Stream Control Protocol)を使用しますが、 本エンドポイントではJSONとしてデータポイントを取得することができます。 ## クエリパラメータ | パラメータ名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | -------------------------- | ---------- | ---------- | ----- | | flush_interval | string | true | - | メッセージがフラッシュされる間隔を指定します。 単位は\"ns\"、\"us\" (または\"µs\")、\"ms\"、\"s\"、\"m\"、\"h\"のいずれかを使用してください (参考: [Goのtimeパッケージ](https://golang.org/pkg/time/#ParseDuration))。 指定がない場合は、メッセージごとにフラッシュされます。 | ## メッセージのフォーマット ### JSON Lines リクエストメッセージおよびレスポンスメッセージには [JSON lines](http://jsonlines.org/) 形式を使用します。 1つのメッセージが1行です。 例: ``` { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} . . ``` 注意: メッセージに改行を含むことはできません。 改行が入ったメッセージの例(悪い例): ``` { \"type\" : \"message_type\", \"contents\" : { depends on message_type } } ``` メッセージには、 `type` 属性および `contents` 属性が必要です。 `contents` のスキーマは、 `type` により決定されます。 ## ダウンストリーム開始リクエスト ### ダウンストリーム開始リクエストメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | | type | string | true | `\"open_downstream\"` | 固定値 | | contents | object(次の表を参照) | true | - | | ### ダウンストリーム開始リクエスト内 `contents` のスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ------------------ | ------ | | edge | string | true | - | データの送信元エッジを、エッジのUUIDまたはエッジの名前で指定します。 最初に、一致するエッジUUIDが検索され、一致するエッジUUIDがなければ一致する名前が検索されます。 | | filter | string array | false | `[]` | 「フィルター」を参照してください。 | ### フィルター データコードとデータ名を指定することにより、指定にマッチしたデータポイントだけを受信することができます。 ただし、メタデータのデータポイントは、フィルターの設定に関係なくすべて受信されます。 フィルターは以下のフォーマットで設定します: `<型コード>:<データ名>` データコードについては、後述の 時系列データのペイロードフォーマット を参照してください。 フィルター設定文字列の各セグメントにはワイルドカード( `**` )を使用することができます。 例: - 型コードが `can_data_field` のデータポイント(CAN)を受信する -> `can_data_field:**` - 型コードが `string/` で始まるデータポイントを受信する(`string/json` 、 `string/csv` など) -> `string/_**:**` - 文字列のデータポイントのうち、データ名が `my-string` のものを受信する -> `string:my-string` `filter` として空の配列が指定された場合は、すべてのデータポイントを受信します。 ### ダウンストリーム開始リクエストの例 リクエスト: ``` { \"type\" : \"open_downstream\", \"contents\" : { \"edge\" : \"edge_name_or_uuid\", \"filter\" : [\"string:a/b\"] } } ``` レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: open downstream\" } } ``` ## ダウンストリーム更新リクエスト ### ダウンストリーム更新リクエストメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | | type | string | true | `\"update_downstream\"` | 固定値 | | contents | object(次の表を参照) | true | - | | ### ダウンストリーム更新リクエスト内 `contents` のスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | filter | string array | true | - |「フィルター」を参照してください。 | ### ダウンストリーム更新リクエストの例 フィルターを指定する場合のリクエスト: ``` { \"type\" : \"update_downstream\", \"contents\" : { \"filter\" : [\"string:a/b\"] } } ``` フィルターを指定せずすべてのデータポイントを受信する場合のリクエスト: ``` { \"type\" : \"update_downstream\", \"contents\" : { \"filter\" : [] } } ``` レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: update downstream\" } } ``` ## ダウンストリーム終了リクエスト ### ダウンストリーム終了リクエストメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | | type | string | true | `\"close_downstream\"` | 固定値| ### ダウンストリーム終了リクエストの例 リクエスト: ``` { \"type\" : \"close_downstream\"} ``` レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: close downstream\" } } ``` ## レスポンスメッセージ リクエストの処理結果が返却されます。 ### レスポンスメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ----- | | type | string | true | `\"response\"` | 固定値| | ack | number | false | - | リクエストで `id` が指定されていた場合、その値 | | contents | object(次の表を参照) | true | - | | ### レスポンス内 `contents` のスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ----- | | code | number | true | - | 10000 < code < 20000 の場合、成功。 20000 < code < 30000 の場合、不正なリクエスト。50000 < code の場合、予期しないエラー | | message | string | true | - | リクエストで `id` が指定されていた場合、その値 | ### レスポンスの例 ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: open downstream\" } } ``` リクエストで `id` が指定されている場合のレスポンス例( `id` の値が `ack` として返ります): ``` { \"ack\": 1, \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: open downstream\" } } ``` # 時系列データのペイロードフォーマット 時系列データポイントが格納するペイロードのフォーマットです。各データ型に対する `contents`のフォーマットは [このページ](https://git.aptpod.co.jp/intdash-protocol/dataformat/-/tree/master/data) を参照してください。 ## データ型 各データバイナリには、ペイロードのフォーマットを示すデータ型が付与されます。各データ型には、型を識別するためのコード名が割り当てられます。 ## 標準データ型 単一のデータを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :---------------------- | :-------- | :------: | :--------------------------- | | Bytes | `bytes` | 可変 | フォーマットなしバイト列 | | String | `string` | 可変 | フォーマットなし文字列 | | Float64 | `float64` | 8 | IEEE754 64ビット浮動小数点数 | | Int64 | `int64` | 8 | 符号付き 64ビット整数 | | Bool | `bool` | 1 | 真偽値 | ## メディアデータ型 メディア(動画/音声)関連のデータを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :---------------------- | :----------- | :------: | :------------------------- | | JPEG | `video/jpeg` | 可変 | JPEG 形式の画像データ | | H264 | `video/h264` | 可変 | H264 形式の映像データ | ### 拡張バイナリ型 フォーマット付きのバイナリデータを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :------------------------------------------------ | :---------------- | :------: | :---------------------------------------- | | BSON | `bson` | 可変 | BSON フォーマット | | CAN Frame | `can_frame` | 可変 | CAN フレーム フォーマット | | CAN Data Field | `can_data_field` | 可変 | CAN データフィールド フォーマット | | MAVLink1 Packet | `mavlink1_packet` | 可変 | MAVLink パケット フォーマット | | Generic (非推奨) | `generic` | 可変 | iSCPv1互換 汎用フォーマット | | Controlpad (非推奨) | `control_pad` | 可変 | iSCPv1互換 コントロールパッドフォーマット | | GeneralSensor (非推奨) | `general_sensor` | 可変 | iSCPv1互換 汎用センサーフォーマット | ### 拡張文字列型 フォーマット付きの文字列データを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :----------------------- | :------------ | :------: | :---------------- | | JSON | `string/json` | 可変 | JSON フォーマット | | CSV | `string/csv` | 可変 | CSV フォーマット | | NMEA | `string/nmea` | 可変 | NMEA フォーマット | + * @param projectUuid プロジェクトのUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
101 Switching Protocols. -
+ */ + public ApiResponse projectStreamWithHttpInfo(String projectUuid) throws ApiException { + okhttp3.Call localVarCall = projectStreamValidateBeforeCall(projectUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Get Project Realtime Streaming Data (asynchronously) + * WebSocketを使ってリアルタイムデータを取得します。 同じくWebSocketを使ってリアルタイムデータを扱う `/v1/ws/measurements` では、 iSCP (intdash Stream Control Protocol)を使用しますが、 本エンドポイントではJSONとしてデータポイントを取得することができます。 ## クエリパラメータ | パラメータ名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | -------------------------- | ---------- | ---------- | ----- | | flush_interval | string | true | - | メッセージがフラッシュされる間隔を指定します。 単位は\"ns\"、\"us\" (または\"µs\")、\"ms\"、\"s\"、\"m\"、\"h\"のいずれかを使用してください (参考: [Goのtimeパッケージ](https://golang.org/pkg/time/#ParseDuration))。 指定がない場合は、メッセージごとにフラッシュされます。 | ## メッセージのフォーマット ### JSON Lines リクエストメッセージおよびレスポンスメッセージには [JSON lines](http://jsonlines.org/) 形式を使用します。 1つのメッセージが1行です。 例: ``` { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} . . ``` 注意: メッセージに改行を含むことはできません。 改行が入ったメッセージの例(悪い例): ``` { \"type\" : \"message_type\", \"contents\" : { depends on message_type } } ``` メッセージには、 `type` 属性および `contents` 属性が必要です。 `contents` のスキーマは、 `type` により決定されます。 ## ダウンストリーム開始リクエスト ### ダウンストリーム開始リクエストメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | | type | string | true | `\"open_downstream\"` | 固定値 | | contents | object(次の表を参照) | true | - | | ### ダウンストリーム開始リクエスト内 `contents` のスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ------------------ | ------ | | edge | string | true | - | データの送信元エッジを、エッジのUUIDまたはエッジの名前で指定します。 最初に、一致するエッジUUIDが検索され、一致するエッジUUIDがなければ一致する名前が検索されます。 | | filter | string array | false | `[]` | 「フィルター」を参照してください。 | ### フィルター データコードとデータ名を指定することにより、指定にマッチしたデータポイントだけを受信することができます。 ただし、メタデータのデータポイントは、フィルターの設定に関係なくすべて受信されます。 フィルターは以下のフォーマットで設定します: `<型コード>:<データ名>` データコードについては、後述の 時系列データのペイロードフォーマット を参照してください。 フィルター設定文字列の各セグメントにはワイルドカード( `**` )を使用することができます。 例: - 型コードが `can_data_field` のデータポイント(CAN)を受信する -> `can_data_field:**` - 型コードが `string/` で始まるデータポイントを受信する(`string/json` 、 `string/csv` など) -> `string/_**:**` - 文字列のデータポイントのうち、データ名が `my-string` のものを受信する -> `string:my-string` `filter` として空の配列が指定された場合は、すべてのデータポイントを受信します。 ### ダウンストリーム開始リクエストの例 リクエスト: ``` { \"type\" : \"open_downstream\", \"contents\" : { \"edge\" : \"edge_name_or_uuid\", \"filter\" : [\"string:a/b\"] } } ``` レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: open downstream\" } } ``` ## ダウンストリーム更新リクエスト ### ダウンストリーム更新リクエストメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | | type | string | true | `\"update_downstream\"` | 固定値 | | contents | object(次の表を参照) | true | - | | ### ダウンストリーム更新リクエスト内 `contents` のスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | filter | string array | true | - |「フィルター」を参照してください。 | ### ダウンストリーム更新リクエストの例 フィルターを指定する場合のリクエスト: ``` { \"type\" : \"update_downstream\", \"contents\" : { \"filter\" : [\"string:a/b\"] } } ``` フィルターを指定せずすべてのデータポイントを受信する場合のリクエスト: ``` { \"type\" : \"update_downstream\", \"contents\" : { \"filter\" : [] } } ``` レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: update downstream\" } } ``` ## ダウンストリーム終了リクエスト ### ダウンストリーム終了リクエストメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | | type | string | true | `\"close_downstream\"` | 固定値| ### ダウンストリーム終了リクエストの例 リクエスト: ``` { \"type\" : \"close_downstream\"} ``` レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: close downstream\" } } ``` ## レスポンスメッセージ リクエストの処理結果が返却されます。 ### レスポンスメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ----- | | type | string | true | `\"response\"` | 固定値| | ack | number | false | - | リクエストで `id` が指定されていた場合、その値 | | contents | object(次の表を参照) | true | - | | ### レスポンス内 `contents` のスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ----- | | code | number | true | - | 10000 < code < 20000 の場合、成功。 20000 < code < 30000 の場合、不正なリクエスト。50000 < code の場合、予期しないエラー | | message | string | true | - | リクエストで `id` が指定されていた場合、その値 | ### レスポンスの例 ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: open downstream\" } } ``` リクエストで `id` が指定されている場合のレスポンス例( `id` の値が `ack` として返ります): ``` { \"ack\": 1, \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: open downstream\" } } ``` # 時系列データのペイロードフォーマット 時系列データポイントが格納するペイロードのフォーマットです。各データ型に対する `contents`のフォーマットは [このページ](https://git.aptpod.co.jp/intdash-protocol/dataformat/-/tree/master/data) を参照してください。 ## データ型 各データバイナリには、ペイロードのフォーマットを示すデータ型が付与されます。各データ型には、型を識別するためのコード名が割り当てられます。 ## 標準データ型 単一のデータを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :---------------------- | :-------- | :------: | :--------------------------- | | Bytes | `bytes` | 可変 | フォーマットなしバイト列 | | String | `string` | 可変 | フォーマットなし文字列 | | Float64 | `float64` | 8 | IEEE754 64ビット浮動小数点数 | | Int64 | `int64` | 8 | 符号付き 64ビット整数 | | Bool | `bool` | 1 | 真偽値 | ## メディアデータ型 メディア(動画/音声)関連のデータを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :---------------------- | :----------- | :------: | :------------------------- | | JPEG | `video/jpeg` | 可変 | JPEG 形式の画像データ | | H264 | `video/h264` | 可変 | H264 形式の映像データ | ### 拡張バイナリ型 フォーマット付きのバイナリデータを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :------------------------------------------------ | :---------------- | :------: | :---------------------------------------- | | BSON | `bson` | 可変 | BSON フォーマット | | CAN Frame | `can_frame` | 可変 | CAN フレーム フォーマット | | CAN Data Field | `can_data_field` | 可変 | CAN データフィールド フォーマット | | MAVLink1 Packet | `mavlink1_packet` | 可変 | MAVLink パケット フォーマット | | Generic (非推奨) | `generic` | 可変 | iSCPv1互換 汎用フォーマット | | Controlpad (非推奨) | `control_pad` | 可変 | iSCPv1互換 コントロールパッドフォーマット | | GeneralSensor (非推奨) | `general_sensor` | 可変 | iSCPv1互換 汎用センサーフォーマット | ### 拡張文字列型 フォーマット付きの文字列データを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :----------------------- | :------------ | :------: | :---------------- | | JSON | `string/json` | 可変 | JSON フォーマット | | CSV | `string/csv` | 可変 | CSV フォーマット | | NMEA | `string/nmea` | 可変 | NMEA フォーマット | + * @param projectUuid プロジェクトのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
101 Switching Protocols. -
+ */ + public okhttp3.Call projectStreamAsync(String projectUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = projectStreamValidateBeforeCall(projectUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for stream + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
101 Switching Protocols. -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call streamCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/stream"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call streamValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return streamCall(_callback); + + } + + /** + * Get Realtime Streaming Data + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/stream` を使用してください) WebSocketを使ってリアルタイムデータを取得します。 同じくWebSocketを使ってリアルタイムデータを扱う `/v1/ws/measurements` では、 iSCP (intdash Stream Control Protocol)を使用しますが、 本エンドポイントではJSONとしてデータポイントを取得することができます。 ## クエリパラメータ | パラメータ名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | -------------------------- | ---------- | ---------- | ----- | | flush_interval | string | true | - | メッセージがフラッシュされる間隔を指定します。 単位は\"ns\"、\"us\" (または\"µs\")、\"ms\"、\"s\"、\"m\"、\"h\"のいずれかを使用してください (参考: [Goのtimeパッケージ](https://golang.org/pkg/time/#ParseDuration))。 指定がない場合は、メッセージごとにフラッシュされます。 | ## メッセージのフォーマット ### JSON Lines リクエストメッセージおよびレスポンスメッセージには [JSON lines](http://jsonlines.org/) 形式を使用します。 1つのメッセージが1行です。 例: ``` { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} . . ``` 注意: メッセージに改行を含むことはできません。 改行が入ったメッセージの例(悪い例): ``` { \"type\" : \"message_type\", \"contents\" : { depends on message_type } } ``` メッセージには、 `type` 属性および `contents` 属性が必要です。 `contents` のスキーマは、 `type` により決定されます。 ## ダウンストリーム開始リクエスト ### ダウンストリーム開始リクエストメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | | type | string | true | `\"open_downstream\"` | 固定値 | | contents | object(次の表を参照) | true | - | | ### ダウンストリーム開始リクエスト内 `contents` のスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ------------------ | ------ | | edge | string | true | - | データの送信元エッジを、エッジのUUIDまたはエッジの名前で指定します。 最初に、一致するエッジUUIDが検索され、一致するエッジUUIDがなければ一致する名前が検索されます。 | | filter | string array | false | `[]` | 「フィルター」を参照してください。 | ### フィルター データコードとデータ名を指定することにより、指定にマッチしたデータポイントだけを受信することができます。 ただし、メタデータのデータポイントは、フィルターの設定に関係なくすべて受信されます。 フィルターは以下のフォーマットで設定します: `<型コード>:<データ名>` データコードについては、後述の 時系列データのペイロードフォーマット を参照してください。 フィルター設定文字列の各セグメントにはワイルドカード( `**` )を使用することができます。 例: - 型コードが `can_data_field` のデータポイント(CAN)を受信する -> `can_data_field:**` - 型コードが `string/` で始まるデータポイントを受信する(`string/json` 、 `string/csv` など) -> `string/_**:**` - 文字列のデータポイントのうち、データ名が `my-string` のものを受信する -> `string:my-string` `filter` として空の配列が指定された場合は、すべてのデータポイントを受信します。 ### ダウンストリーム開始リクエストの例 リクエスト: ``` { \"type\" : \"open_downstream\", \"contents\" : { \"edge\" : \"edge_name_or_uuid\", \"filter\" : [\"string:a/b\"] } } ``` レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: open downstream\" } } ``` ## ダウンストリーム更新リクエスト ### ダウンストリーム更新リクエストメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | | type | string | true | `\"update_downstream\"` | 固定値 | | contents | object(次の表を参照) | true | - | | ### ダウンストリーム更新リクエスト内 `contents` のスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | filter | string array | true | - |「フィルター」を参照してください。 | ### ダウンストリーム更新リクエストの例 フィルターを指定する場合のリクエスト: ``` { \"type\" : \"update_downstream\", \"contents\" : { \"filter\" : [\"string:a/b\"] } } ``` フィルターを指定せずすべてのデータポイントを受信する場合のリクエスト: ``` { \"type\" : \"update_downstream\", \"contents\" : { \"filter\" : [] } } ``` レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: update downstream\" } } ``` ## ダウンストリーム終了リクエスト ### ダウンストリーム終了リクエストメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | | type | string | true | `\"close_downstream\"` | 固定値| ### ダウンストリーム終了リクエストの例 リクエスト: ``` { \"type\" : \"close_downstream\"} ``` レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: close downstream\" } } ``` ## レスポンスメッセージ リクエストの処理結果が返却されます。 ### レスポンスメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ----- | | type | string | true | `\"response\"` | 固定値| | ack | number | false | - | リクエストで `id` が指定されていた場合、その値 | | contents | object(次の表を参照) | true | - | | ### レスポンス内 `contents` のスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ----- | | code | number | true | - | 10000 < code < 20000 の場合、成功。 20000 < code < 30000 の場合、不正なリクエスト。50000 < code の場合、予期しないエラー | | message | string | true | - | リクエストで `id` が指定されていた場合、その値 | ### レスポンスの例 ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: open downstream\" } } ``` リクエストで `id` が指定されている場合のレスポンス例( `id` の値が `ack` として返ります): ``` { \"ack\": 1, \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: open downstream\" } } ``` # 時系列データのペイロードフォーマット 時系列データポイントが格納するペイロードのフォーマットです。各データ型に対する `contents`のフォーマットは [このページ](https://git.aptpod.co.jp/intdash-protocol/dataformat/-/tree/master/data) を参照してください。 ## データ型 各データバイナリには、ペイロードのフォーマットを示すデータ型が付与されます。各データ型には、型を識別するためのコード名が割り当てられます。 ## 標準データ型 単一のデータを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :---------------------- | :-------- | :------: | :--------------------------- | | Bytes | `bytes` | 可変 | フォーマットなしバイト列 | | String | `string` | 可変 | フォーマットなし文字列 | | Float64 | `float64` | 8 | IEEE754 64ビット浮動小数点数 | | Int64 | `int64` | 8 | 符号付き 64ビット整数 | | Bool | `bool` | 1 | 真偽値 | ## メディアデータ型 メディア(動画/音声)関連のデータを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :---------------------- | :----------- | :------: | :------------------------- | | JPEG | `video/jpeg` | 可変 | JPEG 形式の画像データ | | H264 | `video/h264` | 可変 | H264 形式の映像データ | ### 拡張バイナリ型 フォーマット付きのバイナリデータを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :------------------------------------------------ | :---------------- | :------: | :---------------------------------------- | | BSON | `bson` | 可変 | BSON フォーマット | | CAN Frame | `can_frame` | 可変 | CAN フレーム フォーマット | | CAN Data Field | `can_data_field` | 可変 | CAN データフィールド フォーマット | | MAVLink1 Packet | `mavlink1_packet` | 可変 | MAVLink パケット フォーマット | | Generic (非推奨) | `generic` | 可変 | iSCPv1互換 汎用フォーマット | | Controlpad (非推奨) | `control_pad` | 可変 | iSCPv1互換 コントロールパッドフォーマット | | GeneralSensor (非推奨) | `general_sensor` | 可変 | iSCPv1互換 汎用センサーフォーマット | ### 拡張文字列型 フォーマット付きの文字列データを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :----------------------- | :------------ | :------: | :---------------- | | JSON | `string/json` | 可変 | JSON フォーマット | | CSV | `string/csv` | 可変 | CSV フォーマット | | NMEA | `string/nmea` | 可変 | NMEA フォーマット | + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
101 Switching Protocols. -
+ * @deprecated + */ + @Deprecated + public void stream() throws ApiException { + streamWithHttpInfo(); + } + + /** + * Get Realtime Streaming Data + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/stream` を使用してください) WebSocketを使ってリアルタイムデータを取得します。 同じくWebSocketを使ってリアルタイムデータを扱う `/v1/ws/measurements` では、 iSCP (intdash Stream Control Protocol)を使用しますが、 本エンドポイントではJSONとしてデータポイントを取得することができます。 ## クエリパラメータ | パラメータ名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | -------------------------- | ---------- | ---------- | ----- | | flush_interval | string | true | - | メッセージがフラッシュされる間隔を指定します。 単位は\"ns\"、\"us\" (または\"µs\")、\"ms\"、\"s\"、\"m\"、\"h\"のいずれかを使用してください (参考: [Goのtimeパッケージ](https://golang.org/pkg/time/#ParseDuration))。 指定がない場合は、メッセージごとにフラッシュされます。 | ## メッセージのフォーマット ### JSON Lines リクエストメッセージおよびレスポンスメッセージには [JSON lines](http://jsonlines.org/) 形式を使用します。 1つのメッセージが1行です。 例: ``` { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} . . ``` 注意: メッセージに改行を含むことはできません。 改行が入ったメッセージの例(悪い例): ``` { \"type\" : \"message_type\", \"contents\" : { depends on message_type } } ``` メッセージには、 `type` 属性および `contents` 属性が必要です。 `contents` のスキーマは、 `type` により決定されます。 ## ダウンストリーム開始リクエスト ### ダウンストリーム開始リクエストメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | | type | string | true | `\"open_downstream\"` | 固定値 | | contents | object(次の表を参照) | true | - | | ### ダウンストリーム開始リクエスト内 `contents` のスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ------------------ | ------ | | edge | string | true | - | データの送信元エッジを、エッジのUUIDまたはエッジの名前で指定します。 最初に、一致するエッジUUIDが検索され、一致するエッジUUIDがなければ一致する名前が検索されます。 | | filter | string array | false | `[]` | 「フィルター」を参照してください。 | ### フィルター データコードとデータ名を指定することにより、指定にマッチしたデータポイントだけを受信することができます。 ただし、メタデータのデータポイントは、フィルターの設定に関係なくすべて受信されます。 フィルターは以下のフォーマットで設定します: `<型コード>:<データ名>` データコードについては、後述の 時系列データのペイロードフォーマット を参照してください。 フィルター設定文字列の各セグメントにはワイルドカード( `**` )を使用することができます。 例: - 型コードが `can_data_field` のデータポイント(CAN)を受信する -> `can_data_field:**` - 型コードが `string/` で始まるデータポイントを受信する(`string/json` 、 `string/csv` など) -> `string/_**:**` - 文字列のデータポイントのうち、データ名が `my-string` のものを受信する -> `string:my-string` `filter` として空の配列が指定された場合は、すべてのデータポイントを受信します。 ### ダウンストリーム開始リクエストの例 リクエスト: ``` { \"type\" : \"open_downstream\", \"contents\" : { \"edge\" : \"edge_name_or_uuid\", \"filter\" : [\"string:a/b\"] } } ``` レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: open downstream\" } } ``` ## ダウンストリーム更新リクエスト ### ダウンストリーム更新リクエストメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | | type | string | true | `\"update_downstream\"` | 固定値 | | contents | object(次の表を参照) | true | - | | ### ダウンストリーム更新リクエスト内 `contents` のスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | filter | string array | true | - |「フィルター」を参照してください。 | ### ダウンストリーム更新リクエストの例 フィルターを指定する場合のリクエスト: ``` { \"type\" : \"update_downstream\", \"contents\" : { \"filter\" : [\"string:a/b\"] } } ``` フィルターを指定せずすべてのデータポイントを受信する場合のリクエスト: ``` { \"type\" : \"update_downstream\", \"contents\" : { \"filter\" : [] } } ``` レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: update downstream\" } } ``` ## ダウンストリーム終了リクエスト ### ダウンストリーム終了リクエストメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | | type | string | true | `\"close_downstream\"` | 固定値| ### ダウンストリーム終了リクエストの例 リクエスト: ``` { \"type\" : \"close_downstream\"} ``` レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: close downstream\" } } ``` ## レスポンスメッセージ リクエストの処理結果が返却されます。 ### レスポンスメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ----- | | type | string | true | `\"response\"` | 固定値| | ack | number | false | - | リクエストで `id` が指定されていた場合、その値 | | contents | object(次の表を参照) | true | - | | ### レスポンス内 `contents` のスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ----- | | code | number | true | - | 10000 < code < 20000 の場合、成功。 20000 < code < 30000 の場合、不正なリクエスト。50000 < code の場合、予期しないエラー | | message | string | true | - | リクエストで `id` が指定されていた場合、その値 | ### レスポンスの例 ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: open downstream\" } } ``` リクエストで `id` が指定されている場合のレスポンス例( `id` の値が `ack` として返ります): ``` { \"ack\": 1, \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: open downstream\" } } ``` # 時系列データのペイロードフォーマット 時系列データポイントが格納するペイロードのフォーマットです。各データ型に対する `contents`のフォーマットは [このページ](https://git.aptpod.co.jp/intdash-protocol/dataformat/-/tree/master/data) を参照してください。 ## データ型 各データバイナリには、ペイロードのフォーマットを示すデータ型が付与されます。各データ型には、型を識別するためのコード名が割り当てられます。 ## 標準データ型 単一のデータを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :---------------------- | :-------- | :------: | :--------------------------- | | Bytes | `bytes` | 可変 | フォーマットなしバイト列 | | String | `string` | 可変 | フォーマットなし文字列 | | Float64 | `float64` | 8 | IEEE754 64ビット浮動小数点数 | | Int64 | `int64` | 8 | 符号付き 64ビット整数 | | Bool | `bool` | 1 | 真偽値 | ## メディアデータ型 メディア(動画/音声)関連のデータを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :---------------------- | :----------- | :------: | :------------------------- | | JPEG | `video/jpeg` | 可変 | JPEG 形式の画像データ | | H264 | `video/h264` | 可変 | H264 形式の映像データ | ### 拡張バイナリ型 フォーマット付きのバイナリデータを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :------------------------------------------------ | :---------------- | :------: | :---------------------------------------- | | BSON | `bson` | 可変 | BSON フォーマット | | CAN Frame | `can_frame` | 可変 | CAN フレーム フォーマット | | CAN Data Field | `can_data_field` | 可変 | CAN データフィールド フォーマット | | MAVLink1 Packet | `mavlink1_packet` | 可変 | MAVLink パケット フォーマット | | Generic (非推奨) | `generic` | 可変 | iSCPv1互換 汎用フォーマット | | Controlpad (非推奨) | `control_pad` | 可変 | iSCPv1互換 コントロールパッドフォーマット | | GeneralSensor (非推奨) | `general_sensor` | 可変 | iSCPv1互換 汎用センサーフォーマット | ### 拡張文字列型 フォーマット付きの文字列データを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :----------------------- | :------------ | :------: | :---------------- | | JSON | `string/json` | 可変 | JSON フォーマット | | CSV | `string/csv` | 可変 | CSV フォーマット | | NMEA | `string/nmea` | 可変 | NMEA フォーマット | + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
101 Switching Protocols. -
+ * @deprecated + */ + @Deprecated + public ApiResponse streamWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = streamValidateBeforeCall(null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Get Realtime Streaming Data (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/stream` を使用してください) WebSocketを使ってリアルタイムデータを取得します。 同じくWebSocketを使ってリアルタイムデータを扱う `/v1/ws/measurements` では、 iSCP (intdash Stream Control Protocol)を使用しますが、 本エンドポイントではJSONとしてデータポイントを取得することができます。 ## クエリパラメータ | パラメータ名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | -------------------------- | ---------- | ---------- | ----- | | flush_interval | string | true | - | メッセージがフラッシュされる間隔を指定します。 単位は\"ns\"、\"us\" (または\"µs\")、\"ms\"、\"s\"、\"m\"、\"h\"のいずれかを使用してください (参考: [Goのtimeパッケージ](https://golang.org/pkg/time/#ParseDuration))。 指定がない場合は、メッセージごとにフラッシュされます。 | ## メッセージのフォーマット ### JSON Lines リクエストメッセージおよびレスポンスメッセージには [JSON lines](http://jsonlines.org/) 形式を使用します。 1つのメッセージが1行です。 例: ``` { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} { \"type\" : \"message_type\", \"contents\" : { depends on message_type }} . . ``` 注意: メッセージに改行を含むことはできません。 改行が入ったメッセージの例(悪い例): ``` { \"type\" : \"message_type\", \"contents\" : { depends on message_type } } ``` メッセージには、 `type` 属性および `contents` 属性が必要です。 `contents` のスキーマは、 `type` により決定されます。 ## ダウンストリーム開始リクエスト ### ダウンストリーム開始リクエストメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | | type | string | true | `\"open_downstream\"` | 固定値 | | contents | object(次の表を参照) | true | - | | ### ダウンストリーム開始リクエスト内 `contents` のスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ------------------ | ------ | | edge | string | true | - | データの送信元エッジを、エッジのUUIDまたはエッジの名前で指定します。 最初に、一致するエッジUUIDが検索され、一致するエッジUUIDがなければ一致する名前が検索されます。 | | filter | string array | false | `[]` | 「フィルター」を参照してください。 | ### フィルター データコードとデータ名を指定することにより、指定にマッチしたデータポイントだけを受信することができます。 ただし、メタデータのデータポイントは、フィルターの設定に関係なくすべて受信されます。 フィルターは以下のフォーマットで設定します: `<型コード>:<データ名>` データコードについては、後述の 時系列データのペイロードフォーマット を参照してください。 フィルター設定文字列の各セグメントにはワイルドカード( `**` )を使用することができます。 例: - 型コードが `can_data_field` のデータポイント(CAN)を受信する -> `can_data_field:**` - 型コードが `string/` で始まるデータポイントを受信する(`string/json` 、 `string/csv` など) -> `string/_**:**` - 文字列のデータポイントのうち、データ名が `my-string` のものを受信する -> `string:my-string` `filter` として空の配列が指定された場合は、すべてのデータポイントを受信します。 ### ダウンストリーム開始リクエストの例 リクエスト: ``` { \"type\" : \"open_downstream\", \"contents\" : { \"edge\" : \"edge_name_or_uuid\", \"filter\" : [\"string:a/b\"] } } ``` レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: open downstream\" } } ``` ## ダウンストリーム更新リクエスト ### ダウンストリーム更新リクエストメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | | type | string | true | `\"update_downstream\"` | 固定値 | | contents | object(次の表を参照) | true | - | | ### ダウンストリーム更新リクエスト内 `contents` のスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | filter | string array | true | - |「フィルター」を参照してください。 | ### ダウンストリーム更新リクエストの例 フィルターを指定する場合のリクエスト: ``` { \"type\" : \"update_downstream\", \"contents\" : { \"filter\" : [\"string:a/b\"] } } ``` フィルターを指定せずすべてのデータポイントを受信する場合のリクエスト: ``` { \"type\" : \"update_downstream\", \"contents\" : { \"filter\" : [] } } ``` レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: update downstream\" } } ``` ## ダウンストリーム終了リクエスト ### ダウンストリーム終了リクエストメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | id | number | false | - | idに指定した値は、レスポンスの `ack` 属性として返ります。 | | type | string | true | `\"close_downstream\"` | 固定値| ### ダウンストリーム終了リクエストの例 リクエスト: ``` { \"type\" : \"close_downstream\"} ``` レスポンス(レスポンスの詳細については、「レスポンス」を参照してください): ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: close downstream\" } } ``` ## レスポンスメッセージ リクエストの処理結果が返却されます。 ### レスポンスメッセージのスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ----- | | type | string | true | `\"response\"` | 固定値| | ack | number | false | - | リクエストで `id` が指定されていた場合、その値 | | contents | object(次の表を参照) | true | - | | ### レスポンス内 `contents` のスキーマ | 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ----- | | code | number | true | - | 10000 < code < 20000 の場合、成功。 20000 < code < 30000 の場合、不正なリクエスト。50000 < code の場合、予期しないエラー | | message | string | true | - | リクエストで `id` が指定されていた場合、その値 | ### レスポンスの例 ``` { \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: open downstream\" } } ``` リクエストで `id` が指定されている場合のレスポンス例( `id` の値が `ack` として返ります): ``` { \"ack\": 1, \"type\" : \"response\", \"contents\": { \"code\" : 10000, \"message\": \"succeed: open downstream\" } } ``` # 時系列データのペイロードフォーマット 時系列データポイントが格納するペイロードのフォーマットです。各データ型に対する `contents`のフォーマットは [このページ](https://git.aptpod.co.jp/intdash-protocol/dataformat/-/tree/master/data) を参照してください。 ## データ型 各データバイナリには、ペイロードのフォーマットを示すデータ型が付与されます。各データ型には、型を識別するためのコード名が割り当てられます。 ## 標準データ型 単一のデータを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :---------------------- | :-------- | :------: | :--------------------------- | | Bytes | `bytes` | 可変 | フォーマットなしバイト列 | | String | `string` | 可変 | フォーマットなし文字列 | | Float64 | `float64` | 8 | IEEE754 64ビット浮動小数点数 | | Int64 | `int64` | 8 | 符号付き 64ビット整数 | | Bool | `bool` | 1 | 真偽値 | ## メディアデータ型 メディア(動画/音声)関連のデータを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :---------------------- | :----------- | :------: | :------------------------- | | JPEG | `video/jpeg` | 可変 | JPEG 形式の画像データ | | H264 | `video/h264` | 可変 | H264 形式の映像データ | ### 拡張バイナリ型 フォーマット付きのバイナリデータを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :------------------------------------------------ | :---------------- | :------: | :---------------------------------------- | | BSON | `bson` | 可変 | BSON フォーマット | | CAN Frame | `can_frame` | 可変 | CAN フレーム フォーマット | | CAN Data Field | `can_data_field` | 可変 | CAN データフィールド フォーマット | | MAVLink1 Packet | `mavlink1_packet` | 可変 | MAVLink パケット フォーマット | | Generic (非推奨) | `generic` | 可変 | iSCPv1互換 汎用フォーマット | | Controlpad (非推奨) | `control_pad` | 可変 | iSCPv1互換 コントロールパッドフォーマット | | GeneralSensor (非推奨) | `general_sensor` | 可変 | iSCPv1互換 汎用センサーフォーマット | ### 拡張文字列型 フォーマット付きの文字列データを格納するデータ型です。 | 名称 | コード | バイト長 | 説明 | | :----------------------- | :------------ | :------: | :---------------- | | JSON | `string/json` | 可変 | JSON フォーマット | | CSV | `string/csv` | 可変 | CSV フォーマット | | NMEA | `string/nmea` | 可変 | NMEA フォーマット | + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
101 Switching Protocols. -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call streamAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = streamValidateBeforeCall(_callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } +} diff --git a/intdash/src/main/java/com/aptpod/intdash/MeasDataPointIdsApi.java b/intdash/src/main/java/com/aptpod/intdash/MeasDataPointIdsApi.java new file mode 100644 index 0000000..057aff9 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/intdash/MeasDataPointIdsApi.java @@ -0,0 +1,379 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.intdash; + +import com.aptpod.ApiCallback; +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.ApiResponse; +import com.aptpod.Configuration; +import com.aptpod.Pair; +import com.aptpod.ProgressRequestBody; +import com.aptpod.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.openapitools.client.model.DataPointDataIDs; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class MeasDataPointIdsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public MeasDataPointIdsApi() { + this(Configuration.getDefaultApiClient()); + } + + public MeasDataPointIdsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for listDataPointDataIDs + * @param name どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: - 計測UUID - エッジUUID - エッジの名前 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 (required) + * @param start 取得対象範囲の始点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param end 取得対象範囲の終点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call listDataPointDataIDsCall(String name, String start, String end, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/data_ids"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (name != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("name", name)); + } + + if (start != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("start", start)); + } + + if (end != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("end", end)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call listDataPointDataIDsValidateBeforeCall(String name, String start, String end, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling listDataPointDataIDs(Async)"); + } + + return listDataPointDataIDsCall(name, start, end, _callback); + + } + + /** + * List Data Point Data IDs + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/data_ids` を使用してください) データポイントのデータID( `data_type`, `data_id` )のリストを取得します。 + * @param name どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: - 計測UUID - エッジUUID - エッジの名前 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 (required) + * @param start 取得対象範囲の始点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param end 取得対象範囲の終点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @return DataPointDataIDs + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public DataPointDataIDs listDataPointDataIDs(String name, String start, String end) throws ApiException { + ApiResponse localVarResp = listDataPointDataIDsWithHttpInfo(name, start, end); + return localVarResp.getData(); + } + + /** + * List Data Point Data IDs + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/data_ids` を使用してください) データポイントのデータID( `data_type`, `data_id` )のリストを取得します。 + * @param name どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: - 計測UUID - エッジUUID - エッジの名前 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 (required) + * @param start 取得対象範囲の始点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param end 取得対象範囲の終点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @return ApiResponse<DataPointDataIDs> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse listDataPointDataIDsWithHttpInfo(String name, String start, String end) throws ApiException { + okhttp3.Call localVarCall = listDataPointDataIDsValidateBeforeCall(name, start, end, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Data Point Data IDs (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/data_ids` を使用してください) データポイントのデータID( `data_type`, `data_id` )のリストを取得します。 + * @param name どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: - 計測UUID - エッジUUID - エッジの名前 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 (required) + * @param start 取得対象範囲の始点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param end 取得対象範囲の終点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call listDataPointDataIDsAsync(String name, String start, String end, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listDataPointDataIDsValidateBeforeCall(name, start, end, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listProjectDataPointDataIDs + * @param projectUuid プロジェクトのUUID (required) + * @param name どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: - 計測UUID - エッジUUID - エッジの名前 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 (required) + * @param start 取得対象範囲の始点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param end 取得対象範囲の終点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listProjectDataPointDataIDsCall(String projectUuid, String name, String start, String end, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/data_ids" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (name != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("name", name)); + } + + if (start != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("start", start)); + } + + if (end != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("end", end)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listProjectDataPointDataIDsValidateBeforeCall(String projectUuid, String name, String start, String end, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling listProjectDataPointDataIDs(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling listProjectDataPointDataIDs(Async)"); + } + + return listProjectDataPointDataIDsCall(projectUuid, name, start, end, _callback); + + } + + /** + * List Project Data Point Data IDs + * データポイントのデータID( `data_type`, `data_id` )のリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param name どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: - 計測UUID - エッジUUID - エッジの名前 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 (required) + * @param start 取得対象範囲の始点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param end 取得対象範囲の終点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @return DataPointDataIDs + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public DataPointDataIDs listProjectDataPointDataIDs(String projectUuid, String name, String start, String end) throws ApiException { + ApiResponse localVarResp = listProjectDataPointDataIDsWithHttpInfo(projectUuid, name, start, end); + return localVarResp.getData(); + } + + /** + * List Project Data Point Data IDs + * データポイントのデータID( `data_type`, `data_id` )のリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param name どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: - 計測UUID - エッジUUID - エッジの名前 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 (required) + * @param start 取得対象範囲の始点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param end 取得対象範囲の終点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @return ApiResponse<DataPointDataIDs> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listProjectDataPointDataIDsWithHttpInfo(String projectUuid, String name, String start, String end) throws ApiException { + okhttp3.Call localVarCall = listProjectDataPointDataIDsValidateBeforeCall(projectUuid, name, start, end, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Project Data Point Data IDs (asynchronously) + * データポイントのデータID( `data_type`, `data_id` )のリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param name どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: - 計測UUID - エッジUUID - エッジの名前 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 (required) + * @param start 取得対象範囲の始点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param end 取得対象範囲の終点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listProjectDataPointDataIDsAsync(String projectUuid, String name, String start, String end, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listProjectDataPointDataIDsValidateBeforeCall(projectUuid, name, start, end, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/intdash/src/main/java/com/aptpod/intdash/MeasDataPointsApi.java b/intdash/src/main/java/com/aptpod/intdash/MeasDataPointsApi.java new file mode 100644 index 0000000..00db486 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/intdash/MeasDataPointsApi.java @@ -0,0 +1,1323 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.intdash; + +import com.aptpod.ApiCallback; +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.ApiResponse; +import com.aptpod.Configuration; +import com.aptpod.Pair; +import com.aptpod.ProgressRequestBody; +import com.aptpod.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.openapitools.client.model.DataIDs; +import java.io.File; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class MeasDataPointsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public MeasDataPointsApi() { + this(Configuration.getDefaultApiClient()); + } + + public MeasDataPointsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for createDataPoints + * @param body このエンドポイント使用時は、 `Content-Type` を以下にしてください。 * `application/protobuf` * [protocol.proto](https://docs.intdash.jp/api/measurement/proto/index.html) の `StoreProto` を参照してください。 * `DataPointProto` の `data_payload`は iSCP v1のデータフォーマットに従います。 * iSCPのデータフォーマットは [詳説 iSCP 1.0](https://docs.intdash.jp/manual/iscp1-essentials/latest/ja/iscp1-essentials-ja.pdf#page=23)を参照してください。 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call createDataPointsCall(File body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/v1/measurements/data"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/protobuf" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call createDataPointsValidateBeforeCall(File body, final ApiCallback _callback) throws ApiException { + return createDataPointsCall(body, _callback); + + } + + /** + * Store Data Points + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/data` を使用してください) データポイントを登録します。 + * @param body このエンドポイント使用時は、 `Content-Type` を以下にしてください。 * `application/protobuf` * [protocol.proto](https://docs.intdash.jp/api/measurement/proto/index.html) の `StoreProto` を参照してください。 * `DataPointProto` の `data_payload`は iSCP v1のデータフォーマットに従います。 * iSCPのデータフォーマットは [詳説 iSCP 1.0](https://docs.intdash.jp/manual/iscp1-essentials/latest/ja/iscp1-essentials-ja.pdf#page=23)を参照してください。 (optional) + * @return File + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public File createDataPoints(File body) throws ApiException { + ApiResponse localVarResp = createDataPointsWithHttpInfo(body); + return localVarResp.getData(); + } + + /** + * Store Data Points + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/data` を使用してください) データポイントを登録します。 + * @param body このエンドポイント使用時は、 `Content-Type` を以下にしてください。 * `application/protobuf` * [protocol.proto](https://docs.intdash.jp/api/measurement/proto/index.html) の `StoreProto` を参照してください。 * `DataPointProto` の `data_payload`は iSCP v1のデータフォーマットに従います。 * iSCPのデータフォーマットは [詳説 iSCP 1.0](https://docs.intdash.jp/manual/iscp1-essentials/latest/ja/iscp1-essentials-ja.pdf#page=23)を参照してください。 (optional) + * @return ApiResponse<File> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse createDataPointsWithHttpInfo(File body) throws ApiException { + okhttp3.Call localVarCall = createDataPointsValidateBeforeCall(body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Store Data Points (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/data` を使用してください) データポイントを登録します。 + * @param body このエンドポイント使用時は、 `Content-Type` を以下にしてください。 * `application/protobuf` * [protocol.proto](https://docs.intdash.jp/api/measurement/proto/index.html) の `StoreProto` を参照してください。 * `DataPointProto` の `data_payload`は iSCP v1のデータフォーマットに従います。 * iSCPのデータフォーマットは [詳説 iSCP 1.0](https://docs.intdash.jp/manual/iscp1-essentials/latest/ja/iscp1-essentials-ja.pdf#page=23)を参照してください。 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call createDataPointsAsync(File body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createDataPointsValidateBeforeCall(body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createProjectDataPoints + * @param projectUuid プロジェクトのUUID (required) + * @param body このエンドポイント使用時は、 `Content-Type` を以下にしてください。 * `application/protobuf` * [protocol.proto](https://docs.intdash.jp/api/measurement/proto/index.html) の `StoreProto` を参照してください。 * `DataPointProto` の `data_payload`は iSCP v1のデータフォーマットに従います。 * iSCPのデータフォーマットは [詳説 iSCP 1.0](https://docs.intdash.jp/manual/iscp1-essentials/latest/ja/iscp1-essentials-ja.pdf#page=23)を参照してください。 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createProjectDataPointsCall(String projectUuid, File body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/data" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/protobuf" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createProjectDataPointsValidateBeforeCall(String projectUuid, File body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling createProjectDataPoints(Async)"); + } + + return createProjectDataPointsCall(projectUuid, body, _callback); + + } + + /** + * Store Project Data Points + * データポイントを登録します。 + * @param projectUuid プロジェクトのUUID (required) + * @param body このエンドポイント使用時は、 `Content-Type` を以下にしてください。 * `application/protobuf` * [protocol.proto](https://docs.intdash.jp/api/measurement/proto/index.html) の `StoreProto` を参照してください。 * `DataPointProto` の `data_payload`は iSCP v1のデータフォーマットに従います。 * iSCPのデータフォーマットは [詳説 iSCP 1.0](https://docs.intdash.jp/manual/iscp1-essentials/latest/ja/iscp1-essentials-ja.pdf#page=23)を参照してください。 (optional) + * @return File + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public File createProjectDataPoints(String projectUuid, File body) throws ApiException { + ApiResponse localVarResp = createProjectDataPointsWithHttpInfo(projectUuid, body); + return localVarResp.getData(); + } + + /** + * Store Project Data Points + * データポイントを登録します。 + * @param projectUuid プロジェクトのUUID (required) + * @param body このエンドポイント使用時は、 `Content-Type` を以下にしてください。 * `application/protobuf` * [protocol.proto](https://docs.intdash.jp/api/measurement/proto/index.html) の `StoreProto` を参照してください。 * `DataPointProto` の `data_payload`は iSCP v1のデータフォーマットに従います。 * iSCPのデータフォーマットは [詳説 iSCP 1.0](https://docs.intdash.jp/manual/iscp1-essentials/latest/ja/iscp1-essentials-ja.pdf#page=23)を参照してください。 (optional) + * @return ApiResponse<File> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse createProjectDataPointsWithHttpInfo(String projectUuid, File body) throws ApiException { + okhttp3.Call localVarCall = createProjectDataPointsValidateBeforeCall(projectUuid, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Store Project Data Points (asynchronously) + * データポイントを登録します。 + * @param projectUuid プロジェクトのUUID (required) + * @param body このエンドポイント使用時は、 `Content-Type` を以下にしてください。 * `application/protobuf` * [protocol.proto](https://docs.intdash.jp/api/measurement/proto/index.html) の `StoreProto` を参照してください。 * `DataPointProto` の `data_payload`は iSCP v1のデータフォーマットに従います。 * iSCPのデータフォーマットは [詳説 iSCP 1.0](https://docs.intdash.jp/manual/iscp1-essentials/latest/ja/iscp1-essentials-ja.pdf#page=23)を参照してください。 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createProjectDataPointsAsync(String projectUuid, File body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createProjectDataPointsValidateBeforeCall(projectUuid, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listDataIDs + * @param start 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) (optional) + * @param end 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) (optional) + * @param edgeUuid エッジのUUID (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call listDataIDsCall(Long start, Long end, String edgeUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/getids"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (start != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("start", start)); + } + + if (end != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("end", end)); + } + + if (edgeUuid != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("edge_uuid", edgeUuid)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call listDataIDsValidateBeforeCall(Long start, Long end, String edgeUuid, final ApiCallback _callback) throws ApiException { + return listDataIDsCall(start, end, edgeUuid, _callback); + + } + + /** + * List Edge's Data IDs + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/getids` を使用してください) エッジを指定し、そのエッジから送信されているデータに含まれるデータ識別子( `data_type` 、 `channel` 、 `data_id` の組み合わせ)のリストを取得します。 + * @param start 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) (optional) + * @param end 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) (optional) + * @param edgeUuid エッジのUUID (optional) + * @return DataIDs + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public DataIDs listDataIDs(Long start, Long end, String edgeUuid) throws ApiException { + ApiResponse localVarResp = listDataIDsWithHttpInfo(start, end, edgeUuid); + return localVarResp.getData(); + } + + /** + * List Edge's Data IDs + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/getids` を使用してください) エッジを指定し、そのエッジから送信されているデータに含まれるデータ識別子( `data_type` 、 `channel` 、 `data_id` の組み合わせ)のリストを取得します。 + * @param start 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) (optional) + * @param end 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) (optional) + * @param edgeUuid エッジのUUID (optional) + * @return ApiResponse<DataIDs> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse listDataIDsWithHttpInfo(Long start, Long end, String edgeUuid) throws ApiException { + okhttp3.Call localVarCall = listDataIDsValidateBeforeCall(start, end, edgeUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Edge's Data IDs (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/getids` を使用してください) エッジを指定し、そのエッジから送信されているデータに含まれるデータ識別子( `data_type` 、 `channel` 、 `data_id` の組み合わせ)のリストを取得します。 + * @param start 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) (optional) + * @param end 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) (optional) + * @param edgeUuid エッジのUUID (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call listDataIDsAsync(Long start, Long end, String edgeUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listDataIDsValidateBeforeCall(start, end, edgeUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listDataIDsWithMeasurementUUID + * @param measurementUuid 計測のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call listDataIDsWithMeasurementUUIDCall(String measurementUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements/{measurement_uuid}/getids" + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call listDataIDsWithMeasurementUUIDValidateBeforeCall(String measurementUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling listDataIDsWithMeasurementUUID(Async)"); + } + + return listDataIDsWithMeasurementUUIDCall(measurementUuid, _callback); + + } + + /** + * List Data IDs + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/getids` を使用してください) 計測を指定し、その計測に含まれるデータ識別子( `data_type` 、 `channel` 、 `data_id` の組み合わせ)のリストを取得します。 + * @param measurementUuid 計測のUUID (required) + * @return DataIDs + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public DataIDs listDataIDsWithMeasurementUUID(String measurementUuid) throws ApiException { + ApiResponse localVarResp = listDataIDsWithMeasurementUUIDWithHttpInfo(measurementUuid); + return localVarResp.getData(); + } + + /** + * List Data IDs + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/getids` を使用してください) 計測を指定し、その計測に含まれるデータ識別子( `data_type` 、 `channel` 、 `data_id` の組み合わせ)のリストを取得します。 + * @param measurementUuid 計測のUUID (required) + * @return ApiResponse<DataIDs> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse listDataIDsWithMeasurementUUIDWithHttpInfo(String measurementUuid) throws ApiException { + okhttp3.Call localVarCall = listDataIDsWithMeasurementUUIDValidateBeforeCall(measurementUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Data IDs (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/getids` を使用してください) 計測を指定し、その計測に含まれるデータ識別子( `data_type` 、 `channel` 、 `data_id` の組み合わせ)のリストを取得します。 + * @param measurementUuid 計測のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call listDataIDsWithMeasurementUUIDAsync(String measurementUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listDataIDsWithMeasurementUUIDValidateBeforeCall(measurementUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listDataPoints + * @param name どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: - 計測UUID - エッジUUID - エッジの名前 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 (required) + * @param start 取得対象範囲の始点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param end 取得対象範囲の終点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param idq 取得したいデータポイントの条件を以下のフォーマットで指定します。 `data_id` には、 `GET /data_ids` エンドポイントで取得できる `data_id` の値を使用します。 - `<data_type>:<channel>/<data_id>` 各セグメントにはワイルドカード(*)を使用することができます。 例: - CAN(data_type = `1`)のデータポイントを取得する -> `1:*_/_*` または `1` - チャンネル2のCANデータポイントを取得する -> `1:2/_*` または `1:2` - チャンネル2のCANデータポイントのうち、データIDが `00000001` のものを取得する -> `1:2/00000001` (optional) + * @param since 指定した時刻以降に更新された計測のみを取得します。 以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z). - UNIX時刻(マイクロ秒)(**Deprecated**). (optional) + * @param exitOnError `true` を指定した場合、取得中にエラーが発生すると処理を中断し、中断前までのデータポイントのリストを返します。 (optional, default to false) + * @param label 信号定義のラベル (optional) + * @param period データポイントを指定した間隔(マイクロ秒)に間引きます。( **Experimental** ) 指定された間隔ごとに最新のデータポイントを残し、それ以外を除去します。 また、指定された間隔になるようにデータポイントの時刻を揃えます。 ``` --1--2----3---4--5---6-7--89-a---b-c---d--e--> period指定なし | | | | | | | | | | | | | | | | 2-----3-----5-----7-----a-----c-----d-----e--> period指定あり |<--->| period ``` (optional) + * @param limit 1回のリクエストで取得する件数。デフォルトは無制限。 (optional) + * @param order 並べ替えの順序。デフォルトは `asc` (昇順) (optional) + * @param timeFormat レスポンスの時刻表示形式。デフォルトは `us` (マイクロ秒) (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK * Transfer-Encoding -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call listDataPointsCall(String name, String start, String end, List idq, String since, String exitOnError, List label, Long period, Long limit, String order, String timeFormat, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/data"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (name != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("name", name)); + } + + if (start != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("start", start)); + } + + if (end != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("end", end)); + } + + if (idq != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "idq", idq)); + } + + if (since != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("since", since)); + } + + if (exitOnError != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exit_on_error", exitOnError)); + } + + if (label != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "label", label)); + } + + if (period != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("period", period)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (order != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("order", order)); + } + + if (timeFormat != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("time_format", timeFormat)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8", + "application/protobuf" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call listDataPointsValidateBeforeCall(String name, String start, String end, List idq, String since, String exitOnError, List label, Long period, Long limit, String order, String timeFormat, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling listDataPoints(Async)"); + } + + return listDataPointsCall(name, start, end, idq, since, exitOnError, label, period, limit, order, timeFormat, _callback); + + } + + /** + * List Data Points + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/data` を使用してください) データポイントのリストを取得します。 返却されるデータポイントはJSON形式です。データポイントごとに改行で区切られます。 + * @param name どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: - 計測UUID - エッジUUID - エッジの名前 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 (required) + * @param start 取得対象範囲の始点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param end 取得対象範囲の終点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param idq 取得したいデータポイントの条件を以下のフォーマットで指定します。 `data_id` には、 `GET /data_ids` エンドポイントで取得できる `data_id` の値を使用します。 - `<data_type>:<channel>/<data_id>` 各セグメントにはワイルドカード(*)を使用することができます。 例: - CAN(data_type = `1`)のデータポイントを取得する -> `1:*_/_*` または `1` - チャンネル2のCANデータポイントを取得する -> `1:2/_*` または `1:2` - チャンネル2のCANデータポイントのうち、データIDが `00000001` のものを取得する -> `1:2/00000001` (optional) + * @param since 指定した時刻以降に更新された計測のみを取得します。 以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z). - UNIX時刻(マイクロ秒)(**Deprecated**). (optional) + * @param exitOnError `true` を指定した場合、取得中にエラーが発生すると処理を中断し、中断前までのデータポイントのリストを返します。 (optional, default to false) + * @param label 信号定義のラベル (optional) + * @param period データポイントを指定した間隔(マイクロ秒)に間引きます。( **Experimental** ) 指定された間隔ごとに最新のデータポイントを残し、それ以外を除去します。 また、指定された間隔になるようにデータポイントの時刻を揃えます。 ``` --1--2----3---4--5---6-7--89-a---b-c---d--e--> period指定なし | | | | | | | | | | | | | | | | 2-----3-----5-----7-----a-----c-----d-----e--> period指定あり |<--->| period ``` (optional) + * @param limit 1回のリクエストで取得する件数。デフォルトは無制限。 (optional) + * @param order 並べ替えの順序。デフォルトは `asc` (昇順) (optional) + * @param timeFormat レスポンスの時刻表示形式。デフォルトは `us` (マイクロ秒) (optional) + * @return File + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK * Transfer-Encoding -
+ * @deprecated + */ + @Deprecated + public File listDataPoints(String name, String start, String end, List idq, String since, String exitOnError, List label, Long period, Long limit, String order, String timeFormat) throws ApiException { + ApiResponse localVarResp = listDataPointsWithHttpInfo(name, start, end, idq, since, exitOnError, label, period, limit, order, timeFormat); + return localVarResp.getData(); + } + + /** + * List Data Points + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/data` を使用してください) データポイントのリストを取得します。 返却されるデータポイントはJSON形式です。データポイントごとに改行で区切られます。 + * @param name どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: - 計測UUID - エッジUUID - エッジの名前 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 (required) + * @param start 取得対象範囲の始点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param end 取得対象範囲の終点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param idq 取得したいデータポイントの条件を以下のフォーマットで指定します。 `data_id` には、 `GET /data_ids` エンドポイントで取得できる `data_id` の値を使用します。 - `<data_type>:<channel>/<data_id>` 各セグメントにはワイルドカード(*)を使用することができます。 例: - CAN(data_type = `1`)のデータポイントを取得する -> `1:*_/_*` または `1` - チャンネル2のCANデータポイントを取得する -> `1:2/_*` または `1:2` - チャンネル2のCANデータポイントのうち、データIDが `00000001` のものを取得する -> `1:2/00000001` (optional) + * @param since 指定した時刻以降に更新された計測のみを取得します。 以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z). - UNIX時刻(マイクロ秒)(**Deprecated**). (optional) + * @param exitOnError `true` を指定した場合、取得中にエラーが発生すると処理を中断し、中断前までのデータポイントのリストを返します。 (optional, default to false) + * @param label 信号定義のラベル (optional) + * @param period データポイントを指定した間隔(マイクロ秒)に間引きます。( **Experimental** ) 指定された間隔ごとに最新のデータポイントを残し、それ以外を除去します。 また、指定された間隔になるようにデータポイントの時刻を揃えます。 ``` --1--2----3---4--5---6-7--89-a---b-c---d--e--> period指定なし | | | | | | | | | | | | | | | | 2-----3-----5-----7-----a-----c-----d-----e--> period指定あり |<--->| period ``` (optional) + * @param limit 1回のリクエストで取得する件数。デフォルトは無制限。 (optional) + * @param order 並べ替えの順序。デフォルトは `asc` (昇順) (optional) + * @param timeFormat レスポンスの時刻表示形式。デフォルトは `us` (マイクロ秒) (optional) + * @return ApiResponse<File> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK * Transfer-Encoding -
+ * @deprecated + */ + @Deprecated + public ApiResponse listDataPointsWithHttpInfo(String name, String start, String end, List idq, String since, String exitOnError, List label, Long period, Long limit, String order, String timeFormat) throws ApiException { + okhttp3.Call localVarCall = listDataPointsValidateBeforeCall(name, start, end, idq, since, exitOnError, label, period, limit, order, timeFormat, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Data Points (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/data` を使用してください) データポイントのリストを取得します。 返却されるデータポイントはJSON形式です。データポイントごとに改行で区切られます。 + * @param name どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: - 計測UUID - エッジUUID - エッジの名前 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 (required) + * @param start 取得対象範囲の始点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param end 取得対象範囲の終点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param idq 取得したいデータポイントの条件を以下のフォーマットで指定します。 `data_id` には、 `GET /data_ids` エンドポイントで取得できる `data_id` の値を使用します。 - `<data_type>:<channel>/<data_id>` 各セグメントにはワイルドカード(*)を使用することができます。 例: - CAN(data_type = `1`)のデータポイントを取得する -> `1:*_/_*` または `1` - チャンネル2のCANデータポイントを取得する -> `1:2/_*` または `1:2` - チャンネル2のCANデータポイントのうち、データIDが `00000001` のものを取得する -> `1:2/00000001` (optional) + * @param since 指定した時刻以降に更新された計測のみを取得します。 以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z). - UNIX時刻(マイクロ秒)(**Deprecated**). (optional) + * @param exitOnError `true` を指定した場合、取得中にエラーが発生すると処理を中断し、中断前までのデータポイントのリストを返します。 (optional, default to false) + * @param label 信号定義のラベル (optional) + * @param period データポイントを指定した間隔(マイクロ秒)に間引きます。( **Experimental** ) 指定された間隔ごとに最新のデータポイントを残し、それ以外を除去します。 また、指定された間隔になるようにデータポイントの時刻を揃えます。 ``` --1--2----3---4--5---6-7--89-a---b-c---d--e--> period指定なし | | | | | | | | | | | | | | | | 2-----3-----5-----7-----a-----c-----d-----e--> period指定あり |<--->| period ``` (optional) + * @param limit 1回のリクエストで取得する件数。デフォルトは無制限。 (optional) + * @param order 並べ替えの順序。デフォルトは `asc` (昇順) (optional) + * @param timeFormat レスポンスの時刻表示形式。デフォルトは `us` (マイクロ秒) (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK * Transfer-Encoding -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call listDataPointsAsync(String name, String start, String end, List idq, String since, String exitOnError, List label, Long period, Long limit, String order, String timeFormat, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listDataPointsValidateBeforeCall(name, start, end, idq, since, exitOnError, label, period, limit, order, timeFormat, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listProjectDataIDs + * @param projectUuid プロジェクトのUUID (required) + * @param start 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) (optional) + * @param end 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) (optional) + * @param edgeUuid エッジのUUID (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listProjectDataIDsCall(String projectUuid, Long start, Long end, String edgeUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/getids" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (start != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("start", start)); + } + + if (end != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("end", end)); + } + + if (edgeUuid != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("edge_uuid", edgeUuid)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listProjectDataIDsValidateBeforeCall(String projectUuid, Long start, Long end, String edgeUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling listProjectDataIDs(Async)"); + } + + return listProjectDataIDsCall(projectUuid, start, end, edgeUuid, _callback); + + } + + /** + * List Project Edge's Data IDs + * エッジを指定し、そのエッジから送信されているデータに含まれるデータ識別子( `data_type` 、 `channel` 、 `data_id` の組み合わせ)のリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param start 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) (optional) + * @param end 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) (optional) + * @param edgeUuid エッジのUUID (optional) + * @return DataIDs + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public DataIDs listProjectDataIDs(String projectUuid, Long start, Long end, String edgeUuid) throws ApiException { + ApiResponse localVarResp = listProjectDataIDsWithHttpInfo(projectUuid, start, end, edgeUuid); + return localVarResp.getData(); + } + + /** + * List Project Edge's Data IDs + * エッジを指定し、そのエッジから送信されているデータに含まれるデータ識別子( `data_type` 、 `channel` 、 `data_id` の組み合わせ)のリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param start 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) (optional) + * @param end 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) (optional) + * @param edgeUuid エッジのUUID (optional) + * @return ApiResponse<DataIDs> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listProjectDataIDsWithHttpInfo(String projectUuid, Long start, Long end, String edgeUuid) throws ApiException { + okhttp3.Call localVarCall = listProjectDataIDsValidateBeforeCall(projectUuid, start, end, edgeUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Project Edge's Data IDs (asynchronously) + * エッジを指定し、そのエッジから送信されているデータに含まれるデータ識別子( `data_type` 、 `channel` 、 `data_id` の組み合わせ)のリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param start 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) (optional) + * @param end 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) (optional) + * @param edgeUuid エッジのUUID (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listProjectDataIDsAsync(String projectUuid, Long start, Long end, String edgeUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listProjectDataIDsValidateBeforeCall(projectUuid, start, end, edgeUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listProjectDataIDsWithMeasurementUUID + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listProjectDataIDsWithMeasurementUUIDCall(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/{measurement_uuid}/getids" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listProjectDataIDsWithMeasurementUUIDValidateBeforeCall(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling listProjectDataIDsWithMeasurementUUID(Async)"); + } + + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling listProjectDataIDsWithMeasurementUUID(Async)"); + } + + return listProjectDataIDsWithMeasurementUUIDCall(projectUuid, measurementUuid, _callback); + + } + + /** + * List Project Data IDs + * 計測を指定し、その計測に含まれるデータ識別子( `data_type` 、 `channel` 、 `data_id` の組み合わせ)のリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @return DataIDs + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public DataIDs listProjectDataIDsWithMeasurementUUID(String projectUuid, String measurementUuid) throws ApiException { + ApiResponse localVarResp = listProjectDataIDsWithMeasurementUUIDWithHttpInfo(projectUuid, measurementUuid); + return localVarResp.getData(); + } + + /** + * List Project Data IDs + * 計測を指定し、その計測に含まれるデータ識別子( `data_type` 、 `channel` 、 `data_id` の組み合わせ)のリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @return ApiResponse<DataIDs> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listProjectDataIDsWithMeasurementUUIDWithHttpInfo(String projectUuid, String measurementUuid) throws ApiException { + okhttp3.Call localVarCall = listProjectDataIDsWithMeasurementUUIDValidateBeforeCall(projectUuid, measurementUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Project Data IDs (asynchronously) + * 計測を指定し、その計測に含まれるデータ識別子( `data_type` 、 `channel` 、 `data_id` の組み合わせ)のリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listProjectDataIDsWithMeasurementUUIDAsync(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listProjectDataIDsWithMeasurementUUIDValidateBeforeCall(projectUuid, measurementUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listProjectDataPoints + * @param projectUuid プロジェクトのUUID (required) + * @param name どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: - 計測UUID - エッジUUID - エッジの名前 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 (required) + * @param idq 取得したいデータポイントの条件を以下のフォーマットで指定します。 `data_id` には、 `GET /data_ids` エンドポイントで取得できる `data_id` の値を使用します。 - `<data_type>:<channel>/<data_id>` 各セグメントにはワイルドカード(*)を使用することができます。 例: - CAN(data_type = `1`)のデータポイントを取得する -> `1:*_/_*` または `1` - チャンネル2のCANデータポイントを取得する -> `1:2/_*` または `1:2` - チャンネル2のCANデータポイントのうち、データIDが `00000001` のものを取得する -> `1:2/00000001` (optional) + * @param start 取得対象範囲の始点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param end 取得対象範囲の終点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param since 指定した時刻以降に更新された計測のみを取得します。 以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z). - UNIX時刻(マイクロ秒)(**Deprecated**). (optional) + * @param exitOnError `true` を指定した場合、取得中にエラーが発生すると処理を中断し、中断前までのデータポイントのリストを返します。 (optional, default to false) + * @param label 信号定義のラベル (optional) + * @param period データポイントを指定した間隔(マイクロ秒)に間引きます。( **Experimental** ) 指定された間隔ごとに最新のデータポイントを残し、それ以外を除去します。 また、指定された間隔になるようにデータポイントの時刻を揃えます。 ``` --1--2----3---4--5---6-7--89-a---b-c---d--e--> period指定なし | | | | | | | | | | | | | | | | 2-----3-----5-----7-----a-----c-----d-----e--> period指定あり |<--->| period ``` (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param order 並べ替えの順序。デフォルトは `asc` (昇順) (optional) + * @param timeFormat レスポンスの時刻表示形式。デフォルトは `us` (マイクロ秒) (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK * Transfer-Encoding -
+ */ + public okhttp3.Call listProjectDataPointsCall(String projectUuid, String name, List idq, String start, String end, String since, String exitOnError, List label, Long period, Integer limit, String order, String timeFormat, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/data" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (name != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("name", name)); + } + + if (idq != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "idq", idq)); + } + + if (start != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("start", start)); + } + + if (end != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("end", end)); + } + + if (since != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("since", since)); + } + + if (exitOnError != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exit_on_error", exitOnError)); + } + + if (label != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "label", label)); + } + + if (period != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("period", period)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (order != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("order", order)); + } + + if (timeFormat != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("time_format", timeFormat)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8", + "application/protobuf" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listProjectDataPointsValidateBeforeCall(String projectUuid, String name, List idq, String start, String end, String since, String exitOnError, List label, Long period, Integer limit, String order, String timeFormat, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling listProjectDataPoints(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling listProjectDataPoints(Async)"); + } + + return listProjectDataPointsCall(projectUuid, name, idq, start, end, since, exitOnError, label, period, limit, order, timeFormat, _callback); + + } + + /** + * List Project Data Points + * データポイントのリストを取得します。 返却されるデータポイントはJSON形式です。データポイントごとに改行で区切られます。 + * @param projectUuid プロジェクトのUUID (required) + * @param name どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: - 計測UUID - エッジUUID - エッジの名前 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 (required) + * @param idq 取得したいデータポイントの条件を以下のフォーマットで指定します。 `data_id` には、 `GET /data_ids` エンドポイントで取得できる `data_id` の値を使用します。 - `<data_type>:<channel>/<data_id>` 各セグメントにはワイルドカード(*)を使用することができます。 例: - CAN(data_type = `1`)のデータポイントを取得する -> `1:*_/_*` または `1` - チャンネル2のCANデータポイントを取得する -> `1:2/_*` または `1:2` - チャンネル2のCANデータポイントのうち、データIDが `00000001` のものを取得する -> `1:2/00000001` (optional) + * @param start 取得対象範囲の始点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param end 取得対象範囲の終点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param since 指定した時刻以降に更新された計測のみを取得します。 以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z). - UNIX時刻(マイクロ秒)(**Deprecated**). (optional) + * @param exitOnError `true` を指定した場合、取得中にエラーが発生すると処理を中断し、中断前までのデータポイントのリストを返します。 (optional, default to false) + * @param label 信号定義のラベル (optional) + * @param period データポイントを指定した間隔(マイクロ秒)に間引きます。( **Experimental** ) 指定された間隔ごとに最新のデータポイントを残し、それ以外を除去します。 また、指定された間隔になるようにデータポイントの時刻を揃えます。 ``` --1--2----3---4--5---6-7--89-a---b-c---d--e--> period指定なし | | | | | | | | | | | | | | | | 2-----3-----5-----7-----a-----c-----d-----e--> period指定あり |<--->| period ``` (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param order 並べ替えの順序。デフォルトは `asc` (昇順) (optional) + * @param timeFormat レスポンスの時刻表示形式。デフォルトは `us` (マイクロ秒) (optional) + * @return File + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK * Transfer-Encoding -
+ */ + public File listProjectDataPoints(String projectUuid, String name, List idq, String start, String end, String since, String exitOnError, List label, Long period, Integer limit, String order, String timeFormat) throws ApiException { + ApiResponse localVarResp = listProjectDataPointsWithHttpInfo(projectUuid, name, idq, start, end, since, exitOnError, label, period, limit, order, timeFormat); + return localVarResp.getData(); + } + + /** + * List Project Data Points + * データポイントのリストを取得します。 返却されるデータポイントはJSON形式です。データポイントごとに改行で区切られます。 + * @param projectUuid プロジェクトのUUID (required) + * @param name どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: - 計測UUID - エッジUUID - エッジの名前 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 (required) + * @param idq 取得したいデータポイントの条件を以下のフォーマットで指定します。 `data_id` には、 `GET /data_ids` エンドポイントで取得できる `data_id` の値を使用します。 - `<data_type>:<channel>/<data_id>` 各セグメントにはワイルドカード(*)を使用することができます。 例: - CAN(data_type = `1`)のデータポイントを取得する -> `1:*_/_*` または `1` - チャンネル2のCANデータポイントを取得する -> `1:2/_*` または `1:2` - チャンネル2のCANデータポイントのうち、データIDが `00000001` のものを取得する -> `1:2/00000001` (optional) + * @param start 取得対象範囲の始点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param end 取得対象範囲の終点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param since 指定した時刻以降に更新された計測のみを取得します。 以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z). - UNIX時刻(マイクロ秒)(**Deprecated**). (optional) + * @param exitOnError `true` を指定した場合、取得中にエラーが発生すると処理を中断し、中断前までのデータポイントのリストを返します。 (optional, default to false) + * @param label 信号定義のラベル (optional) + * @param period データポイントを指定した間隔(マイクロ秒)に間引きます。( **Experimental** ) 指定された間隔ごとに最新のデータポイントを残し、それ以外を除去します。 また、指定された間隔になるようにデータポイントの時刻を揃えます。 ``` --1--2----3---4--5---6-7--89-a---b-c---d--e--> period指定なし | | | | | | | | | | | | | | | | 2-----3-----5-----7-----a-----c-----d-----e--> period指定あり |<--->| period ``` (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param order 並べ替えの順序。デフォルトは `asc` (昇順) (optional) + * @param timeFormat レスポンスの時刻表示形式。デフォルトは `us` (マイクロ秒) (optional) + * @return ApiResponse<File> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK * Transfer-Encoding -
+ */ + public ApiResponse listProjectDataPointsWithHttpInfo(String projectUuid, String name, List idq, String start, String end, String since, String exitOnError, List label, Long period, Integer limit, String order, String timeFormat) throws ApiException { + okhttp3.Call localVarCall = listProjectDataPointsValidateBeforeCall(projectUuid, name, idq, start, end, since, exitOnError, label, period, limit, order, timeFormat, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Project Data Points (asynchronously) + * データポイントのリストを取得します。 返却されるデータポイントはJSON形式です。データポイントごとに改行で区切られます。 + * @param projectUuid プロジェクトのUUID (required) + * @param name どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します: - 計測UUID - エッジUUID - エッジの名前 最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 (required) + * @param idq 取得したいデータポイントの条件を以下のフォーマットで指定します。 `data_id` には、 `GET /data_ids` エンドポイントで取得できる `data_id` の値を使用します。 - `<data_type>:<channel>/<data_id>` 各セグメントにはワイルドカード(*)を使用することができます。 例: - CAN(data_type = `1`)のデータポイントを取得する -> `1:*_/_*` または `1` - チャンネル2のCANデータポイントを取得する -> `1:2/_*` または `1:2` - チャンネル2のCANデータポイントのうち、データIDが `00000001` のものを取得する -> `1:2/00000001` (optional) + * @param start 取得対象範囲の始点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param end 取得対象範囲の終点。以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param since 指定した時刻以降に更新された計測のみを取得します。 以下のいずれかの形式で指定します。 - rfc3339(ex 2019-10-29T03:04:05.341268Z). - UNIX時刻(マイクロ秒)(**Deprecated**). (optional) + * @param exitOnError `true` を指定した場合、取得中にエラーが発生すると処理を中断し、中断前までのデータポイントのリストを返します。 (optional, default to false) + * @param label 信号定義のラベル (optional) + * @param period データポイントを指定した間隔(マイクロ秒)に間引きます。( **Experimental** ) 指定された間隔ごとに最新のデータポイントを残し、それ以外を除去します。 また、指定された間隔になるようにデータポイントの時刻を揃えます。 ``` --1--2----3---4--5---6-7--89-a---b-c---d--e--> period指定なし | | | | | | | | | | | | | | | | 2-----3-----5-----7-----a-----c-----d-----e--> period指定あり |<--->| period ``` (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param order 並べ替えの順序。デフォルトは `asc` (昇順) (optional) + * @param timeFormat レスポンスの時刻表示形式。デフォルトは `us` (マイクロ秒) (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK * Transfer-Encoding -
+ */ + public okhttp3.Call listProjectDataPointsAsync(String projectUuid, String name, List idq, String start, String end, String since, String exitOnError, List label, Long period, Integer limit, String order, String timeFormat, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listProjectDataPointsValidateBeforeCall(projectUuid, name, idq, start, end, since, exitOnError, label, period, limit, order, timeFormat, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/intdash/src/main/java/com/aptpod/intdash/MeasMeasurementJobsApi.java b/intdash/src/main/java/com/aptpod/intdash/MeasMeasurementJobsApi.java new file mode 100644 index 0000000..d903688 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/intdash/MeasMeasurementJobsApi.java @@ -0,0 +1,1177 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.intdash; + +import com.aptpod.ApiCallback; +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.ApiResponse; +import com.aptpod.Configuration; +import com.aptpod.Pair; +import com.aptpod.ProgressRequestBody; +import com.aptpod.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.openapitools.client.model.MeasurementJob; +import org.openapitools.client.model.MeasurementJobs; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class MeasMeasurementJobsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public MeasMeasurementJobsApi() { + this(Configuration.getDefaultApiClient()); + } + + public MeasMeasurementJobsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for cancelMeasurementJob + * @param jobUuid ジョブのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call cancelMeasurementJobCall(String jobUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements/jobs/{job_uuid}/cancel" + .replace("{" + "job_uuid" + "}", localVarApiClient.escapeString(jobUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call cancelMeasurementJobValidateBeforeCall(String jobUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'jobUuid' is set + if (jobUuid == null) { + throw new ApiException("Missing the required parameter 'jobUuid' when calling cancelMeasurementJob(Async)"); + } + + return cancelMeasurementJobCall(jobUuid, _callback); + + } + + /** + * Cancel Measurement Job + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/jobs/{job_uuid}/cancel` を使用してください) ジョブをキャンセルします。 + * @param jobUuid ジョブのUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public void cancelMeasurementJob(String jobUuid) throws ApiException { + cancelMeasurementJobWithHttpInfo(jobUuid); + } + + /** + * Cancel Measurement Job + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/jobs/{job_uuid}/cancel` を使用してください) ジョブをキャンセルします。 + * @param jobUuid ジョブのUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public ApiResponse cancelMeasurementJobWithHttpInfo(String jobUuid) throws ApiException { + okhttp3.Call localVarCall = cancelMeasurementJobValidateBeforeCall(jobUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Cancel Measurement Job (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/jobs/{job_uuid}/cancel` を使用してください) ジョブをキャンセルします。 + * @param jobUuid ジョブのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call cancelMeasurementJobAsync(String jobUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = cancelMeasurementJobValidateBeforeCall(jobUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for cancelProjectMeasurementJob + * @param projectUuid プロジェクトのUUID (required) + * @param jobUuid ジョブのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call cancelProjectMeasurementJobCall(String projectUuid, String jobUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/jobs/{job_uuid}/cancel" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "job_uuid" + "}", localVarApiClient.escapeString(jobUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call cancelProjectMeasurementJobValidateBeforeCall(String projectUuid, String jobUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling cancelProjectMeasurementJob(Async)"); + } + + // verify the required parameter 'jobUuid' is set + if (jobUuid == null) { + throw new ApiException("Missing the required parameter 'jobUuid' when calling cancelProjectMeasurementJob(Async)"); + } + + return cancelProjectMeasurementJobCall(projectUuid, jobUuid, _callback); + + } + + /** + * Cancel Project Measurement Job + * ジョブをキャンセルします。 + * @param projectUuid プロジェクトのUUID (required) + * @param jobUuid ジョブのUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void cancelProjectMeasurementJob(String projectUuid, String jobUuid) throws ApiException { + cancelProjectMeasurementJobWithHttpInfo(projectUuid, jobUuid); + } + + /** + * Cancel Project Measurement Job + * ジョブをキャンセルします。 + * @param projectUuid プロジェクトのUUID (required) + * @param jobUuid ジョブのUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse cancelProjectMeasurementJobWithHttpInfo(String projectUuid, String jobUuid) throws ApiException { + okhttp3.Call localVarCall = cancelProjectMeasurementJobValidateBeforeCall(projectUuid, jobUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Cancel Project Measurement Job (asynchronously) + * ジョブをキャンセルします。 + * @param projectUuid プロジェクトのUUID (required) + * @param jobUuid ジョブのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call cancelProjectMeasurementJobAsync(String projectUuid, String jobUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = cancelProjectMeasurementJobValidateBeforeCall(projectUuid, jobUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteMeasurementJob + * @param jobUuid ジョブのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call deleteMeasurementJobCall(String jobUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements/jobs/{job_uuid}" + .replace("{" + "job_uuid" + "}", localVarApiClient.escapeString(jobUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteMeasurementJobValidateBeforeCall(String jobUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'jobUuid' is set + if (jobUuid == null) { + throw new ApiException("Missing the required parameter 'jobUuid' when calling deleteMeasurementJob(Async)"); + } + + return deleteMeasurementJobCall(jobUuid, _callback); + + } + + /** + * Delete Measurement Job + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/jobs/{job_uuid}` を使用してください) ジョブを削除します。 + * @param jobUuid ジョブのUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public void deleteMeasurementJob(String jobUuid) throws ApiException { + deleteMeasurementJobWithHttpInfo(jobUuid); + } + + /** + * Delete Measurement Job + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/jobs/{job_uuid}` を使用してください) ジョブを削除します。 + * @param jobUuid ジョブのUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public ApiResponse deleteMeasurementJobWithHttpInfo(String jobUuid) throws ApiException { + okhttp3.Call localVarCall = deleteMeasurementJobValidateBeforeCall(jobUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete Measurement Job (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/jobs/{job_uuid}` を使用してください) ジョブを削除します。 + * @param jobUuid ジョブのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call deleteMeasurementJobAsync(String jobUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteMeasurementJobValidateBeforeCall(jobUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteProjectMeasurementJob + * @param projectUuid プロジェクトのUUID (required) + * @param jobUuid ジョブのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteProjectMeasurementJobCall(String projectUuid, String jobUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/jobs/{job_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "job_uuid" + "}", localVarApiClient.escapeString(jobUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteProjectMeasurementJobValidateBeforeCall(String projectUuid, String jobUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling deleteProjectMeasurementJob(Async)"); + } + + // verify the required parameter 'jobUuid' is set + if (jobUuid == null) { + throw new ApiException("Missing the required parameter 'jobUuid' when calling deleteProjectMeasurementJob(Async)"); + } + + return deleteProjectMeasurementJobCall(projectUuid, jobUuid, _callback); + + } + + /** + * Delete Project Measurement Job + * ジョブを削除します。 + * @param projectUuid プロジェクトのUUID (required) + * @param jobUuid ジョブのUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void deleteProjectMeasurementJob(String projectUuid, String jobUuid) throws ApiException { + deleteProjectMeasurementJobWithHttpInfo(projectUuid, jobUuid); + } + + /** + * Delete Project Measurement Job + * ジョブを削除します。 + * @param projectUuid プロジェクトのUUID (required) + * @param jobUuid ジョブのUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse deleteProjectMeasurementJobWithHttpInfo(String projectUuid, String jobUuid) throws ApiException { + okhttp3.Call localVarCall = deleteProjectMeasurementJobValidateBeforeCall(projectUuid, jobUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete Project Measurement Job (asynchronously) + * ジョブを削除します。 + * @param projectUuid プロジェクトのUUID (required) + * @param jobUuid ジョブのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteProjectMeasurementJobAsync(String projectUuid, String jobUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteProjectMeasurementJobValidateBeforeCall(projectUuid, jobUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getMeasurementJob + * @param jobUuid ジョブのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getMeasurementJobCall(String jobUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements/jobs/{job_uuid}" + .replace("{" + "job_uuid" + "}", localVarApiClient.escapeString(jobUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call getMeasurementJobValidateBeforeCall(String jobUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'jobUuid' is set + if (jobUuid == null) { + throw new ApiException("Missing the required parameter 'jobUuid' when calling getMeasurementJob(Async)"); + } + + return getMeasurementJobCall(jobUuid, _callback); + + } + + /** + * Get Measurement Job + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/jobs/{job_uuid}` を使用してください) ジョブを取得します。 + * @param jobUuid ジョブのUUID (required) + * @return MeasurementJob + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public MeasurementJob getMeasurementJob(String jobUuid) throws ApiException { + ApiResponse localVarResp = getMeasurementJobWithHttpInfo(jobUuid); + return localVarResp.getData(); + } + + /** + * Get Measurement Job + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/jobs/{job_uuid}` を使用してください) ジョブを取得します。 + * @param jobUuid ジョブのUUID (required) + * @return ApiResponse<MeasurementJob> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse getMeasurementJobWithHttpInfo(String jobUuid) throws ApiException { + okhttp3.Call localVarCall = getMeasurementJobValidateBeforeCall(jobUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Measurement Job (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/jobs/{job_uuid}` を使用してください) ジョブを取得します。 + * @param jobUuid ジョブのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getMeasurementJobAsync(String jobUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getMeasurementJobValidateBeforeCall(jobUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getProjectMeasurementJob + * @param projectUuid プロジェクトのUUID (required) + * @param jobUuid ジョブのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectMeasurementJobCall(String projectUuid, String jobUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/jobs/{job_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "job_uuid" + "}", localVarApiClient.escapeString(jobUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getProjectMeasurementJobValidateBeforeCall(String projectUuid, String jobUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling getProjectMeasurementJob(Async)"); + } + + // verify the required parameter 'jobUuid' is set + if (jobUuid == null) { + throw new ApiException("Missing the required parameter 'jobUuid' when calling getProjectMeasurementJob(Async)"); + } + + return getProjectMeasurementJobCall(projectUuid, jobUuid, _callback); + + } + + /** + * Get Project Measurement Job + * ジョブを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param jobUuid ジョブのUUID (required) + * @return MeasurementJob + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public MeasurementJob getProjectMeasurementJob(String projectUuid, String jobUuid) throws ApiException { + ApiResponse localVarResp = getProjectMeasurementJobWithHttpInfo(projectUuid, jobUuid); + return localVarResp.getData(); + } + + /** + * Get Project Measurement Job + * ジョブを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param jobUuid ジョブのUUID (required) + * @return ApiResponse<MeasurementJob> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getProjectMeasurementJobWithHttpInfo(String projectUuid, String jobUuid) throws ApiException { + okhttp3.Call localVarCall = getProjectMeasurementJobValidateBeforeCall(projectUuid, jobUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Project Measurement Job (asynchronously) + * ジョブを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param jobUuid ジョブのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectMeasurementJobAsync(String projectUuid, String jobUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getProjectMeasurementJobValidateBeforeCall(projectUuid, jobUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listMeasurementJobs + * @param limit 1回のリクエストで取得する件数 (optional) + * @param sort 並べ替えに使用するキー (optional, default to created_at) + * @param status ジョブのステータス (optional) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call listMeasurementJobsCall(Integer limit, String sort, String status, Integer page, String order, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements/jobs"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + if (status != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("status", status)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (order != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("order", order)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call listMeasurementJobsValidateBeforeCall(Integer limit, String sort, String status, Integer page, String order, final ApiCallback _callback) throws ApiException { + return listMeasurementJobsCall(limit, sort, status, page, order, _callback); + + } + + /** + * List Measurement Jobs + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/jobs` を使用してください) ジョブ(CSVファイルを計測に変換するジョブなど)のリストを取得します。 + * @param limit 1回のリクエストで取得する件数 (optional) + * @param sort 並べ替えに使用するキー (optional, default to created_at) + * @param status ジョブのステータス (optional) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @return MeasurementJobs + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public MeasurementJobs listMeasurementJobs(Integer limit, String sort, String status, Integer page, String order) throws ApiException { + ApiResponse localVarResp = listMeasurementJobsWithHttpInfo(limit, sort, status, page, order); + return localVarResp.getData(); + } + + /** + * List Measurement Jobs + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/jobs` を使用してください) ジョブ(CSVファイルを計測に変換するジョブなど)のリストを取得します。 + * @param limit 1回のリクエストで取得する件数 (optional) + * @param sort 並べ替えに使用するキー (optional, default to created_at) + * @param status ジョブのステータス (optional) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @return ApiResponse<MeasurementJobs> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse listMeasurementJobsWithHttpInfo(Integer limit, String sort, String status, Integer page, String order) throws ApiException { + okhttp3.Call localVarCall = listMeasurementJobsValidateBeforeCall(limit, sort, status, page, order, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Measurement Jobs (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/jobs` を使用してください) ジョブ(CSVファイルを計測に変換するジョブなど)のリストを取得します。 + * @param limit 1回のリクエストで取得する件数 (optional) + * @param sort 並べ替えに使用するキー (optional, default to created_at) + * @param status ジョブのステータス (optional) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call listMeasurementJobsAsync(Integer limit, String sort, String status, Integer page, String order, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listMeasurementJobsValidateBeforeCall(limit, sort, status, page, order, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listProjectMeasurementJobs + * @param projectUuid プロジェクトのUUID (required) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param sort 並べ替えに使用するキー (optional, default to created_at) + * @param status ジョブのステータス (optional) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listProjectMeasurementJobsCall(String projectUuid, Integer limit, String sort, String status, Integer page, String order, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/jobs" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + if (status != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("status", status)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (order != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("order", order)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listProjectMeasurementJobsValidateBeforeCall(String projectUuid, Integer limit, String sort, String status, Integer page, String order, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling listProjectMeasurementJobs(Async)"); + } + + return listProjectMeasurementJobsCall(projectUuid, limit, sort, status, page, order, _callback); + + } + + /** + * List Project Measurement Jobs + * ジョブ(CSVファイルを計測に変換するジョブなど)のリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param sort 並べ替えに使用するキー (optional, default to created_at) + * @param status ジョブのステータス (optional) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @return MeasurementJobs + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public MeasurementJobs listProjectMeasurementJobs(String projectUuid, Integer limit, String sort, String status, Integer page, String order) throws ApiException { + ApiResponse localVarResp = listProjectMeasurementJobsWithHttpInfo(projectUuid, limit, sort, status, page, order); + return localVarResp.getData(); + } + + /** + * List Project Measurement Jobs + * ジョブ(CSVファイルを計測に変換するジョブなど)のリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param sort 並べ替えに使用するキー (optional, default to created_at) + * @param status ジョブのステータス (optional) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @return ApiResponse<MeasurementJobs> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listProjectMeasurementJobsWithHttpInfo(String projectUuid, Integer limit, String sort, String status, Integer page, String order) throws ApiException { + okhttp3.Call localVarCall = listProjectMeasurementJobsValidateBeforeCall(projectUuid, limit, sort, status, page, order, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Project Measurement Jobs (asynchronously) + * ジョブ(CSVファイルを計測に変換するジョブなど)のリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param sort 並べ替えに使用するキー (optional, default to created_at) + * @param status ジョブのステータス (optional) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listProjectMeasurementJobsAsync(String projectUuid, Integer limit, String sort, String status, Integer page, String order, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listProjectMeasurementJobsValidateBeforeCall(projectUuid, limit, sort, status, page, order, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/intdash/src/main/java/com/aptpod/intdash/MeasMeasurementMarkersApi.java b/intdash/src/main/java/com/aptpod/intdash/MeasMeasurementMarkersApi.java new file mode 100644 index 0000000..aaf436e --- /dev/null +++ b/intdash/src/main/java/com/aptpod/intdash/MeasMeasurementMarkersApi.java @@ -0,0 +1,2948 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.intdash; + +import com.aptpod.ApiCallback; +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.ApiResponse; +import com.aptpod.Configuration; +import com.aptpod.Pair; +import com.aptpod.ProgressRequestBody; +import com.aptpod.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.openapitools.client.model.MeasurementMarker; +import org.openapitools.client.model.MeasurementMarkerPostRequest; +import org.openapitools.client.model.MeasurementMarkerPutRequest; +import org.openapitools.client.model.MeasurementMarkers; +import org.openapitools.client.model.MeasurementMarkersWithoutPage; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class MeasMeasurementMarkersApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public MeasMeasurementMarkersApi() { + this(Configuration.getDefaultApiClient()); + } + + public MeasMeasurementMarkersApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for createMeasurementMarker + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerPostRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call createMeasurementMarkerCall(String measurementUuid, MeasurementMarkerPostRequest measurementMarkerPostRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = measurementMarkerPostRequest; + + // create path and map variables + String localVarPath = "/v1/measurements/{measurement_uuid}/markers" + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call createMeasurementMarkerValidateBeforeCall(String measurementUuid, MeasurementMarkerPostRequest measurementMarkerPostRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling createMeasurementMarker(Async)"); + } + + return createMeasurementMarkerCall(measurementUuid, measurementMarkerPostRequest, _callback); + + } + + /** + * Create Measurement Marker by Measurement UUID + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/markers` を使用してください) 計測マーカーを作成します。 + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerPostRequest (optional) + * @return MeasurementMarker + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ * @deprecated + */ + @Deprecated + public MeasurementMarker createMeasurementMarker(String measurementUuid, MeasurementMarkerPostRequest measurementMarkerPostRequest) throws ApiException { + ApiResponse localVarResp = createMeasurementMarkerWithHttpInfo(measurementUuid, measurementMarkerPostRequest); + return localVarResp.getData(); + } + + /** + * Create Measurement Marker by Measurement UUID + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/markers` を使用してください) 計測マーカーを作成します。 + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerPostRequest (optional) + * @return ApiResponse<MeasurementMarker> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ * @deprecated + */ + @Deprecated + public ApiResponse createMeasurementMarkerWithHttpInfo(String measurementUuid, MeasurementMarkerPostRequest measurementMarkerPostRequest) throws ApiException { + okhttp3.Call localVarCall = createMeasurementMarkerValidateBeforeCall(measurementUuid, measurementMarkerPostRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Measurement Marker by Measurement UUID (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/markers` を使用してください) 計測マーカーを作成します。 + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerPostRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call createMeasurementMarkerAsync(String measurementUuid, MeasurementMarkerPostRequest measurementMarkerPostRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createMeasurementMarkerValidateBeforeCall(measurementUuid, measurementMarkerPostRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createProjectMeasurementMarker + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerPostRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public okhttp3.Call createProjectMeasurementMarkerCall(String projectUuid, String measurementUuid, MeasurementMarkerPostRequest measurementMarkerPostRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = measurementMarkerPostRequest; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/{measurement_uuid}/markers" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createProjectMeasurementMarkerValidateBeforeCall(String projectUuid, String measurementUuid, MeasurementMarkerPostRequest measurementMarkerPostRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling createProjectMeasurementMarker(Async)"); + } + + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling createProjectMeasurementMarker(Async)"); + } + + return createProjectMeasurementMarkerCall(projectUuid, measurementUuid, measurementMarkerPostRequest, _callback); + + } + + /** + * Create Project Measurement Marker by Measurement UUID + * 計測マーカーを作成します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerPostRequest (optional) + * @return MeasurementMarker + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public MeasurementMarker createProjectMeasurementMarker(String projectUuid, String measurementUuid, MeasurementMarkerPostRequest measurementMarkerPostRequest) throws ApiException { + ApiResponse localVarResp = createProjectMeasurementMarkerWithHttpInfo(projectUuid, measurementUuid, measurementMarkerPostRequest); + return localVarResp.getData(); + } + + /** + * Create Project Measurement Marker by Measurement UUID + * 計測マーカーを作成します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerPostRequest (optional) + * @return ApiResponse<MeasurementMarker> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public ApiResponse createProjectMeasurementMarkerWithHttpInfo(String projectUuid, String measurementUuid, MeasurementMarkerPostRequest measurementMarkerPostRequest) throws ApiException { + okhttp3.Call localVarCall = createProjectMeasurementMarkerValidateBeforeCall(projectUuid, measurementUuid, measurementMarkerPostRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Project Measurement Marker by Measurement UUID (asynchronously) + * 計測マーカーを作成します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerPostRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public okhttp3.Call createProjectMeasurementMarkerAsync(String projectUuid, String measurementUuid, MeasurementMarkerPostRequest measurementMarkerPostRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createProjectMeasurementMarkerValidateBeforeCall(projectUuid, measurementUuid, measurementMarkerPostRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteMeasurementMarker + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call deleteMeasurementMarkerCall(String measurementMarkerUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements/markers/{measurement_marker_uuid}" + .replace("{" + "measurement_marker_uuid" + "}", localVarApiClient.escapeString(measurementMarkerUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteMeasurementMarkerValidateBeforeCall(String measurementMarkerUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementMarkerUuid' is set + if (measurementMarkerUuid == null) { + throw new ApiException("Missing the required parameter 'measurementMarkerUuid' when calling deleteMeasurementMarker(Async)"); + } + + return deleteMeasurementMarkerCall(measurementMarkerUuid, _callback); + + } + + /** + * Delete Measurement Marker + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/markers/{measurement_marker_uuid}` を使用してください) 計測マーカーを削除します。 + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public void deleteMeasurementMarker(String measurementMarkerUuid) throws ApiException { + deleteMeasurementMarkerWithHttpInfo(measurementMarkerUuid); + } + + /** + * Delete Measurement Marker + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/markers/{measurement_marker_uuid}` を使用してください) 計測マーカーを削除します。 + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public ApiResponse deleteMeasurementMarkerWithHttpInfo(String measurementMarkerUuid) throws ApiException { + okhttp3.Call localVarCall = deleteMeasurementMarkerValidateBeforeCall(measurementMarkerUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete Measurement Marker (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/markers/{measurement_marker_uuid}` を使用してください) 計測マーカーを削除します。 + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call deleteMeasurementMarkerAsync(String measurementMarkerUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteMeasurementMarkerValidateBeforeCall(measurementMarkerUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteMeasurementMarkerWithMeasurementUUIDAndMarkerUUID + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call deleteMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDCall(String measurementUuid, String measurementMarkerUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements/{measurement_uuid}/markers/{measurement_marker_uuid}" + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())) + .replace("{" + "measurement_marker_uuid" + "}", localVarApiClient.escapeString(measurementMarkerUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDValidateBeforeCall(String measurementUuid, String measurementMarkerUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling deleteMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(Async)"); + } + + // verify the required parameter 'measurementMarkerUuid' is set + if (measurementMarkerUuid == null) { + throw new ApiException("Missing the required parameter 'measurementMarkerUuid' when calling deleteMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(Async)"); + } + + return deleteMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDCall(measurementUuid, measurementMarkerUuid, _callback); + + } + + /** + * Delete Measurement Marker using Measurement UUID + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/markers/{Measurement_marker_uuid}` を使用してください) 計測マーカーを削除します。 + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public void deleteMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(String measurementUuid, String measurementMarkerUuid) throws ApiException { + deleteMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDWithHttpInfo(measurementUuid, measurementMarkerUuid); + } + + /** + * Delete Measurement Marker using Measurement UUID + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/markers/{Measurement_marker_uuid}` を使用してください) 計測マーカーを削除します。 + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public ApiResponse deleteMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDWithHttpInfo(String measurementUuid, String measurementMarkerUuid) throws ApiException { + okhttp3.Call localVarCall = deleteMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDValidateBeforeCall(measurementUuid, measurementMarkerUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete Measurement Marker using Measurement UUID (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/markers/{Measurement_marker_uuid}` を使用してください) 計測マーカーを削除します。 + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call deleteMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDAsync(String measurementUuid, String measurementMarkerUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDValidateBeforeCall(measurementUuid, measurementMarkerUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteMeasurementMarkers + * @param measurementUuid 計測のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call deleteMeasurementMarkersCall(String measurementUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements/{measurement_uuid}/markers" + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteMeasurementMarkersValidateBeforeCall(String measurementUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling deleteMeasurementMarkers(Async)"); + } + + return deleteMeasurementMarkersCall(measurementUuid, _callback); + + } + + /** + * Delete Measurement Markers by Measurement UUID + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/markers` を使用してください) 計測マーカーを削除します。 + * @param measurementUuid 計測のUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public void deleteMeasurementMarkers(String measurementUuid) throws ApiException { + deleteMeasurementMarkersWithHttpInfo(measurementUuid); + } + + /** + * Delete Measurement Markers by Measurement UUID + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/markers` を使用してください) 計測マーカーを削除します。 + * @param measurementUuid 計測のUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public ApiResponse deleteMeasurementMarkersWithHttpInfo(String measurementUuid) throws ApiException { + okhttp3.Call localVarCall = deleteMeasurementMarkersValidateBeforeCall(measurementUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete Measurement Markers by Measurement UUID (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/markers` を使用してください) 計測マーカーを削除します。 + * @param measurementUuid 計測のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call deleteMeasurementMarkersAsync(String measurementUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteMeasurementMarkersValidateBeforeCall(measurementUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteProjectMeasurementMarker + * @param projectUuid プロジェクトのUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteProjectMeasurementMarkerCall(String projectUuid, String measurementMarkerUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/markers/{measurement_marker_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_marker_uuid" + "}", localVarApiClient.escapeString(measurementMarkerUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteProjectMeasurementMarkerValidateBeforeCall(String projectUuid, String measurementMarkerUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling deleteProjectMeasurementMarker(Async)"); + } + + // verify the required parameter 'measurementMarkerUuid' is set + if (measurementMarkerUuid == null) { + throw new ApiException("Missing the required parameter 'measurementMarkerUuid' when calling deleteProjectMeasurementMarker(Async)"); + } + + return deleteProjectMeasurementMarkerCall(projectUuid, measurementMarkerUuid, _callback); + + } + + /** + * Delete Project Measurement Marker + * 計測マーカーを削除します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void deleteProjectMeasurementMarker(String projectUuid, String measurementMarkerUuid) throws ApiException { + deleteProjectMeasurementMarkerWithHttpInfo(projectUuid, measurementMarkerUuid); + } + + /** + * Delete Project Measurement Marker + * 計測マーカーを削除します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse deleteProjectMeasurementMarkerWithHttpInfo(String projectUuid, String measurementMarkerUuid) throws ApiException { + okhttp3.Call localVarCall = deleteProjectMeasurementMarkerValidateBeforeCall(projectUuid, measurementMarkerUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete Project Measurement Marker (asynchronously) + * 計測マーカーを削除します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteProjectMeasurementMarkerAsync(String projectUuid, String measurementMarkerUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteProjectMeasurementMarkerValidateBeforeCall(projectUuid, measurementMarkerUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDCall(String projectUuid, String measurementUuid, String measurementMarkerUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/{measurement_uuid}/markers/{measurement_marker_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())) + .replace("{" + "measurement_marker_uuid" + "}", localVarApiClient.escapeString(measurementMarkerUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDValidateBeforeCall(String projectUuid, String measurementUuid, String measurementMarkerUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling deleteProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(Async)"); + } + + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling deleteProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(Async)"); + } + + // verify the required parameter 'measurementMarkerUuid' is set + if (measurementMarkerUuid == null) { + throw new ApiException("Missing the required parameter 'measurementMarkerUuid' when calling deleteProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(Async)"); + } + + return deleteProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDCall(projectUuid, measurementUuid, measurementMarkerUuid, _callback); + + } + + /** + * Delete Project Measurement Marker using Measurement UUID + * 計測マーカーを削除します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void deleteProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(String projectUuid, String measurementUuid, String measurementMarkerUuid) throws ApiException { + deleteProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDWithHttpInfo(projectUuid, measurementUuid, measurementMarkerUuid); + } + + /** + * Delete Project Measurement Marker using Measurement UUID + * 計測マーカーを削除します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse deleteProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDWithHttpInfo(String projectUuid, String measurementUuid, String measurementMarkerUuid) throws ApiException { + okhttp3.Call localVarCall = deleteProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDValidateBeforeCall(projectUuid, measurementUuid, measurementMarkerUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete Project Measurement Marker using Measurement UUID (asynchronously) + * 計測マーカーを削除します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDAsync(String projectUuid, String measurementUuid, String measurementMarkerUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDValidateBeforeCall(projectUuid, measurementUuid, measurementMarkerUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteProjectMeasurementMarkers + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteProjectMeasurementMarkersCall(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/{measurement_uuid}/markers" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteProjectMeasurementMarkersValidateBeforeCall(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling deleteProjectMeasurementMarkers(Async)"); + } + + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling deleteProjectMeasurementMarkers(Async)"); + } + + return deleteProjectMeasurementMarkersCall(projectUuid, measurementUuid, _callback); + + } + + /** + * Delete Project Measurement Markers by Measurement UUID + * 計測マーカーを削除します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void deleteProjectMeasurementMarkers(String projectUuid, String measurementUuid) throws ApiException { + deleteProjectMeasurementMarkersWithHttpInfo(projectUuid, measurementUuid); + } + + /** + * Delete Project Measurement Markers by Measurement UUID + * 計測マーカーを削除します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse deleteProjectMeasurementMarkersWithHttpInfo(String projectUuid, String measurementUuid) throws ApiException { + okhttp3.Call localVarCall = deleteProjectMeasurementMarkersValidateBeforeCall(projectUuid, measurementUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete Project Measurement Markers by Measurement UUID (asynchronously) + * 計測マーカーを削除します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteProjectMeasurementMarkersAsync(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteProjectMeasurementMarkersValidateBeforeCall(projectUuid, measurementUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getMeasurementMarker + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getMeasurementMarkerCall(String measurementMarkerUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements/markers/{measurement_marker_uuid}" + .replace("{" + "measurement_marker_uuid" + "}", localVarApiClient.escapeString(measurementMarkerUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call getMeasurementMarkerValidateBeforeCall(String measurementMarkerUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementMarkerUuid' is set + if (measurementMarkerUuid == null) { + throw new ApiException("Missing the required parameter 'measurementMarkerUuid' when calling getMeasurementMarker(Async)"); + } + + return getMeasurementMarkerCall(measurementMarkerUuid, _callback); + + } + + /** + * Get Measurement Marker + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/markers/{measurement_marker_uuid}` を使用してください) 計測マーカーを取得します。 + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @return MeasurementMarker + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public MeasurementMarker getMeasurementMarker(String measurementMarkerUuid) throws ApiException { + ApiResponse localVarResp = getMeasurementMarkerWithHttpInfo(measurementMarkerUuid); + return localVarResp.getData(); + } + + /** + * Get Measurement Marker + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/markers/{measurement_marker_uuid}` を使用してください) 計測マーカーを取得します。 + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @return ApiResponse<MeasurementMarker> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse getMeasurementMarkerWithHttpInfo(String measurementMarkerUuid) throws ApiException { + okhttp3.Call localVarCall = getMeasurementMarkerValidateBeforeCall(measurementMarkerUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Measurement Marker (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/markers/{measurement_marker_uuid}` を使用してください) 計測マーカーを取得します。 + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getMeasurementMarkerAsync(String measurementMarkerUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getMeasurementMarkerValidateBeforeCall(measurementMarkerUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getMeasurementMarkerWithMeasurementUUIDAndMarkerUUID + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDCall(String measurementUuid, String measurementMarkerUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements/{measurement_uuid}/markers/{measurement_marker_uuid}" + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())) + .replace("{" + "measurement_marker_uuid" + "}", localVarApiClient.escapeString(measurementMarkerUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call getMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDValidateBeforeCall(String measurementUuid, String measurementMarkerUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling getMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(Async)"); + } + + // verify the required parameter 'measurementMarkerUuid' is set + if (measurementMarkerUuid == null) { + throw new ApiException("Missing the required parameter 'measurementMarkerUuid' when calling getMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(Async)"); + } + + return getMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDCall(measurementUuid, measurementMarkerUuid, _callback); + + } + + /** + * Get Measurement Marker using Measurement UUID + * **Deprecated** このエンドポイントではなく、 `GET /measurements/{measurement_uuid}` を使用してください。 + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @return MeasurementMarker + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public MeasurementMarker getMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(String measurementUuid, String measurementMarkerUuid) throws ApiException { + ApiResponse localVarResp = getMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDWithHttpInfo(measurementUuid, measurementMarkerUuid); + return localVarResp.getData(); + } + + /** + * Get Measurement Marker using Measurement UUID + * **Deprecated** このエンドポイントではなく、 `GET /measurements/{measurement_uuid}` を使用してください。 + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @return ApiResponse<MeasurementMarker> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse getMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDWithHttpInfo(String measurementUuid, String measurementMarkerUuid) throws ApiException { + okhttp3.Call localVarCall = getMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDValidateBeforeCall(measurementUuid, measurementMarkerUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Measurement Marker using Measurement UUID (asynchronously) + * **Deprecated** このエンドポイントではなく、 `GET /measurements/{measurement_uuid}` を使用してください。 + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDAsync(String measurementUuid, String measurementMarkerUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDValidateBeforeCall(measurementUuid, measurementMarkerUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getMeasurementMarkersWithMeasurementUUID + * @param measurementUuid 計測のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getMeasurementMarkersWithMeasurementUUIDCall(String measurementUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements/{measurement_uuid}/markers" + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call getMeasurementMarkersWithMeasurementUUIDValidateBeforeCall(String measurementUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling getMeasurementMarkersWithMeasurementUUID(Async)"); + } + + return getMeasurementMarkersWithMeasurementUUIDCall(measurementUuid, _callback); + + } + + /** + * List Measurement Markers by Measurement UUID + * (**Deprecated** このエンドポイントではなく、 `GET /measurements/{measurement_uuid}` を使用してください。) 計測UUIDを指定して、その計測に付与されたマーカーの一覧を取得します。 + * @param measurementUuid 計測のUUID (required) + * @return MeasurementMarkersWithoutPage + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public MeasurementMarkersWithoutPage getMeasurementMarkersWithMeasurementUUID(String measurementUuid) throws ApiException { + ApiResponse localVarResp = getMeasurementMarkersWithMeasurementUUIDWithHttpInfo(measurementUuid); + return localVarResp.getData(); + } + + /** + * List Measurement Markers by Measurement UUID + * (**Deprecated** このエンドポイントではなく、 `GET /measurements/{measurement_uuid}` を使用してください。) 計測UUIDを指定して、その計測に付与されたマーカーの一覧を取得します。 + * @param measurementUuid 計測のUUID (required) + * @return ApiResponse<MeasurementMarkersWithoutPage> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse getMeasurementMarkersWithMeasurementUUIDWithHttpInfo(String measurementUuid) throws ApiException { + okhttp3.Call localVarCall = getMeasurementMarkersWithMeasurementUUIDValidateBeforeCall(measurementUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Measurement Markers by Measurement UUID (asynchronously) + * (**Deprecated** このエンドポイントではなく、 `GET /measurements/{measurement_uuid}` を使用してください。) 計測UUIDを指定して、その計測に付与されたマーカーの一覧を取得します。 + * @param measurementUuid 計測のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getMeasurementMarkersWithMeasurementUUIDAsync(String measurementUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getMeasurementMarkersWithMeasurementUUIDValidateBeforeCall(measurementUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getProjectMeasurementMarker + * @param projectUuid プロジェクトのUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectMeasurementMarkerCall(String projectUuid, String measurementMarkerUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/markers/{measurement_marker_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_marker_uuid" + "}", localVarApiClient.escapeString(measurementMarkerUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getProjectMeasurementMarkerValidateBeforeCall(String projectUuid, String measurementMarkerUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling getProjectMeasurementMarker(Async)"); + } + + // verify the required parameter 'measurementMarkerUuid' is set + if (measurementMarkerUuid == null) { + throw new ApiException("Missing the required parameter 'measurementMarkerUuid' when calling getProjectMeasurementMarker(Async)"); + } + + return getProjectMeasurementMarkerCall(projectUuid, measurementMarkerUuid, _callback); + + } + + /** + * Get Project Measurement Marker + * 計測マーカーを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @return MeasurementMarker + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public MeasurementMarker getProjectMeasurementMarker(String projectUuid, String measurementMarkerUuid) throws ApiException { + ApiResponse localVarResp = getProjectMeasurementMarkerWithHttpInfo(projectUuid, measurementMarkerUuid); + return localVarResp.getData(); + } + + /** + * Get Project Measurement Marker + * 計測マーカーを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @return ApiResponse<MeasurementMarker> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getProjectMeasurementMarkerWithHttpInfo(String projectUuid, String measurementMarkerUuid) throws ApiException { + okhttp3.Call localVarCall = getProjectMeasurementMarkerValidateBeforeCall(projectUuid, measurementMarkerUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Project Measurement Marker (asynchronously) + * 計測マーカーを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectMeasurementMarkerAsync(String projectUuid, String measurementMarkerUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getProjectMeasurementMarkerValidateBeforeCall(projectUuid, measurementMarkerUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDCall(String projectUuid, String measurementUuid, String measurementMarkerUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/{measurement_uuid}/markers/{measurement_marker_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())) + .replace("{" + "measurement_marker_uuid" + "}", localVarApiClient.escapeString(measurementMarkerUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call getProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDValidateBeforeCall(String projectUuid, String measurementUuid, String measurementMarkerUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling getProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(Async)"); + } + + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling getProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(Async)"); + } + + // verify the required parameter 'measurementMarkerUuid' is set + if (measurementMarkerUuid == null) { + throw new ApiException("Missing the required parameter 'measurementMarkerUuid' when calling getProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(Async)"); + } + + return getProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDCall(projectUuid, measurementUuid, measurementMarkerUuid, _callback); + + } + + /** + * Get Project Measurement Marker using Measurement UUID + * **Deprecated** このエンドポイントではなく、 `GET /measurements/{measurement_uuid}` を使用してください。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @return MeasurementMarker + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public MeasurementMarker getProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(String projectUuid, String measurementUuid, String measurementMarkerUuid) throws ApiException { + ApiResponse localVarResp = getProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDWithHttpInfo(projectUuid, measurementUuid, measurementMarkerUuid); + return localVarResp.getData(); + } + + /** + * Get Project Measurement Marker using Measurement UUID + * **Deprecated** このエンドポイントではなく、 `GET /measurements/{measurement_uuid}` を使用してください。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @return ApiResponse<MeasurementMarker> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse getProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDWithHttpInfo(String projectUuid, String measurementUuid, String measurementMarkerUuid) throws ApiException { + okhttp3.Call localVarCall = getProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDValidateBeforeCall(projectUuid, measurementUuid, measurementMarkerUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Project Measurement Marker using Measurement UUID (asynchronously) + * **Deprecated** このエンドポイントではなく、 `GET /measurements/{measurement_uuid}` を使用してください。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDAsync(String projectUuid, String measurementUuid, String measurementMarkerUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDValidateBeforeCall(projectUuid, measurementUuid, measurementMarkerUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getProjectMeasurementMarkersWithMeasurementUUID + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getProjectMeasurementMarkersWithMeasurementUUIDCall(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/{measurement_uuid}/markers" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call getProjectMeasurementMarkersWithMeasurementUUIDValidateBeforeCall(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling getProjectMeasurementMarkersWithMeasurementUUID(Async)"); + } + + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling getProjectMeasurementMarkersWithMeasurementUUID(Async)"); + } + + return getProjectMeasurementMarkersWithMeasurementUUIDCall(projectUuid, measurementUuid, _callback); + + } + + /** + * List Project Measurement Markers by Measurement UUID + * (**Deprecated** このエンドポイントではなく、 `GET /measurements/{measurement_uuid}` を使用してください。) 計測UUIDを指定して、その計測に付与されたマーカーの一覧を取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @return MeasurementMarkersWithoutPage + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public MeasurementMarkersWithoutPage getProjectMeasurementMarkersWithMeasurementUUID(String projectUuid, String measurementUuid) throws ApiException { + ApiResponse localVarResp = getProjectMeasurementMarkersWithMeasurementUUIDWithHttpInfo(projectUuid, measurementUuid); + return localVarResp.getData(); + } + + /** + * List Project Measurement Markers by Measurement UUID + * (**Deprecated** このエンドポイントではなく、 `GET /measurements/{measurement_uuid}` を使用してください。) 計測UUIDを指定して、その計測に付与されたマーカーの一覧を取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @return ApiResponse<MeasurementMarkersWithoutPage> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse getProjectMeasurementMarkersWithMeasurementUUIDWithHttpInfo(String projectUuid, String measurementUuid) throws ApiException { + okhttp3.Call localVarCall = getProjectMeasurementMarkersWithMeasurementUUIDValidateBeforeCall(projectUuid, measurementUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Project Measurement Markers by Measurement UUID (asynchronously) + * (**Deprecated** このエンドポイントではなく、 `GET /measurements/{measurement_uuid}` を使用してください。) 計測UUIDを指定して、その計測に付与されたマーカーの一覧を取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getProjectMeasurementMarkersWithMeasurementUUIDAsync(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getProjectMeasurementMarkersWithMeasurementUUIDValidateBeforeCall(projectUuid, measurementUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listMeasurementMarkers + * @param uuid 計測マーカーのUUID (optional) + * @param name 計測マーカーの名前 (optional) + * @param startUnixMicro Get MeasMarkers which start Meas.BaseTime + elapsed_time &lt;= this[usec]. (optional) + * @param endUnixMicro Get MeasMarkers which start this[usec] &lt; Meas.BaseTime + elapsed_time. (optional) + * @param tagLessThanKeyGreaterThan タグのキーと値を使って条件を指定し、条件に一致する計測マーカーを取得します。 キーのみを指定した場合は、指定されたキーを持つ計測マーカーを取得します。 キーと値を指定した場合は、指定されたキーを持ち、その値として指定された値を含む計測マーカーを取得します。 `tag.<key>=<value>` 条件は複数個指定することができ、OR条件で使用されます。 ただし `!tag.<key>` と組み合わせた場合、 `!tag.<key>` が優先されます。 例: | measurement marker | tag (key: value) | | ------------------ | ---------------- | | 1 | a: value1 | | | c: value2 | | | e: 1 | | 2 | a: b | | | c: d | | 3 | a: b | - `?tag.e=` の場合、計測マーカー1番が取得されます。 - `?!tag.c=` の場合、計測マーカー3番が取得されます。 - `?tag.a=&!tag.e=` の場合、計測マーカー2、3番が取得されます。 - `?tag.a=val&tag.c=d` の場合、計測マーカー1、2番が取得されます。 (optional) + * @param exclamationTagLessThanKeyGreaterThan タグのキーを使って条件を指定し、条件に一致する計測キャプチャを除外します。 タグの値は無視されます。 `!tag.<key>` を複数個指定した場合、AND条件となります。 また、 `tag.<key>=<value>` と組み合わせて使用した場合、 `tag.<key>=<value>` よりも `!tag.<key>` が優先されます。 例: 上の `tag.<key>` の説明を参照してください。 (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param sort 並べ替えに使用するキー (optional, default to base_time) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call listMeasurementMarkersCall(List uuid, List name, Long startUnixMicro, Long endUnixMicro, List tagLessThanKeyGreaterThan, List exclamationTagLessThanKeyGreaterThan, Integer limit, String sort, Integer page, String order, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements/markers"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (uuid != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "uuid", uuid)); + } + + if (name != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "name", name)); + } + + if (startUnixMicro != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("start_unix_micro", startUnixMicro)); + } + + if (endUnixMicro != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("end_unix_micro", endUnixMicro)); + } + + if (tagLessThanKeyGreaterThan != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "tag.<key>", tagLessThanKeyGreaterThan)); + } + + if (exclamationTagLessThanKeyGreaterThan != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "!tag.<key>", exclamationTagLessThanKeyGreaterThan)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (order != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("order", order)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call listMeasurementMarkersValidateBeforeCall(List uuid, List name, Long startUnixMicro, Long endUnixMicro, List tagLessThanKeyGreaterThan, List exclamationTagLessThanKeyGreaterThan, Integer limit, String sort, Integer page, String order, final ApiCallback _callback) throws ApiException { + return listMeasurementMarkersCall(uuid, name, startUnixMicro, endUnixMicro, tagLessThanKeyGreaterThan, exclamationTagLessThanKeyGreaterThan, limit, sort, page, order, _callback); + + } + + /** + * List Measurement Markers + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/markers` を使用してください) 計測マーカーのリストを取得します。 + * @param uuid 計測マーカーのUUID (optional) + * @param name 計測マーカーの名前 (optional) + * @param startUnixMicro Get MeasMarkers which start Meas.BaseTime + elapsed_time &lt;= this[usec]. (optional) + * @param endUnixMicro Get MeasMarkers which start this[usec] &lt; Meas.BaseTime + elapsed_time. (optional) + * @param tagLessThanKeyGreaterThan タグのキーと値を使って条件を指定し、条件に一致する計測マーカーを取得します。 キーのみを指定した場合は、指定されたキーを持つ計測マーカーを取得します。 キーと値を指定した場合は、指定されたキーを持ち、その値として指定された値を含む計測マーカーを取得します。 `tag.<key>=<value>` 条件は複数個指定することができ、OR条件で使用されます。 ただし `!tag.<key>` と組み合わせた場合、 `!tag.<key>` が優先されます。 例: | measurement marker | tag (key: value) | | ------------------ | ---------------- | | 1 | a: value1 | | | c: value2 | | | e: 1 | | 2 | a: b | | | c: d | | 3 | a: b | - `?tag.e=` の場合、計測マーカー1番が取得されます。 - `?!tag.c=` の場合、計測マーカー3番が取得されます。 - `?tag.a=&!tag.e=` の場合、計測マーカー2、3番が取得されます。 - `?tag.a=val&tag.c=d` の場合、計測マーカー1、2番が取得されます。 (optional) + * @param exclamationTagLessThanKeyGreaterThan タグのキーを使って条件を指定し、条件に一致する計測キャプチャを除外します。 タグの値は無視されます。 `!tag.<key>` を複数個指定した場合、AND条件となります。 また、 `tag.<key>=<value>` と組み合わせて使用した場合、 `tag.<key>=<value>` よりも `!tag.<key>` が優先されます。 例: 上の `tag.<key>` の説明を参照してください。 (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param sort 並べ替えに使用するキー (optional, default to base_time) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @return MeasurementMarkers + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public MeasurementMarkers listMeasurementMarkers(List uuid, List name, Long startUnixMicro, Long endUnixMicro, List tagLessThanKeyGreaterThan, List exclamationTagLessThanKeyGreaterThan, Integer limit, String sort, Integer page, String order) throws ApiException { + ApiResponse localVarResp = listMeasurementMarkersWithHttpInfo(uuid, name, startUnixMicro, endUnixMicro, tagLessThanKeyGreaterThan, exclamationTagLessThanKeyGreaterThan, limit, sort, page, order); + return localVarResp.getData(); + } + + /** + * List Measurement Markers + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/markers` を使用してください) 計測マーカーのリストを取得します。 + * @param uuid 計測マーカーのUUID (optional) + * @param name 計測マーカーの名前 (optional) + * @param startUnixMicro Get MeasMarkers which start Meas.BaseTime + elapsed_time &lt;= this[usec]. (optional) + * @param endUnixMicro Get MeasMarkers which start this[usec] &lt; Meas.BaseTime + elapsed_time. (optional) + * @param tagLessThanKeyGreaterThan タグのキーと値を使って条件を指定し、条件に一致する計測マーカーを取得します。 キーのみを指定した場合は、指定されたキーを持つ計測マーカーを取得します。 キーと値を指定した場合は、指定されたキーを持ち、その値として指定された値を含む計測マーカーを取得します。 `tag.<key>=<value>` 条件は複数個指定することができ、OR条件で使用されます。 ただし `!tag.<key>` と組み合わせた場合、 `!tag.<key>` が優先されます。 例: | measurement marker | tag (key: value) | | ------------------ | ---------------- | | 1 | a: value1 | | | c: value2 | | | e: 1 | | 2 | a: b | | | c: d | | 3 | a: b | - `?tag.e=` の場合、計測マーカー1番が取得されます。 - `?!tag.c=` の場合、計測マーカー3番が取得されます。 - `?tag.a=&!tag.e=` の場合、計測マーカー2、3番が取得されます。 - `?tag.a=val&tag.c=d` の場合、計測マーカー1、2番が取得されます。 (optional) + * @param exclamationTagLessThanKeyGreaterThan タグのキーを使って条件を指定し、条件に一致する計測キャプチャを除外します。 タグの値は無視されます。 `!tag.<key>` を複数個指定した場合、AND条件となります。 また、 `tag.<key>=<value>` と組み合わせて使用した場合、 `tag.<key>=<value>` よりも `!tag.<key>` が優先されます。 例: 上の `tag.<key>` の説明を参照してください。 (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param sort 並べ替えに使用するキー (optional, default to base_time) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @return ApiResponse<MeasurementMarkers> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse listMeasurementMarkersWithHttpInfo(List uuid, List name, Long startUnixMicro, Long endUnixMicro, List tagLessThanKeyGreaterThan, List exclamationTagLessThanKeyGreaterThan, Integer limit, String sort, Integer page, String order) throws ApiException { + okhttp3.Call localVarCall = listMeasurementMarkersValidateBeforeCall(uuid, name, startUnixMicro, endUnixMicro, tagLessThanKeyGreaterThan, exclamationTagLessThanKeyGreaterThan, limit, sort, page, order, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Measurement Markers (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/markers` を使用してください) 計測マーカーのリストを取得します。 + * @param uuid 計測マーカーのUUID (optional) + * @param name 計測マーカーの名前 (optional) + * @param startUnixMicro Get MeasMarkers which start Meas.BaseTime + elapsed_time &lt;= this[usec]. (optional) + * @param endUnixMicro Get MeasMarkers which start this[usec] &lt; Meas.BaseTime + elapsed_time. (optional) + * @param tagLessThanKeyGreaterThan タグのキーと値を使って条件を指定し、条件に一致する計測マーカーを取得します。 キーのみを指定した場合は、指定されたキーを持つ計測マーカーを取得します。 キーと値を指定した場合は、指定されたキーを持ち、その値として指定された値を含む計測マーカーを取得します。 `tag.<key>=<value>` 条件は複数個指定することができ、OR条件で使用されます。 ただし `!tag.<key>` と組み合わせた場合、 `!tag.<key>` が優先されます。 例: | measurement marker | tag (key: value) | | ------------------ | ---------------- | | 1 | a: value1 | | | c: value2 | | | e: 1 | | 2 | a: b | | | c: d | | 3 | a: b | - `?tag.e=` の場合、計測マーカー1番が取得されます。 - `?!tag.c=` の場合、計測マーカー3番が取得されます。 - `?tag.a=&!tag.e=` の場合、計測マーカー2、3番が取得されます。 - `?tag.a=val&tag.c=d` の場合、計測マーカー1、2番が取得されます。 (optional) + * @param exclamationTagLessThanKeyGreaterThan タグのキーを使って条件を指定し、条件に一致する計測キャプチャを除外します。 タグの値は無視されます。 `!tag.<key>` を複数個指定した場合、AND条件となります。 また、 `tag.<key>=<value>` と組み合わせて使用した場合、 `tag.<key>=<value>` よりも `!tag.<key>` が優先されます。 例: 上の `tag.<key>` の説明を参照してください。 (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param sort 並べ替えに使用するキー (optional, default to base_time) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call listMeasurementMarkersAsync(List uuid, List name, Long startUnixMicro, Long endUnixMicro, List tagLessThanKeyGreaterThan, List exclamationTagLessThanKeyGreaterThan, Integer limit, String sort, Integer page, String order, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listMeasurementMarkersValidateBeforeCall(uuid, name, startUnixMicro, endUnixMicro, tagLessThanKeyGreaterThan, exclamationTagLessThanKeyGreaterThan, limit, sort, page, order, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listProjectMeasurementMarkers + * @param projectUuid プロジェクトのUUID (required) + * @param uuid 計測マーカーのUUID (optional) + * @param name 計測マーカーの名前 (optional) + * @param startUnixMicro Get MeasMarkers which start Meas.BaseTime + elapsed_time &lt;= this[usec]. (optional) + * @param endUnixMicro Get MeasMarkers which start this[usec] &lt; Meas.BaseTime + elapsed_time. (optional) + * @param tagLessThanKeyGreaterThan タグのキーと値を使って条件を指定し、条件に一致する計測マーカーを取得します。 キーのみを指定した場合は、指定されたキーを持つ計測マーカーを取得します。 キーと値を指定した場合は、指定されたキーを持ち、その値として指定された値を含む計測マーカーを取得します。 `tag.<key>=<value>` 条件は複数個指定することができ、OR条件で使用されます。 ただし `!tag.<key>` と組み合わせた場合、 `!tag.<key>` が優先されます。 例: | measurement marker | tag (key: value) | | ------------------ | ---------------- | | 1 | a: value1 | | | c: value2 | | | e: 1 | | 2 | a: b | | | c: d | | 3 | a: b | - `?tag.e=` の場合、計測マーカー1番が取得されます。 - `?!tag.c=` の場合、計測マーカー3番が取得されます。 - `?tag.a=&!tag.e=` の場合、計測マーカー2、3番が取得されます。 - `?tag.a=val&tag.c=d` の場合、計測マーカー1、2番が取得されます。 (optional) + * @param exclamationTagLessThanKeyGreaterThan タグのキーを使って条件を指定し、条件に一致する計測キャプチャを除外します。 タグの値は無視されます。 `!tag.<key>` を複数個指定した場合、AND条件となります。 また、 `tag.<key>=<value>` と組み合わせて使用した場合、 `tag.<key>=<value>` よりも `!tag.<key>` が優先されます。 例: 上の `tag.<key>` の説明を参照してください。 (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param sort 並べ替えに使用するキー (optional, default to base_time) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listProjectMeasurementMarkersCall(String projectUuid, List uuid, List name, Long startUnixMicro, Long endUnixMicro, List tagLessThanKeyGreaterThan, List exclamationTagLessThanKeyGreaterThan, Integer limit, String sort, Integer page, String order, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/markers" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (uuid != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "uuid", uuid)); + } + + if (name != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "name", name)); + } + + if (startUnixMicro != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("start_unix_micro", startUnixMicro)); + } + + if (endUnixMicro != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("end_unix_micro", endUnixMicro)); + } + + if (tagLessThanKeyGreaterThan != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "tag.<key>", tagLessThanKeyGreaterThan)); + } + + if (exclamationTagLessThanKeyGreaterThan != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "!tag.<key>", exclamationTagLessThanKeyGreaterThan)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (order != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("order", order)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listProjectMeasurementMarkersValidateBeforeCall(String projectUuid, List uuid, List name, Long startUnixMicro, Long endUnixMicro, List tagLessThanKeyGreaterThan, List exclamationTagLessThanKeyGreaterThan, Integer limit, String sort, Integer page, String order, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling listProjectMeasurementMarkers(Async)"); + } + + return listProjectMeasurementMarkersCall(projectUuid, uuid, name, startUnixMicro, endUnixMicro, tagLessThanKeyGreaterThan, exclamationTagLessThanKeyGreaterThan, limit, sort, page, order, _callback); + + } + + /** + * List Project Measurement Markers + * 計測マーカーのリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param uuid 計測マーカーのUUID (optional) + * @param name 計測マーカーの名前 (optional) + * @param startUnixMicro Get MeasMarkers which start Meas.BaseTime + elapsed_time &lt;= this[usec]. (optional) + * @param endUnixMicro Get MeasMarkers which start this[usec] &lt; Meas.BaseTime + elapsed_time. (optional) + * @param tagLessThanKeyGreaterThan タグのキーと値を使って条件を指定し、条件に一致する計測マーカーを取得します。 キーのみを指定した場合は、指定されたキーを持つ計測マーカーを取得します。 キーと値を指定した場合は、指定されたキーを持ち、その値として指定された値を含む計測マーカーを取得します。 `tag.<key>=<value>` 条件は複数個指定することができ、OR条件で使用されます。 ただし `!tag.<key>` と組み合わせた場合、 `!tag.<key>` が優先されます。 例: | measurement marker | tag (key: value) | | ------------------ | ---------------- | | 1 | a: value1 | | | c: value2 | | | e: 1 | | 2 | a: b | | | c: d | | 3 | a: b | - `?tag.e=` の場合、計測マーカー1番が取得されます。 - `?!tag.c=` の場合、計測マーカー3番が取得されます。 - `?tag.a=&!tag.e=` の場合、計測マーカー2、3番が取得されます。 - `?tag.a=val&tag.c=d` の場合、計測マーカー1、2番が取得されます。 (optional) + * @param exclamationTagLessThanKeyGreaterThan タグのキーを使って条件を指定し、条件に一致する計測キャプチャを除外します。 タグの値は無視されます。 `!tag.<key>` を複数個指定した場合、AND条件となります。 また、 `tag.<key>=<value>` と組み合わせて使用した場合、 `tag.<key>=<value>` よりも `!tag.<key>` が優先されます。 例: 上の `tag.<key>` の説明を参照してください。 (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param sort 並べ替えに使用するキー (optional, default to base_time) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @return MeasurementMarkers + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public MeasurementMarkers listProjectMeasurementMarkers(String projectUuid, List uuid, List name, Long startUnixMicro, Long endUnixMicro, List tagLessThanKeyGreaterThan, List exclamationTagLessThanKeyGreaterThan, Integer limit, String sort, Integer page, String order) throws ApiException { + ApiResponse localVarResp = listProjectMeasurementMarkersWithHttpInfo(projectUuid, uuid, name, startUnixMicro, endUnixMicro, tagLessThanKeyGreaterThan, exclamationTagLessThanKeyGreaterThan, limit, sort, page, order); + return localVarResp.getData(); + } + + /** + * List Project Measurement Markers + * 計測マーカーのリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param uuid 計測マーカーのUUID (optional) + * @param name 計測マーカーの名前 (optional) + * @param startUnixMicro Get MeasMarkers which start Meas.BaseTime + elapsed_time &lt;= this[usec]. (optional) + * @param endUnixMicro Get MeasMarkers which start this[usec] &lt; Meas.BaseTime + elapsed_time. (optional) + * @param tagLessThanKeyGreaterThan タグのキーと値を使って条件を指定し、条件に一致する計測マーカーを取得します。 キーのみを指定した場合は、指定されたキーを持つ計測マーカーを取得します。 キーと値を指定した場合は、指定されたキーを持ち、その値として指定された値を含む計測マーカーを取得します。 `tag.<key>=<value>` 条件は複数個指定することができ、OR条件で使用されます。 ただし `!tag.<key>` と組み合わせた場合、 `!tag.<key>` が優先されます。 例: | measurement marker | tag (key: value) | | ------------------ | ---------------- | | 1 | a: value1 | | | c: value2 | | | e: 1 | | 2 | a: b | | | c: d | | 3 | a: b | - `?tag.e=` の場合、計測マーカー1番が取得されます。 - `?!tag.c=` の場合、計測マーカー3番が取得されます。 - `?tag.a=&!tag.e=` の場合、計測マーカー2、3番が取得されます。 - `?tag.a=val&tag.c=d` の場合、計測マーカー1、2番が取得されます。 (optional) + * @param exclamationTagLessThanKeyGreaterThan タグのキーを使って条件を指定し、条件に一致する計測キャプチャを除外します。 タグの値は無視されます。 `!tag.<key>` を複数個指定した場合、AND条件となります。 また、 `tag.<key>=<value>` と組み合わせて使用した場合、 `tag.<key>=<value>` よりも `!tag.<key>` が優先されます。 例: 上の `tag.<key>` の説明を参照してください。 (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param sort 並べ替えに使用するキー (optional, default to base_time) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @return ApiResponse<MeasurementMarkers> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listProjectMeasurementMarkersWithHttpInfo(String projectUuid, List uuid, List name, Long startUnixMicro, Long endUnixMicro, List tagLessThanKeyGreaterThan, List exclamationTagLessThanKeyGreaterThan, Integer limit, String sort, Integer page, String order) throws ApiException { + okhttp3.Call localVarCall = listProjectMeasurementMarkersValidateBeforeCall(projectUuid, uuid, name, startUnixMicro, endUnixMicro, tagLessThanKeyGreaterThan, exclamationTagLessThanKeyGreaterThan, limit, sort, page, order, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Project Measurement Markers (asynchronously) + * 計測マーカーのリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param uuid 計測マーカーのUUID (optional) + * @param name 計測マーカーの名前 (optional) + * @param startUnixMicro Get MeasMarkers which start Meas.BaseTime + elapsed_time &lt;= this[usec]. (optional) + * @param endUnixMicro Get MeasMarkers which start this[usec] &lt; Meas.BaseTime + elapsed_time. (optional) + * @param tagLessThanKeyGreaterThan タグのキーと値を使って条件を指定し、条件に一致する計測マーカーを取得します。 キーのみを指定した場合は、指定されたキーを持つ計測マーカーを取得します。 キーと値を指定した場合は、指定されたキーを持ち、その値として指定された値を含む計測マーカーを取得します。 `tag.<key>=<value>` 条件は複数個指定することができ、OR条件で使用されます。 ただし `!tag.<key>` と組み合わせた場合、 `!tag.<key>` が優先されます。 例: | measurement marker | tag (key: value) | | ------------------ | ---------------- | | 1 | a: value1 | | | c: value2 | | | e: 1 | | 2 | a: b | | | c: d | | 3 | a: b | - `?tag.e=` の場合、計測マーカー1番が取得されます。 - `?!tag.c=` の場合、計測マーカー3番が取得されます。 - `?tag.a=&!tag.e=` の場合、計測マーカー2、3番が取得されます。 - `?tag.a=val&tag.c=d` の場合、計測マーカー1、2番が取得されます。 (optional) + * @param exclamationTagLessThanKeyGreaterThan タグのキーを使って条件を指定し、条件に一致する計測キャプチャを除外します。 タグの値は無視されます。 `!tag.<key>` を複数個指定した場合、AND条件となります。 また、 `tag.<key>=<value>` と組み合わせて使用した場合、 `tag.<key>=<value>` よりも `!tag.<key>` が優先されます。 例: 上の `tag.<key>` の説明を参照してください。 (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param sort 並べ替えに使用するキー (optional, default to base_time) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listProjectMeasurementMarkersAsync(String projectUuid, List uuid, List name, Long startUnixMicro, Long endUnixMicro, List tagLessThanKeyGreaterThan, List exclamationTagLessThanKeyGreaterThan, Integer limit, String sort, Integer page, String order, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listProjectMeasurementMarkersValidateBeforeCall(projectUuid, uuid, name, startUnixMicro, endUnixMicro, tagLessThanKeyGreaterThan, exclamationTagLessThanKeyGreaterThan, limit, sort, page, order, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateMeasurementMarker + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param measurementMarkerPutRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call updateMeasurementMarkerCall(String measurementMarkerUuid, MeasurementMarkerPutRequest measurementMarkerPutRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = measurementMarkerPutRequest; + + // create path and map variables + String localVarPath = "/v1/measurements/markers/{measurement_marker_uuid}" + .replace("{" + "measurement_marker_uuid" + "}", localVarApiClient.escapeString(measurementMarkerUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call updateMeasurementMarkerValidateBeforeCall(String measurementMarkerUuid, MeasurementMarkerPutRequest measurementMarkerPutRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementMarkerUuid' is set + if (measurementMarkerUuid == null) { + throw new ApiException("Missing the required parameter 'measurementMarkerUuid' when calling updateMeasurementMarker(Async)"); + } + + return updateMeasurementMarkerCall(measurementMarkerUuid, measurementMarkerPutRequest, _callback); + + } + + /** + * Update Measurement Marker + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/markers/{measurement_marker_uuid}` を使用してください) 計測マーカーを更新します。 + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param measurementMarkerPutRequest (optional) + * @return MeasurementMarker + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public MeasurementMarker updateMeasurementMarker(String measurementMarkerUuid, MeasurementMarkerPutRequest measurementMarkerPutRequest) throws ApiException { + ApiResponse localVarResp = updateMeasurementMarkerWithHttpInfo(measurementMarkerUuid, measurementMarkerPutRequest); + return localVarResp.getData(); + } + + /** + * Update Measurement Marker + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/markers/{measurement_marker_uuid}` を使用してください) 計測マーカーを更新します。 + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param measurementMarkerPutRequest (optional) + * @return ApiResponse<MeasurementMarker> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse updateMeasurementMarkerWithHttpInfo(String measurementMarkerUuid, MeasurementMarkerPutRequest measurementMarkerPutRequest) throws ApiException { + okhttp3.Call localVarCall = updateMeasurementMarkerValidateBeforeCall(measurementMarkerUuid, measurementMarkerPutRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Measurement Marker (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/markers/{measurement_marker_uuid}` を使用してください) 計測マーカーを更新します。 + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param measurementMarkerPutRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call updateMeasurementMarkerAsync(String measurementMarkerUuid, MeasurementMarkerPutRequest measurementMarkerPutRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateMeasurementMarkerValidateBeforeCall(measurementMarkerUuid, measurementMarkerPutRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateMeasurementMarkerWithMeasurementUUIDAndMarkerUUID + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param measurementMarkerPutRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call updateMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDCall(String measurementUuid, String measurementMarkerUuid, MeasurementMarkerPutRequest measurementMarkerPutRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = measurementMarkerPutRequest; + + // create path and map variables + String localVarPath = "/v1/measurements/{measurement_uuid}/markers/{measurement_marker_uuid}" + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())) + .replace("{" + "measurement_marker_uuid" + "}", localVarApiClient.escapeString(measurementMarkerUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call updateMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDValidateBeforeCall(String measurementUuid, String measurementMarkerUuid, MeasurementMarkerPutRequest measurementMarkerPutRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling updateMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(Async)"); + } + + // verify the required parameter 'measurementMarkerUuid' is set + if (measurementMarkerUuid == null) { + throw new ApiException("Missing the required parameter 'measurementMarkerUuid' when calling updateMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(Async)"); + } + + return updateMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDCall(measurementUuid, measurementMarkerUuid, measurementMarkerPutRequest, _callback); + + } + + /** + * Replace Measurement Marker using Measurement UUID + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/markers/{Measurement_marker_uuid}` を使用してください) 計測マーカーの情報を更新します。 + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param measurementMarkerPutRequest (optional) + * @return MeasurementMarker + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public MeasurementMarker updateMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(String measurementUuid, String measurementMarkerUuid, MeasurementMarkerPutRequest measurementMarkerPutRequest) throws ApiException { + ApiResponse localVarResp = updateMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDWithHttpInfo(measurementUuid, measurementMarkerUuid, measurementMarkerPutRequest); + return localVarResp.getData(); + } + + /** + * Replace Measurement Marker using Measurement UUID + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/markers/{Measurement_marker_uuid}` を使用してください) 計測マーカーの情報を更新します。 + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param measurementMarkerPutRequest (optional) + * @return ApiResponse<MeasurementMarker> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse updateMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDWithHttpInfo(String measurementUuid, String measurementMarkerUuid, MeasurementMarkerPutRequest measurementMarkerPutRequest) throws ApiException { + okhttp3.Call localVarCall = updateMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDValidateBeforeCall(measurementUuid, measurementMarkerUuid, measurementMarkerPutRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Replace Measurement Marker using Measurement UUID (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/markers/{Measurement_marker_uuid}` を使用してください) 計測マーカーの情報を更新します。 + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param measurementMarkerPutRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call updateMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDAsync(String measurementUuid, String measurementMarkerUuid, MeasurementMarkerPutRequest measurementMarkerPutRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDValidateBeforeCall(measurementUuid, measurementMarkerUuid, measurementMarkerPutRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateProjectMeasurementMarker + * @param projectUuid プロジェクトのUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param measurementMarkerPutRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateProjectMeasurementMarkerCall(String projectUuid, String measurementMarkerUuid, MeasurementMarkerPutRequest measurementMarkerPutRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = measurementMarkerPutRequest; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/markers/{measurement_marker_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_marker_uuid" + "}", localVarApiClient.escapeString(measurementMarkerUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateProjectMeasurementMarkerValidateBeforeCall(String projectUuid, String measurementMarkerUuid, MeasurementMarkerPutRequest measurementMarkerPutRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling updateProjectMeasurementMarker(Async)"); + } + + // verify the required parameter 'measurementMarkerUuid' is set + if (measurementMarkerUuid == null) { + throw new ApiException("Missing the required parameter 'measurementMarkerUuid' when calling updateProjectMeasurementMarker(Async)"); + } + + return updateProjectMeasurementMarkerCall(projectUuid, measurementMarkerUuid, measurementMarkerPutRequest, _callback); + + } + + /** + * Update Project Measurement Marker + * 計測マーカーを更新します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param measurementMarkerPutRequest (optional) + * @return MeasurementMarker + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public MeasurementMarker updateProjectMeasurementMarker(String projectUuid, String measurementMarkerUuid, MeasurementMarkerPutRequest measurementMarkerPutRequest) throws ApiException { + ApiResponse localVarResp = updateProjectMeasurementMarkerWithHttpInfo(projectUuid, measurementMarkerUuid, measurementMarkerPutRequest); + return localVarResp.getData(); + } + + /** + * Update Project Measurement Marker + * 計測マーカーを更新します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param measurementMarkerPutRequest (optional) + * @return ApiResponse<MeasurementMarker> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateProjectMeasurementMarkerWithHttpInfo(String projectUuid, String measurementMarkerUuid, MeasurementMarkerPutRequest measurementMarkerPutRequest) throws ApiException { + okhttp3.Call localVarCall = updateProjectMeasurementMarkerValidateBeforeCall(projectUuid, measurementMarkerUuid, measurementMarkerPutRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Project Measurement Marker (asynchronously) + * 計測マーカーを更新します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param measurementMarkerPutRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateProjectMeasurementMarkerAsync(String projectUuid, String measurementMarkerUuid, MeasurementMarkerPutRequest measurementMarkerPutRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateProjectMeasurementMarkerValidateBeforeCall(projectUuid, measurementMarkerUuid, measurementMarkerPutRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param measurementMarkerPutRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDCall(String projectUuid, String measurementUuid, String measurementMarkerUuid, MeasurementMarkerPutRequest measurementMarkerPutRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = measurementMarkerPutRequest; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/{measurement_uuid}/markers/{measurement_marker_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())) + .replace("{" + "measurement_marker_uuid" + "}", localVarApiClient.escapeString(measurementMarkerUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDValidateBeforeCall(String projectUuid, String measurementUuid, String measurementMarkerUuid, MeasurementMarkerPutRequest measurementMarkerPutRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling updateProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(Async)"); + } + + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling updateProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(Async)"); + } + + // verify the required parameter 'measurementMarkerUuid' is set + if (measurementMarkerUuid == null) { + throw new ApiException("Missing the required parameter 'measurementMarkerUuid' when calling updateProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(Async)"); + } + + return updateProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDCall(projectUuid, measurementUuid, measurementMarkerUuid, measurementMarkerPutRequest, _callback); + + } + + /** + * Replace Project Measurement Marker using Measurement UUID + * 計測マーカーの情報を更新します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param measurementMarkerPutRequest (optional) + * @return MeasurementMarker + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public MeasurementMarker updateProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUID(String projectUuid, String measurementUuid, String measurementMarkerUuid, MeasurementMarkerPutRequest measurementMarkerPutRequest) throws ApiException { + ApiResponse localVarResp = updateProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDWithHttpInfo(projectUuid, measurementUuid, measurementMarkerUuid, measurementMarkerPutRequest); + return localVarResp.getData(); + } + + /** + * Replace Project Measurement Marker using Measurement UUID + * 計測マーカーの情報を更新します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param measurementMarkerPutRequest (optional) + * @return ApiResponse<MeasurementMarker> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDWithHttpInfo(String projectUuid, String measurementUuid, String measurementMarkerUuid, MeasurementMarkerPutRequest measurementMarkerPutRequest) throws ApiException { + okhttp3.Call localVarCall = updateProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDValidateBeforeCall(projectUuid, measurementUuid, measurementMarkerUuid, measurementMarkerPutRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Replace Project Measurement Marker using Measurement UUID (asynchronously) + * 計測マーカーの情報を更新します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param measurementMarkerPutRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDAsync(String projectUuid, String measurementUuid, String measurementMarkerUuid, MeasurementMarkerPutRequest measurementMarkerPutRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateProjectMeasurementMarkerWithMeasurementUUIDAndMarkerUUIDValidateBeforeCall(projectUuid, measurementUuid, measurementMarkerUuid, measurementMarkerPutRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/intdash/src/main/java/com/aptpod/intdash/MeasMeasurementsApi.java b/intdash/src/main/java/com/aptpod/intdash/MeasMeasurementsApi.java new file mode 100644 index 0000000..7d912f8 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/intdash/MeasMeasurementsApi.java @@ -0,0 +1,5891 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.intdash; + +import com.aptpod.ApiCallback; +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.ApiResponse; +import com.aptpod.Configuration; +import com.aptpod.Pair; +import com.aptpod.ProgressRequestBody; +import com.aptpod.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.openapitools.client.model.CreateMeasurementChunksResult; +import java.io.File; +import org.openapitools.client.model.MeasBaseTime; +import org.openapitools.client.model.MeasBaseTimePut; +import org.openapitools.client.model.MeasBaseTimes; +import org.openapitools.client.model.MeasCreate; +import org.openapitools.client.model.MeasReplace; +import org.openapitools.client.model.Measurement; +import org.openapitools.client.model.MeasurementSectionsGetResponse; +import org.openapitools.client.model.MeasurementSequenceGroup; +import org.openapitools.client.model.MeasurementSequenceGroupReplace; +import org.openapitools.client.model.MeasurementSequenceGroups; +import org.openapitools.client.model.Measurements; +import org.openapitools.client.model.SequenceSummary; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class MeasMeasurementsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public MeasMeasurementsApi() { + this(Configuration.getDefaultApiClient()); + } + + public MeasMeasurementsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for completeMeasurement + * @param measurementUuid 計測のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call completeMeasurementCall(String measurementUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements/{measurement_uuid}/complete" + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call completeMeasurementValidateBeforeCall(String measurementUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling completeMeasurement(Async)"); + } + + return completeMeasurementCall(measurementUuid, _callback); + + } + + /** + * Complete Measurement + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/complete` を使用してください) 計測を回収完了(completed)にします。 completedは、エッジでのデータ取得が終了し(ended)、 かつ、すべてのデータがサーバーに送信されたことを意味します。 + * @param measurementUuid 計測のUUID (required) + * @return Measurement + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public Measurement completeMeasurement(String measurementUuid) throws ApiException { + ApiResponse localVarResp = completeMeasurementWithHttpInfo(measurementUuid); + return localVarResp.getData(); + } + + /** + * Complete Measurement + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/complete` を使用してください) 計測を回収完了(completed)にします。 completedは、エッジでのデータ取得が終了し(ended)、 かつ、すべてのデータがサーバーに送信されたことを意味します。 + * @param measurementUuid 計測のUUID (required) + * @return ApiResponse<Measurement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse completeMeasurementWithHttpInfo(String measurementUuid) throws ApiException { + okhttp3.Call localVarCall = completeMeasurementValidateBeforeCall(measurementUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Complete Measurement (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/complete` を使用してください) 計測を回収完了(completed)にします。 completedは、エッジでのデータ取得が終了し(ended)、 かつ、すべてのデータがサーバーに送信されたことを意味します。 + * @param measurementUuid 計測のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call completeMeasurementAsync(String measurementUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = completeMeasurementValidateBeforeCall(measurementUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for completeProjectMeasurement + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call completeProjectMeasurementCall(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/{measurement_uuid}/complete" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call completeProjectMeasurementValidateBeforeCall(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling completeProjectMeasurement(Async)"); + } + + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling completeProjectMeasurement(Async)"); + } + + return completeProjectMeasurementCall(projectUuid, measurementUuid, _callback); + + } + + /** + * Complete Project Measurement + * 計測を回収完了(completed)にします。 completedは、エッジでのデータ取得が終了し(ended)、 かつ、すべてのデータがサーバーに送信されたことを意味します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @return Measurement + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Measurement completeProjectMeasurement(String projectUuid, String measurementUuid) throws ApiException { + ApiResponse localVarResp = completeProjectMeasurementWithHttpInfo(projectUuid, measurementUuid); + return localVarResp.getData(); + } + + /** + * Complete Project Measurement + * 計測を回収完了(completed)にします。 completedは、エッジでのデータ取得が終了し(ended)、 かつ、すべてのデータがサーバーに送信されたことを意味します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @return ApiResponse<Measurement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse completeProjectMeasurementWithHttpInfo(String projectUuid, String measurementUuid) throws ApiException { + okhttp3.Call localVarCall = completeProjectMeasurementValidateBeforeCall(projectUuid, measurementUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Complete Project Measurement (asynchronously) + * 計測を回収完了(completed)にします。 completedは、エッジでのデータ取得が終了し(ended)、 かつ、すべてのデータがサーバーに送信されたことを意味します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call completeProjectMeasurementAsync(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = completeProjectMeasurementValidateBeforeCall(projectUuid, measurementUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createMeasurement + * @param measCreate (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call createMeasurementCall(MeasCreate measCreate, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = measCreate; + + // create path and map variables + String localVarPath = "/v1/measurements"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call createMeasurementValidateBeforeCall(MeasCreate measCreate, final ApiCallback _callback) throws ApiException { + return createMeasurementCall(measCreate, _callback); + + } + + /** + * Create Measurement + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements` を使用してください) 計測を作成します。 - **Note** - 計測の保護/非保護を切り替える権限を持たないエッジも、 計測作成時は保護された計測を作成することが可能です。 + * @param measCreate (optional) + * @return Measurement + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ * @deprecated + */ + @Deprecated + public Measurement createMeasurement(MeasCreate measCreate) throws ApiException { + ApiResponse localVarResp = createMeasurementWithHttpInfo(measCreate); + return localVarResp.getData(); + } + + /** + * Create Measurement + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements` を使用してください) 計測を作成します。 - **Note** - 計測の保護/非保護を切り替える権限を持たないエッジも、 計測作成時は保護された計測を作成することが可能です。 + * @param measCreate (optional) + * @return ApiResponse<Measurement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ * @deprecated + */ + @Deprecated + public ApiResponse createMeasurementWithHttpInfo(MeasCreate measCreate) throws ApiException { + okhttp3.Call localVarCall = createMeasurementValidateBeforeCall(measCreate, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Measurement (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements` を使用してください) 計測を作成します。 - **Note** - 計測の保護/非保護を切り替える権限を持たないエッジも、 計測作成時は保護された計測を作成することが可能です。 + * @param measCreate (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call createMeasurementAsync(MeasCreate measCreate, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createMeasurementValidateBeforeCall(measCreate, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createMeasurementSequenceChunks + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call createMeasurementSequenceChunksCall(File body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/v1/measurements/sequences/chunks"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/vnd.iscp.v2.protobuf", + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call createMeasurementSequenceChunksValidateBeforeCall(File body, final ApiCallback _callback) throws ApiException { + return createMeasurementSequenceChunksCall(body, _callback); + + } + + /** + * Create Measurement Sequence Chunk + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/sequence/chunks` を使用してください) 計測シーケンスにチャンクを作成します。 + * @param body (optional) + * @return CreateMeasurementChunksResult + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public CreateMeasurementChunksResult createMeasurementSequenceChunks(File body) throws ApiException { + ApiResponse localVarResp = createMeasurementSequenceChunksWithHttpInfo(body); + return localVarResp.getData(); + } + + /** + * Create Measurement Sequence Chunk + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/sequence/chunks` を使用してください) 計測シーケンスにチャンクを作成します。 + * @param body (optional) + * @return ApiResponse<CreateMeasurementChunksResult> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse createMeasurementSequenceChunksWithHttpInfo(File body) throws ApiException { + okhttp3.Call localVarCall = createMeasurementSequenceChunksValidateBeforeCall(body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Measurement Sequence Chunk (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/sequence/chunks` を使用してください) 計測シーケンスにチャンクを作成します。 + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call createMeasurementSequenceChunksAsync(File body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createMeasurementSequenceChunksValidateBeforeCall(body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createMeasurementWithUUID + * @param measurementUuid 計測のUUID (required) + * @param measCreate (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call createMeasurementWithUUIDCall(String measurementUuid, MeasCreate measCreate, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = measCreate; + + // create path and map variables + String localVarPath = "/v1/measurements/{measurement_uuid}" + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call createMeasurementWithUUIDValidateBeforeCall(String measurementUuid, MeasCreate measCreate, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling createMeasurementWithUUID(Async)"); + } + + return createMeasurementWithUUIDCall(measurementUuid, measCreate, _callback); + + } + + /** + * Create Measurement with UUID + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}` を使用してください) 指定したUUIDの計測を作成します。 + * @param measurementUuid 計測のUUID (required) + * @param measCreate (optional) + * @return Measurement + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ * @deprecated + */ + @Deprecated + public Measurement createMeasurementWithUUID(String measurementUuid, MeasCreate measCreate) throws ApiException { + ApiResponse localVarResp = createMeasurementWithUUIDWithHttpInfo(measurementUuid, measCreate); + return localVarResp.getData(); + } + + /** + * Create Measurement with UUID + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}` を使用してください) 指定したUUIDの計測を作成します。 + * @param measurementUuid 計測のUUID (required) + * @param measCreate (optional) + * @return ApiResponse<Measurement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ * @deprecated + */ + @Deprecated + public ApiResponse createMeasurementWithUUIDWithHttpInfo(String measurementUuid, MeasCreate measCreate) throws ApiException { + okhttp3.Call localVarCall = createMeasurementWithUUIDValidateBeforeCall(measurementUuid, measCreate, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Measurement with UUID (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}` を使用してください) 指定したUUIDの計測を作成します。 + * @param measurementUuid 計測のUUID (required) + * @param measCreate (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call createMeasurementWithUUIDAsync(String measurementUuid, MeasCreate measCreate, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createMeasurementWithUUIDValidateBeforeCall(measurementUuid, measCreate, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createProjectMeasurement + * @param projectUuid プロジェクトのUUID (required) + * @param measCreate (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public okhttp3.Call createProjectMeasurementCall(String projectUuid, MeasCreate measCreate, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = measCreate; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createProjectMeasurementValidateBeforeCall(String projectUuid, MeasCreate measCreate, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling createProjectMeasurement(Async)"); + } + + return createProjectMeasurementCall(projectUuid, measCreate, _callback); + + } + + /** + * Create Project Measurement + * 計測を作成します。 - **Note** - 計測の保護/非保護を切り替える権限を持たないエッジも、 計測作成時は保護された計測を作成することが可能です。 + * @param projectUuid プロジェクトのUUID (required) + * @param measCreate (optional) + * @return Measurement + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public Measurement createProjectMeasurement(String projectUuid, MeasCreate measCreate) throws ApiException { + ApiResponse localVarResp = createProjectMeasurementWithHttpInfo(projectUuid, measCreate); + return localVarResp.getData(); + } + + /** + * Create Project Measurement + * 計測を作成します。 - **Note** - 計測の保護/非保護を切り替える権限を持たないエッジも、 計測作成時は保護された計測を作成することが可能です。 + * @param projectUuid プロジェクトのUUID (required) + * @param measCreate (optional) + * @return ApiResponse<Measurement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public ApiResponse createProjectMeasurementWithHttpInfo(String projectUuid, MeasCreate measCreate) throws ApiException { + okhttp3.Call localVarCall = createProjectMeasurementValidateBeforeCall(projectUuid, measCreate, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Project Measurement (asynchronously) + * 計測を作成します。 - **Note** - 計測の保護/非保護を切り替える権限を持たないエッジも、 計測作成時は保護された計測を作成することが可能です。 + * @param projectUuid プロジェクトのUUID (required) + * @param measCreate (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public okhttp3.Call createProjectMeasurementAsync(String projectUuid, MeasCreate measCreate, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createProjectMeasurementValidateBeforeCall(projectUuid, measCreate, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createProjectMeasurementSequenceChunks + * @param projectUuid プロジェクトのUUID (required) + * @param body (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createProjectMeasurementSequenceChunksCall(String projectUuid, File body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/sequences/chunks" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/vnd.iscp.v2.protobuf", + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createProjectMeasurementSequenceChunksValidateBeforeCall(String projectUuid, File body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling createProjectMeasurementSequenceChunks(Async)"); + } + + return createProjectMeasurementSequenceChunksCall(projectUuid, body, _callback); + + } + + /** + * Create Project Measurement Sequence Chunk + * 計測シーケンスにチャンクを作成します。 + * @param projectUuid プロジェクトのUUID (required) + * @param body (optional) + * @return CreateMeasurementChunksResult + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public CreateMeasurementChunksResult createProjectMeasurementSequenceChunks(String projectUuid, File body) throws ApiException { + ApiResponse localVarResp = createProjectMeasurementSequenceChunksWithHttpInfo(projectUuid, body); + return localVarResp.getData(); + } + + /** + * Create Project Measurement Sequence Chunk + * 計測シーケンスにチャンクを作成します。 + * @param projectUuid プロジェクトのUUID (required) + * @param body (optional) + * @return ApiResponse<CreateMeasurementChunksResult> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse createProjectMeasurementSequenceChunksWithHttpInfo(String projectUuid, File body) throws ApiException { + okhttp3.Call localVarCall = createProjectMeasurementSequenceChunksValidateBeforeCall(projectUuid, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Project Measurement Sequence Chunk (asynchronously) + * 計測シーケンスにチャンクを作成します。 + * @param projectUuid プロジェクトのUUID (required) + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createProjectMeasurementSequenceChunksAsync(String projectUuid, File body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createProjectMeasurementSequenceChunksValidateBeforeCall(projectUuid, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createProjectMeasurementWithUUID + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param measCreate (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public okhttp3.Call createProjectMeasurementWithUUIDCall(String projectUuid, String measurementUuid, MeasCreate measCreate, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = measCreate; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/{measurement_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createProjectMeasurementWithUUIDValidateBeforeCall(String projectUuid, String measurementUuid, MeasCreate measCreate, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling createProjectMeasurementWithUUID(Async)"); + } + + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling createProjectMeasurementWithUUID(Async)"); + } + + return createProjectMeasurementWithUUIDCall(projectUuid, measurementUuid, measCreate, _callback); + + } + + /** + * Create Project Measurement with UUID + * 指定したUUIDの計測を作成します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param measCreate (optional) + * @return Measurement + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public Measurement createProjectMeasurementWithUUID(String projectUuid, String measurementUuid, MeasCreate measCreate) throws ApiException { + ApiResponse localVarResp = createProjectMeasurementWithUUIDWithHttpInfo(projectUuid, measurementUuid, measCreate); + return localVarResp.getData(); + } + + /** + * Create Project Measurement with UUID + * 指定したUUIDの計測を作成します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param measCreate (optional) + * @return ApiResponse<Measurement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public ApiResponse createProjectMeasurementWithUUIDWithHttpInfo(String projectUuid, String measurementUuid, MeasCreate measCreate) throws ApiException { + okhttp3.Call localVarCall = createProjectMeasurementWithUUIDValidateBeforeCall(projectUuid, measurementUuid, measCreate, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Project Measurement with UUID (asynchronously) + * 指定したUUIDの計測を作成します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param measCreate (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public okhttp3.Call createProjectMeasurementWithUUIDAsync(String projectUuid, String measurementUuid, MeasCreate measCreate, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createProjectMeasurementWithUUIDValidateBeforeCall(projectUuid, measurementUuid, measCreate, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteMeasurement + * @param measurementUuid 計測のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call deleteMeasurementCall(String measurementUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements/{measurement_uuid}" + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteMeasurementValidateBeforeCall(String measurementUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling deleteMeasurement(Async)"); + } + + return deleteMeasurementCall(measurementUuid, _callback); + + } + + /** + * Trash Measurement + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}` を使用してください) 計測を削除します。 - **Note** - 保護された計測は削除できません。 + * @param measurementUuid 計測のUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public void deleteMeasurement(String measurementUuid) throws ApiException { + deleteMeasurementWithHttpInfo(measurementUuid); + } + + /** + * Trash Measurement + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}` を使用してください) 計測を削除します。 - **Note** - 保護された計測は削除できません。 + * @param measurementUuid 計測のUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public ApiResponse deleteMeasurementWithHttpInfo(String measurementUuid) throws ApiException { + okhttp3.Call localVarCall = deleteMeasurementValidateBeforeCall(measurementUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Trash Measurement (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}` を使用してください) 計測を削除します。 - **Note** - 保護された計測は削除できません。 + * @param measurementUuid 計測のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call deleteMeasurementAsync(String measurementUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteMeasurementValidateBeforeCall(measurementUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteMeasurementBaseTime + * @param measurementUuid 計測のUUID (required) + * @param type 基準時刻のタイプ (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call deleteMeasurementBaseTimeCall(String measurementUuid, String type, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements/{measurement_uuid}/basetimes/{type}" + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())) + .replace("{" + "type" + "}", localVarApiClient.escapeString(type.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteMeasurementBaseTimeValidateBeforeCall(String measurementUuid, String type, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling deleteMeasurementBaseTime(Async)"); + } + + // verify the required parameter 'type' is set + if (type == null) { + throw new ApiException("Missing the required parameter 'type' when calling deleteMeasurementBaseTime(Async)"); + } + + return deleteMeasurementBaseTimeCall(measurementUuid, type, _callback); + + } + + /** + * Delete Measurement Base Time + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/basetimes/{type}` を使用してください) 基準時刻を削除します。 指定された基準時刻が使用中の場合(その計測の `basetime_type` として設定されている場合)は、 その基準時刻は削除できません(ステータスコード `409` が返却されます)。 このような場合は、他の基準時刻をその計測の `basetime_type` にしてから、削除したい基準時刻を削除してください。 + * @param measurementUuid 計測のUUID (required) + * @param type 基準時刻のタイプ (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public void deleteMeasurementBaseTime(String measurementUuid, String type) throws ApiException { + deleteMeasurementBaseTimeWithHttpInfo(measurementUuid, type); + } + + /** + * Delete Measurement Base Time + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/basetimes/{type}` を使用してください) 基準時刻を削除します。 指定された基準時刻が使用中の場合(その計測の `basetime_type` として設定されている場合)は、 その基準時刻は削除できません(ステータスコード `409` が返却されます)。 このような場合は、他の基準時刻をその計測の `basetime_type` にしてから、削除したい基準時刻を削除してください。 + * @param measurementUuid 計測のUUID (required) + * @param type 基準時刻のタイプ (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public ApiResponse deleteMeasurementBaseTimeWithHttpInfo(String measurementUuid, String type) throws ApiException { + okhttp3.Call localVarCall = deleteMeasurementBaseTimeValidateBeforeCall(measurementUuid, type, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete Measurement Base Time (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/basetimes/{type}` を使用してください) 基準時刻を削除します。 指定された基準時刻が使用中の場合(その計測の `basetime_type` として設定されている場合)は、 その基準時刻は削除できません(ステータスコード `409` が返却されます)。 このような場合は、他の基準時刻をその計測の `basetime_type` にしてから、削除したい基準時刻を削除してください。 + * @param measurementUuid 計測のUUID (required) + * @param type 基準時刻のタイプ (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call deleteMeasurementBaseTimeAsync(String measurementUuid, String type, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteMeasurementBaseTimeValidateBeforeCall(measurementUuid, type, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteProjectMeasurement + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteProjectMeasurementCall(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/{measurement_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteProjectMeasurementValidateBeforeCall(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling deleteProjectMeasurement(Async)"); + } + + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling deleteProjectMeasurement(Async)"); + } + + return deleteProjectMeasurementCall(projectUuid, measurementUuid, _callback); + + } + + /** + * Trash Project Measurement + * 計測を削除します。 - **Note** - 保護された計測は削除できません。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void deleteProjectMeasurement(String projectUuid, String measurementUuid) throws ApiException { + deleteProjectMeasurementWithHttpInfo(projectUuid, measurementUuid); + } + + /** + * Trash Project Measurement + * 計測を削除します。 - **Note** - 保護された計測は削除できません。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse deleteProjectMeasurementWithHttpInfo(String projectUuid, String measurementUuid) throws ApiException { + okhttp3.Call localVarCall = deleteProjectMeasurementValidateBeforeCall(projectUuid, measurementUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Trash Project Measurement (asynchronously) + * 計測を削除します。 - **Note** - 保護された計測は削除できません。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteProjectMeasurementAsync(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteProjectMeasurementValidateBeforeCall(projectUuid, measurementUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteProjectMeasurementBaseTime + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param type 基準時刻のタイプ (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteProjectMeasurementBaseTimeCall(String projectUuid, String measurementUuid, String type, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/{measurement_uuid}/basetimes/{type}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())) + .replace("{" + "type" + "}", localVarApiClient.escapeString(type.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteProjectMeasurementBaseTimeValidateBeforeCall(String projectUuid, String measurementUuid, String type, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling deleteProjectMeasurementBaseTime(Async)"); + } + + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling deleteProjectMeasurementBaseTime(Async)"); + } + + // verify the required parameter 'type' is set + if (type == null) { + throw new ApiException("Missing the required parameter 'type' when calling deleteProjectMeasurementBaseTime(Async)"); + } + + return deleteProjectMeasurementBaseTimeCall(projectUuid, measurementUuid, type, _callback); + + } + + /** + * Delete Project Measurement Base Time + * 基準時刻を削除します。 指定された基準時刻が使用中の場合(その計測の `basetime_type` として設定されている場合)は、 その基準時刻は削除できません(ステータスコード `409` が返却されます)。 このような場合は、他の基準時刻をその計測の `basetime_type` にしてから、削除したい基準時刻を削除してください。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param type 基準時刻のタイプ (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void deleteProjectMeasurementBaseTime(String projectUuid, String measurementUuid, String type) throws ApiException { + deleteProjectMeasurementBaseTimeWithHttpInfo(projectUuid, measurementUuid, type); + } + + /** + * Delete Project Measurement Base Time + * 基準時刻を削除します。 指定された基準時刻が使用中の場合(その計測の `basetime_type` として設定されている場合)は、 その基準時刻は削除できません(ステータスコード `409` が返却されます)。 このような場合は、他の基準時刻をその計測の `basetime_type` にしてから、削除したい基準時刻を削除してください。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param type 基準時刻のタイプ (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse deleteProjectMeasurementBaseTimeWithHttpInfo(String projectUuid, String measurementUuid, String type) throws ApiException { + okhttp3.Call localVarCall = deleteProjectMeasurementBaseTimeValidateBeforeCall(projectUuid, measurementUuid, type, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete Project Measurement Base Time (asynchronously) + * 基準時刻を削除します。 指定された基準時刻が使用中の場合(その計測の `basetime_type` として設定されている場合)は、 その基準時刻は削除できません(ステータスコード `409` が返却されます)。 このような場合は、他の基準時刻をその計測の `basetime_type` にしてから、削除したい基準時刻を削除してください。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param type 基準時刻のタイプ (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteProjectMeasurementBaseTimeAsync(String projectUuid, String measurementUuid, String type, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteProjectMeasurementBaseTimeValidateBeforeCall(projectUuid, measurementUuid, type, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for endMeasurement + * @param measurementUuid 計測のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call endMeasurementCall(String measurementUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements/{measurement_uuid}/end" + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call endMeasurementValidateBeforeCall(String measurementUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling endMeasurement(Async)"); + } + + return endMeasurementCall(measurementUuid, _callback); + + } + + /** + * End Measurement + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/end` を使用してください) 計測終了(ended)とします。endedは、エッジにおけるデータの取得が終了していることを表します。 (サーバーに回収されていないデータがまだエッジに残っている可能性はあります。サーバーへのデータの回収が完了した状態は、completedと呼びます。) + * @param measurementUuid 計測のUUID (required) + * @return SequenceSummary + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public SequenceSummary endMeasurement(String measurementUuid) throws ApiException { + ApiResponse localVarResp = endMeasurementWithHttpInfo(measurementUuid); + return localVarResp.getData(); + } + + /** + * End Measurement + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/end` を使用してください) 計測終了(ended)とします。endedは、エッジにおけるデータの取得が終了していることを表します。 (サーバーに回収されていないデータがまだエッジに残っている可能性はあります。サーバーへのデータの回収が完了した状態は、completedと呼びます。) + * @param measurementUuid 計測のUUID (required) + * @return ApiResponse<SequenceSummary> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse endMeasurementWithHttpInfo(String measurementUuid) throws ApiException { + okhttp3.Call localVarCall = endMeasurementValidateBeforeCall(measurementUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * End Measurement (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/end` を使用してください) 計測終了(ended)とします。endedは、エッジにおけるデータの取得が終了していることを表します。 (サーバーに回収されていないデータがまだエッジに残っている可能性はあります。サーバーへのデータの回収が完了した状態は、completedと呼びます。) + * @param measurementUuid 計測のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call endMeasurementAsync(String measurementUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = endMeasurementValidateBeforeCall(measurementUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for endProjectMeasurement + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call endProjectMeasurementCall(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/{measurement_uuid}/end" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call endProjectMeasurementValidateBeforeCall(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling endProjectMeasurement(Async)"); + } + + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling endProjectMeasurement(Async)"); + } + + return endProjectMeasurementCall(projectUuid, measurementUuid, _callback); + + } + + /** + * End Project Measurement + * 計測終了(ended)とします。endedは、エッジにおけるデータの取得が終了していることを表します。 (サーバーに回収されていないデータがまだエッジに残っている可能性はあります。サーバーへのデータの回収が完了した状態は、completedと呼びます。) + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @return SequenceSummary + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public SequenceSummary endProjectMeasurement(String projectUuid, String measurementUuid) throws ApiException { + ApiResponse localVarResp = endProjectMeasurementWithHttpInfo(projectUuid, measurementUuid); + return localVarResp.getData(); + } + + /** + * End Project Measurement + * 計測終了(ended)とします。endedは、エッジにおけるデータの取得が終了していることを表します。 (サーバーに回収されていないデータがまだエッジに残っている可能性はあります。サーバーへのデータの回収が完了した状態は、completedと呼びます。) + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @return ApiResponse<SequenceSummary> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse endProjectMeasurementWithHttpInfo(String projectUuid, String measurementUuid) throws ApiException { + okhttp3.Call localVarCall = endProjectMeasurementValidateBeforeCall(projectUuid, measurementUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * End Project Measurement (asynchronously) + * 計測終了(ended)とします。endedは、エッジにおけるデータの取得が終了していることを表します。 (サーバーに回収されていないデータがまだエッジに残っている可能性はあります。サーバーへのデータの回収が完了した状態は、completedと呼びます。) + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call endProjectMeasurementAsync(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = endProjectMeasurementValidateBeforeCall(projectUuid, measurementUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getMeasurement + * @param measurementUuid 計測のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getMeasurementCall(String measurementUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements/{measurement_uuid}" + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call getMeasurementValidateBeforeCall(String measurementUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling getMeasurement(Async)"); + } + + return getMeasurementCall(measurementUuid, _callback); + + } + + /** + * Get Measurement + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}` を使用してください) 計測を取得します。 + * @param measurementUuid 計測のUUID (required) + * @return Measurement + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public Measurement getMeasurement(String measurementUuid) throws ApiException { + ApiResponse localVarResp = getMeasurementWithHttpInfo(measurementUuid); + return localVarResp.getData(); + } + + /** + * Get Measurement + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}` を使用してください) 計測を取得します。 + * @param measurementUuid 計測のUUID (required) + * @return ApiResponse<Measurement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse getMeasurementWithHttpInfo(String measurementUuid) throws ApiException { + okhttp3.Call localVarCall = getMeasurementValidateBeforeCall(measurementUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Measurement (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}` を使用してください) 計測を取得します。 + * @param measurementUuid 計測のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getMeasurementAsync(String measurementUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getMeasurementValidateBeforeCall(measurementUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getMeasurementBaseTime + * @param measurementUuid 計測のUUID (required) + * @param type 基準時刻のタイプ (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getMeasurementBaseTimeCall(String measurementUuid, String type, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements/{measurement_uuid}/basetimes/{type}" + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())) + .replace("{" + "type" + "}", localVarApiClient.escapeString(type.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call getMeasurementBaseTimeValidateBeforeCall(String measurementUuid, String type, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling getMeasurementBaseTime(Async)"); + } + + // verify the required parameter 'type' is set + if (type == null) { + throw new ApiException("Missing the required parameter 'type' when calling getMeasurementBaseTime(Async)"); + } + + return getMeasurementBaseTimeCall(measurementUuid, type, _callback); + + } + + /** + * Get Measurement Base Time + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/basetimes/{type}` を使用してください) 基準時刻タイプを指定して計測の基準時刻を取得します。 + * @param measurementUuid 計測のUUID (required) + * @param type 基準時刻のタイプ (required) + * @return MeasBaseTime + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public MeasBaseTime getMeasurementBaseTime(String measurementUuid, String type) throws ApiException { + ApiResponse localVarResp = getMeasurementBaseTimeWithHttpInfo(measurementUuid, type); + return localVarResp.getData(); + } + + /** + * Get Measurement Base Time + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/basetimes/{type}` を使用してください) 基準時刻タイプを指定して計測の基準時刻を取得します。 + * @param measurementUuid 計測のUUID (required) + * @param type 基準時刻のタイプ (required) + * @return ApiResponse<MeasBaseTime> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse getMeasurementBaseTimeWithHttpInfo(String measurementUuid, String type) throws ApiException { + okhttp3.Call localVarCall = getMeasurementBaseTimeValidateBeforeCall(measurementUuid, type, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Measurement Base Time (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/basetimes/{type}` を使用してください) 基準時刻タイプを指定して計測の基準時刻を取得します。 + * @param measurementUuid 計測のUUID (required) + * @param type 基準時刻のタイプ (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getMeasurementBaseTimeAsync(String measurementUuid, String type, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getMeasurementBaseTimeValidateBeforeCall(measurementUuid, type, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getMeasurementFromMeasurementMarker + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getMeasurementFromMeasurementMarkerCall(String measurementMarkerUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements/markers/{measurement_marker_uuid}/measurement" + .replace("{" + "measurement_marker_uuid" + "}", localVarApiClient.escapeString(measurementMarkerUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call getMeasurementFromMeasurementMarkerValidateBeforeCall(String measurementMarkerUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementMarkerUuid' is set + if (measurementMarkerUuid == null) { + throw new ApiException("Missing the required parameter 'measurementMarkerUuid' when calling getMeasurementFromMeasurementMarker(Async)"); + } + + return getMeasurementFromMeasurementMarkerCall(measurementMarkerUuid, _callback); + + } + + /** + * Get Measurement from Marker + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/markers/{measurement_marker_uuid}/measurement` を使用してください) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @return Measurement + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public Measurement getMeasurementFromMeasurementMarker(String measurementMarkerUuid) throws ApiException { + ApiResponse localVarResp = getMeasurementFromMeasurementMarkerWithHttpInfo(measurementMarkerUuid); + return localVarResp.getData(); + } + + /** + * Get Measurement from Marker + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/markers/{measurement_marker_uuid}/measurement` を使用してください) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @return ApiResponse<Measurement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse getMeasurementFromMeasurementMarkerWithHttpInfo(String measurementMarkerUuid) throws ApiException { + okhttp3.Call localVarCall = getMeasurementFromMeasurementMarkerValidateBeforeCall(measurementMarkerUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Measurement from Marker (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/markers/{measurement_marker_uuid}/measurement` を使用してください) + * @param measurementMarkerUuid 計測マーカーのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getMeasurementFromMeasurementMarkerAsync(String measurementMarkerUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getMeasurementFromMeasurementMarkerValidateBeforeCall(measurementMarkerUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getMeasurementSections + * @param measurementUuid 計測のUUID (required) + * @param filter 計測セクションの処理ステータス。 `processed` (処理済みの計測セクションを取得)、 `unprocessed` (未処理の計測セクションを取得)、 `both` (両方を取得)のいずれかを選択します。 (optional, default to both) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getMeasurementSectionsCall(String measurementUuid, String filter, Integer limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements/{measurement_uuid}/sections" + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (filter != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("filter", filter)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call getMeasurementSectionsValidateBeforeCall(String measurementUuid, String filter, Integer limit, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling getMeasurementSections(Async)"); + } + + return getMeasurementSectionsCall(measurementUuid, filter, limit, _callback); + + } + + /** + * List Measurement Sections + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sections` を使用してください) 計測に含まれるセクションのリストを取得します。 + * @param measurementUuid 計測のUUID (required) + * @param filter 計測セクションの処理ステータス。 `processed` (処理済みの計測セクションを取得)、 `unprocessed` (未処理の計測セクションを取得)、 `both` (両方を取得)のいずれかを選択します。 (optional, default to both) + * @param limit 1回のリクエストで取得する件数 (optional) + * @return MeasurementSectionsGetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public MeasurementSectionsGetResponse getMeasurementSections(String measurementUuid, String filter, Integer limit) throws ApiException { + ApiResponse localVarResp = getMeasurementSectionsWithHttpInfo(measurementUuid, filter, limit); + return localVarResp.getData(); + } + + /** + * List Measurement Sections + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sections` を使用してください) 計測に含まれるセクションのリストを取得します。 + * @param measurementUuid 計測のUUID (required) + * @param filter 計測セクションの処理ステータス。 `processed` (処理済みの計測セクションを取得)、 `unprocessed` (未処理の計測セクションを取得)、 `both` (両方を取得)のいずれかを選択します。 (optional, default to both) + * @param limit 1回のリクエストで取得する件数 (optional) + * @return ApiResponse<MeasurementSectionsGetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse getMeasurementSectionsWithHttpInfo(String measurementUuid, String filter, Integer limit) throws ApiException { + okhttp3.Call localVarCall = getMeasurementSectionsValidateBeforeCall(measurementUuid, filter, limit, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Measurement Sections (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sections` を使用してください) 計測に含まれるセクションのリストを取得します。 + * @param measurementUuid 計測のUUID (required) + * @param filter 計測セクションの処理ステータス。 `processed` (処理済みの計測セクションを取得)、 `unprocessed` (未処理の計測セクションを取得)、 `both` (両方を取得)のいずれかを選択します。 (optional, default to both) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getMeasurementSectionsAsync(String measurementUuid, String filter, Integer limit, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getMeasurementSectionsValidateBeforeCall(measurementUuid, filter, limit, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getMeasurementSequence + * @param measurementUuid 計測のUUID (required) + * @param sequencesUuid 計測シーケンスのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getMeasurementSequenceCall(String measurementUuid, String sequencesUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements/{measurement_uuid}/sequences/{sequences_uuid}" + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())) + .replace("{" + "sequences_uuid" + "}", localVarApiClient.escapeString(sequencesUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call getMeasurementSequenceValidateBeforeCall(String measurementUuid, String sequencesUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling getMeasurementSequence(Async)"); + } + + // verify the required parameter 'sequencesUuid' is set + if (sequencesUuid == null) { + throw new ApiException("Missing the required parameter 'sequencesUuid' when calling getMeasurementSequence(Async)"); + } + + return getMeasurementSequenceCall(measurementUuid, sequencesUuid, _callback); + + } + + /** + * Get Measurement Sequence + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sequences/{sequence_uuid}` を使用してください) 計測シーケンスを取得します。 + * @param measurementUuid 計測のUUID (required) + * @param sequencesUuid 計測シーケンスのUUID (required) + * @return MeasurementSequenceGroup + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public MeasurementSequenceGroup getMeasurementSequence(String measurementUuid, String sequencesUuid) throws ApiException { + ApiResponse localVarResp = getMeasurementSequenceWithHttpInfo(measurementUuid, sequencesUuid); + return localVarResp.getData(); + } + + /** + * Get Measurement Sequence + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sequences/{sequence_uuid}` を使用してください) 計測シーケンスを取得します。 + * @param measurementUuid 計測のUUID (required) + * @param sequencesUuid 計測シーケンスのUUID (required) + * @return ApiResponse<MeasurementSequenceGroup> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse getMeasurementSequenceWithHttpInfo(String measurementUuid, String sequencesUuid) throws ApiException { + okhttp3.Call localVarCall = getMeasurementSequenceValidateBeforeCall(measurementUuid, sequencesUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Measurement Sequence (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sequences/{sequence_uuid}` を使用してください) 計測シーケンスを取得します。 + * @param measurementUuid 計測のUUID (required) + * @param sequencesUuid 計測シーケンスのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getMeasurementSequenceAsync(String measurementUuid, String sequencesUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getMeasurementSequenceValidateBeforeCall(measurementUuid, sequencesUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getProjectMeasurement + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectMeasurementCall(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/{measurement_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getProjectMeasurementValidateBeforeCall(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling getProjectMeasurement(Async)"); + } + + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling getProjectMeasurement(Async)"); + } + + return getProjectMeasurementCall(projectUuid, measurementUuid, _callback); + + } + + /** + * Get Project Measurement + * 計測を取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @return Measurement + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Measurement getProjectMeasurement(String projectUuid, String measurementUuid) throws ApiException { + ApiResponse localVarResp = getProjectMeasurementWithHttpInfo(projectUuid, measurementUuid); + return localVarResp.getData(); + } + + /** + * Get Project Measurement + * 計測を取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @return ApiResponse<Measurement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getProjectMeasurementWithHttpInfo(String projectUuid, String measurementUuid) throws ApiException { + okhttp3.Call localVarCall = getProjectMeasurementValidateBeforeCall(projectUuid, measurementUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Project Measurement (asynchronously) + * 計測を取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectMeasurementAsync(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getProjectMeasurementValidateBeforeCall(projectUuid, measurementUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getProjectMeasurementBaseTime + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param type 基準時刻のタイプ (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectMeasurementBaseTimeCall(String projectUuid, String measurementUuid, String type, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/{measurement_uuid}/basetimes/{type}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())) + .replace("{" + "type" + "}", localVarApiClient.escapeString(type.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getProjectMeasurementBaseTimeValidateBeforeCall(String projectUuid, String measurementUuid, String type, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling getProjectMeasurementBaseTime(Async)"); + } + + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling getProjectMeasurementBaseTime(Async)"); + } + + // verify the required parameter 'type' is set + if (type == null) { + throw new ApiException("Missing the required parameter 'type' when calling getProjectMeasurementBaseTime(Async)"); + } + + return getProjectMeasurementBaseTimeCall(projectUuid, measurementUuid, type, _callback); + + } + + /** + * Get Project Measurement Base Time + * 基準時刻タイプを指定して計測の基準時刻を取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param type 基準時刻のタイプ (required) + * @return MeasBaseTime + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public MeasBaseTime getProjectMeasurementBaseTime(String projectUuid, String measurementUuid, String type) throws ApiException { + ApiResponse localVarResp = getProjectMeasurementBaseTimeWithHttpInfo(projectUuid, measurementUuid, type); + return localVarResp.getData(); + } + + /** + * Get Project Measurement Base Time + * 基準時刻タイプを指定して計測の基準時刻を取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param type 基準時刻のタイプ (required) + * @return ApiResponse<MeasBaseTime> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getProjectMeasurementBaseTimeWithHttpInfo(String projectUuid, String measurementUuid, String type) throws ApiException { + okhttp3.Call localVarCall = getProjectMeasurementBaseTimeValidateBeforeCall(projectUuid, measurementUuid, type, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Project Measurement Base Time (asynchronously) + * 基準時刻タイプを指定して計測の基準時刻を取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param type 基準時刻のタイプ (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectMeasurementBaseTimeAsync(String projectUuid, String measurementUuid, String type, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getProjectMeasurementBaseTimeValidateBeforeCall(projectUuid, measurementUuid, type, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getProjectMeasurementSections + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param filter 計測セクションの処理ステータス。 `processed` (処理済みの計測セクションを取得)、 `unprocessed` (未処理の計測セクションを取得)、 `both` (両方を取得)のいずれかを選択します。 (optional, default to both) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectMeasurementSectionsCall(String projectUuid, String measurementUuid, String filter, Integer limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/{measurement_uuid}/sections" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (filter != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("filter", filter)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getProjectMeasurementSectionsValidateBeforeCall(String projectUuid, String measurementUuid, String filter, Integer limit, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling getProjectMeasurementSections(Async)"); + } + + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling getProjectMeasurementSections(Async)"); + } + + return getProjectMeasurementSectionsCall(projectUuid, measurementUuid, filter, limit, _callback); + + } + + /** + * List Project Measurement Sections + * 計測に含まれるセクションのリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param filter 計測セクションの処理ステータス。 `processed` (処理済みの計測セクションを取得)、 `unprocessed` (未処理の計測セクションを取得)、 `both` (両方を取得)のいずれかを選択します。 (optional, default to both) + * @param limit 1回のリクエストで取得する件数 (optional) + * @return MeasurementSectionsGetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public MeasurementSectionsGetResponse getProjectMeasurementSections(String projectUuid, String measurementUuid, String filter, Integer limit) throws ApiException { + ApiResponse localVarResp = getProjectMeasurementSectionsWithHttpInfo(projectUuid, measurementUuid, filter, limit); + return localVarResp.getData(); + } + + /** + * List Project Measurement Sections + * 計測に含まれるセクションのリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param filter 計測セクションの処理ステータス。 `processed` (処理済みの計測セクションを取得)、 `unprocessed` (未処理の計測セクションを取得)、 `both` (両方を取得)のいずれかを選択します。 (optional, default to both) + * @param limit 1回のリクエストで取得する件数 (optional) + * @return ApiResponse<MeasurementSectionsGetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getProjectMeasurementSectionsWithHttpInfo(String projectUuid, String measurementUuid, String filter, Integer limit) throws ApiException { + okhttp3.Call localVarCall = getProjectMeasurementSectionsValidateBeforeCall(projectUuid, measurementUuid, filter, limit, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Project Measurement Sections (asynchronously) + * 計測に含まれるセクションのリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param filter 計測セクションの処理ステータス。 `processed` (処理済みの計測セクションを取得)、 `unprocessed` (未処理の計測セクションを取得)、 `both` (両方を取得)のいずれかを選択します。 (optional, default to both) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectMeasurementSectionsAsync(String projectUuid, String measurementUuid, String filter, Integer limit, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getProjectMeasurementSectionsValidateBeforeCall(projectUuid, measurementUuid, filter, limit, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getProjectMeasurementSequence + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param sequencesUuid 計測シーケンスのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectMeasurementSequenceCall(String projectUuid, String measurementUuid, String sequencesUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/{measurement_uuid}/sequences/{sequences_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())) + .replace("{" + "sequences_uuid" + "}", localVarApiClient.escapeString(sequencesUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getProjectMeasurementSequenceValidateBeforeCall(String projectUuid, String measurementUuid, String sequencesUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling getProjectMeasurementSequence(Async)"); + } + + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling getProjectMeasurementSequence(Async)"); + } + + // verify the required parameter 'sequencesUuid' is set + if (sequencesUuid == null) { + throw new ApiException("Missing the required parameter 'sequencesUuid' when calling getProjectMeasurementSequence(Async)"); + } + + return getProjectMeasurementSequenceCall(projectUuid, measurementUuid, sequencesUuid, _callback); + + } + + /** + * Get Project Measurement Sequence + * 計測シーケンスを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param sequencesUuid 計測シーケンスのUUID (required) + * @return MeasurementSequenceGroup + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public MeasurementSequenceGroup getProjectMeasurementSequence(String projectUuid, String measurementUuid, String sequencesUuid) throws ApiException { + ApiResponse localVarResp = getProjectMeasurementSequenceWithHttpInfo(projectUuid, measurementUuid, sequencesUuid); + return localVarResp.getData(); + } + + /** + * Get Project Measurement Sequence + * 計測シーケンスを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param sequencesUuid 計測シーケンスのUUID (required) + * @return ApiResponse<MeasurementSequenceGroup> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getProjectMeasurementSequenceWithHttpInfo(String projectUuid, String measurementUuid, String sequencesUuid) throws ApiException { + okhttp3.Call localVarCall = getProjectMeasurementSequenceValidateBeforeCall(projectUuid, measurementUuid, sequencesUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Project Measurement Sequence (asynchronously) + * 計測シーケンスを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param sequencesUuid 計測シーケンスのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectMeasurementSequenceAsync(String projectUuid, String measurementUuid, String sequencesUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getProjectMeasurementSequenceValidateBeforeCall(projectUuid, measurementUuid, sequencesUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listMeasurementBaseTimes + * @param measurementUuid 計測のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call listMeasurementBaseTimesCall(String measurementUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements/{measurement_uuid}/basetimes" + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call listMeasurementBaseTimesValidateBeforeCall(String measurementUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling listMeasurementBaseTimes(Async)"); + } + + return listMeasurementBaseTimesCall(measurementUuid, _callback); + + } + + /** + * List Measurement Base Times + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/basetimes` を使用してください) 計測の基準時刻のリストを取得します。 + * @param measurementUuid 計測のUUID (required) + * @return MeasBaseTimes + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public MeasBaseTimes listMeasurementBaseTimes(String measurementUuid) throws ApiException { + ApiResponse localVarResp = listMeasurementBaseTimesWithHttpInfo(measurementUuid); + return localVarResp.getData(); + } + + /** + * List Measurement Base Times + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/basetimes` を使用してください) 計測の基準時刻のリストを取得します。 + * @param measurementUuid 計測のUUID (required) + * @return ApiResponse<MeasBaseTimes> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse listMeasurementBaseTimesWithHttpInfo(String measurementUuid) throws ApiException { + okhttp3.Call localVarCall = listMeasurementBaseTimesValidateBeforeCall(measurementUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Measurement Base Times (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/basetimes` を使用してください) 計測の基準時刻のリストを取得します。 + * @param measurementUuid 計測のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call listMeasurementBaseTimesAsync(String measurementUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listMeasurementBaseTimesValidateBeforeCall(measurementUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listMeasurementSequences + * @param measurementUuid 計測のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call listMeasurementSequencesCall(String measurementUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements/{measurement_uuid}/sequences" + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call listMeasurementSequencesValidateBeforeCall(String measurementUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling listMeasurementSequences(Async)"); + } + + return listMeasurementSequencesCall(measurementUuid, _callback); + + } + + /** + * List Measurement Sequences + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sequences` を使用してください) 計測シーケンスのリストを取得します。 + * @param measurementUuid 計測のUUID (required) + * @return MeasurementSequenceGroups + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public MeasurementSequenceGroups listMeasurementSequences(String measurementUuid) throws ApiException { + ApiResponse localVarResp = listMeasurementSequencesWithHttpInfo(measurementUuid); + return localVarResp.getData(); + } + + /** + * List Measurement Sequences + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sequences` を使用してください) 計測シーケンスのリストを取得します。 + * @param measurementUuid 計測のUUID (required) + * @return ApiResponse<MeasurementSequenceGroups> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse listMeasurementSequencesWithHttpInfo(String measurementUuid) throws ApiException { + okhttp3.Call localVarCall = listMeasurementSequencesValidateBeforeCall(measurementUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Measurement Sequences (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sequences` を使用してください) 計測シーケンスのリストを取得します。 + * @param measurementUuid 計測のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call listMeasurementSequencesAsync(String measurementUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listMeasurementSequencesValidateBeforeCall(measurementUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listMeasurements + * @param uuid 計測のUUID (optional) + * @param name 名前が指定した文字列から始まる計測を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけが取得されます。 (optional) + * @param edgeUuid 計測に関連付けられたエッジのUUID (optional) + * @param start 取得対象範囲の始点。以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param end 取得対象範囲の終点。以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param partialMatch `true` にすると、計測の一部が取得対象範囲に入っていればその計測は取得対象となります。 `false` にすると、計測の基準時刻(計測開始)が取得対象範囲に入っていればその計測は取得対象となります。 ``` | measurement1 | +--------------+ | measurement2 | +--------------+ | measurement3 | +--------------+ time -----------+----------------------------+------------> | | start end ``` - この例では、もし `partial_match` を `true` にすると、 `measurement1` 、 `measurement2` 、 `measurement3` が取得できます。 - もし `partial_match` を `false` にすると、 `measurement2` と `measurement3` が取得できます。 (optional, default to false) + * @param basetimeType 計測の基準時刻のタイプ (optional) + * @param ended 計測が終了している(ended)かどうかを指定して計測を取得します。 エッジにおいてデータの取得が終了している場合、その計測は「終了(ended)」となります。 計測は終了(ended)していても、まだサーバーに送信されていないデータがエッジに残っている可能性があります。 * `true`: 終了した計測だけを取得します。 * `false`: 終了していない計測だけを取得します。 (optional) + * @param since 指定した時刻以降に更新された計測のみを取得します。 以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param durationStart 計測時間の最小値(マイクロ秒)。これより短い計測は取得しません。 (optional) + * @param durationEnd 計測時間の最大値(マイクロ秒)。これより長い計測は取得しません。 (optional) + * @param status 計測のステータス (optional) + * @param limit 1回のリクエストで取得する件数。ただし、0を指定するとデフォルトの値が使用されます。 (optional, default to 1000) + * @param sort 並べ替えに使用するキー (optional, default to base_time) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call listMeasurementsCall(List uuid, Integer name, String edgeUuid, String start, String end, Boolean partialMatch, String basetimeType, Boolean ended, String since, Long durationStart, Long durationEnd, List status, Integer limit, String sort, Integer page, String order, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (uuid != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "uuid", uuid)); + } + + if (name != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("name", name)); + } + + if (edgeUuid != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("edge_uuid", edgeUuid)); + } + + if (start != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("start", start)); + } + + if (end != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("end", end)); + } + + if (partialMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("partial_match", partialMatch)); + } + + if (basetimeType != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("basetime_type", basetimeType)); + } + + if (ended != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ended", ended)); + } + + if (since != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("since", since)); + } + + if (durationStart != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("duration_start", durationStart)); + } + + if (durationEnd != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("duration_end", durationEnd)); + } + + if (status != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "status", status)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (order != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("order", order)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call listMeasurementsValidateBeforeCall(List uuid, Integer name, String edgeUuid, String start, String end, Boolean partialMatch, String basetimeType, Boolean ended, String since, Long durationStart, Long durationEnd, List status, Integer limit, String sort, Integer page, String order, final ApiCallback _callback) throws ApiException { + return listMeasurementsCall(uuid, name, edgeUuid, start, end, partialMatch, basetimeType, ended, since, durationStart, durationEnd, status, limit, sort, page, order, _callback); + + } + + /** + * List Measurements + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements` を使用してください) 計測のリストを取得します。 + * @param uuid 計測のUUID (optional) + * @param name 名前が指定した文字列から始まる計測を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけが取得されます。 (optional) + * @param edgeUuid 計測に関連付けられたエッジのUUID (optional) + * @param start 取得対象範囲の始点。以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param end 取得対象範囲の終点。以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param partialMatch `true` にすると、計測の一部が取得対象範囲に入っていればその計測は取得対象となります。 `false` にすると、計測の基準時刻(計測開始)が取得対象範囲に入っていればその計測は取得対象となります。 ``` | measurement1 | +--------------+ | measurement2 | +--------------+ | measurement3 | +--------------+ time -----------+----------------------------+------------> | | start end ``` - この例では、もし `partial_match` を `true` にすると、 `measurement1` 、 `measurement2` 、 `measurement3` が取得できます。 - もし `partial_match` を `false` にすると、 `measurement2` と `measurement3` が取得できます。 (optional, default to false) + * @param basetimeType 計測の基準時刻のタイプ (optional) + * @param ended 計測が終了している(ended)かどうかを指定して計測を取得します。 エッジにおいてデータの取得が終了している場合、その計測は「終了(ended)」となります。 計測は終了(ended)していても、まだサーバーに送信されていないデータがエッジに残っている可能性があります。 * `true`: 終了した計測だけを取得します。 * `false`: 終了していない計測だけを取得します。 (optional) + * @param since 指定した時刻以降に更新された計測のみを取得します。 以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param durationStart 計測時間の最小値(マイクロ秒)。これより短い計測は取得しません。 (optional) + * @param durationEnd 計測時間の最大値(マイクロ秒)。これより長い計測は取得しません。 (optional) + * @param status 計測のステータス (optional) + * @param limit 1回のリクエストで取得する件数。ただし、0を指定するとデフォルトの値が使用されます。 (optional, default to 1000) + * @param sort 並べ替えに使用するキー (optional, default to base_time) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @return Measurements + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public Measurements listMeasurements(List uuid, Integer name, String edgeUuid, String start, String end, Boolean partialMatch, String basetimeType, Boolean ended, String since, Long durationStart, Long durationEnd, List status, Integer limit, String sort, Integer page, String order) throws ApiException { + ApiResponse localVarResp = listMeasurementsWithHttpInfo(uuid, name, edgeUuid, start, end, partialMatch, basetimeType, ended, since, durationStart, durationEnd, status, limit, sort, page, order); + return localVarResp.getData(); + } + + /** + * List Measurements + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements` を使用してください) 計測のリストを取得します。 + * @param uuid 計測のUUID (optional) + * @param name 名前が指定した文字列から始まる計測を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけが取得されます。 (optional) + * @param edgeUuid 計測に関連付けられたエッジのUUID (optional) + * @param start 取得対象範囲の始点。以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param end 取得対象範囲の終点。以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param partialMatch `true` にすると、計測の一部が取得対象範囲に入っていればその計測は取得対象となります。 `false` にすると、計測の基準時刻(計測開始)が取得対象範囲に入っていればその計測は取得対象となります。 ``` | measurement1 | +--------------+ | measurement2 | +--------------+ | measurement3 | +--------------+ time -----------+----------------------------+------------> | | start end ``` - この例では、もし `partial_match` を `true` にすると、 `measurement1` 、 `measurement2` 、 `measurement3` が取得できます。 - もし `partial_match` を `false` にすると、 `measurement2` と `measurement3` が取得できます。 (optional, default to false) + * @param basetimeType 計測の基準時刻のタイプ (optional) + * @param ended 計測が終了している(ended)かどうかを指定して計測を取得します。 エッジにおいてデータの取得が終了している場合、その計測は「終了(ended)」となります。 計測は終了(ended)していても、まだサーバーに送信されていないデータがエッジに残っている可能性があります。 * `true`: 終了した計測だけを取得します。 * `false`: 終了していない計測だけを取得します。 (optional) + * @param since 指定した時刻以降に更新された計測のみを取得します。 以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param durationStart 計測時間の最小値(マイクロ秒)。これより短い計測は取得しません。 (optional) + * @param durationEnd 計測時間の最大値(マイクロ秒)。これより長い計測は取得しません。 (optional) + * @param status 計測のステータス (optional) + * @param limit 1回のリクエストで取得する件数。ただし、0を指定するとデフォルトの値が使用されます。 (optional, default to 1000) + * @param sort 並べ替えに使用するキー (optional, default to base_time) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @return ApiResponse<Measurements> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse listMeasurementsWithHttpInfo(List uuid, Integer name, String edgeUuid, String start, String end, Boolean partialMatch, String basetimeType, Boolean ended, String since, Long durationStart, Long durationEnd, List status, Integer limit, String sort, Integer page, String order) throws ApiException { + okhttp3.Call localVarCall = listMeasurementsValidateBeforeCall(uuid, name, edgeUuid, start, end, partialMatch, basetimeType, ended, since, durationStart, durationEnd, status, limit, sort, page, order, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Measurements (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements` を使用してください) 計測のリストを取得します。 + * @param uuid 計測のUUID (optional) + * @param name 名前が指定した文字列から始まる計測を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけが取得されます。 (optional) + * @param edgeUuid 計測に関連付けられたエッジのUUID (optional) + * @param start 取得対象範囲の始点。以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param end 取得対象範囲の終点。以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param partialMatch `true` にすると、計測の一部が取得対象範囲に入っていればその計測は取得対象となります。 `false` にすると、計測の基準時刻(計測開始)が取得対象範囲に入っていればその計測は取得対象となります。 ``` | measurement1 | +--------------+ | measurement2 | +--------------+ | measurement3 | +--------------+ time -----------+----------------------------+------------> | | start end ``` - この例では、もし `partial_match` を `true` にすると、 `measurement1` 、 `measurement2` 、 `measurement3` が取得できます。 - もし `partial_match` を `false` にすると、 `measurement2` と `measurement3` が取得できます。 (optional, default to false) + * @param basetimeType 計測の基準時刻のタイプ (optional) + * @param ended 計測が終了している(ended)かどうかを指定して計測を取得します。 エッジにおいてデータの取得が終了している場合、その計測は「終了(ended)」となります。 計測は終了(ended)していても、まだサーバーに送信されていないデータがエッジに残っている可能性があります。 * `true`: 終了した計測だけを取得します。 * `false`: 終了していない計測だけを取得します。 (optional) + * @param since 指定した時刻以降に更新された計測のみを取得します。 以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param durationStart 計測時間の最小値(マイクロ秒)。これより短い計測は取得しません。 (optional) + * @param durationEnd 計測時間の最大値(マイクロ秒)。これより長い計測は取得しません。 (optional) + * @param status 計測のステータス (optional) + * @param limit 1回のリクエストで取得する件数。ただし、0を指定するとデフォルトの値が使用されます。 (optional, default to 1000) + * @param sort 並べ替えに使用するキー (optional, default to base_time) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call listMeasurementsAsync(List uuid, Integer name, String edgeUuid, String start, String end, Boolean partialMatch, String basetimeType, Boolean ended, String since, Long durationStart, Long durationEnd, List status, Integer limit, String sort, Integer page, String order, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listMeasurementsValidateBeforeCall(uuid, name, edgeUuid, start, end, partialMatch, basetimeType, ended, since, durationStart, durationEnd, status, limit, sort, page, order, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listProjectMeasurementBaseTimes + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listProjectMeasurementBaseTimesCall(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/{measurement_uuid}/basetimes" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listProjectMeasurementBaseTimesValidateBeforeCall(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling listProjectMeasurementBaseTimes(Async)"); + } + + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling listProjectMeasurementBaseTimes(Async)"); + } + + return listProjectMeasurementBaseTimesCall(projectUuid, measurementUuid, _callback); + + } + + /** + * List Project Measurement Base Times + * 計測の基準時刻のリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @return MeasBaseTimes + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public MeasBaseTimes listProjectMeasurementBaseTimes(String projectUuid, String measurementUuid) throws ApiException { + ApiResponse localVarResp = listProjectMeasurementBaseTimesWithHttpInfo(projectUuid, measurementUuid); + return localVarResp.getData(); + } + + /** + * List Project Measurement Base Times + * 計測の基準時刻のリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @return ApiResponse<MeasBaseTimes> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listProjectMeasurementBaseTimesWithHttpInfo(String projectUuid, String measurementUuid) throws ApiException { + okhttp3.Call localVarCall = listProjectMeasurementBaseTimesValidateBeforeCall(projectUuid, measurementUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Project Measurement Base Times (asynchronously) + * 計測の基準時刻のリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listProjectMeasurementBaseTimesAsync(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listProjectMeasurementBaseTimesValidateBeforeCall(projectUuid, measurementUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listProjectMeasurementSequences + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listProjectMeasurementSequencesCall(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/{measurement_uuid}/sequences" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listProjectMeasurementSequencesValidateBeforeCall(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling listProjectMeasurementSequences(Async)"); + } + + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling listProjectMeasurementSequences(Async)"); + } + + return listProjectMeasurementSequencesCall(projectUuid, measurementUuid, _callback); + + } + + /** + * List Project Measurement Sequences + * 計測シーケンスのリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @return MeasurementSequenceGroups + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public MeasurementSequenceGroups listProjectMeasurementSequences(String projectUuid, String measurementUuid) throws ApiException { + ApiResponse localVarResp = listProjectMeasurementSequencesWithHttpInfo(projectUuid, measurementUuid); + return localVarResp.getData(); + } + + /** + * List Project Measurement Sequences + * 計測シーケンスのリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @return ApiResponse<MeasurementSequenceGroups> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listProjectMeasurementSequencesWithHttpInfo(String projectUuid, String measurementUuid) throws ApiException { + okhttp3.Call localVarCall = listProjectMeasurementSequencesValidateBeforeCall(projectUuid, measurementUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Project Measurement Sequences (asynchronously) + * 計測シーケンスのリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listProjectMeasurementSequencesAsync(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listProjectMeasurementSequencesValidateBeforeCall(projectUuid, measurementUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listProjectMeasurements + * @param projectUuid プロジェクトのUUID (required) + * @param uuid 計測のUUID (optional) + * @param name 名前が指定した文字列から始まる計測を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけが取得されます。 (optional) + * @param edgeUuid 計測に関連付けられたエッジのUUID (optional) + * @param start 取得対象範囲の始点。以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param end 取得対象範囲の終点。以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param partialMatch `true` にすると、計測の一部が取得対象範囲に入っていればその計測は取得対象となります。 `false` にすると、計測の基準時刻(計測開始)が取得対象範囲に入っていればその計測は取得対象となります。 ``` | measurement1 | +--------------+ | measurement2 | +--------------+ | measurement3 | +--------------+ time -----------+----------------------------+------------> | | start end ``` - この例では、もし `partial_match` を `true` にすると、 `measurement1` 、 `measurement2` 、 `measurement3` が取得できます。 - もし `partial_match` を `false` にすると、 `measurement2` と `measurement3` が取得できます。 (optional, default to false) + * @param basetimeType 計測の基準時刻のタイプ (optional) + * @param ended 計測が終了している(ended)かどうかを指定して計測を取得します。 エッジにおいてデータの取得が終了している場合、その計測は「終了(ended)」となります。 計測は終了(ended)していても、まだサーバーに送信されていないデータがエッジに残っている可能性があります。 * `true`: 終了した計測だけを取得します。 * `false`: 終了していない計測だけを取得します。 (optional) + * @param since 指定した時刻以降に更新された計測のみを取得します。 以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param durationStart 計測時間の最小値(マイクロ秒)。これより短い計測は取得しません。 (optional) + * @param durationEnd 計測時間の最大値(マイクロ秒)。これより長い計測は取得しません。 (optional) + * @param status 計測のステータス (optional) + * @param limit 1回のリクエストで取得する件数。ただし、0を指定するとデフォルトの値が使用されます。 (optional, default to 1000) + * @param sort 並べ替えに使用するキー (optional, default to base_time) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listProjectMeasurementsCall(String projectUuid, List uuid, Integer name, String edgeUuid, String start, String end, Boolean partialMatch, String basetimeType, Boolean ended, String since, Long durationStart, Long durationEnd, List status, Integer limit, String sort, Integer page, String order, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (uuid != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "uuid", uuid)); + } + + if (name != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("name", name)); + } + + if (edgeUuid != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("edge_uuid", edgeUuid)); + } + + if (start != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("start", start)); + } + + if (end != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("end", end)); + } + + if (partialMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("partial_match", partialMatch)); + } + + if (basetimeType != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("basetime_type", basetimeType)); + } + + if (ended != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ended", ended)); + } + + if (since != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("since", since)); + } + + if (durationStart != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("duration_start", durationStart)); + } + + if (durationEnd != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("duration_end", durationEnd)); + } + + if (status != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "status", status)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (order != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("order", order)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listProjectMeasurementsValidateBeforeCall(String projectUuid, List uuid, Integer name, String edgeUuid, String start, String end, Boolean partialMatch, String basetimeType, Boolean ended, String since, Long durationStart, Long durationEnd, List status, Integer limit, String sort, Integer page, String order, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling listProjectMeasurements(Async)"); + } + + return listProjectMeasurementsCall(projectUuid, uuid, name, edgeUuid, start, end, partialMatch, basetimeType, ended, since, durationStart, durationEnd, status, limit, sort, page, order, _callback); + + } + + /** + * List Project Measurements + * 計測のリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param uuid 計測のUUID (optional) + * @param name 名前が指定した文字列から始まる計測を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけが取得されます。 (optional) + * @param edgeUuid 計測に関連付けられたエッジのUUID (optional) + * @param start 取得対象範囲の始点。以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param end 取得対象範囲の終点。以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param partialMatch `true` にすると、計測の一部が取得対象範囲に入っていればその計測は取得対象となります。 `false` にすると、計測の基準時刻(計測開始)が取得対象範囲に入っていればその計測は取得対象となります。 ``` | measurement1 | +--------------+ | measurement2 | +--------------+ | measurement3 | +--------------+ time -----------+----------------------------+------------> | | start end ``` - この例では、もし `partial_match` を `true` にすると、 `measurement1` 、 `measurement2` 、 `measurement3` が取得できます。 - もし `partial_match` を `false` にすると、 `measurement2` と `measurement3` が取得できます。 (optional, default to false) + * @param basetimeType 計測の基準時刻のタイプ (optional) + * @param ended 計測が終了している(ended)かどうかを指定して計測を取得します。 エッジにおいてデータの取得が終了している場合、その計測は「終了(ended)」となります。 計測は終了(ended)していても、まだサーバーに送信されていないデータがエッジに残っている可能性があります。 * `true`: 終了した計測だけを取得します。 * `false`: 終了していない計測だけを取得します。 (optional) + * @param since 指定した時刻以降に更新された計測のみを取得します。 以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param durationStart 計測時間の最小値(マイクロ秒)。これより短い計測は取得しません。 (optional) + * @param durationEnd 計測時間の最大値(マイクロ秒)。これより長い計測は取得しません。 (optional) + * @param status 計測のステータス (optional) + * @param limit 1回のリクエストで取得する件数。ただし、0を指定するとデフォルトの値が使用されます。 (optional, default to 1000) + * @param sort 並べ替えに使用するキー (optional, default to base_time) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @return Measurements + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Measurements listProjectMeasurements(String projectUuid, List uuid, Integer name, String edgeUuid, String start, String end, Boolean partialMatch, String basetimeType, Boolean ended, String since, Long durationStart, Long durationEnd, List status, Integer limit, String sort, Integer page, String order) throws ApiException { + ApiResponse localVarResp = listProjectMeasurementsWithHttpInfo(projectUuid, uuid, name, edgeUuid, start, end, partialMatch, basetimeType, ended, since, durationStart, durationEnd, status, limit, sort, page, order); + return localVarResp.getData(); + } + + /** + * List Project Measurements + * 計測のリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param uuid 計測のUUID (optional) + * @param name 名前が指定した文字列から始まる計測を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけが取得されます。 (optional) + * @param edgeUuid 計測に関連付けられたエッジのUUID (optional) + * @param start 取得対象範囲の始点。以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param end 取得対象範囲の終点。以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param partialMatch `true` にすると、計測の一部が取得対象範囲に入っていればその計測は取得対象となります。 `false` にすると、計測の基準時刻(計測開始)が取得対象範囲に入っていればその計測は取得対象となります。 ``` | measurement1 | +--------------+ | measurement2 | +--------------+ | measurement3 | +--------------+ time -----------+----------------------------+------------> | | start end ``` - この例では、もし `partial_match` を `true` にすると、 `measurement1` 、 `measurement2` 、 `measurement3` が取得できます。 - もし `partial_match` を `false` にすると、 `measurement2` と `measurement3` が取得できます。 (optional, default to false) + * @param basetimeType 計測の基準時刻のタイプ (optional) + * @param ended 計測が終了している(ended)かどうかを指定して計測を取得します。 エッジにおいてデータの取得が終了している場合、その計測は「終了(ended)」となります。 計測は終了(ended)していても、まだサーバーに送信されていないデータがエッジに残っている可能性があります。 * `true`: 終了した計測だけを取得します。 * `false`: 終了していない計測だけを取得します。 (optional) + * @param since 指定した時刻以降に更新された計測のみを取得します。 以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param durationStart 計測時間の最小値(マイクロ秒)。これより短い計測は取得しません。 (optional) + * @param durationEnd 計測時間の最大値(マイクロ秒)。これより長い計測は取得しません。 (optional) + * @param status 計測のステータス (optional) + * @param limit 1回のリクエストで取得する件数。ただし、0を指定するとデフォルトの値が使用されます。 (optional, default to 1000) + * @param sort 並べ替えに使用するキー (optional, default to base_time) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @return ApiResponse<Measurements> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listProjectMeasurementsWithHttpInfo(String projectUuid, List uuid, Integer name, String edgeUuid, String start, String end, Boolean partialMatch, String basetimeType, Boolean ended, String since, Long durationStart, Long durationEnd, List status, Integer limit, String sort, Integer page, String order) throws ApiException { + okhttp3.Call localVarCall = listProjectMeasurementsValidateBeforeCall(projectUuid, uuid, name, edgeUuid, start, end, partialMatch, basetimeType, ended, since, durationStart, durationEnd, status, limit, sort, page, order, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Project Measurements (asynchronously) + * 計測のリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param uuid 計測のUUID (optional) + * @param name 名前が指定した文字列から始まる計測を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけが取得されます。 (optional) + * @param edgeUuid 計測に関連付けられたエッジのUUID (optional) + * @param start 取得対象範囲の始点。以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param end 取得対象範囲の終点。以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param partialMatch `true` にすると、計測の一部が取得対象範囲に入っていればその計測は取得対象となります。 `false` にすると、計測の基準時刻(計測開始)が取得対象範囲に入っていればその計測は取得対象となります。 ``` | measurement1 | +--------------+ | measurement2 | +--------------+ | measurement3 | +--------------+ time -----------+----------------------------+------------> | | start end ``` - この例では、もし `partial_match` を `true` にすると、 `measurement1` 、 `measurement2` 、 `measurement3` が取得できます。 - もし `partial_match` を `false` にすると、 `measurement2` と `measurement3` が取得できます。 (optional, default to false) + * @param basetimeType 計測の基準時刻のタイプ (optional) + * @param ended 計測が終了している(ended)かどうかを指定して計測を取得します。 エッジにおいてデータの取得が終了している場合、その計測は「終了(ended)」となります。 計測は終了(ended)していても、まだサーバーに送信されていないデータがエッジに残っている可能性があります。 * `true`: 終了した計測だけを取得します。 * `false`: 終了していない計測だけを取得します。 (optional) + * @param since 指定した時刻以降に更新された計測のみを取得します。 以下のいずれかの形式で指定します。 - RFC3339(例 `2019-10-29T03:04:05.341268Z` ) - UNIX時刻(マイクロ秒)(**Deprecated**) (optional) + * @param durationStart 計測時間の最小値(マイクロ秒)。これより短い計測は取得しません。 (optional) + * @param durationEnd 計測時間の最大値(マイクロ秒)。これより長い計測は取得しません。 (optional) + * @param status 計測のステータス (optional) + * @param limit 1回のリクエストで取得する件数。ただし、0を指定するとデフォルトの値が使用されます。 (optional, default to 1000) + * @param sort 並べ替えに使用するキー (optional, default to base_time) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listProjectMeasurementsAsync(String projectUuid, List uuid, Integer name, String edgeUuid, String start, String end, Boolean partialMatch, String basetimeType, Boolean ended, String since, Long durationStart, Long durationEnd, List status, Integer limit, String sort, Integer page, String order, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listProjectMeasurementsValidateBeforeCall(projectUuid, uuid, name, edgeUuid, start, end, partialMatch, basetimeType, ended, since, durationStart, durationEnd, status, limit, sort, page, order, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for protectMeasurement + * @param measurementUuid 計測のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call protectMeasurementCall(String measurementUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements/{measurement_uuid}/protected" + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call protectMeasurementValidateBeforeCall(String measurementUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling protectMeasurement(Async)"); + } + + return protectMeasurementCall(measurementUuid, _callback); + + } + + /** + * Protect Measurement + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/protected` を使用してください) 計測を保護します。保護された計測は削除できません。 [See](#section/Protected-resources) も参照してください。 + * @param measurementUuid 計測のUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public void protectMeasurement(String measurementUuid) throws ApiException { + protectMeasurementWithHttpInfo(measurementUuid); + } + + /** + * Protect Measurement + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/protected` を使用してください) 計測を保護します。保護された計測は削除できません。 [See](#section/Protected-resources) も参照してください。 + * @param measurementUuid 計測のUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public ApiResponse protectMeasurementWithHttpInfo(String measurementUuid) throws ApiException { + okhttp3.Call localVarCall = protectMeasurementValidateBeforeCall(measurementUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Protect Measurement (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/protected` を使用してください) 計測を保護します。保護された計測は削除できません。 [See](#section/Protected-resources) も参照してください。 + * @param measurementUuid 計測のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call protectMeasurementAsync(String measurementUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = protectMeasurementValidateBeforeCall(measurementUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for protectProjectMeasurement + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call protectProjectMeasurementCall(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/{measurement_uuid}/protected" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call protectProjectMeasurementValidateBeforeCall(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling protectProjectMeasurement(Async)"); + } + + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling protectProjectMeasurement(Async)"); + } + + return protectProjectMeasurementCall(projectUuid, measurementUuid, _callback); + + } + + /** + * Protect Project Measurement + * 計測を保護します。保護された計測は削除できません。 [See](#section/Protected-resources) も参照してください。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void protectProjectMeasurement(String projectUuid, String measurementUuid) throws ApiException { + protectProjectMeasurementWithHttpInfo(projectUuid, measurementUuid); + } + + /** + * Protect Project Measurement + * 計測を保護します。保護された計測は削除できません。 [See](#section/Protected-resources) も参照してください。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse protectProjectMeasurementWithHttpInfo(String projectUuid, String measurementUuid) throws ApiException { + okhttp3.Call localVarCall = protectProjectMeasurementValidateBeforeCall(projectUuid, measurementUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Protect Project Measurement (asynchronously) + * 計測を保護します。保護された計測は削除できません。 [See](#section/Protected-resources) も参照してください。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call protectProjectMeasurementAsync(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = protectProjectMeasurementValidateBeforeCall(projectUuid, measurementUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for replaceMeasurementSequence + * @param measurementUuid 計測のUUID (required) + * @param sequencesUuid 計測シーケンスのUUID (required) + * @param measurementSequenceGroupReplace (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call replaceMeasurementSequenceCall(String measurementUuid, String sequencesUuid, MeasurementSequenceGroupReplace measurementSequenceGroupReplace, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = measurementSequenceGroupReplace; + + // create path and map variables + String localVarPath = "/v1/measurements/{measurement_uuid}/sequences/{sequences_uuid}" + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())) + .replace("{" + "sequences_uuid" + "}", localVarApiClient.escapeString(sequencesUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceMeasurementSequenceValidateBeforeCall(String measurementUuid, String sequencesUuid, MeasurementSequenceGroupReplace measurementSequenceGroupReplace, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling replaceMeasurementSequence(Async)"); + } + + // verify the required parameter 'sequencesUuid' is set + if (sequencesUuid == null) { + throw new ApiException("Missing the required parameter 'sequencesUuid' when calling replaceMeasurementSequence(Async)"); + } + + return replaceMeasurementSequenceCall(measurementUuid, sequencesUuid, measurementSequenceGroupReplace, _callback); + + } + + /** + * Replace Measurement Sequence + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sequences/{sequence_uuid}` を使用してください) 計測シーケンスを置換します。 + * @param measurementUuid 計測のUUID (required) + * @param sequencesUuid 計測シーケンスのUUID (required) + * @param measurementSequenceGroupReplace (optional) + * @return MeasurementSequenceGroup + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public MeasurementSequenceGroup replaceMeasurementSequence(String measurementUuid, String sequencesUuid, MeasurementSequenceGroupReplace measurementSequenceGroupReplace) throws ApiException { + ApiResponse localVarResp = replaceMeasurementSequenceWithHttpInfo(measurementUuid, sequencesUuid, measurementSequenceGroupReplace); + return localVarResp.getData(); + } + + /** + * Replace Measurement Sequence + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sequences/{sequence_uuid}` を使用してください) 計測シーケンスを置換します。 + * @param measurementUuid 計測のUUID (required) + * @param sequencesUuid 計測シーケンスのUUID (required) + * @param measurementSequenceGroupReplace (optional) + * @return ApiResponse<MeasurementSequenceGroup> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse replaceMeasurementSequenceWithHttpInfo(String measurementUuid, String sequencesUuid, MeasurementSequenceGroupReplace measurementSequenceGroupReplace) throws ApiException { + okhttp3.Call localVarCall = replaceMeasurementSequenceValidateBeforeCall(measurementUuid, sequencesUuid, measurementSequenceGroupReplace, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Replace Measurement Sequence (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sequences/{sequence_uuid}` を使用してください) 計測シーケンスを置換します。 + * @param measurementUuid 計測のUUID (required) + * @param sequencesUuid 計測シーケンスのUUID (required) + * @param measurementSequenceGroupReplace (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call replaceMeasurementSequenceAsync(String measurementUuid, String sequencesUuid, MeasurementSequenceGroupReplace measurementSequenceGroupReplace, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceMeasurementSequenceValidateBeforeCall(measurementUuid, sequencesUuid, measurementSequenceGroupReplace, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for replaceProjectMeasurementSequence + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param sequencesUuid 計測シーケンスのUUID (required) + * @param measurementSequenceGroupReplace (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call replaceProjectMeasurementSequenceCall(String projectUuid, String measurementUuid, String sequencesUuid, MeasurementSequenceGroupReplace measurementSequenceGroupReplace, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = measurementSequenceGroupReplace; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/{measurement_uuid}/sequences/{sequences_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())) + .replace("{" + "sequences_uuid" + "}", localVarApiClient.escapeString(sequencesUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceProjectMeasurementSequenceValidateBeforeCall(String projectUuid, String measurementUuid, String sequencesUuid, MeasurementSequenceGroupReplace measurementSequenceGroupReplace, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling replaceProjectMeasurementSequence(Async)"); + } + + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling replaceProjectMeasurementSequence(Async)"); + } + + // verify the required parameter 'sequencesUuid' is set + if (sequencesUuid == null) { + throw new ApiException("Missing the required parameter 'sequencesUuid' when calling replaceProjectMeasurementSequence(Async)"); + } + + return replaceProjectMeasurementSequenceCall(projectUuid, measurementUuid, sequencesUuid, measurementSequenceGroupReplace, _callback); + + } + + /** + * Replace Project Measurement Sequence + * 計測シーケンスを置換します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param sequencesUuid 計測シーケンスのUUID (required) + * @param measurementSequenceGroupReplace (optional) + * @return MeasurementSequenceGroup + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public MeasurementSequenceGroup replaceProjectMeasurementSequence(String projectUuid, String measurementUuid, String sequencesUuid, MeasurementSequenceGroupReplace measurementSequenceGroupReplace) throws ApiException { + ApiResponse localVarResp = replaceProjectMeasurementSequenceWithHttpInfo(projectUuid, measurementUuid, sequencesUuid, measurementSequenceGroupReplace); + return localVarResp.getData(); + } + + /** + * Replace Project Measurement Sequence + * 計測シーケンスを置換します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param sequencesUuid 計測シーケンスのUUID (required) + * @param measurementSequenceGroupReplace (optional) + * @return ApiResponse<MeasurementSequenceGroup> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse replaceProjectMeasurementSequenceWithHttpInfo(String projectUuid, String measurementUuid, String sequencesUuid, MeasurementSequenceGroupReplace measurementSequenceGroupReplace) throws ApiException { + okhttp3.Call localVarCall = replaceProjectMeasurementSequenceValidateBeforeCall(projectUuid, measurementUuid, sequencesUuid, measurementSequenceGroupReplace, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Replace Project Measurement Sequence (asynchronously) + * 計測シーケンスを置換します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param sequencesUuid 計測シーケンスのUUID (required) + * @param measurementSequenceGroupReplace (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call replaceProjectMeasurementSequenceAsync(String projectUuid, String measurementUuid, String sequencesUuid, MeasurementSequenceGroupReplace measurementSequenceGroupReplace, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceProjectMeasurementSequenceValidateBeforeCall(projectUuid, measurementUuid, sequencesUuid, measurementSequenceGroupReplace, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for unprotectMeasurement + * @param measurementUuid 計測のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call unprotectMeasurementCall(String measurementUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements/{measurement_uuid}/protected" + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call unprotectMeasurementValidateBeforeCall(String measurementUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling unprotectMeasurement(Async)"); + } + + return unprotectMeasurementCall(measurementUuid, _callback); + + } + + /** + * Unprotect Measurement + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/protected` を使用してください) 計測の保護を解除します。 + * @param measurementUuid 計測のUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public void unprotectMeasurement(String measurementUuid) throws ApiException { + unprotectMeasurementWithHttpInfo(measurementUuid); + } + + /** + * Unprotect Measurement + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/protected` を使用してください) 計測の保護を解除します。 + * @param measurementUuid 計測のUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public ApiResponse unprotectMeasurementWithHttpInfo(String measurementUuid) throws ApiException { + okhttp3.Call localVarCall = unprotectMeasurementValidateBeforeCall(measurementUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Unprotect Measurement (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/protected` を使用してください) 計測の保護を解除します。 + * @param measurementUuid 計測のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call unprotectMeasurementAsync(String measurementUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = unprotectMeasurementValidateBeforeCall(measurementUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for unprotectProjectMeasurement + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call unprotectProjectMeasurementCall(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/{measurement_uuid}/protected" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call unprotectProjectMeasurementValidateBeforeCall(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling unprotectProjectMeasurement(Async)"); + } + + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling unprotectProjectMeasurement(Async)"); + } + + return unprotectProjectMeasurementCall(projectUuid, measurementUuid, _callback); + + } + + /** + * Unprotect Project Measurement + * 計測の保護を解除します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void unprotectProjectMeasurement(String projectUuid, String measurementUuid) throws ApiException { + unprotectProjectMeasurementWithHttpInfo(projectUuid, measurementUuid); + } + + /** + * Unprotect Project Measurement + * 計測の保護を解除します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse unprotectProjectMeasurementWithHttpInfo(String projectUuid, String measurementUuid) throws ApiException { + okhttp3.Call localVarCall = unprotectProjectMeasurementValidateBeforeCall(projectUuid, measurementUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Unprotect Project Measurement (asynchronously) + * 計測の保護を解除します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call unprotectProjectMeasurementAsync(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = unprotectProjectMeasurementValidateBeforeCall(projectUuid, measurementUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for updateMeasurement + * @param measurementUuid 計測のUUID (required) + * @param measReplace (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call updateMeasurementCall(String measurementUuid, MeasReplace measReplace, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = measReplace; + + // create path and map variables + String localVarPath = "/v1/measurements/{measurement_uuid}" + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call updateMeasurementValidateBeforeCall(String measurementUuid, MeasReplace measReplace, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling updateMeasurement(Async)"); + } + + return updateMeasurementCall(measurementUuid, measReplace, _callback); + + } + + /** + * Update Measurement + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}` を使用してください) 計測に関する情報を更新します。 + * @param measurementUuid 計測のUUID (required) + * @param measReplace (optional) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public void updateMeasurement(String measurementUuid, MeasReplace measReplace) throws ApiException { + updateMeasurementWithHttpInfo(measurementUuid, measReplace); + } + + /** + * Update Measurement + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}` を使用してください) 計測に関する情報を更新します。 + * @param measurementUuid 計測のUUID (required) + * @param measReplace (optional) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public ApiResponse updateMeasurementWithHttpInfo(String measurementUuid, MeasReplace measReplace) throws ApiException { + okhttp3.Call localVarCall = updateMeasurementValidateBeforeCall(measurementUuid, measReplace, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Update Measurement (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}` を使用してください) 計測に関する情報を更新します。 + * @param measurementUuid 計測のUUID (required) + * @param measReplace (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call updateMeasurementAsync(String measurementUuid, MeasReplace measReplace, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateMeasurementValidateBeforeCall(measurementUuid, measReplace, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for updateMeasurementBaseTime + * @param measurementUuid 計測のUUID (required) + * @param type 基準時刻のタイプ (required) + * @param measBaseTimePut (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call updateMeasurementBaseTimeCall(String measurementUuid, String type, MeasBaseTimePut measBaseTimePut, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = measBaseTimePut; + + // create path and map variables + String localVarPath = "/v1/measurements/{measurement_uuid}/basetimes/{type}" + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())) + .replace("{" + "type" + "}", localVarApiClient.escapeString(type.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call updateMeasurementBaseTimeValidateBeforeCall(String measurementUuid, String type, MeasBaseTimePut measBaseTimePut, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling updateMeasurementBaseTime(Async)"); + } + + // verify the required parameter 'type' is set + if (type == null) { + throw new ApiException("Missing the required parameter 'type' when calling updateMeasurementBaseTime(Async)"); + } + + return updateMeasurementBaseTimeCall(measurementUuid, type, measBaseTimePut, _callback); + + } + + /** + * Replace Measurement Base Time + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/basetimes/{type}` を使用してください) 基準時刻を更新します。 この計測において、使用する基準時刻が設定されていない( `basetime_type` が `undefined` )の場合は、 新しい基準時刻を `basetime_type` に設定します。 + * @param measurementUuid 計測のUUID (required) + * @param type 基準時刻のタイプ (required) + * @param measBaseTimePut (optional) + * @return MeasBaseTime + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public MeasBaseTime updateMeasurementBaseTime(String measurementUuid, String type, MeasBaseTimePut measBaseTimePut) throws ApiException { + ApiResponse localVarResp = updateMeasurementBaseTimeWithHttpInfo(measurementUuid, type, measBaseTimePut); + return localVarResp.getData(); + } + + /** + * Replace Measurement Base Time + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/basetimes/{type}` を使用してください) 基準時刻を更新します。 この計測において、使用する基準時刻が設定されていない( `basetime_type` が `undefined` )の場合は、 新しい基準時刻を `basetime_type` に設定します。 + * @param measurementUuid 計測のUUID (required) + * @param type 基準時刻のタイプ (required) + * @param measBaseTimePut (optional) + * @return ApiResponse<MeasBaseTime> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse updateMeasurementBaseTimeWithHttpInfo(String measurementUuid, String type, MeasBaseTimePut measBaseTimePut) throws ApiException { + okhttp3.Call localVarCall = updateMeasurementBaseTimeValidateBeforeCall(measurementUuid, type, measBaseTimePut, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Replace Measurement Base Time (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/basetimes/{type}` を使用してください) 基準時刻を更新します。 この計測において、使用する基準時刻が設定されていない( `basetime_type` が `undefined` )の場合は、 新しい基準時刻を `basetime_type` に設定します。 + * @param measurementUuid 計測のUUID (required) + * @param type 基準時刻のタイプ (required) + * @param measBaseTimePut (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call updateMeasurementBaseTimeAsync(String measurementUuid, String type, MeasBaseTimePut measBaseTimePut, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateMeasurementBaseTimeValidateBeforeCall(measurementUuid, type, measBaseTimePut, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateMeasurementSequence + * @param measurementUuid 計測のUUID (required) + * @param sequencesUuid 計測シーケンスのUUID (required) + * @param measurementSequenceGroupReplace (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call updateMeasurementSequenceCall(String measurementUuid, String sequencesUuid, MeasurementSequenceGroupReplace measurementSequenceGroupReplace, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = measurementSequenceGroupReplace; + + // create path and map variables + String localVarPath = "/v1/measurements/{measurement_uuid}/sequences/{sequences_uuid}" + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())) + .replace("{" + "sequences_uuid" + "}", localVarApiClient.escapeString(sequencesUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call updateMeasurementSequenceValidateBeforeCall(String measurementUuid, String sequencesUuid, MeasurementSequenceGroupReplace measurementSequenceGroupReplace, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling updateMeasurementSequence(Async)"); + } + + // verify the required parameter 'sequencesUuid' is set + if (sequencesUuid == null) { + throw new ApiException("Missing the required parameter 'sequencesUuid' when calling updateMeasurementSequence(Async)"); + } + + return updateMeasurementSequenceCall(measurementUuid, sequencesUuid, measurementSequenceGroupReplace, _callback); + + } + + /** + * Update Measurement Sequence + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sequences/{sequence_uuid}` を使用してください) 計測シーケンスを更新します。 + * @param measurementUuid 計測のUUID (required) + * @param sequencesUuid 計測シーケンスのUUID (required) + * @param measurementSequenceGroupReplace (optional) + * @return MeasurementSequenceGroup + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public MeasurementSequenceGroup updateMeasurementSequence(String measurementUuid, String sequencesUuid, MeasurementSequenceGroupReplace measurementSequenceGroupReplace) throws ApiException { + ApiResponse localVarResp = updateMeasurementSequenceWithHttpInfo(measurementUuid, sequencesUuid, measurementSequenceGroupReplace); + return localVarResp.getData(); + } + + /** + * Update Measurement Sequence + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sequences/{sequence_uuid}` を使用してください) 計測シーケンスを更新します。 + * @param measurementUuid 計測のUUID (required) + * @param sequencesUuid 計測シーケンスのUUID (required) + * @param measurementSequenceGroupReplace (optional) + * @return ApiResponse<MeasurementSequenceGroup> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse updateMeasurementSequenceWithHttpInfo(String measurementUuid, String sequencesUuid, MeasurementSequenceGroupReplace measurementSequenceGroupReplace) throws ApiException { + okhttp3.Call localVarCall = updateMeasurementSequenceValidateBeforeCall(measurementUuid, sequencesUuid, measurementSequenceGroupReplace, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Measurement Sequence (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sequences/{sequence_uuid}` を使用してください) 計測シーケンスを更新します。 + * @param measurementUuid 計測のUUID (required) + * @param sequencesUuid 計測シーケンスのUUID (required) + * @param measurementSequenceGroupReplace (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call updateMeasurementSequenceAsync(String measurementUuid, String sequencesUuid, MeasurementSequenceGroupReplace measurementSequenceGroupReplace, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateMeasurementSequenceValidateBeforeCall(measurementUuid, sequencesUuid, measurementSequenceGroupReplace, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateProjectMeasurement + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param measReplace (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call updateProjectMeasurementCall(String projectUuid, String measurementUuid, MeasReplace measReplace, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = measReplace; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/{measurement_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateProjectMeasurementValidateBeforeCall(String projectUuid, String measurementUuid, MeasReplace measReplace, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling updateProjectMeasurement(Async)"); + } + + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling updateProjectMeasurement(Async)"); + } + + return updateProjectMeasurementCall(projectUuid, measurementUuid, measReplace, _callback); + + } + + /** + * Update Project Measurement + * 計測に関する情報を更新します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param measReplace (optional) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void updateProjectMeasurement(String projectUuid, String measurementUuid, MeasReplace measReplace) throws ApiException { + updateProjectMeasurementWithHttpInfo(projectUuid, measurementUuid, measReplace); + } + + /** + * Update Project Measurement + * 計測に関する情報を更新します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param measReplace (optional) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse updateProjectMeasurementWithHttpInfo(String projectUuid, String measurementUuid, MeasReplace measReplace) throws ApiException { + okhttp3.Call localVarCall = updateProjectMeasurementValidateBeforeCall(projectUuid, measurementUuid, measReplace, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Update Project Measurement (asynchronously) + * 計測に関する情報を更新します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param measReplace (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call updateProjectMeasurementAsync(String projectUuid, String measurementUuid, MeasReplace measReplace, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateProjectMeasurementValidateBeforeCall(projectUuid, measurementUuid, measReplace, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for updateProjectMeasurementBaseTime + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param type 基準時刻のタイプ (required) + * @param measBaseTimePut (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateProjectMeasurementBaseTimeCall(String projectUuid, String measurementUuid, String type, MeasBaseTimePut measBaseTimePut, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = measBaseTimePut; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/{measurement_uuid}/basetimes/{type}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())) + .replace("{" + "type" + "}", localVarApiClient.escapeString(type.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateProjectMeasurementBaseTimeValidateBeforeCall(String projectUuid, String measurementUuid, String type, MeasBaseTimePut measBaseTimePut, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling updateProjectMeasurementBaseTime(Async)"); + } + + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling updateProjectMeasurementBaseTime(Async)"); + } + + // verify the required parameter 'type' is set + if (type == null) { + throw new ApiException("Missing the required parameter 'type' when calling updateProjectMeasurementBaseTime(Async)"); + } + + return updateProjectMeasurementBaseTimeCall(projectUuid, measurementUuid, type, measBaseTimePut, _callback); + + } + + /** + * Replace Project Measurement Base Time + * 基準時刻を更新します。 この計測において、使用する基準時刻が設定されていない( `basetime_type` が `undefined` )の場合は、 新しい基準時刻を `basetime_type` に設定します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param type 基準時刻のタイプ (required) + * @param measBaseTimePut (optional) + * @return MeasBaseTime + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public MeasBaseTime updateProjectMeasurementBaseTime(String projectUuid, String measurementUuid, String type, MeasBaseTimePut measBaseTimePut) throws ApiException { + ApiResponse localVarResp = updateProjectMeasurementBaseTimeWithHttpInfo(projectUuid, measurementUuid, type, measBaseTimePut); + return localVarResp.getData(); + } + + /** + * Replace Project Measurement Base Time + * 基準時刻を更新します。 この計測において、使用する基準時刻が設定されていない( `basetime_type` が `undefined` )の場合は、 新しい基準時刻を `basetime_type` に設定します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param type 基準時刻のタイプ (required) + * @param measBaseTimePut (optional) + * @return ApiResponse<MeasBaseTime> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateProjectMeasurementBaseTimeWithHttpInfo(String projectUuid, String measurementUuid, String type, MeasBaseTimePut measBaseTimePut) throws ApiException { + okhttp3.Call localVarCall = updateProjectMeasurementBaseTimeValidateBeforeCall(projectUuid, measurementUuid, type, measBaseTimePut, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Replace Project Measurement Base Time (asynchronously) + * 基準時刻を更新します。 この計測において、使用する基準時刻が設定されていない( `basetime_type` が `undefined` )の場合は、 新しい基準時刻を `basetime_type` に設定します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param type 基準時刻のタイプ (required) + * @param measBaseTimePut (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateProjectMeasurementBaseTimeAsync(String projectUuid, String measurementUuid, String type, MeasBaseTimePut measBaseTimePut, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateProjectMeasurementBaseTimeValidateBeforeCall(projectUuid, measurementUuid, type, measBaseTimePut, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateProjectMeasurementSequence + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param sequencesUuid 計測シーケンスのUUID (required) + * @param measurementSequenceGroupReplace (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateProjectMeasurementSequenceCall(String projectUuid, String measurementUuid, String sequencesUuid, MeasurementSequenceGroupReplace measurementSequenceGroupReplace, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = measurementSequenceGroupReplace; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/{measurement_uuid}/sequences/{sequences_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())) + .replace("{" + "sequences_uuid" + "}", localVarApiClient.escapeString(sequencesUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateProjectMeasurementSequenceValidateBeforeCall(String projectUuid, String measurementUuid, String sequencesUuid, MeasurementSequenceGroupReplace measurementSequenceGroupReplace, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling updateProjectMeasurementSequence(Async)"); + } + + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling updateProjectMeasurementSequence(Async)"); + } + + // verify the required parameter 'sequencesUuid' is set + if (sequencesUuid == null) { + throw new ApiException("Missing the required parameter 'sequencesUuid' when calling updateProjectMeasurementSequence(Async)"); + } + + return updateProjectMeasurementSequenceCall(projectUuid, measurementUuid, sequencesUuid, measurementSequenceGroupReplace, _callback); + + } + + /** + * Update Project Measurement Sequence + * 計測シーケンスを更新します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param sequencesUuid 計測シーケンスのUUID (required) + * @param measurementSequenceGroupReplace (optional) + * @return MeasurementSequenceGroup + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public MeasurementSequenceGroup updateProjectMeasurementSequence(String projectUuid, String measurementUuid, String sequencesUuid, MeasurementSequenceGroupReplace measurementSequenceGroupReplace) throws ApiException { + ApiResponse localVarResp = updateProjectMeasurementSequenceWithHttpInfo(projectUuid, measurementUuid, sequencesUuid, measurementSequenceGroupReplace); + return localVarResp.getData(); + } + + /** + * Update Project Measurement Sequence + * 計測シーケンスを更新します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param sequencesUuid 計測シーケンスのUUID (required) + * @param measurementSequenceGroupReplace (optional) + * @return ApiResponse<MeasurementSequenceGroup> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateProjectMeasurementSequenceWithHttpInfo(String projectUuid, String measurementUuid, String sequencesUuid, MeasurementSequenceGroupReplace measurementSequenceGroupReplace) throws ApiException { + okhttp3.Call localVarCall = updateProjectMeasurementSequenceValidateBeforeCall(projectUuid, measurementUuid, sequencesUuid, measurementSequenceGroupReplace, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Project Measurement Sequence (asynchronously) + * 計測シーケンスを更新します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param sequencesUuid 計測シーケンスのUUID (required) + * @param measurementSequenceGroupReplace (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateProjectMeasurementSequenceAsync(String projectUuid, String measurementUuid, String sequencesUuid, MeasurementSequenceGroupReplace measurementSequenceGroupReplace, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateProjectMeasurementSequenceValidateBeforeCall(projectUuid, measurementUuid, sequencesUuid, measurementSequenceGroupReplace, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/intdash/src/main/java/com/aptpod/intdash/MeasSignalsApi.java b/intdash/src/main/java/com/aptpod/intdash/MeasSignalsApi.java new file mode 100644 index 0000000..9525d19 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/intdash/MeasSignalsApi.java @@ -0,0 +1,1454 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.intdash; + +import com.aptpod.ApiCallback; +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.ApiResponse; +import com.aptpod.Configuration; +import com.aptpod.Pair; +import com.aptpod.ProgressRequestBody; +import com.aptpod.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.openapitools.client.model.CreateSignalRequest; +import org.openapitools.client.model.Signal; +import org.openapitools.client.model.Signals; +import org.openapitools.client.model.UpdateSignalRequest; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class MeasSignalsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public MeasSignalsApi() { + this(Configuration.getDefaultApiClient()); + } + + public MeasSignalsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for createProjectSignal + * @param projectUuid プロジェクトのUUID (required) + * @param createSignalRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public okhttp3.Call createProjectSignalCall(String projectUuid, CreateSignalRequest createSignalRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = createSignalRequest; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/signals" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createProjectSignalValidateBeforeCall(String projectUuid, CreateSignalRequest createSignalRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling createProjectSignal(Async)"); + } + + return createProjectSignalCall(projectUuid, createSignalRequest, _callback); + + } + + /** + * Create Project Signal + * 信号定義を作成します。 * **Note** - 既存の信号定義と `label` が重複する場合、または `uuid` が重複する場合は、 ステータスコード `409 Conflict` が返却されます。 + * @param projectUuid プロジェクトのUUID (required) + * @param createSignalRequest (optional) + * @return Signal + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public Signal createProjectSignal(String projectUuid, CreateSignalRequest createSignalRequest) throws ApiException { + ApiResponse localVarResp = createProjectSignalWithHttpInfo(projectUuid, createSignalRequest); + return localVarResp.getData(); + } + + /** + * Create Project Signal + * 信号定義を作成します。 * **Note** - 既存の信号定義と `label` が重複する場合、または `uuid` が重複する場合は、 ステータスコード `409 Conflict` が返却されます。 + * @param projectUuid プロジェクトのUUID (required) + * @param createSignalRequest (optional) + * @return ApiResponse<Signal> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public ApiResponse createProjectSignalWithHttpInfo(String projectUuid, CreateSignalRequest createSignalRequest) throws ApiException { + okhttp3.Call localVarCall = createProjectSignalValidateBeforeCall(projectUuid, createSignalRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Project Signal (asynchronously) + * 信号定義を作成します。 * **Note** - 既存の信号定義と `label` が重複する場合、または `uuid` が重複する場合は、 ステータスコード `409 Conflict` が返却されます。 + * @param projectUuid プロジェクトのUUID (required) + * @param createSignalRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ */ + public okhttp3.Call createProjectSignalAsync(String projectUuid, CreateSignalRequest createSignalRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createProjectSignalValidateBeforeCall(projectUuid, createSignalRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createSignal + * @param createSignalRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call createSignalCall(CreateSignalRequest createSignalRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = createSignalRequest; + + // create path and map variables + String localVarPath = "/v1/signals"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call createSignalValidateBeforeCall(CreateSignalRequest createSignalRequest, final ApiCallback _callback) throws ApiException { + return createSignalCall(createSignalRequest, _callback); + + } + + /** + * Create Signal + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/signals` を使用してください) 信号定義を作成します。 * **Note** - 既存の信号定義と `label` が重複する場合、または `uuid` が重複する場合は、 ステータスコード `409 Conflict` が返却されます。 + * @param createSignalRequest (optional) + * @return Signal + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ * @deprecated + */ + @Deprecated + public Signal createSignal(CreateSignalRequest createSignalRequest) throws ApiException { + ApiResponse localVarResp = createSignalWithHttpInfo(createSignalRequest); + return localVarResp.getData(); + } + + /** + * Create Signal + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/signals` を使用してください) 信号定義を作成します。 * **Note** - 既存の信号定義と `label` が重複する場合、または `uuid` が重複する場合は、 ステータスコード `409 Conflict` が返却されます。 + * @param createSignalRequest (optional) + * @return ApiResponse<Signal> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ * @deprecated + */ + @Deprecated + public ApiResponse createSignalWithHttpInfo(CreateSignalRequest createSignalRequest) throws ApiException { + okhttp3.Call localVarCall = createSignalValidateBeforeCall(createSignalRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Signal (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/signals` を使用してください) 信号定義を作成します。 * **Note** - 既存の信号定義と `label` が重複する場合、または `uuid` が重複する場合は、 ステータスコード `409 Conflict` が返却されます。 + * @param createSignalRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
201 Created -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call createSignalAsync(CreateSignalRequest createSignalRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createSignalValidateBeforeCall(createSignalRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteProjectSignal + * @param projectUuid プロジェクトのUUID (required) + * @param signalUuid 信号定義のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteProjectSignalCall(String projectUuid, String signalUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/signals/{signal_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "signal_uuid" + "}", localVarApiClient.escapeString(signalUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteProjectSignalValidateBeforeCall(String projectUuid, String signalUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling deleteProjectSignal(Async)"); + } + + // verify the required parameter 'signalUuid' is set + if (signalUuid == null) { + throw new ApiException("Missing the required parameter 'signalUuid' when calling deleteProjectSignal(Async)"); + } + + return deleteProjectSignalCall(projectUuid, signalUuid, _callback); + + } + + /** + * Delete Project Signal + * 信号定義を削除します。 + * @param projectUuid プロジェクトのUUID (required) + * @param signalUuid 信号定義のUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void deleteProjectSignal(String projectUuid, String signalUuid) throws ApiException { + deleteProjectSignalWithHttpInfo(projectUuid, signalUuid); + } + + /** + * Delete Project Signal + * 信号定義を削除します。 + * @param projectUuid プロジェクトのUUID (required) + * @param signalUuid 信号定義のUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse deleteProjectSignalWithHttpInfo(String projectUuid, String signalUuid) throws ApiException { + okhttp3.Call localVarCall = deleteProjectSignalValidateBeforeCall(projectUuid, signalUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete Project Signal (asynchronously) + * 信号定義を削除します。 + * @param projectUuid プロジェクトのUUID (required) + * @param signalUuid 信号定義のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteProjectSignalAsync(String projectUuid, String signalUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteProjectSignalValidateBeforeCall(projectUuid, signalUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteSignal + * @param signalUuid 信号定義のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call deleteSignalCall(String signalUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/signals/{signal_uuid}" + .replace("{" + "signal_uuid" + "}", localVarApiClient.escapeString(signalUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteSignalValidateBeforeCall(String signalUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'signalUuid' is set + if (signalUuid == null) { + throw new ApiException("Missing the required parameter 'signalUuid' when calling deleteSignal(Async)"); + } + + return deleteSignalCall(signalUuid, _callback); + + } + + /** + * Delete Signal + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/signals/{signal_uuid}` を使用してください) 信号定義を削除します。 + * @param signalUuid 信号定義のUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public void deleteSignal(String signalUuid) throws ApiException { + deleteSignalWithHttpInfo(signalUuid); + } + + /** + * Delete Signal + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/signals/{signal_uuid}` を使用してください) 信号定義を削除します。 + * @param signalUuid 信号定義のUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public ApiResponse deleteSignalWithHttpInfo(String signalUuid) throws ApiException { + okhttp3.Call localVarCall = deleteSignalValidateBeforeCall(signalUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete Signal (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/signals/{signal_uuid}` を使用してください) 信号定義を削除します。 + * @param signalUuid 信号定義のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call deleteSignalAsync(String signalUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteSignalValidateBeforeCall(signalUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getProjectSignal + * @param projectUuid プロジェクトのUUID (required) + * @param signalUuid 信号定義のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectSignalCall(String projectUuid, String signalUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/signals/{signal_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "signal_uuid" + "}", localVarApiClient.escapeString(signalUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getProjectSignalValidateBeforeCall(String projectUuid, String signalUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling getProjectSignal(Async)"); + } + + // verify the required parameter 'signalUuid' is set + if (signalUuid == null) { + throw new ApiException("Missing the required parameter 'signalUuid' when calling getProjectSignal(Async)"); + } + + return getProjectSignalCall(projectUuid, signalUuid, _callback); + + } + + /** + * Get Project Signal + * 信号定義を取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param signalUuid 信号定義のUUID (required) + * @return Signal + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Signal getProjectSignal(String projectUuid, String signalUuid) throws ApiException { + ApiResponse localVarResp = getProjectSignalWithHttpInfo(projectUuid, signalUuid); + return localVarResp.getData(); + } + + /** + * Get Project Signal + * 信号定義を取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param signalUuid 信号定義のUUID (required) + * @return ApiResponse<Signal> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getProjectSignalWithHttpInfo(String projectUuid, String signalUuid) throws ApiException { + okhttp3.Call localVarCall = getProjectSignalValidateBeforeCall(projectUuid, signalUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Project Signal (asynchronously) + * 信号定義を取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param signalUuid 信号定義のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectSignalAsync(String projectUuid, String signalUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getProjectSignalValidateBeforeCall(projectUuid, signalUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getSignal + * @param signalUuid 信号定義のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getSignalCall(String signalUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/signals/{signal_uuid}" + .replace("{" + "signal_uuid" + "}", localVarApiClient.escapeString(signalUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call getSignalValidateBeforeCall(String signalUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'signalUuid' is set + if (signalUuid == null) { + throw new ApiException("Missing the required parameter 'signalUuid' when calling getSignal(Async)"); + } + + return getSignalCall(signalUuid, _callback); + + } + + /** + * Get Signal + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/signals/{signal_uuid}` を使用してください) 信号定義を取得します。 + * @param signalUuid 信号定義のUUID (required) + * @return Signal + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public Signal getSignal(String signalUuid) throws ApiException { + ApiResponse localVarResp = getSignalWithHttpInfo(signalUuid); + return localVarResp.getData(); + } + + /** + * Get Signal + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/signals/{signal_uuid}` を使用してください) 信号定義を取得します。 + * @param signalUuid 信号定義のUUID (required) + * @return ApiResponse<Signal> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse getSignalWithHttpInfo(String signalUuid) throws ApiException { + okhttp3.Call localVarCall = getSignalValidateBeforeCall(signalUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Signal (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/signals/{signal_uuid}` を使用してください) 信号定義を取得します。 + * @param signalUuid 信号定義のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getSignalAsync(String signalUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getSignalValidateBeforeCall(signalUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listProjectSignals + * @param projectUuid プロジェクトのUUID (required) + * @param label ラベルが指定した文字列から始まる信号定義を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 (optional) + * @param sort 並べ替えに使用するキー (optional) + * @param order 並べ替えの順序 (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param page 取得するページの番号 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listProjectSignalsCall(String projectUuid, List label, String sort, String order, Integer limit, Integer page, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/signals" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (label != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "label", label)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + if (order != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("order", order)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listProjectSignalsValidateBeforeCall(String projectUuid, List label, String sort, String order, Integer limit, Integer page, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling listProjectSignals(Async)"); + } + + return listProjectSignalsCall(projectUuid, label, sort, order, limit, page, _callback); + + } + + /** + * List Project Signals + * 信号定義のリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param label ラベルが指定した文字列から始まる信号定義を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 (optional) + * @param sort 並べ替えに使用するキー (optional) + * @param order 並べ替えの順序 (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param page 取得するページの番号 (optional) + * @return Signals + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Signals listProjectSignals(String projectUuid, List label, String sort, String order, Integer limit, Integer page) throws ApiException { + ApiResponse localVarResp = listProjectSignalsWithHttpInfo(projectUuid, label, sort, order, limit, page); + return localVarResp.getData(); + } + + /** + * List Project Signals + * 信号定義のリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param label ラベルが指定した文字列から始まる信号定義を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 (optional) + * @param sort 並べ替えに使用するキー (optional) + * @param order 並べ替えの順序 (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param page 取得するページの番号 (optional) + * @return ApiResponse<Signals> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listProjectSignalsWithHttpInfo(String projectUuid, List label, String sort, String order, Integer limit, Integer page) throws ApiException { + okhttp3.Call localVarCall = listProjectSignalsValidateBeforeCall(projectUuid, label, sort, order, limit, page, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Project Signals (asynchronously) + * 信号定義のリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param label ラベルが指定した文字列から始まる信号定義を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 (optional) + * @param sort 並べ替えに使用するキー (optional) + * @param order 並べ替えの順序 (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param page 取得するページの番号 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listProjectSignalsAsync(String projectUuid, List label, String sort, String order, Integer limit, Integer page, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listProjectSignalsValidateBeforeCall(projectUuid, label, sort, order, limit, page, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listSignals + * @param label ラベルが指定した文字列から始まる信号定義を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 (optional) + * @param sort 並べ替えに使用するキー (optional) + * @param order 並べ替えの順序 (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param page 取得するページの番号 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call listSignalsCall(List label, String sort, String order, Integer limit, Integer page, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/signals"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (label != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "label", label)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + if (order != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("order", order)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call listSignalsValidateBeforeCall(List label, String sort, String order, Integer limit, Integer page, final ApiCallback _callback) throws ApiException { + return listSignalsCall(label, sort, order, limit, page, _callback); + + } + + /** + * List Signals + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/signals` を使用してください) 信号定義のリストを取得します。 + * @param label ラベルが指定した文字列から始まる信号定義を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 (optional) + * @param sort 並べ替えに使用するキー (optional) + * @param order 並べ替えの順序 (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param page 取得するページの番号 (optional) + * @return Signals + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public Signals listSignals(List label, String sort, String order, Integer limit, Integer page) throws ApiException { + ApiResponse localVarResp = listSignalsWithHttpInfo(label, sort, order, limit, page); + return localVarResp.getData(); + } + + /** + * List Signals + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/signals` を使用してください) 信号定義のリストを取得します。 + * @param label ラベルが指定した文字列から始まる信号定義を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 (optional) + * @param sort 並べ替えに使用するキー (optional) + * @param order 並べ替えの順序 (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param page 取得するページの番号 (optional) + * @return ApiResponse<Signals> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse listSignalsWithHttpInfo(List label, String sort, String order, Integer limit, Integer page) throws ApiException { + okhttp3.Call localVarCall = listSignalsValidateBeforeCall(label, sort, order, limit, page, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Signals (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/signals` を使用してください) 信号定義のリストを取得します。 + * @param label ラベルが指定した文字列から始まる信号定義を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 (optional) + * @param sort 並べ替えに使用するキー (optional) + * @param order 並べ替えの順序 (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param page 取得するページの番号 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call listSignalsAsync(List label, String sort, String order, Integer limit, Integer page, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listSignalsValidateBeforeCall(label, sort, order, limit, page, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateProjectSignal + * @param projectUuid プロジェクトのUUID (required) + * @param signalUuid 信号定義のUUID (required) + * @param updateSignalRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateProjectSignalCall(String projectUuid, String signalUuid, UpdateSignalRequest updateSignalRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateSignalRequest; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/signals/{signal_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "signal_uuid" + "}", localVarApiClient.escapeString(signalUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateProjectSignalValidateBeforeCall(String projectUuid, String signalUuid, UpdateSignalRequest updateSignalRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling updateProjectSignal(Async)"); + } + + // verify the required parameter 'signalUuid' is set + if (signalUuid == null) { + throw new ApiException("Missing the required parameter 'signalUuid' when calling updateProjectSignal(Async)"); + } + + return updateProjectSignalCall(projectUuid, signalUuid, updateSignalRequest, _callback); + + } + + /** + * Update Project Signal + * 信号定義を更新します。 + * @param projectUuid プロジェクトのUUID (required) + * @param signalUuid 信号定義のUUID (required) + * @param updateSignalRequest (optional) + * @return Signal + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Signal updateProjectSignal(String projectUuid, String signalUuid, UpdateSignalRequest updateSignalRequest) throws ApiException { + ApiResponse localVarResp = updateProjectSignalWithHttpInfo(projectUuid, signalUuid, updateSignalRequest); + return localVarResp.getData(); + } + + /** + * Update Project Signal + * 信号定義を更新します。 + * @param projectUuid プロジェクトのUUID (required) + * @param signalUuid 信号定義のUUID (required) + * @param updateSignalRequest (optional) + * @return ApiResponse<Signal> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateProjectSignalWithHttpInfo(String projectUuid, String signalUuid, UpdateSignalRequest updateSignalRequest) throws ApiException { + okhttp3.Call localVarCall = updateProjectSignalValidateBeforeCall(projectUuid, signalUuid, updateSignalRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Project Signal (asynchronously) + * 信号定義を更新します。 + * @param projectUuid プロジェクトのUUID (required) + * @param signalUuid 信号定義のUUID (required) + * @param updateSignalRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateProjectSignalAsync(String projectUuid, String signalUuid, UpdateSignalRequest updateSignalRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateProjectSignalValidateBeforeCall(projectUuid, signalUuid, updateSignalRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateSignal + * @param signalUuid 信号定義のUUID (required) + * @param updateSignalRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call updateSignalCall(String signalUuid, UpdateSignalRequest updateSignalRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = updateSignalRequest; + + // create path and map variables + String localVarPath = "/v1/signals/{signal_uuid}" + .replace("{" + "signal_uuid" + "}", localVarApiClient.escapeString(signalUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call updateSignalValidateBeforeCall(String signalUuid, UpdateSignalRequest updateSignalRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'signalUuid' is set + if (signalUuid == null) { + throw new ApiException("Missing the required parameter 'signalUuid' when calling updateSignal(Async)"); + } + + return updateSignalCall(signalUuid, updateSignalRequest, _callback); + + } + + /** + * Update Signal + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/signals/{signal_uuid}` を使用してください) 信号定義を更新します。 + * @param signalUuid 信号定義のUUID (required) + * @param updateSignalRequest (optional) + * @return Signal + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public Signal updateSignal(String signalUuid, UpdateSignalRequest updateSignalRequest) throws ApiException { + ApiResponse localVarResp = updateSignalWithHttpInfo(signalUuid, updateSignalRequest); + return localVarResp.getData(); + } + + /** + * Update Signal + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/signals/{signal_uuid}` を使用してください) 信号定義を更新します。 + * @param signalUuid 信号定義のUUID (required) + * @param updateSignalRequest (optional) + * @return ApiResponse<Signal> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse updateSignalWithHttpInfo(String signalUuid, UpdateSignalRequest updateSignalRequest) throws ApiException { + okhttp3.Call localVarCall = updateSignalValidateBeforeCall(signalUuid, updateSignalRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Signal (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/signals/{signal_uuid}` を使用してください) 信号定義を更新します。 + * @param signalUuid 信号定義のUUID (required) + * @param updateSignalRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call updateSignalAsync(String signalUuid, UpdateSignalRequest updateSignalRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateSignalValidateBeforeCall(signalUuid, updateSignalRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/intdash/src/main/java/com/aptpod/intdash/MeasTrashedMeasurementsApi.java b/intdash/src/main/java/com/aptpod/intdash/MeasTrashedMeasurementsApi.java new file mode 100644 index 0000000..a177992 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/intdash/MeasTrashedMeasurementsApi.java @@ -0,0 +1,863 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.intdash; + +import com.aptpod.ApiCallback; +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.ApiResponse; +import com.aptpod.Configuration; +import com.aptpod.Pair; +import com.aptpod.ProgressRequestBody; +import com.aptpod.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.openapitools.client.model.TrashedMeasurements; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class MeasTrashedMeasurementsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public MeasTrashedMeasurementsApi() { + this(Configuration.getDefaultApiClient()); + } + + public MeasTrashedMeasurementsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for deleteProjectTrashedMeasurement + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteProjectTrashedMeasurementCall(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/trashed_measurements/{measurement_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteProjectTrashedMeasurementValidateBeforeCall(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling deleteProjectTrashedMeasurement(Async)"); + } + + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling deleteProjectTrashedMeasurement(Async)"); + } + + return deleteProjectTrashedMeasurementCall(projectUuid, measurementUuid, _callback); + + } + + /** + * Delete Project Trashed Measurement and Delete Data Points Immediately + * ゴミ箱に入っている計測と、その計測に関連付けられているデータポイントを直ちに削除します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void deleteProjectTrashedMeasurement(String projectUuid, String measurementUuid) throws ApiException { + deleteProjectTrashedMeasurementWithHttpInfo(projectUuid, measurementUuid); + } + + /** + * Delete Project Trashed Measurement and Delete Data Points Immediately + * ゴミ箱に入っている計測と、その計測に関連付けられているデータポイントを直ちに削除します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse deleteProjectTrashedMeasurementWithHttpInfo(String projectUuid, String measurementUuid) throws ApiException { + okhttp3.Call localVarCall = deleteProjectTrashedMeasurementValidateBeforeCall(projectUuid, measurementUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete Project Trashed Measurement and Delete Data Points Immediately (asynchronously) + * ゴミ箱に入っている計測と、その計測に関連付けられているデータポイントを直ちに削除します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteProjectTrashedMeasurementAsync(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteProjectTrashedMeasurementValidateBeforeCall(projectUuid, measurementUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteTrashedMeasurement + * @param measurementUuid 計測のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call deleteTrashedMeasurementCall(String measurementUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/trashed_measurements/{measurement_uuid}" + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteTrashedMeasurementValidateBeforeCall(String measurementUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling deleteTrashedMeasurement(Async)"); + } + + return deleteTrashedMeasurementCall(measurementUuid, _callback); + + } + + /** + * Delete Trashed Measurement and Delete Data Points Immediately + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/trashed_measurements/{measurement_uuid}` を使用してください) ゴミ箱に入っている計測と、その計測に関連付けられているデータポイントを直ちに削除します。 + * @param measurementUuid 計測のUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public void deleteTrashedMeasurement(String measurementUuid) throws ApiException { + deleteTrashedMeasurementWithHttpInfo(measurementUuid); + } + + /** + * Delete Trashed Measurement and Delete Data Points Immediately + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/trashed_measurements/{measurement_uuid}` を使用してください) ゴミ箱に入っている計測と、その計測に関連付けられているデータポイントを直ちに削除します。 + * @param measurementUuid 計測のUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public ApiResponse deleteTrashedMeasurementWithHttpInfo(String measurementUuid) throws ApiException { + okhttp3.Call localVarCall = deleteTrashedMeasurementValidateBeforeCall(measurementUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete Trashed Measurement and Delete Data Points Immediately (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/trashed_measurements/{measurement_uuid}` を使用してください) ゴミ箱に入っている計測と、その計測に関連付けられているデータポイントを直ちに削除します。 + * @param measurementUuid 計測のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call deleteTrashedMeasurementAsync(String measurementUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteTrashedMeasurementValidateBeforeCall(measurementUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for listProjectTrashedMeasurements + * @param projectUuid プロジェクトのUUID (required) + * @param limit 1回のリクエストで取得する件数。`0` を指定した場合は、デフォルト値の50件となります。 (optional) + * @param page 取得するページの番号 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listProjectTrashedMeasurementsCall(String projectUuid, Integer limit, Integer page, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/trashed_measurements" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listProjectTrashedMeasurementsValidateBeforeCall(String projectUuid, Integer limit, Integer page, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling listProjectTrashedMeasurements(Async)"); + } + + return listProjectTrashedMeasurementsCall(projectUuid, limit, page, _callback); + + } + + /** + * List Project Trashed Measurements + * ゴミ箱に入っている計測のリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param limit 1回のリクエストで取得する件数。`0` を指定した場合は、デフォルト値の50件となります。 (optional) + * @param page 取得するページの番号 (optional) + * @return TrashedMeasurements + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public TrashedMeasurements listProjectTrashedMeasurements(String projectUuid, Integer limit, Integer page) throws ApiException { + ApiResponse localVarResp = listProjectTrashedMeasurementsWithHttpInfo(projectUuid, limit, page); + return localVarResp.getData(); + } + + /** + * List Project Trashed Measurements + * ゴミ箱に入っている計測のリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param limit 1回のリクエストで取得する件数。`0` を指定した場合は、デフォルト値の50件となります。 (optional) + * @param page 取得するページの番号 (optional) + * @return ApiResponse<TrashedMeasurements> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse listProjectTrashedMeasurementsWithHttpInfo(String projectUuid, Integer limit, Integer page) throws ApiException { + okhttp3.Call localVarCall = listProjectTrashedMeasurementsValidateBeforeCall(projectUuid, limit, page, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Project Trashed Measurements (asynchronously) + * ゴミ箱に入っている計測のリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param limit 1回のリクエストで取得する件数。`0` を指定した場合は、デフォルト値の50件となります。 (optional) + * @param page 取得するページの番号 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call listProjectTrashedMeasurementsAsync(String projectUuid, Integer limit, Integer page, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listProjectTrashedMeasurementsValidateBeforeCall(projectUuid, limit, page, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listTrashedMeasurements + * @param limit 1回のリクエストで取得する件数。`0` を指定した場合は、デフォルト値の50件となります。 (optional) + * @param page 取得するページの番号 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call listTrashedMeasurementsCall(Integer limit, Integer page, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/trashed_measurements"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call listTrashedMeasurementsValidateBeforeCall(Integer limit, Integer page, final ApiCallback _callback) throws ApiException { + return listTrashedMeasurementsCall(limit, page, _callback); + + } + + /** + * List Trashed Measurements + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/trashed_measurements` を使用してください) ゴミ箱に入っている計測のリストを取得します。 + * @param limit 1回のリクエストで取得する件数。`0` を指定した場合は、デフォルト値の50件となります。 (optional) + * @param page 取得するページの番号 (optional) + * @return TrashedMeasurements + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public TrashedMeasurements listTrashedMeasurements(Integer limit, Integer page) throws ApiException { + ApiResponse localVarResp = listTrashedMeasurementsWithHttpInfo(limit, page); + return localVarResp.getData(); + } + + /** + * List Trashed Measurements + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/trashed_measurements` を使用してください) ゴミ箱に入っている計測のリストを取得します。 + * @param limit 1回のリクエストで取得する件数。`0` を指定した場合は、デフォルト値の50件となります。 (optional) + * @param page 取得するページの番号 (optional) + * @return ApiResponse<TrashedMeasurements> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse listTrashedMeasurementsWithHttpInfo(Integer limit, Integer page) throws ApiException { + okhttp3.Call localVarCall = listTrashedMeasurementsValidateBeforeCall(limit, page, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Trashed Measurements (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/trashed_measurements` を使用してください) ゴミ箱に入っている計測のリストを取得します。 + * @param limit 1回のリクエストで取得する件数。`0` を指定した場合は、デフォルト値の50件となります。 (optional) + * @param page 取得するページの番号 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call listTrashedMeasurementsAsync(Integer limit, Integer page, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listTrashedMeasurementsValidateBeforeCall(limit, page, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for restoreProjectTrashedMeasurement + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call restoreProjectTrashedMeasurementCall(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/trashed_measurements/{measurement_uuid}/restore" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call restoreProjectTrashedMeasurementValidateBeforeCall(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling restoreProjectTrashedMeasurement(Async)"); + } + + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling restoreProjectTrashedMeasurement(Async)"); + } + + return restoreProjectTrashedMeasurementCall(projectUuid, measurementUuid, _callback); + + } + + /** + * Restore Project Measurement + * ゴミ箱に入っている計測を復元します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void restoreProjectTrashedMeasurement(String projectUuid, String measurementUuid) throws ApiException { + restoreProjectTrashedMeasurementWithHttpInfo(projectUuid, measurementUuid); + } + + /** + * Restore Project Measurement + * ゴミ箱に入っている計測を復元します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse restoreProjectTrashedMeasurementWithHttpInfo(String projectUuid, String measurementUuid) throws ApiException { + okhttp3.Call localVarCall = restoreProjectTrashedMeasurementValidateBeforeCall(projectUuid, measurementUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Restore Project Measurement (asynchronously) + * ゴミ箱に入っている計測を復元します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call restoreProjectTrashedMeasurementAsync(String projectUuid, String measurementUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = restoreProjectTrashedMeasurementValidateBeforeCall(projectUuid, measurementUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for restoreTrashedMeasurement + * @param measurementUuid 計測のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call restoreTrashedMeasurementCall(String measurementUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/trashed_measurements/{measurement_uuid}/restore" + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call restoreTrashedMeasurementValidateBeforeCall(String measurementUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling restoreTrashedMeasurement(Async)"); + } + + return restoreTrashedMeasurementCall(measurementUuid, _callback); + + } + + /** + * Restore Measurement + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/trashed_measurements/{measurement_uuid}/restore` を使用してください) ゴミ箱に入っている計測を復元します。 + * @param measurementUuid 計測のUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public void restoreTrashedMeasurement(String measurementUuid) throws ApiException { + restoreTrashedMeasurementWithHttpInfo(measurementUuid); + } + + /** + * Restore Measurement + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/trashed_measurements/{measurement_uuid}/restore` を使用してください) ゴミ箱に入っている計測を復元します。 + * @param measurementUuid 計測のUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public ApiResponse restoreTrashedMeasurementWithHttpInfo(String measurementUuid) throws ApiException { + okhttp3.Call localVarCall = restoreTrashedMeasurementValidateBeforeCall(measurementUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Restore Measurement (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/trashed_measurements/{measurement_uuid}/restore` を使用してください) ゴミ箱に入っている計測を復元します。 + * @param measurementUuid 計測のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call restoreTrashedMeasurementAsync(String measurementUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = restoreTrashedMeasurementValidateBeforeCall(measurementUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } +} diff --git a/intdash/src/main/java/com/aptpod/intdash/MeasUploadingMeasurementsApi.java b/intdash/src/main/java/com/aptpod/intdash/MeasUploadingMeasurementsApi.java new file mode 100644 index 0000000..e1508a9 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/intdash/MeasUploadingMeasurementsApi.java @@ -0,0 +1,1109 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.intdash; + +import com.aptpod.ApiCallback; +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.ApiResponse; +import com.aptpod.Configuration; +import com.aptpod.Pair; +import com.aptpod.ProgressRequestBody; +import com.aptpod.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import java.util.Date; +import java.io.File; +import org.openapitools.client.model.MeasurementUploadPostResponse; +import org.openapitools.client.model.MeasurementUploadStatusesGetResponse; +import java.util.UUID; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class MeasUploadingMeasurementsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public MeasUploadingMeasurementsApi() { + this(Configuration.getDefaultApiClient()); + } + + public MeasUploadingMeasurementsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for listMeasurementStatuses + * @param limit 1回のリクエストで取得する件数 (optional) + * @param sort 並べ替えに使用するキー (optional, default to created_at) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call listMeasurementStatusesCall(Integer limit, String sort, Integer page, String order, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements/upload"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (order != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("order", order)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call listMeasurementStatusesValidateBeforeCall(Integer limit, String sort, Integer page, String order, final ApiCallback _callback) throws ApiException { + return listMeasurementStatusesCall(limit, sort, page, order, _callback); + + } + + /** + * List Uploading Statuses of Measurements + * ( **Deprecated** このエンドポイントではなく、`GET /measurements/jobs` を使用してください。) 計測のアップロードのリストを取得します。 + * @param limit 1回のリクエストで取得する件数 (optional) + * @param sort 並べ替えに使用するキー (optional, default to created_at) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @return MeasurementUploadStatusesGetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public MeasurementUploadStatusesGetResponse listMeasurementStatuses(Integer limit, String sort, Integer page, String order) throws ApiException { + ApiResponse localVarResp = listMeasurementStatusesWithHttpInfo(limit, sort, page, order); + return localVarResp.getData(); + } + + /** + * List Uploading Statuses of Measurements + * ( **Deprecated** このエンドポイントではなく、`GET /measurements/jobs` を使用してください。) 計測のアップロードのリストを取得します。 + * @param limit 1回のリクエストで取得する件数 (optional) + * @param sort 並べ替えに使用するキー (optional, default to created_at) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @return ApiResponse<MeasurementUploadStatusesGetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse listMeasurementStatusesWithHttpInfo(Integer limit, String sort, Integer page, String order) throws ApiException { + okhttp3.Call localVarCall = listMeasurementStatusesValidateBeforeCall(limit, sort, page, order, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Uploading Statuses of Measurements (asynchronously) + * ( **Deprecated** このエンドポイントではなく、`GET /measurements/jobs` を使用してください。) 計測のアップロードのリストを取得します。 + * @param limit 1回のリクエストで取得する件数 (optional) + * @param sort 並べ替えに使用するキー (optional, default to created_at) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call listMeasurementStatusesAsync(Integer limit, String sort, Integer page, String order, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listMeasurementStatusesValidateBeforeCall(limit, sort, page, order, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listProjectMeasurementStatuses + * @param projectUuid プロジェクトのUUID (required) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param sort 並べ替えに使用するキー (optional, default to created_at) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call listProjectMeasurementStatusesCall(String projectUuid, Integer limit, String sort, Integer page, String order, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/upload" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (order != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("order", order)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call listProjectMeasurementStatusesValidateBeforeCall(String projectUuid, Integer limit, String sort, Integer page, String order, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling listProjectMeasurementStatuses(Async)"); + } + + return listProjectMeasurementStatusesCall(projectUuid, limit, sort, page, order, _callback); + + } + + /** + * List Project Uploading Statuses of Measurements + * ( **Deprecated** このエンドポイントではなく、`GET /measurements/jobs` を使用してください。) 計測のアップロードのリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param sort 並べ替えに使用するキー (optional, default to created_at) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @return MeasurementUploadStatusesGetResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public MeasurementUploadStatusesGetResponse listProjectMeasurementStatuses(String projectUuid, Integer limit, String sort, Integer page, String order) throws ApiException { + ApiResponse localVarResp = listProjectMeasurementStatusesWithHttpInfo(projectUuid, limit, sort, page, order); + return localVarResp.getData(); + } + + /** + * List Project Uploading Statuses of Measurements + * ( **Deprecated** このエンドポイントではなく、`GET /measurements/jobs` を使用してください。) 計測のアップロードのリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param sort 並べ替えに使用するキー (optional, default to created_at) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @return ApiResponse<MeasurementUploadStatusesGetResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse listProjectMeasurementStatusesWithHttpInfo(String projectUuid, Integer limit, String sort, Integer page, String order) throws ApiException { + okhttp3.Call localVarCall = listProjectMeasurementStatusesValidateBeforeCall(projectUuid, limit, sort, page, order, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Project Uploading Statuses of Measurements (asynchronously) + * ( **Deprecated** このエンドポイントではなく、`GET /measurements/jobs` を使用してください。) 計測のアップロードのリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param sort 並べ替えに使用するキー (optional, default to created_at) + * @param page 取得するページの番号 (optional) + * @param order 並べ替えの順序 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call listProjectMeasurementStatusesAsync(String projectUuid, Integer limit, String sort, Integer page, String order, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listProjectMeasurementStatusesValidateBeforeCall(projectUuid, limit, sort, page, order, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for uploadMeasurement + * @param edgeUuid エッジのUUID (required) + * @param dataFile アップロードするファイル (required) + * @param baseTime 計測の基準時刻。MP4ファイルをアップロードする場合は必須です。 (optional) + * @param baseTimeType 基準時刻のタイプ (optional, default to edge_rtc) + * @param channel 計測のチャンネル(十進表記の文字列) (optional) + * @param measEnd `true` にすると、計測は終了したものとして扱われます。 (optional) + * @param labelDataType 列名とデータタイプの対応。 データタイプは、 `int` 、` string` 、 `float` のいずれかを指定してください。 例: ``` { \\\"column_1\\\": \\\"float\\\", \\\"column_2\\\": \\\"string\\\", \\\"column_3\\\": \\\"int\\\" } ``` (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
202 OK -
+ */ + public okhttp3.Call uploadMeasurementCall(UUID edgeUuid, File dataFile, Date baseTime, String baseTimeType, Integer channel, Boolean measEnd, String labelDataType, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements/upload"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (edgeUuid != null) { + localVarFormParams.put("edge_uuid", edgeUuid); + } + + if (baseTime != null) { + localVarFormParams.put("base_time", baseTime); + } + + if (baseTimeType != null) { + localVarFormParams.put("base_time_type", baseTimeType); + } + + if (channel != null) { + localVarFormParams.put("channel", channel); + } + + if (measEnd != null) { + localVarFormParams.put("meas_end", measEnd); + } + + if (labelDataType != null) { + localVarFormParams.put("label_data_type", labelDataType); + } + + if (dataFile != null) { + localVarFormParams.put("data_file", dataFile); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "multipart/form-data" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call uploadMeasurementValidateBeforeCall(UUID edgeUuid, File dataFile, Date baseTime, String baseTimeType, Integer channel, Boolean measEnd, String labelDataType, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'edgeUuid' is set + if (edgeUuid == null) { + throw new ApiException("Missing the required parameter 'edgeUuid' when calling uploadMeasurement(Async)"); + } + + // verify the required parameter 'dataFile' is set + if (dataFile == null) { + throw new ApiException("Missing the required parameter 'dataFile' when calling uploadMeasurement(Async)"); + } + + return uploadMeasurementCall(edgeUuid, dataFile, baseTime, baseTimeType, channel, measEnd, labelDataType, _callback); + + } + + /** + * Create Measurement from CSV File + * CSVまたはMP4(**MP4はexperimental**)ファイルをアップロードし、計測を作成します。 計測には、指定されたエッジUUIDが関連付けられます。 `base_time` (基準時刻)は、RFC3339による表現か、UNIX時刻(マイクロ秒)を指定してください。 基準時刻が指定されていない場合は、CSVファイルのデータ行の1行目の時刻が基準時刻として使用されます。 CSVファイルのデータは、時刻順にソートされている必要があります。 `meas_end` パラメーターの設定は任意です。指定しない場合、 `true` となります。 CSVファイルの例: ``` time, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10 1539263579, val11, 12, 13.12345, val14, 15, 16.12345, val17, 18, 19.12345, val110 1539263580, val21, 22, 23.12345, val24, 25, 26.12345, val27, 28, 29.12345, val210 1539263581, val31, 32, 33.12345, val34, 35, 36.12345, val37, 38, 39.12345, val310 1539263582, val41, 42, 43.12345, val44, 45, 46.12345, val47, 48, 49.12345, val410 ``` 空白行がある場合、行番号のカウントは加算されますが、その行は処理されません。 例えば、以下のような場合の空白行は無視されます。 ``` time, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10 1539263579, val11, 12, 13.12345, val14, 15, 16.12345, val17, 18, 19.12345, val110 1539263581, val31, 32, 33.12345, val34, 35, 36.12345, val37, 38, 39.12345, val310 1539263582, val41, 42, 43.12345, val44, 45, 46.12345, val47, 48, 49.12345, val410 ``` [Go parser library](https://golang.org/pkg/encoding/csv/) も参照してください。 時刻の列には、RFC3339による表現か、UNIX時刻(秒)を使用することができます。 ## エスケープ 値の内部で `,` を使用したい場合は、その値全体を `\"` で囲んでください。 また、値の内部で `\"` を使用したい場合は、値全体を `\"` で囲み、さらに、 `\"` を `\"\"` のように表記してください。 値を `\"` で囲まないと、CSVファイルのパースの際にエラーが発生します。 エスケープの例: ``` time,col1 1539263579,\"ab,cde\" .....OK (parsed as 'ab,cde') 1539263579,\"ab\"\"cde\" .....OK (parsed as 'ab\"cde') 1539263579, abcde .....OK (parsed as ' abcde') 1539263579,\" abcde\" .....OK (parsed as ' abcde') 1539263579,ab\"cde .....NG 1539263579, \"abcde\" .....NG 1539263579,ab,cde .....NG(wrong number of fields) ``` + * @param edgeUuid エッジのUUID (required) + * @param dataFile アップロードするファイル (required) + * @param baseTime 計測の基準時刻。MP4ファイルをアップロードする場合は必須です。 (optional) + * @param baseTimeType 基準時刻のタイプ (optional, default to edge_rtc) + * @param channel 計測のチャンネル(十進表記の文字列) (optional) + * @param measEnd `true` にすると、計測は終了したものとして扱われます。 (optional) + * @param labelDataType 列名とデータタイプの対応。 データタイプは、 `int` 、` string` 、 `float` のいずれかを指定してください。 例: ``` { \\\"column_1\\\": \\\"float\\\", \\\"column_2\\\": \\\"string\\\", \\\"column_3\\\": \\\"int\\\" } ``` (optional) + * @return MeasurementUploadPostResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
202 OK -
+ */ + public MeasurementUploadPostResponse uploadMeasurement(UUID edgeUuid, File dataFile, Date baseTime, String baseTimeType, Integer channel, Boolean measEnd, String labelDataType) throws ApiException { + ApiResponse localVarResp = uploadMeasurementWithHttpInfo(edgeUuid, dataFile, baseTime, baseTimeType, channel, measEnd, labelDataType); + return localVarResp.getData(); + } + + /** + * Create Measurement from CSV File + * CSVまたはMP4(**MP4はexperimental**)ファイルをアップロードし、計測を作成します。 計測には、指定されたエッジUUIDが関連付けられます。 `base_time` (基準時刻)は、RFC3339による表現か、UNIX時刻(マイクロ秒)を指定してください。 基準時刻が指定されていない場合は、CSVファイルのデータ行の1行目の時刻が基準時刻として使用されます。 CSVファイルのデータは、時刻順にソートされている必要があります。 `meas_end` パラメーターの設定は任意です。指定しない場合、 `true` となります。 CSVファイルの例: ``` time, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10 1539263579, val11, 12, 13.12345, val14, 15, 16.12345, val17, 18, 19.12345, val110 1539263580, val21, 22, 23.12345, val24, 25, 26.12345, val27, 28, 29.12345, val210 1539263581, val31, 32, 33.12345, val34, 35, 36.12345, val37, 38, 39.12345, val310 1539263582, val41, 42, 43.12345, val44, 45, 46.12345, val47, 48, 49.12345, val410 ``` 空白行がある場合、行番号のカウントは加算されますが、その行は処理されません。 例えば、以下のような場合の空白行は無視されます。 ``` time, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10 1539263579, val11, 12, 13.12345, val14, 15, 16.12345, val17, 18, 19.12345, val110 1539263581, val31, 32, 33.12345, val34, 35, 36.12345, val37, 38, 39.12345, val310 1539263582, val41, 42, 43.12345, val44, 45, 46.12345, val47, 48, 49.12345, val410 ``` [Go parser library](https://golang.org/pkg/encoding/csv/) も参照してください。 時刻の列には、RFC3339による表現か、UNIX時刻(秒)を使用することができます。 ## エスケープ 値の内部で `,` を使用したい場合は、その値全体を `\"` で囲んでください。 また、値の内部で `\"` を使用したい場合は、値全体を `\"` で囲み、さらに、 `\"` を `\"\"` のように表記してください。 値を `\"` で囲まないと、CSVファイルのパースの際にエラーが発生します。 エスケープの例: ``` time,col1 1539263579,\"ab,cde\" .....OK (parsed as 'ab,cde') 1539263579,\"ab\"\"cde\" .....OK (parsed as 'ab\"cde') 1539263579, abcde .....OK (parsed as ' abcde') 1539263579,\" abcde\" .....OK (parsed as ' abcde') 1539263579,ab\"cde .....NG 1539263579, \"abcde\" .....NG 1539263579,ab,cde .....NG(wrong number of fields) ``` + * @param edgeUuid エッジのUUID (required) + * @param dataFile アップロードするファイル (required) + * @param baseTime 計測の基準時刻。MP4ファイルをアップロードする場合は必須です。 (optional) + * @param baseTimeType 基準時刻のタイプ (optional, default to edge_rtc) + * @param channel 計測のチャンネル(十進表記の文字列) (optional) + * @param measEnd `true` にすると、計測は終了したものとして扱われます。 (optional) + * @param labelDataType 列名とデータタイプの対応。 データタイプは、 `int` 、` string` 、 `float` のいずれかを指定してください。 例: ``` { \\\"column_1\\\": \\\"float\\\", \\\"column_2\\\": \\\"string\\\", \\\"column_3\\\": \\\"int\\\" } ``` (optional) + * @return ApiResponse<MeasurementUploadPostResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
202 OK -
+ */ + public ApiResponse uploadMeasurementWithHttpInfo(UUID edgeUuid, File dataFile, Date baseTime, String baseTimeType, Integer channel, Boolean measEnd, String labelDataType) throws ApiException { + okhttp3.Call localVarCall = uploadMeasurementValidateBeforeCall(edgeUuid, dataFile, baseTime, baseTimeType, channel, measEnd, labelDataType, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Measurement from CSV File (asynchronously) + * CSVまたはMP4(**MP4はexperimental**)ファイルをアップロードし、計測を作成します。 計測には、指定されたエッジUUIDが関連付けられます。 `base_time` (基準時刻)は、RFC3339による表現か、UNIX時刻(マイクロ秒)を指定してください。 基準時刻が指定されていない場合は、CSVファイルのデータ行の1行目の時刻が基準時刻として使用されます。 CSVファイルのデータは、時刻順にソートされている必要があります。 `meas_end` パラメーターの設定は任意です。指定しない場合、 `true` となります。 CSVファイルの例: ``` time, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10 1539263579, val11, 12, 13.12345, val14, 15, 16.12345, val17, 18, 19.12345, val110 1539263580, val21, 22, 23.12345, val24, 25, 26.12345, val27, 28, 29.12345, val210 1539263581, val31, 32, 33.12345, val34, 35, 36.12345, val37, 38, 39.12345, val310 1539263582, val41, 42, 43.12345, val44, 45, 46.12345, val47, 48, 49.12345, val410 ``` 空白行がある場合、行番号のカウントは加算されますが、その行は処理されません。 例えば、以下のような場合の空白行は無視されます。 ``` time, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10 1539263579, val11, 12, 13.12345, val14, 15, 16.12345, val17, 18, 19.12345, val110 1539263581, val31, 32, 33.12345, val34, 35, 36.12345, val37, 38, 39.12345, val310 1539263582, val41, 42, 43.12345, val44, 45, 46.12345, val47, 48, 49.12345, val410 ``` [Go parser library](https://golang.org/pkg/encoding/csv/) も参照してください。 時刻の列には、RFC3339による表現か、UNIX時刻(秒)を使用することができます。 ## エスケープ 値の内部で `,` を使用したい場合は、その値全体を `\"` で囲んでください。 また、値の内部で `\"` を使用したい場合は、値全体を `\"` で囲み、さらに、 `\"` を `\"\"` のように表記してください。 値を `\"` で囲まないと、CSVファイルのパースの際にエラーが発生します。 エスケープの例: ``` time,col1 1539263579,\"ab,cde\" .....OK (parsed as 'ab,cde') 1539263579,\"ab\"\"cde\" .....OK (parsed as 'ab\"cde') 1539263579, abcde .....OK (parsed as ' abcde') 1539263579,\" abcde\" .....OK (parsed as ' abcde') 1539263579,ab\"cde .....NG 1539263579, \"abcde\" .....NG 1539263579,ab,cde .....NG(wrong number of fields) ``` + * @param edgeUuid エッジのUUID (required) + * @param dataFile アップロードするファイル (required) + * @param baseTime 計測の基準時刻。MP4ファイルをアップロードする場合は必須です。 (optional) + * @param baseTimeType 基準時刻のタイプ (optional, default to edge_rtc) + * @param channel 計測のチャンネル(十進表記の文字列) (optional) + * @param measEnd `true` にすると、計測は終了したものとして扱われます。 (optional) + * @param labelDataType 列名とデータタイプの対応。 データタイプは、 `int` 、` string` 、 `float` のいずれかを指定してください。 例: ``` { \\\"column_1\\\": \\\"float\\\", \\\"column_2\\\": \\\"string\\\", \\\"column_3\\\": \\\"int\\\" } ``` (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
202 OK -
+ */ + public okhttp3.Call uploadMeasurementAsync(UUID edgeUuid, File dataFile, Date baseTime, String baseTimeType, Integer channel, Boolean measEnd, String labelDataType, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = uploadMeasurementValidateBeforeCall(edgeUuid, dataFile, baseTime, baseTimeType, channel, measEnd, labelDataType, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for uploadMeasurementIntoMeasurement + * @param measurementUuid 計測のUUID (required) + * @param dataFile アップロードするファイル (required) + * @param channel 作成された計測のチャンネル (optional) + * @param measEnd * `true` : 終了した計測 * `false` : 終了していない計測 (optional) + * @param labelDataType 列名とデータタイプの対応。 データタイプは、 `int` 、` string` 、 `float` のいずれかを指定してください。 例: ``` { \\\"column_1\\\": \\\"float\\\", \\\"column_2\\\": \\\"string\\\", \\\"column_3\\\": \\\"int\\\" } ``` (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
202 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call uploadMeasurementIntoMeasurementCall(String measurementUuid, File dataFile, Integer channel, Boolean measEnd, String labelDataType, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/measurements/{measurement_uuid}/upload" + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (channel != null) { + localVarFormParams.put("channel", channel); + } + + if (measEnd != null) { + localVarFormParams.put("meas_end", measEnd); + } + + if (labelDataType != null) { + localVarFormParams.put("label_data_type", labelDataType); + } + + if (dataFile != null) { + localVarFormParams.put("data_file", dataFile); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "multipart/form-data" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call uploadMeasurementIntoMeasurementValidateBeforeCall(String measurementUuid, File dataFile, Integer channel, Boolean measEnd, String labelDataType, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling uploadMeasurementIntoMeasurement(Async)"); + } + + // verify the required parameter 'dataFile' is set + if (dataFile == null) { + throw new ApiException("Missing the required parameter 'dataFile' when calling uploadMeasurementIntoMeasurement(Async)"); + } + + return uploadMeasurementIntoMeasurementCall(measurementUuid, dataFile, channel, measEnd, labelDataType, _callback); + + } + + /** + * Store Data Points by CSV File + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/upload` を使用してください) CSVファイルをアップロードし、計測にデータを追加します。 + * @param measurementUuid 計測のUUID (required) + * @param dataFile アップロードするファイル (required) + * @param channel 作成された計測のチャンネル (optional) + * @param measEnd * `true` : 終了した計測 * `false` : 終了していない計測 (optional) + * @param labelDataType 列名とデータタイプの対応。 データタイプは、 `int` 、` string` 、 `float` のいずれかを指定してください。 例: ``` { \\\"column_1\\\": \\\"float\\\", \\\"column_2\\\": \\\"string\\\", \\\"column_3\\\": \\\"int\\\" } ``` (optional) + * @return MeasurementUploadPostResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
202 OK -
+ * @deprecated + */ + @Deprecated + public MeasurementUploadPostResponse uploadMeasurementIntoMeasurement(String measurementUuid, File dataFile, Integer channel, Boolean measEnd, String labelDataType) throws ApiException { + ApiResponse localVarResp = uploadMeasurementIntoMeasurementWithHttpInfo(measurementUuid, dataFile, channel, measEnd, labelDataType); + return localVarResp.getData(); + } + + /** + * Store Data Points by CSV File + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/upload` を使用してください) CSVファイルをアップロードし、計測にデータを追加します。 + * @param measurementUuid 計測のUUID (required) + * @param dataFile アップロードするファイル (required) + * @param channel 作成された計測のチャンネル (optional) + * @param measEnd * `true` : 終了した計測 * `false` : 終了していない計測 (optional) + * @param labelDataType 列名とデータタイプの対応。 データタイプは、 `int` 、` string` 、 `float` のいずれかを指定してください。 例: ``` { \\\"column_1\\\": \\\"float\\\", \\\"column_2\\\": \\\"string\\\", \\\"column_3\\\": \\\"int\\\" } ``` (optional) + * @return ApiResponse<MeasurementUploadPostResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
202 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse uploadMeasurementIntoMeasurementWithHttpInfo(String measurementUuid, File dataFile, Integer channel, Boolean measEnd, String labelDataType) throws ApiException { + okhttp3.Call localVarCall = uploadMeasurementIntoMeasurementValidateBeforeCall(measurementUuid, dataFile, channel, measEnd, labelDataType, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Store Data Points by CSV File (asynchronously) + * (Deprecated。このエンドポイントでなく `/projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/upload` を使用してください) CSVファイルをアップロードし、計測にデータを追加します。 + * @param measurementUuid 計測のUUID (required) + * @param dataFile アップロードするファイル (required) + * @param channel 作成された計測のチャンネル (optional) + * @param measEnd * `true` : 終了した計測 * `false` : 終了していない計測 (optional) + * @param labelDataType 列名とデータタイプの対応。 データタイプは、 `int` 、` string` 、 `float` のいずれかを指定してください。 例: ``` { \\\"column_1\\\": \\\"float\\\", \\\"column_2\\\": \\\"string\\\", \\\"column_3\\\": \\\"int\\\" } ``` (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
202 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call uploadMeasurementIntoMeasurementAsync(String measurementUuid, File dataFile, Integer channel, Boolean measEnd, String labelDataType, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = uploadMeasurementIntoMeasurementValidateBeforeCall(measurementUuid, dataFile, channel, measEnd, labelDataType, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for uploadProjectMeasurement + * @param projectUuid プロジェクトのUUID (required) + * @param edgeUuid エッジのUUID (required) + * @param dataFile アップロードするファイル (required) + * @param baseTime 計測の基準時刻。MP4ファイルをアップロードする場合は必須です。 (optional) + * @param baseTimeType 基準時刻のタイプ (optional, default to edge_rtc) + * @param channel 計測のチャンネル(十進表記の文字列) (optional) + * @param measEnd `true` にすると、計測は終了したものとして扱われます。 (optional) + * @param labelDataType 列名とデータタイプの対応。 データタイプは、 `int` 、` string` 、 `float` のいずれかを指定してください。 例: ``` { \\\"column_1\\\": \\\"float\\\", \\\"column_2\\\": \\\"string\\\", \\\"column_3\\\": \\\"int\\\" } ``` (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
202 OK -
+ */ + public okhttp3.Call uploadProjectMeasurementCall(String projectUuid, UUID edgeUuid, File dataFile, Date baseTime, String baseTimeType, Integer channel, Boolean measEnd, String labelDataType, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/upload" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (edgeUuid != null) { + localVarFormParams.put("edge_uuid", edgeUuid); + } + + if (baseTime != null) { + localVarFormParams.put("base_time", baseTime); + } + + if (baseTimeType != null) { + localVarFormParams.put("base_time_type", baseTimeType); + } + + if (channel != null) { + localVarFormParams.put("channel", channel); + } + + if (measEnd != null) { + localVarFormParams.put("meas_end", measEnd); + } + + if (labelDataType != null) { + localVarFormParams.put("label_data_type", labelDataType); + } + + if (dataFile != null) { + localVarFormParams.put("data_file", dataFile); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "multipart/form-data" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call uploadProjectMeasurementValidateBeforeCall(String projectUuid, UUID edgeUuid, File dataFile, Date baseTime, String baseTimeType, Integer channel, Boolean measEnd, String labelDataType, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling uploadProjectMeasurement(Async)"); + } + + // verify the required parameter 'edgeUuid' is set + if (edgeUuid == null) { + throw new ApiException("Missing the required parameter 'edgeUuid' when calling uploadProjectMeasurement(Async)"); + } + + // verify the required parameter 'dataFile' is set + if (dataFile == null) { + throw new ApiException("Missing the required parameter 'dataFile' when calling uploadProjectMeasurement(Async)"); + } + + return uploadProjectMeasurementCall(projectUuid, edgeUuid, dataFile, baseTime, baseTimeType, channel, measEnd, labelDataType, _callback); + + } + + /** + * Create Project Measurement from CSV File + * CSVまたはMP4(**MP4はexperimental**)ファイルをアップロードし、計測を作成します。 計測には、指定されたエッジUUIDが関連付けられます。 `base_time` (基準時刻)は、RFC3339による表現か、UNIX時刻(マイクロ秒)を指定してください。 基準時刻が指定されていない場合は、CSVファイルのデータ行の1行目の時刻が基準時刻として使用されます。 CSVファイルのデータは、時刻順にソートされている必要があります。 `meas_end` パラメーターの設定は任意です。指定しない場合、 `true` となります。 CSVファイルの例: ``` time, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10 1539263579, val11, 12, 13.12345, val14, 15, 16.12345, val17, 18, 19.12345, val110 1539263580, val21, 22, 23.12345, val24, 25, 26.12345, val27, 28, 29.12345, val210 1539263581, val31, 32, 33.12345, val34, 35, 36.12345, val37, 38, 39.12345, val310 1539263582, val41, 42, 43.12345, val44, 45, 46.12345, val47, 48, 49.12345, val410 ``` 空白行がある場合、行番号のカウントは加算されますが、その行は処理されません。 例えば、以下のような場合の空白行は無視されます。 ``` time, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10 1539263579, val11, 12, 13.12345, val14, 15, 16.12345, val17, 18, 19.12345, val110 1539263581, val31, 32, 33.12345, val34, 35, 36.12345, val37, 38, 39.12345, val310 1539263582, val41, 42, 43.12345, val44, 45, 46.12345, val47, 48, 49.12345, val410 ``` [Go parser library](https://golang.org/pkg/encoding/csv/) も参照してください。 時刻の列には、RFC3339による表現か、UNIX時刻(秒)を使用することができます。 ## エスケープ 値の内部で `,` を使用したい場合は、その値全体を `\"` で囲んでください。 また、値の内部で `\"` を使用したい場合は、値全体を `\"` で囲み、さらに、 `\"` を `\"\"` のように表記してください。 値を `\"` で囲まないと、CSVファイルのパースの際にエラーが発生します。 エスケープの例: ``` time,col1 1539263579,\"ab,cde\" .....OK (parsed as 'ab,cde') 1539263579,\"ab\"\"cde\" .....OK (parsed as 'ab\"cde') 1539263579, abcde .....OK (parsed as ' abcde') 1539263579,\" abcde\" .....OK (parsed as ' abcde') 1539263579,ab\"cde .....NG 1539263579, \"abcde\" .....NG 1539263579,ab,cde .....NG(wrong number of fields) ``` + * @param projectUuid プロジェクトのUUID (required) + * @param edgeUuid エッジのUUID (required) + * @param dataFile アップロードするファイル (required) + * @param baseTime 計測の基準時刻。MP4ファイルをアップロードする場合は必須です。 (optional) + * @param baseTimeType 基準時刻のタイプ (optional, default to edge_rtc) + * @param channel 計測のチャンネル(十進表記の文字列) (optional) + * @param measEnd `true` にすると、計測は終了したものとして扱われます。 (optional) + * @param labelDataType 列名とデータタイプの対応。 データタイプは、 `int` 、` string` 、 `float` のいずれかを指定してください。 例: ``` { \\\"column_1\\\": \\\"float\\\", \\\"column_2\\\": \\\"string\\\", \\\"column_3\\\": \\\"int\\\" } ``` (optional) + * @return MeasurementUploadPostResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
202 OK -
+ */ + public MeasurementUploadPostResponse uploadProjectMeasurement(String projectUuid, UUID edgeUuid, File dataFile, Date baseTime, String baseTimeType, Integer channel, Boolean measEnd, String labelDataType) throws ApiException { + ApiResponse localVarResp = uploadProjectMeasurementWithHttpInfo(projectUuid, edgeUuid, dataFile, baseTime, baseTimeType, channel, measEnd, labelDataType); + return localVarResp.getData(); + } + + /** + * Create Project Measurement from CSV File + * CSVまたはMP4(**MP4はexperimental**)ファイルをアップロードし、計測を作成します。 計測には、指定されたエッジUUIDが関連付けられます。 `base_time` (基準時刻)は、RFC3339による表現か、UNIX時刻(マイクロ秒)を指定してください。 基準時刻が指定されていない場合は、CSVファイルのデータ行の1行目の時刻が基準時刻として使用されます。 CSVファイルのデータは、時刻順にソートされている必要があります。 `meas_end` パラメーターの設定は任意です。指定しない場合、 `true` となります。 CSVファイルの例: ``` time, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10 1539263579, val11, 12, 13.12345, val14, 15, 16.12345, val17, 18, 19.12345, val110 1539263580, val21, 22, 23.12345, val24, 25, 26.12345, val27, 28, 29.12345, val210 1539263581, val31, 32, 33.12345, val34, 35, 36.12345, val37, 38, 39.12345, val310 1539263582, val41, 42, 43.12345, val44, 45, 46.12345, val47, 48, 49.12345, val410 ``` 空白行がある場合、行番号のカウントは加算されますが、その行は処理されません。 例えば、以下のような場合の空白行は無視されます。 ``` time, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10 1539263579, val11, 12, 13.12345, val14, 15, 16.12345, val17, 18, 19.12345, val110 1539263581, val31, 32, 33.12345, val34, 35, 36.12345, val37, 38, 39.12345, val310 1539263582, val41, 42, 43.12345, val44, 45, 46.12345, val47, 48, 49.12345, val410 ``` [Go parser library](https://golang.org/pkg/encoding/csv/) も参照してください。 時刻の列には、RFC3339による表現か、UNIX時刻(秒)を使用することができます。 ## エスケープ 値の内部で `,` を使用したい場合は、その値全体を `\"` で囲んでください。 また、値の内部で `\"` を使用したい場合は、値全体を `\"` で囲み、さらに、 `\"` を `\"\"` のように表記してください。 値を `\"` で囲まないと、CSVファイルのパースの際にエラーが発生します。 エスケープの例: ``` time,col1 1539263579,\"ab,cde\" .....OK (parsed as 'ab,cde') 1539263579,\"ab\"\"cde\" .....OK (parsed as 'ab\"cde') 1539263579, abcde .....OK (parsed as ' abcde') 1539263579,\" abcde\" .....OK (parsed as ' abcde') 1539263579,ab\"cde .....NG 1539263579, \"abcde\" .....NG 1539263579,ab,cde .....NG(wrong number of fields) ``` + * @param projectUuid プロジェクトのUUID (required) + * @param edgeUuid エッジのUUID (required) + * @param dataFile アップロードするファイル (required) + * @param baseTime 計測の基準時刻。MP4ファイルをアップロードする場合は必須です。 (optional) + * @param baseTimeType 基準時刻のタイプ (optional, default to edge_rtc) + * @param channel 計測のチャンネル(十進表記の文字列) (optional) + * @param measEnd `true` にすると、計測は終了したものとして扱われます。 (optional) + * @param labelDataType 列名とデータタイプの対応。 データタイプは、 `int` 、` string` 、 `float` のいずれかを指定してください。 例: ``` { \\\"column_1\\\": \\\"float\\\", \\\"column_2\\\": \\\"string\\\", \\\"column_3\\\": \\\"int\\\" } ``` (optional) + * @return ApiResponse<MeasurementUploadPostResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
202 OK -
+ */ + public ApiResponse uploadProjectMeasurementWithHttpInfo(String projectUuid, UUID edgeUuid, File dataFile, Date baseTime, String baseTimeType, Integer channel, Boolean measEnd, String labelDataType) throws ApiException { + okhttp3.Call localVarCall = uploadProjectMeasurementValidateBeforeCall(projectUuid, edgeUuid, dataFile, baseTime, baseTimeType, channel, measEnd, labelDataType, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Project Measurement from CSV File (asynchronously) + * CSVまたはMP4(**MP4はexperimental**)ファイルをアップロードし、計測を作成します。 計測には、指定されたエッジUUIDが関連付けられます。 `base_time` (基準時刻)は、RFC3339による表現か、UNIX時刻(マイクロ秒)を指定してください。 基準時刻が指定されていない場合は、CSVファイルのデータ行の1行目の時刻が基準時刻として使用されます。 CSVファイルのデータは、時刻順にソートされている必要があります。 `meas_end` パラメーターの設定は任意です。指定しない場合、 `true` となります。 CSVファイルの例: ``` time, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10 1539263579, val11, 12, 13.12345, val14, 15, 16.12345, val17, 18, 19.12345, val110 1539263580, val21, 22, 23.12345, val24, 25, 26.12345, val27, 28, 29.12345, val210 1539263581, val31, 32, 33.12345, val34, 35, 36.12345, val37, 38, 39.12345, val310 1539263582, val41, 42, 43.12345, val44, 45, 46.12345, val47, 48, 49.12345, val410 ``` 空白行がある場合、行番号のカウントは加算されますが、その行は処理されません。 例えば、以下のような場合の空白行は無視されます。 ``` time, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10 1539263579, val11, 12, 13.12345, val14, 15, 16.12345, val17, 18, 19.12345, val110 1539263581, val31, 32, 33.12345, val34, 35, 36.12345, val37, 38, 39.12345, val310 1539263582, val41, 42, 43.12345, val44, 45, 46.12345, val47, 48, 49.12345, val410 ``` [Go parser library](https://golang.org/pkg/encoding/csv/) も参照してください。 時刻の列には、RFC3339による表現か、UNIX時刻(秒)を使用することができます。 ## エスケープ 値の内部で `,` を使用したい場合は、その値全体を `\"` で囲んでください。 また、値の内部で `\"` を使用したい場合は、値全体を `\"` で囲み、さらに、 `\"` を `\"\"` のように表記してください。 値を `\"` で囲まないと、CSVファイルのパースの際にエラーが発生します。 エスケープの例: ``` time,col1 1539263579,\"ab,cde\" .....OK (parsed as 'ab,cde') 1539263579,\"ab\"\"cde\" .....OK (parsed as 'ab\"cde') 1539263579, abcde .....OK (parsed as ' abcde') 1539263579,\" abcde\" .....OK (parsed as ' abcde') 1539263579,ab\"cde .....NG 1539263579, \"abcde\" .....NG 1539263579,ab,cde .....NG(wrong number of fields) ``` + * @param projectUuid プロジェクトのUUID (required) + * @param edgeUuid エッジのUUID (required) + * @param dataFile アップロードするファイル (required) + * @param baseTime 計測の基準時刻。MP4ファイルをアップロードする場合は必須です。 (optional) + * @param baseTimeType 基準時刻のタイプ (optional, default to edge_rtc) + * @param channel 計測のチャンネル(十進表記の文字列) (optional) + * @param measEnd `true` にすると、計測は終了したものとして扱われます。 (optional) + * @param labelDataType 列名とデータタイプの対応。 データタイプは、 `int` 、` string` 、 `float` のいずれかを指定してください。 例: ``` { \\\"column_1\\\": \\\"float\\\", \\\"column_2\\\": \\\"string\\\", \\\"column_3\\\": \\\"int\\\" } ``` (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
202 OK -
+ */ + public okhttp3.Call uploadProjectMeasurementAsync(String projectUuid, UUID edgeUuid, File dataFile, Date baseTime, String baseTimeType, Integer channel, Boolean measEnd, String labelDataType, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = uploadProjectMeasurementValidateBeforeCall(projectUuid, edgeUuid, dataFile, baseTime, baseTimeType, channel, measEnd, labelDataType, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for uploadProjectMeasurementIntoMeasurement + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param dataFile アップロードするファイル (required) + * @param channel 作成された計測のチャンネル (optional) + * @param measEnd * `true` : 終了した計測 * `false` : 終了していない計測 (optional) + * @param labelDataType 列名とデータタイプの対応。 データタイプは、 `int` 、` string` 、 `float` のいずれかを指定してください。 例: ``` { \\\"column_1\\\": \\\"float\\\", \\\"column_2\\\": \\\"string\\\", \\\"column_3\\\": \\\"int\\\" } ``` (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
202 OK -
+ */ + public okhttp3.Call uploadProjectMeasurementIntoMeasurementCall(String projectUuid, String measurementUuid, File dataFile, Integer channel, Boolean measEnd, String labelDataType, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/projects/{project_uuid}/measurements/{measurement_uuid}/upload" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "measurement_uuid" + "}", localVarApiClient.escapeString(measurementUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (channel != null) { + localVarFormParams.put("channel", channel); + } + + if (measEnd != null) { + localVarFormParams.put("meas_end", measEnd); + } + + if (labelDataType != null) { + localVarFormParams.put("label_data_type", labelDataType); + } + + if (dataFile != null) { + localVarFormParams.put("data_file", dataFile); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "multipart/form-data" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call uploadProjectMeasurementIntoMeasurementValidateBeforeCall(String projectUuid, String measurementUuid, File dataFile, Integer channel, Boolean measEnd, String labelDataType, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling uploadProjectMeasurementIntoMeasurement(Async)"); + } + + // verify the required parameter 'measurementUuid' is set + if (measurementUuid == null) { + throw new ApiException("Missing the required parameter 'measurementUuid' when calling uploadProjectMeasurementIntoMeasurement(Async)"); + } + + // verify the required parameter 'dataFile' is set + if (dataFile == null) { + throw new ApiException("Missing the required parameter 'dataFile' when calling uploadProjectMeasurementIntoMeasurement(Async)"); + } + + return uploadProjectMeasurementIntoMeasurementCall(projectUuid, measurementUuid, dataFile, channel, measEnd, labelDataType, _callback); + + } + + /** + * Store Project Data Points by CSV File + * CSVファイルをアップロードし、計測にデータを追加します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param dataFile アップロードするファイル (required) + * @param channel 作成された計測のチャンネル (optional) + * @param measEnd * `true` : 終了した計測 * `false` : 終了していない計測 (optional) + * @param labelDataType 列名とデータタイプの対応。 データタイプは、 `int` 、` string` 、 `float` のいずれかを指定してください。 例: ``` { \\\"column_1\\\": \\\"float\\\", \\\"column_2\\\": \\\"string\\\", \\\"column_3\\\": \\\"int\\\" } ``` (optional) + * @return MeasurementUploadPostResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
202 OK -
+ */ + public MeasurementUploadPostResponse uploadProjectMeasurementIntoMeasurement(String projectUuid, String measurementUuid, File dataFile, Integer channel, Boolean measEnd, String labelDataType) throws ApiException { + ApiResponse localVarResp = uploadProjectMeasurementIntoMeasurementWithHttpInfo(projectUuid, measurementUuid, dataFile, channel, measEnd, labelDataType); + return localVarResp.getData(); + } + + /** + * Store Project Data Points by CSV File + * CSVファイルをアップロードし、計測にデータを追加します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param dataFile アップロードするファイル (required) + * @param channel 作成された計測のチャンネル (optional) + * @param measEnd * `true` : 終了した計測 * `false` : 終了していない計測 (optional) + * @param labelDataType 列名とデータタイプの対応。 データタイプは、 `int` 、` string` 、 `float` のいずれかを指定してください。 例: ``` { \\\"column_1\\\": \\\"float\\\", \\\"column_2\\\": \\\"string\\\", \\\"column_3\\\": \\\"int\\\" } ``` (optional) + * @return ApiResponse<MeasurementUploadPostResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
202 OK -
+ */ + public ApiResponse uploadProjectMeasurementIntoMeasurementWithHttpInfo(String projectUuid, String measurementUuid, File dataFile, Integer channel, Boolean measEnd, String labelDataType) throws ApiException { + okhttp3.Call localVarCall = uploadProjectMeasurementIntoMeasurementValidateBeforeCall(projectUuid, measurementUuid, dataFile, channel, measEnd, labelDataType, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Store Project Data Points by CSV File (asynchronously) + * CSVファイルをアップロードし、計測にデータを追加します。 + * @param projectUuid プロジェクトのUUID (required) + * @param measurementUuid 計測のUUID (required) + * @param dataFile アップロードするファイル (required) + * @param channel 作成された計測のチャンネル (optional) + * @param measEnd * `true` : 終了した計測 * `false` : 終了していない計測 (optional) + * @param labelDataType 列名とデータタイプの対応。 データタイプは、 `int` 、` string` 、 `float` のいずれかを指定してください。 例: ``` { \\\"column_1\\\": \\\"float\\\", \\\"column_2\\\": \\\"string\\\", \\\"column_3\\\": \\\"int\\\" } ``` (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
202 OK -
+ */ + public okhttp3.Call uploadProjectMeasurementIntoMeasurementAsync(String projectUuid, String measurementUuid, File dataFile, Integer channel, Boolean measEnd, String labelDataType, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = uploadProjectMeasurementIntoMeasurementValidateBeforeCall(projectUuid, measurementUuid, dataFile, channel, measEnd, labelDataType, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/intdash/src/main/java/com/aptpod/intdash/MediaHlsApi.java b/intdash/src/main/java/com/aptpod/intdash/MediaHlsApi.java new file mode 100644 index 0000000..53a5c16 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/intdash/MediaHlsApi.java @@ -0,0 +1,1015 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.intdash; + +import com.aptpod.ApiCallback; +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.ApiResponse; +import com.aptpod.Configuration; +import com.aptpod.Pair; +import com.aptpod.ProgressRequestBody; +import com.aptpod.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import java.io.File; +import org.openapitools.client.model.HLSList; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class MediaHlsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public MediaHlsApi() { + this(Configuration.getDefaultApiClient()); + } + + public MediaHlsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for getFMP4 + * @param measUuid 計測のUUID (required) + * @param channel チャンネル (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getFMP4Call(String measUuid, Integer channel, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/measurements/{meas_uuid}/channels/{channel}/mp4s/measurement.mp4" + .replace("{" + "meas_uuid" + "}", localVarApiClient.escapeString(measUuid.toString())) + .replace("{" + "channel" + "}", localVarApiClient.escapeString(channel.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "video/mp4" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call getFMP4ValidateBeforeCall(String measUuid, Integer channel, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measUuid' is set + if (measUuid == null) { + throw new ApiException("Missing the required parameter 'measUuid' when calling getFMP4(Async)"); + } + + // verify the required parameter 'channel' is set + if (channel == null) { + throw new ApiException("Missing the required parameter 'channel' when calling getFMP4(Async)"); + } + + return getFMP4Call(measUuid, channel, _callback); + + } + + /** + * Get HLS as FMP4 + * **Deprecated** このエンドポイントの代わりに [`POST /media/videos/{video_uuid}/mp4s`](#operation/createMP4) を使用してください。 mp4リソース作成後、 `MP4`オブジェクトの `file_path`にあるPATHに従って動画を取得してください + * @param measUuid 計測のUUID (required) + * @param channel チャンネル (required) + * @return File + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public File getFMP4(String measUuid, Integer channel) throws ApiException { + ApiResponse localVarResp = getFMP4WithHttpInfo(measUuid, channel); + return localVarResp.getData(); + } + + /** + * Get HLS as FMP4 + * **Deprecated** このエンドポイントの代わりに [`POST /media/videos/{video_uuid}/mp4s`](#operation/createMP4) を使用してください。 mp4リソース作成後、 `MP4`オブジェクトの `file_path`にあるPATHに従って動画を取得してください + * @param measUuid 計測のUUID (required) + * @param channel チャンネル (required) + * @return ApiResponse<File> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse getFMP4WithHttpInfo(String measUuid, Integer channel) throws ApiException { + okhttp3.Call localVarCall = getFMP4ValidateBeforeCall(measUuid, channel, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get HLS as FMP4 (asynchronously) + * **Deprecated** このエンドポイントの代わりに [`POST /media/videos/{video_uuid}/mp4s`](#operation/createMP4) を使用してください。 mp4リソース作成後、 `MP4`オブジェクトの `file_path`にあるPATHに従って動画を取得してください + * @param measUuid 計測のUUID (required) + * @param channel チャンネル (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getFMP4Async(String measUuid, Integer channel, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getFMP4ValidateBeforeCall(measUuid, channel, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getHLSes + * @param start 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) (optional) + * @param end 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) (optional) + * @param edgeUuid エッジのUUID (optional) + * @param channel チャンネル (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getHLSesCall(Integer start, Integer end, String edgeUuid, Integer channel, Integer limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/hlses"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (start != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("start", start)); + } + + if (end != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("end", end)); + } + + if (edgeUuid != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("edge_uuid", edgeUuid)); + } + + if (channel != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("channel", channel)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call getHLSesValidateBeforeCall(Integer start, Integer end, String edgeUuid, Integer channel, Integer limit, final ApiCallback _callback) throws ApiException { + return getHLSesCall(start, end, edgeUuid, channel, limit, _callback); + + } + + /** + * List HLSes + * **Deprecated** このエンドポイントではなく [`GET /media/videos`](#operation/getVideos) を使用してください + * @param start 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) (optional) + * @param end 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) (optional) + * @param edgeUuid エッジのUUID (optional) + * @param channel チャンネル (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @return HLSList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public HLSList getHLSes(Integer start, Integer end, String edgeUuid, Integer channel, Integer limit) throws ApiException { + ApiResponse localVarResp = getHLSesWithHttpInfo(start, end, edgeUuid, channel, limit); + return localVarResp.getData(); + } + + /** + * List HLSes + * **Deprecated** このエンドポイントではなく [`GET /media/videos`](#operation/getVideos) を使用してください + * @param start 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) (optional) + * @param end 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) (optional) + * @param edgeUuid エッジのUUID (optional) + * @param channel チャンネル (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @return ApiResponse<HLSList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse getHLSesWithHttpInfo(Integer start, Integer end, String edgeUuid, Integer channel, Integer limit) throws ApiException { + okhttp3.Call localVarCall = getHLSesValidateBeforeCall(start, end, edgeUuid, channel, limit, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List HLSes (asynchronously) + * **Deprecated** このエンドポイントではなく [`GET /media/videos`](#operation/getVideos) を使用してください + * @param start 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) (optional) + * @param end 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) (optional) + * @param edgeUuid エッジのUUID (optional) + * @param channel チャンネル (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getHLSesAsync(Integer start, Integer end, String edgeUuid, Integer channel, Integer limit, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getHLSesValidateBeforeCall(start, end, edgeUuid, channel, limit, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getPlaylist + * @param measUuid 計測のUUID (required) + * @param channel チャンネル (required) + * @param forceEnd `true` にすると、取得するm3u8形式のプレイリストに強制的にEXT-X-ENDLISTを追加します。 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getPlaylistCall(String measUuid, Integer channel, Boolean forceEnd, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/measurements/{meas_uuid}/channels/{channel}/hlses/playlist.m3u8" + .replace("{" + "meas_uuid" + "}", localVarApiClient.escapeString(measUuid.toString())) + .replace("{" + "channel" + "}", localVarApiClient.escapeString(channel.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (forceEnd != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force_end", forceEnd)); + } + + final String[] localVarAccepts = { + "application/vnd.apple.mpegurl" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call getPlaylistValidateBeforeCall(String measUuid, Integer channel, Boolean forceEnd, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'measUuid' is set + if (measUuid == null) { + throw new ApiException("Missing the required parameter 'measUuid' when calling getPlaylist(Async)"); + } + + // verify the required parameter 'channel' is set + if (channel == null) { + throw new ApiException("Missing the required parameter 'channel' when calling getPlaylist(Async)"); + } + + return getPlaylistCall(measUuid, channel, forceEnd, _callback); + + } + + /** + * Get HLS Playlist + * **Depricated** このエンドポイントの代わりに、Videoオブジェクトの `hls`にあるPATHにしたがってPlaylistを取得してください。 + * @param measUuid 計測のUUID (required) + * @param channel チャンネル (required) + * @param forceEnd `true` にすると、取得するm3u8形式のプレイリストに強制的にEXT-X-ENDLISTを追加します。 (optional) + * @return String + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public String getPlaylist(String measUuid, Integer channel, Boolean forceEnd) throws ApiException { + ApiResponse localVarResp = getPlaylistWithHttpInfo(measUuid, channel, forceEnd); + return localVarResp.getData(); + } + + /** + * Get HLS Playlist + * **Depricated** このエンドポイントの代わりに、Videoオブジェクトの `hls`にあるPATHにしたがってPlaylistを取得してください。 + * @param measUuid 計測のUUID (required) + * @param channel チャンネル (required) + * @param forceEnd `true` にすると、取得するm3u8形式のプレイリストに強制的にEXT-X-ENDLISTを追加します。 (optional) + * @return ApiResponse<String> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse getPlaylistWithHttpInfo(String measUuid, Integer channel, Boolean forceEnd) throws ApiException { + okhttp3.Call localVarCall = getPlaylistValidateBeforeCall(measUuid, channel, forceEnd, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get HLS Playlist (asynchronously) + * **Depricated** このエンドポイントの代わりに、Videoオブジェクトの `hls`にあるPATHにしたがってPlaylistを取得してください。 + * @param measUuid 計測のUUID (required) + * @param channel チャンネル (required) + * @param forceEnd `true` にすると、取得するm3u8形式のプレイリストに強制的にEXT-X-ENDLISTを追加します。 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getPlaylistAsync(String measUuid, Integer channel, Boolean forceEnd, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getPlaylistValidateBeforeCall(measUuid, channel, forceEnd, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getProjectFMP4 + * @param projectUuid プロジェクトのUUID (required) + * @param measUuid 計測のUUID (required) + * @param channel チャンネル (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getProjectFMP4Call(String projectUuid, String measUuid, Integer channel, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/projects/{project_uuid}/measurements/{meas_uuid}/channels/{channel}/mp4s/measurement.mp4" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "meas_uuid" + "}", localVarApiClient.escapeString(measUuid.toString())) + .replace("{" + "channel" + "}", localVarApiClient.escapeString(channel.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "video/mp4" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call getProjectFMP4ValidateBeforeCall(String projectUuid, String measUuid, Integer channel, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling getProjectFMP4(Async)"); + } + + // verify the required parameter 'measUuid' is set + if (measUuid == null) { + throw new ApiException("Missing the required parameter 'measUuid' when calling getProjectFMP4(Async)"); + } + + // verify the required parameter 'channel' is set + if (channel == null) { + throw new ApiException("Missing the required parameter 'channel' when calling getProjectFMP4(Async)"); + } + + return getProjectFMP4Call(projectUuid, measUuid, channel, _callback); + + } + + /** + * Get Project HLS as FMP4 + * **Deprecated** このエンドポイントの代わりに [`POST /media/videos/{video_uuid}/mp4s`](#operation/createMP4) を使用してください。 mp4リソース作成後、 `MP4`オブジェクトの `file_path`にあるPATHに従って動画を取得してください + * @param projectUuid プロジェクトのUUID (required) + * @param measUuid 計測のUUID (required) + * @param channel チャンネル (required) + * @return File + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public File getProjectFMP4(String projectUuid, String measUuid, Integer channel) throws ApiException { + ApiResponse localVarResp = getProjectFMP4WithHttpInfo(projectUuid, measUuid, channel); + return localVarResp.getData(); + } + + /** + * Get Project HLS as FMP4 + * **Deprecated** このエンドポイントの代わりに [`POST /media/videos/{video_uuid}/mp4s`](#operation/createMP4) を使用してください。 mp4リソース作成後、 `MP4`オブジェクトの `file_path`にあるPATHに従って動画を取得してください + * @param projectUuid プロジェクトのUUID (required) + * @param measUuid 計測のUUID (required) + * @param channel チャンネル (required) + * @return ApiResponse<File> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse getProjectFMP4WithHttpInfo(String projectUuid, String measUuid, Integer channel) throws ApiException { + okhttp3.Call localVarCall = getProjectFMP4ValidateBeforeCall(projectUuid, measUuid, channel, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Project HLS as FMP4 (asynchronously) + * **Deprecated** このエンドポイントの代わりに [`POST /media/videos/{video_uuid}/mp4s`](#operation/createMP4) を使用してください。 mp4リソース作成後、 `MP4`オブジェクトの `file_path`にあるPATHに従って動画を取得してください + * @param projectUuid プロジェクトのUUID (required) + * @param measUuid 計測のUUID (required) + * @param channel チャンネル (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getProjectFMP4Async(String projectUuid, String measUuid, Integer channel, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getProjectFMP4ValidateBeforeCall(projectUuid, measUuid, channel, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getProjectHLSes + * @param projectUuid プロジェクトのUUID (required) + * @param start 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) (optional) + * @param end 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) (optional) + * @param edgeUuid エッジのUUID (optional) + * @param channel チャンネル (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getProjectHLSesCall(String projectUuid, Integer start, Integer end, String edgeUuid, Integer channel, Integer limit, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/projects/{project_uuid}/hlses" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (start != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("start", start)); + } + + if (end != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("end", end)); + } + + if (edgeUuid != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("edge_uuid", edgeUuid)); + } + + if (channel != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("channel", channel)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call getProjectHLSesValidateBeforeCall(String projectUuid, Integer start, Integer end, String edgeUuid, Integer channel, Integer limit, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling getProjectHLSes(Async)"); + } + + return getProjectHLSesCall(projectUuid, start, end, edgeUuid, channel, limit, _callback); + + } + + /** + * List Project HLSes + * **Deprecated** このエンドポイントではなく [`GET /media/videos`](#operation/getVideos) を使用してください + * @param projectUuid プロジェクトのUUID (required) + * @param start 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) (optional) + * @param end 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) (optional) + * @param edgeUuid エッジのUUID (optional) + * @param channel チャンネル (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @return HLSList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public HLSList getProjectHLSes(String projectUuid, Integer start, Integer end, String edgeUuid, Integer channel, Integer limit) throws ApiException { + ApiResponse localVarResp = getProjectHLSesWithHttpInfo(projectUuid, start, end, edgeUuid, channel, limit); + return localVarResp.getData(); + } + + /** + * List Project HLSes + * **Deprecated** このエンドポイントではなく [`GET /media/videos`](#operation/getVideos) を使用してください + * @param projectUuid プロジェクトのUUID (required) + * @param start 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) (optional) + * @param end 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) (optional) + * @param edgeUuid エッジのUUID (optional) + * @param channel チャンネル (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @return ApiResponse<HLSList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse getProjectHLSesWithHttpInfo(String projectUuid, Integer start, Integer end, String edgeUuid, Integer channel, Integer limit) throws ApiException { + okhttp3.Call localVarCall = getProjectHLSesValidateBeforeCall(projectUuid, start, end, edgeUuid, channel, limit, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Project HLSes (asynchronously) + * **Deprecated** このエンドポイントではなく [`GET /media/videos`](#operation/getVideos) を使用してください + * @param projectUuid プロジェクトのUUID (required) + * @param start 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) (optional) + * @param end 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) (optional) + * @param edgeUuid エッジのUUID (optional) + * @param channel チャンネル (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getProjectHLSesAsync(String projectUuid, Integer start, Integer end, String edgeUuid, Integer channel, Integer limit, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getProjectHLSesValidateBeforeCall(projectUuid, start, end, edgeUuid, channel, limit, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getProjectPlaylist + * @param projectUuid プロジェクトのUUID (required) + * @param measUuid 計測のUUID (required) + * @param channel チャンネル (required) + * @param forceEnd `true` にすると、取得するm3u8形式のプレイリストに強制的にEXT-X-ENDLISTを追加します。 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getProjectPlaylistCall(String projectUuid, String measUuid, Integer channel, Boolean forceEnd, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/projects/{project_uuid}/measurements/{meas_uuid}/channels/{channel}/hlses/playlist.m3u8" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "meas_uuid" + "}", localVarApiClient.escapeString(measUuid.toString())) + .replace("{" + "channel" + "}", localVarApiClient.escapeString(channel.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (forceEnd != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force_end", forceEnd)); + } + + final String[] localVarAccepts = { + "application/vnd.apple.mpegurl" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call getProjectPlaylistValidateBeforeCall(String projectUuid, String measUuid, Integer channel, Boolean forceEnd, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling getProjectPlaylist(Async)"); + } + + // verify the required parameter 'measUuid' is set + if (measUuid == null) { + throw new ApiException("Missing the required parameter 'measUuid' when calling getProjectPlaylist(Async)"); + } + + // verify the required parameter 'channel' is set + if (channel == null) { + throw new ApiException("Missing the required parameter 'channel' when calling getProjectPlaylist(Async)"); + } + + return getProjectPlaylistCall(projectUuid, measUuid, channel, forceEnd, _callback); + + } + + /** + * Get Project HLS Playlist + * **Depricated** このエンドポイントの代わりに、Videoオブジェクトの `hls`にあるPATHにしたがってPlaylistを取得してください。 + * @param projectUuid プロジェクトのUUID (required) + * @param measUuid 計測のUUID (required) + * @param channel チャンネル (required) + * @param forceEnd `true` にすると、取得するm3u8形式のプレイリストに強制的にEXT-X-ENDLISTを追加します。 (optional) + * @return String + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public String getProjectPlaylist(String projectUuid, String measUuid, Integer channel, Boolean forceEnd) throws ApiException { + ApiResponse localVarResp = getProjectPlaylistWithHttpInfo(projectUuid, measUuid, channel, forceEnd); + return localVarResp.getData(); + } + + /** + * Get Project HLS Playlist + * **Depricated** このエンドポイントの代わりに、Videoオブジェクトの `hls`にあるPATHにしたがってPlaylistを取得してください。 + * @param projectUuid プロジェクトのUUID (required) + * @param measUuid 計測のUUID (required) + * @param channel チャンネル (required) + * @param forceEnd `true` にすると、取得するm3u8形式のプレイリストに強制的にEXT-X-ENDLISTを追加します。 (optional) + * @return ApiResponse<String> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse getProjectPlaylistWithHttpInfo(String projectUuid, String measUuid, Integer channel, Boolean forceEnd) throws ApiException { + okhttp3.Call localVarCall = getProjectPlaylistValidateBeforeCall(projectUuid, measUuid, channel, forceEnd, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Project HLS Playlist (asynchronously) + * **Depricated** このエンドポイントの代わりに、Videoオブジェクトの `hls`にあるPATHにしたがってPlaylistを取得してください。 + * @param projectUuid プロジェクトのUUID (required) + * @param measUuid 計測のUUID (required) + * @param channel チャンネル (required) + * @param forceEnd `true` にすると、取得するm3u8形式のプレイリストに強制的にEXT-X-ENDLISTを追加します。 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getProjectPlaylistAsync(String projectUuid, String measUuid, Integer channel, Boolean forceEnd, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getProjectPlaylistValidateBeforeCall(projectUuid, measUuid, channel, forceEnd, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/intdash/src/main/java/com/aptpod/intdash/MediaJobsApi.java b/intdash/src/main/java/com/aptpod/intdash/MediaJobsApi.java new file mode 100644 index 0000000..11fa120 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/intdash/MediaJobsApi.java @@ -0,0 +1,734 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.intdash; + +import com.aptpod.ApiCallback; +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.ApiResponse; +import com.aptpod.Configuration; +import com.aptpod.Pair; +import com.aptpod.ProgressRequestBody; +import com.aptpod.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import java.math.BigDecimal; +import org.openapitools.client.model.CreateJobRequest; +import org.openapitools.client.model.ErrorProblemMedia; +import org.openapitools.client.model.Job; +import org.openapitools.client.model.JobList; +import org.openapitools.client.model.JobStatus; +import org.openapitools.client.model.JobType; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class MediaJobsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public MediaJobsApi() { + this(Configuration.getDefaultApiClient()); + } + + public MediaJobsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for createJob + * @param createJobRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
201 Created -
400 Bad Request -
409 Conflict -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call createJobCall(CreateJobRequest createJobRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = createJobRequest; + + // create path and map variables + String localVarPath = "/media/jobs"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call createJobValidateBeforeCall(CreateJobRequest createJobRequest, final ApiCallback _callback) throws ApiException { + return createJobCall(createJobRequest, _callback); + + } + + /** + * Create Job + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) HLSへの変換ジョブを作成します。 + * @param createJobRequest (optional) + * @return Job + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
201 Created -
400 Bad Request -
409 Conflict -
+ * @deprecated + */ + @Deprecated + public Job createJob(CreateJobRequest createJobRequest) throws ApiException { + ApiResponse localVarResp = createJobWithHttpInfo(createJobRequest); + return localVarResp.getData(); + } + + /** + * Create Job + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) HLSへの変換ジョブを作成します。 + * @param createJobRequest (optional) + * @return ApiResponse<Job> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
201 Created -
400 Bad Request -
409 Conflict -
+ * @deprecated + */ + @Deprecated + public ApiResponse createJobWithHttpInfo(CreateJobRequest createJobRequest) throws ApiException { + okhttp3.Call localVarCall = createJobValidateBeforeCall(createJobRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Job (asynchronously) + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) HLSへの変換ジョブを作成します。 + * @param createJobRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
201 Created -
400 Bad Request -
409 Conflict -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call createJobAsync(CreateJobRequest createJobRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createJobValidateBeforeCall(createJobRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createProjectJob + * @param projectUuid プロジェクトのUUID (required) + * @param createJobRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
201 Created -
400 Bad Request -
409 Conflict -
+ */ + public okhttp3.Call createProjectJobCall(String projectUuid, CreateJobRequest createJobRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = createJobRequest; + + // create path and map variables + String localVarPath = "/media/projects/{project_uuid}/jobs" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createProjectJobValidateBeforeCall(String projectUuid, CreateJobRequest createJobRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling createProjectJob(Async)"); + } + + return createProjectJobCall(projectUuid, createJobRequest, _callback); + + } + + /** + * Create Project Job + * HLSへの変換ジョブを作成します。 + * @param projectUuid プロジェクトのUUID (required) + * @param createJobRequest (optional) + * @return Job + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
201 Created -
400 Bad Request -
409 Conflict -
+ */ + public Job createProjectJob(String projectUuid, CreateJobRequest createJobRequest) throws ApiException { + ApiResponse localVarResp = createProjectJobWithHttpInfo(projectUuid, createJobRequest); + return localVarResp.getData(); + } + + /** + * Create Project Job + * HLSへの変換ジョブを作成します。 + * @param projectUuid プロジェクトのUUID (required) + * @param createJobRequest (optional) + * @return ApiResponse<Job> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
201 Created -
400 Bad Request -
409 Conflict -
+ */ + public ApiResponse createProjectJobWithHttpInfo(String projectUuid, CreateJobRequest createJobRequest) throws ApiException { + okhttp3.Call localVarCall = createProjectJobValidateBeforeCall(projectUuid, createJobRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Project Job (asynchronously) + * HLSへの変換ジョブを作成します。 + * @param projectUuid プロジェクトのUUID (required) + * @param createJobRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
201 Created -
400 Bad Request -
409 Conflict -
+ */ + public okhttp3.Call createProjectJobAsync(String projectUuid, CreateJobRequest createJobRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createProjectJobValidateBeforeCall(projectUuid, createJobRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getJobs + * @param uuid 取得したいジョブのUUID (optional) + * @param measUuid 計測のUUID (optional) + * @param type - update - 計測内の動画データのうち、新しくサーバーが受信した部分(HLSにまだ変換されていない部分)を HLSに変換するジョブ。通常は計測実行中に行います。 - finalize - 計測全体をサーバーに回収した後に、動画データ全体をHLSに変換するジョブ - delete - 変換によって作成されたHLSデータを削除するジョブ。 このジョブを実行すると、HLSプレイリスト、セグメントファイル、 データベース内のHLSに関する情報が削除され、この動画のHLSによる再生はできなくなります。 (optional) + * @param status ジョブのステータス (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param page 取得するページ番号 (optional, default to 1) + * @param sort 並べ替えに使用するキー (optional, default to created_at) + * @param order 並べ替えの順序 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getJobsCall(List uuid, List measUuid, List type, List status, BigDecimal limit, Integer page, String sort, String order, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/jobs"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (uuid != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "uuid", uuid)); + } + + if (measUuid != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "meas_uuid", measUuid)); + } + + if (type != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "type", type)); + } + + if (status != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "status", status)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + if (order != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("order", order)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call getJobsValidateBeforeCall(List uuid, List measUuid, List type, List status, BigDecimal limit, Integer page, String sort, String order, final ApiCallback _callback) throws ApiException { + return getJobsCall(uuid, measUuid, type, status, limit, page, sort, order, _callback); + + } + + /** + * List Jobs + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) HLSへの変換ジョブのリストを取得します。 + * @param uuid 取得したいジョブのUUID (optional) + * @param measUuid 計測のUUID (optional) + * @param type - update - 計測内の動画データのうち、新しくサーバーが受信した部分(HLSにまだ変換されていない部分)を HLSに変換するジョブ。通常は計測実行中に行います。 - finalize - 計測全体をサーバーに回収した後に、動画データ全体をHLSに変換するジョブ - delete - 変換によって作成されたHLSデータを削除するジョブ。 このジョブを実行すると、HLSプレイリスト、セグメントファイル、 データベース内のHLSに関する情報が削除され、この動画のHLSによる再生はできなくなります。 (optional) + * @param status ジョブのステータス (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param page 取得するページ番号 (optional, default to 1) + * @param sort 並べ替えに使用するキー (optional, default to created_at) + * @param order 並べ替えの順序 (optional) + * @return JobList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ * @deprecated + */ + @Deprecated + public JobList getJobs(List uuid, List measUuid, List type, List status, BigDecimal limit, Integer page, String sort, String order) throws ApiException { + ApiResponse localVarResp = getJobsWithHttpInfo(uuid, measUuid, type, status, limit, page, sort, order); + return localVarResp.getData(); + } + + /** + * List Jobs + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) HLSへの変換ジョブのリストを取得します。 + * @param uuid 取得したいジョブのUUID (optional) + * @param measUuid 計測のUUID (optional) + * @param type - update - 計測内の動画データのうち、新しくサーバーが受信した部分(HLSにまだ変換されていない部分)を HLSに変換するジョブ。通常は計測実行中に行います。 - finalize - 計測全体をサーバーに回収した後に、動画データ全体をHLSに変換するジョブ - delete - 変換によって作成されたHLSデータを削除するジョブ。 このジョブを実行すると、HLSプレイリスト、セグメントファイル、 データベース内のHLSに関する情報が削除され、この動画のHLSによる再生はできなくなります。 (optional) + * @param status ジョブのステータス (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param page 取得するページ番号 (optional, default to 1) + * @param sort 並べ替えに使用するキー (optional, default to created_at) + * @param order 並べ替えの順序 (optional) + * @return ApiResponse<JobList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ * @deprecated + */ + @Deprecated + public ApiResponse getJobsWithHttpInfo(List uuid, List measUuid, List type, List status, BigDecimal limit, Integer page, String sort, String order) throws ApiException { + okhttp3.Call localVarCall = getJobsValidateBeforeCall(uuid, measUuid, type, status, limit, page, sort, order, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Jobs (asynchronously) + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) HLSへの変換ジョブのリストを取得します。 + * @param uuid 取得したいジョブのUUID (optional) + * @param measUuid 計測のUUID (optional) + * @param type - update - 計測内の動画データのうち、新しくサーバーが受信した部分(HLSにまだ変換されていない部分)を HLSに変換するジョブ。通常は計測実行中に行います。 - finalize - 計測全体をサーバーに回収した後に、動画データ全体をHLSに変換するジョブ - delete - 変換によって作成されたHLSデータを削除するジョブ。 このジョブを実行すると、HLSプレイリスト、セグメントファイル、 データベース内のHLSに関する情報が削除され、この動画のHLSによる再生はできなくなります。 (optional) + * @param status ジョブのステータス (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param page 取得するページ番号 (optional, default to 1) + * @param sort 並べ替えに使用するキー (optional, default to created_at) + * @param order 並べ替えの順序 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getJobsAsync(List uuid, List measUuid, List type, List status, BigDecimal limit, Integer page, String sort, String order, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getJobsValidateBeforeCall(uuid, measUuid, type, status, limit, page, sort, order, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getProjectJobs + * @param projectUuid プロジェクトのUUID (required) + * @param uuid 取得したいジョブのUUID (optional) + * @param measUuid 計測のUUID (optional) + * @param type - update - 計測内の動画データのうち、新しくサーバーが受信した部分(HLSにまだ変換されていない部分)を HLSに変換するジョブ。通常は計測実行中に行います。 - finalize - 計測全体をサーバーに回収した後に、動画データ全体をHLSに変換するジョブ - delete - 変換によって作成されたHLSデータを削除するジョブ。 このジョブを実行すると、HLSプレイリスト、セグメントファイル、 データベース内のHLSに関する情報が削除され、この動画のHLSによる再生はできなくなります。 (optional) + * @param status ジョブのステータス (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param page 取得するページ番号 (optional, default to 1) + * @param sort 並べ替えに使用するキー (optional, default to created_at) + * @param order 並べ替えの順序 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public okhttp3.Call getProjectJobsCall(String projectUuid, List uuid, List measUuid, List type, List status, BigDecimal limit, Integer page, String sort, String order, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/projects/{project_uuid}/jobs" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (uuid != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "uuid", uuid)); + } + + if (measUuid != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "meas_uuid", measUuid)); + } + + if (type != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "type", type)); + } + + if (status != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "status", status)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + if (order != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("order", order)); + } + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getProjectJobsValidateBeforeCall(String projectUuid, List uuid, List measUuid, List type, List status, BigDecimal limit, Integer page, String sort, String order, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling getProjectJobs(Async)"); + } + + return getProjectJobsCall(projectUuid, uuid, measUuid, type, status, limit, page, sort, order, _callback); + + } + + /** + * List Project Jobs + * HLSへの変換ジョブのリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param uuid 取得したいジョブのUUID (optional) + * @param measUuid 計測のUUID (optional) + * @param type - update - 計測内の動画データのうち、新しくサーバーが受信した部分(HLSにまだ変換されていない部分)を HLSに変換するジョブ。通常は計測実行中に行います。 - finalize - 計測全体をサーバーに回収した後に、動画データ全体をHLSに変換するジョブ - delete - 変換によって作成されたHLSデータを削除するジョブ。 このジョブを実行すると、HLSプレイリスト、セグメントファイル、 データベース内のHLSに関する情報が削除され、この動画のHLSによる再生はできなくなります。 (optional) + * @param status ジョブのステータス (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param page 取得するページ番号 (optional, default to 1) + * @param sort 並べ替えに使用するキー (optional, default to created_at) + * @param order 並べ替えの順序 (optional) + * @return JobList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public JobList getProjectJobs(String projectUuid, List uuid, List measUuid, List type, List status, BigDecimal limit, Integer page, String sort, String order) throws ApiException { + ApiResponse localVarResp = getProjectJobsWithHttpInfo(projectUuid, uuid, measUuid, type, status, limit, page, sort, order); + return localVarResp.getData(); + } + + /** + * List Project Jobs + * HLSへの変換ジョブのリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param uuid 取得したいジョブのUUID (optional) + * @param measUuid 計測のUUID (optional) + * @param type - update - 計測内の動画データのうち、新しくサーバーが受信した部分(HLSにまだ変換されていない部分)を HLSに変換するジョブ。通常は計測実行中に行います。 - finalize - 計測全体をサーバーに回収した後に、動画データ全体をHLSに変換するジョブ - delete - 変換によって作成されたHLSデータを削除するジョブ。 このジョブを実行すると、HLSプレイリスト、セグメントファイル、 データベース内のHLSに関する情報が削除され、この動画のHLSによる再生はできなくなります。 (optional) + * @param status ジョブのステータス (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param page 取得するページ番号 (optional, default to 1) + * @param sort 並べ替えに使用するキー (optional, default to created_at) + * @param order 並べ替えの順序 (optional) + * @return ApiResponse<JobList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public ApiResponse getProjectJobsWithHttpInfo(String projectUuid, List uuid, List measUuid, List type, List status, BigDecimal limit, Integer page, String sort, String order) throws ApiException { + okhttp3.Call localVarCall = getProjectJobsValidateBeforeCall(projectUuid, uuid, measUuid, type, status, limit, page, sort, order, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Project Jobs (asynchronously) + * HLSへの変換ジョブのリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param uuid 取得したいジョブのUUID (optional) + * @param measUuid 計測のUUID (optional) + * @param type - update - 計測内の動画データのうち、新しくサーバーが受信した部分(HLSにまだ変換されていない部分)を HLSに変換するジョブ。通常は計測実行中に行います。 - finalize - 計測全体をサーバーに回収した後に、動画データ全体をHLSに変換するジョブ - delete - 変換によって作成されたHLSデータを削除するジョブ。 このジョブを実行すると、HLSプレイリスト、セグメントファイル、 データベース内のHLSに関する情報が削除され、この動画のHLSによる再生はできなくなります。 (optional) + * @param status ジョブのステータス (optional) + * @param limit 1回のリクエストで取得する件数 (optional) + * @param page 取得するページ番号 (optional, default to 1) + * @param sort 並べ替えに使用するキー (optional, default to created_at) + * @param order 並べ替えの順序 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public okhttp3.Call getProjectJobsAsync(String projectUuid, List uuid, List measUuid, List type, List status, BigDecimal limit, Integer page, String sort, String order, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getProjectJobsValidateBeforeCall(projectUuid, uuid, measUuid, type, status, limit, page, sort, order, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/intdash/src/main/java/com/aptpod/intdash/MediaLiveApi.java b/intdash/src/main/java/com/aptpod/intdash/MediaLiveApi.java new file mode 100644 index 0000000..2512232 --- /dev/null +++ b/intdash/src/main/java/com/aptpod/intdash/MediaLiveApi.java @@ -0,0 +1,359 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.intdash; + +import com.aptpod.ApiCallback; +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.ApiResponse; +import com.aptpod.Configuration; +import com.aptpod.Pair; +import com.aptpod.ProgressRequestBody; +import com.aptpod.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class MediaLiveApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public MediaLiveApi() { + this(Configuration.getDefaultApiClient()); + } + + public MediaLiveApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for connectLive + * @param edgeUuid エッジのUUID (required) + * @param channel チャンネル (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
101 Switching Protocols -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call connectLiveCall(String edgeUuid, Integer channel, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/ws/edges/{edge_uuid}/fmp4s/{channel}" + .replace("{" + "edge_uuid" + "}", localVarApiClient.escapeString(edgeUuid.toString())) + .replace("{" + "channel" + "}", localVarApiClient.escapeString(channel.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call connectLiveValidateBeforeCall(String edgeUuid, Integer channel, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'edgeUuid' is set + if (edgeUuid == null) { + throw new ApiException("Missing the required parameter 'edgeUuid' when calling connectLive(Async)"); + } + + // verify the required parameter 'channel' is set + if (channel == null) { + throw new ApiException("Missing the required parameter 'channel' when calling connectLive(Async)"); + } + + return connectLiveCall(edgeUuid, channel, _callback); + + } + + /** + * Get realtime video stream + * **Deprecated** このエンドポイントの代わりに [`GET /v1/stream`](#operation/Stream) でデータを取得し、WebCodecsを使用して取得したデータをデコードしてください。 + * @param edgeUuid エッジのUUID (required) + * @param channel チャンネル (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
101 Switching Protocols -
+ * @deprecated + */ + @Deprecated + public void connectLive(String edgeUuid, Integer channel) throws ApiException { + connectLiveWithHttpInfo(edgeUuid, channel); + } + + /** + * Get realtime video stream + * **Deprecated** このエンドポイントの代わりに [`GET /v1/stream`](#operation/Stream) でデータを取得し、WebCodecsを使用して取得したデータをデコードしてください。 + * @param edgeUuid エッジのUUID (required) + * @param channel チャンネル (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
101 Switching Protocols -
+ * @deprecated + */ + @Deprecated + public ApiResponse connectLiveWithHttpInfo(String edgeUuid, Integer channel) throws ApiException { + okhttp3.Call localVarCall = connectLiveValidateBeforeCall(edgeUuid, channel, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Get realtime video stream (asynchronously) + * **Deprecated** このエンドポイントの代わりに [`GET /v1/stream`](#operation/Stream) でデータを取得し、WebCodecsを使用して取得したデータをデコードしてください。 + * @param edgeUuid エッジのUUID (required) + * @param channel チャンネル (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
101 Switching Protocols -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call connectLiveAsync(String edgeUuid, Integer channel, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = connectLiveValidateBeforeCall(edgeUuid, channel, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for connectProjectLive + * @param projectUuid プロジェクトのUUID (required) + * @param edgeUuid エッジのUUID (required) + * @param channel チャンネル (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
101 Switching Protocols -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call connectProjectLiveCall(String projectUuid, String edgeUuid, Integer channel, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/projects/{project_uuid}/ws/edges/{edge_uuid}/fmp4s/{channel}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "edge_uuid" + "}", localVarApiClient.escapeString(edgeUuid.toString())) + .replace("{" + "channel" + "}", localVarApiClient.escapeString(channel.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call connectProjectLiveValidateBeforeCall(String projectUuid, String edgeUuid, Integer channel, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling connectProjectLive(Async)"); + } + + // verify the required parameter 'edgeUuid' is set + if (edgeUuid == null) { + throw new ApiException("Missing the required parameter 'edgeUuid' when calling connectProjectLive(Async)"); + } + + // verify the required parameter 'channel' is set + if (channel == null) { + throw new ApiException("Missing the required parameter 'channel' when calling connectProjectLive(Async)"); + } + + return connectProjectLiveCall(projectUuid, edgeUuid, channel, _callback); + + } + + /** + * Get Project realtime video stream + * **Deprecated** このエンドポイントの代わりに [`GET /v1/stream`](#operation/Stream) でデータを取得し、WebCodecsを使用して取得したデータをデコードしてください。 + * @param projectUuid プロジェクトのUUID (required) + * @param edgeUuid エッジのUUID (required) + * @param channel チャンネル (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
101 Switching Protocols -
+ * @deprecated + */ + @Deprecated + public void connectProjectLive(String projectUuid, String edgeUuid, Integer channel) throws ApiException { + connectProjectLiveWithHttpInfo(projectUuid, edgeUuid, channel); + } + + /** + * Get Project realtime video stream + * **Deprecated** このエンドポイントの代わりに [`GET /v1/stream`](#operation/Stream) でデータを取得し、WebCodecsを使用して取得したデータをデコードしてください。 + * @param projectUuid プロジェクトのUUID (required) + * @param edgeUuid エッジのUUID (required) + * @param channel チャンネル (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
101 Switching Protocols -
+ * @deprecated + */ + @Deprecated + public ApiResponse connectProjectLiveWithHttpInfo(String projectUuid, String edgeUuid, Integer channel) throws ApiException { + okhttp3.Call localVarCall = connectProjectLiveValidateBeforeCall(projectUuid, edgeUuid, channel, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Get Project realtime video stream (asynchronously) + * **Deprecated** このエンドポイントの代わりに [`GET /v1/stream`](#operation/Stream) でデータを取得し、WebCodecsを使用して取得したデータをデコードしてください。 + * @param projectUuid プロジェクトのUUID (required) + * @param edgeUuid エッジのUUID (required) + * @param channel チャンネル (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
101 Switching Protocols -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call connectProjectLiveAsync(String projectUuid, String edgeUuid, Integer channel, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = connectProjectLiveValidateBeforeCall(projectUuid, edgeUuid, channel, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } +} diff --git a/intdash/src/main/java/com/aptpod/intdash/MediaVideosApi.java b/intdash/src/main/java/com/aptpod/intdash/MediaVideosApi.java new file mode 100644 index 0000000..d61a7fb --- /dev/null +++ b/intdash/src/main/java/com/aptpod/intdash/MediaVideosApi.java @@ -0,0 +1,3802 @@ +/* + * intdash API specification + * ## ベースURL ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。 ``` https:///api ``` エンドポイント例: ``` https://example.intdash.jp/api/v1/measurements https://example.intdash.jp/api/media/videos ``` ## レスポンスのステータスコード サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。 | コード | 説明 | |:--------------------------|:----------------------------------------------------------------------| | 101 Switching Protocols | サーバーはプロトコルを切り替えます。 | | 200 OK | リクエストは成功しました。 | | 201 Created | 新しいリソースが作成されました。 | | 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 | | 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 | | 401 Unauthorized | リクエストには認証が必要です。 | | 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 | | 404 Not Found | APIまたはリソースが見つかりません。 | | 405 Method Not Allowed | 指定されたメソッドは許可されていません。 | | 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 | | 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 | ## 注意 リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。 ``` { \"username\" : \"username\", \"password\" : \"password\" } ``` ``` { \"Username\" : \"username\", \"Password\" : \"password\" } ``` + * + * The version of the OpenAPI document: v2.4.0-next-4a4316946 + * Contact: VM2M-support@aptpod.co.jp + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.aptpod.intdash; + +import com.aptpod.ApiCallback; +import com.aptpod.ApiClient; +import com.aptpod.ApiException; +import com.aptpod.ApiResponse; +import com.aptpod.Configuration; +import com.aptpod.Pair; +import com.aptpod.ProgressRequestBody; +import com.aptpod.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.openapitools.client.model.CreateJpegRequest; +import org.openapitools.client.model.CreateMP4Request; +import org.openapitools.client.model.ErrorProblemMedia; +import java.io.File; +import org.openapitools.client.model.Jpeg; +import org.openapitools.client.model.Jpegs; +import org.openapitools.client.model.MP4; +import org.openapitools.client.model.MP4s; +import org.openapitools.client.model.Video; +import org.openapitools.client.model.Videos; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class MediaVideosApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public MediaVideosApi() { + this(Configuration.getDefaultApiClient()); + } + + public MediaVideosApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for cancelCreatingJpeg + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call cancelCreatingJpegCall(String videoUuid, String jpegUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/videos/{video_uuid}/jpegs/{jpeg_uuid}/cancel_convert" + .replace("{" + "video_uuid" + "}", localVarApiClient.escapeString(videoUuid.toString())) + .replace("{" + "jpeg_uuid" + "}", localVarApiClient.escapeString(jpegUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call cancelCreatingJpegValidateBeforeCall(String videoUuid, String jpegUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'videoUuid' is set + if (videoUuid == null) { + throw new ApiException("Missing the required parameter 'videoUuid' when calling cancelCreatingJpeg(Async)"); + } + + // verify the required parameter 'jpegUuid' is set + if (jpegUuid == null) { + throw new ApiException("Missing the required parameter 'jpegUuid' when calling cancelCreatingJpeg(Async)"); + } + + return cancelCreatingJpegCall(videoUuid, jpegUuid, _callback); + + } + + /** + * Cancel Creating JPEG + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)からJPEGデータへの変換をキャンセルします。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @return Jpeg + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ * @deprecated + */ + @Deprecated + public Jpeg cancelCreatingJpeg(String videoUuid, String jpegUuid) throws ApiException { + ApiResponse localVarResp = cancelCreatingJpegWithHttpInfo(videoUuid, jpegUuid); + return localVarResp.getData(); + } + + /** + * Cancel Creating JPEG + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)からJPEGデータへの変換をキャンセルします。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @return ApiResponse<Jpeg> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ * @deprecated + */ + @Deprecated + public ApiResponse cancelCreatingJpegWithHttpInfo(String videoUuid, String jpegUuid) throws ApiException { + okhttp3.Call localVarCall = cancelCreatingJpegValidateBeforeCall(videoUuid, jpegUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Cancel Creating JPEG (asynchronously) + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)からJPEGデータへの変換をキャンセルします。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call cancelCreatingJpegAsync(String videoUuid, String jpegUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = cancelCreatingJpegValidateBeforeCall(videoUuid, jpegUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for cancelCreatingMP4 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param mp4Uuid MP4のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call cancelCreatingMP4Call(String videoUuid, String mp4Uuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/videos/{video_uuid}/mp4s/{mp4_uuid}/cancel_convert" + .replace("{" + "video_uuid" + "}", localVarApiClient.escapeString(videoUuid.toString())) + .replace("{" + "mp4_uuid" + "}", localVarApiClient.escapeString(mp4Uuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call cancelCreatingMP4ValidateBeforeCall(String videoUuid, String mp4Uuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'videoUuid' is set + if (videoUuid == null) { + throw new ApiException("Missing the required parameter 'videoUuid' when calling cancelCreatingMP4(Async)"); + } + + // verify the required parameter 'mp4Uuid' is set + if (mp4Uuid == null) { + throw new ApiException("Missing the required parameter 'mp4Uuid' when calling cancelCreatingMP4(Async)"); + } + + return cancelCreatingMP4Call(videoUuid, mp4Uuid, _callback); + + } + + /** + * Cancel Creating MP4 + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)からMP4データへの変換をキャンセルします。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param mp4Uuid MP4のUUID (required) + * @return MP4 + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ * @deprecated + */ + @Deprecated + public MP4 cancelCreatingMP4(String videoUuid, String mp4Uuid) throws ApiException { + ApiResponse localVarResp = cancelCreatingMP4WithHttpInfo(videoUuid, mp4Uuid); + return localVarResp.getData(); + } + + /** + * Cancel Creating MP4 + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)からMP4データへの変換をキャンセルします。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param mp4Uuid MP4のUUID (required) + * @return ApiResponse<MP4> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ * @deprecated + */ + @Deprecated + public ApiResponse cancelCreatingMP4WithHttpInfo(String videoUuid, String mp4Uuid) throws ApiException { + okhttp3.Call localVarCall = cancelCreatingMP4ValidateBeforeCall(videoUuid, mp4Uuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Cancel Creating MP4 (asynchronously) + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)からMP4データへの変換をキャンセルします。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param mp4Uuid MP4のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call cancelCreatingMP4Async(String videoUuid, String mp4Uuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = cancelCreatingMP4ValidateBeforeCall(videoUuid, mp4Uuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for cancelCreatingProjectJpeg + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public okhttp3.Call cancelCreatingProjectJpegCall(String projectUuid, String videoUuid, String jpegUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/projects/{project_uuid}/videos/{video_uuid}/jpegs/{jpeg_uuid}/cancel_convert" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "video_uuid" + "}", localVarApiClient.escapeString(videoUuid.toString())) + .replace("{" + "jpeg_uuid" + "}", localVarApiClient.escapeString(jpegUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call cancelCreatingProjectJpegValidateBeforeCall(String projectUuid, String videoUuid, String jpegUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling cancelCreatingProjectJpeg(Async)"); + } + + // verify the required parameter 'videoUuid' is set + if (videoUuid == null) { + throw new ApiException("Missing the required parameter 'videoUuid' when calling cancelCreatingProjectJpeg(Async)"); + } + + // verify the required parameter 'jpegUuid' is set + if (jpegUuid == null) { + throw new ApiException("Missing the required parameter 'jpegUuid' when calling cancelCreatingProjectJpeg(Async)"); + } + + return cancelCreatingProjectJpegCall(projectUuid, videoUuid, jpegUuid, _callback); + + } + + /** + * Cancel Creating Project JPEG + * 動画(video)からJPEGデータへの変換をキャンセルします。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @return Jpeg + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public Jpeg cancelCreatingProjectJpeg(String projectUuid, String videoUuid, String jpegUuid) throws ApiException { + ApiResponse localVarResp = cancelCreatingProjectJpegWithHttpInfo(projectUuid, videoUuid, jpegUuid); + return localVarResp.getData(); + } + + /** + * Cancel Creating Project JPEG + * 動画(video)からJPEGデータへの変換をキャンセルします。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @return ApiResponse<Jpeg> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public ApiResponse cancelCreatingProjectJpegWithHttpInfo(String projectUuid, String videoUuid, String jpegUuid) throws ApiException { + okhttp3.Call localVarCall = cancelCreatingProjectJpegValidateBeforeCall(projectUuid, videoUuid, jpegUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Cancel Creating Project JPEG (asynchronously) + * 動画(video)からJPEGデータへの変換をキャンセルします。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public okhttp3.Call cancelCreatingProjectJpegAsync(String projectUuid, String videoUuid, String jpegUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = cancelCreatingProjectJpegValidateBeforeCall(projectUuid, videoUuid, jpegUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for cancelCreatingProjectMP4 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param mp4Uuid MP4のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public okhttp3.Call cancelCreatingProjectMP4Call(String projectUuid, String videoUuid, String mp4Uuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/projects/{project_uuid}/videos/{video_uuid}/mp4s/{mp4_uuid}/cancel_convert" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "video_uuid" + "}", localVarApiClient.escapeString(videoUuid.toString())) + .replace("{" + "mp4_uuid" + "}", localVarApiClient.escapeString(mp4Uuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call cancelCreatingProjectMP4ValidateBeforeCall(String projectUuid, String videoUuid, String mp4Uuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling cancelCreatingProjectMP4(Async)"); + } + + // verify the required parameter 'videoUuid' is set + if (videoUuid == null) { + throw new ApiException("Missing the required parameter 'videoUuid' when calling cancelCreatingProjectMP4(Async)"); + } + + // verify the required parameter 'mp4Uuid' is set + if (mp4Uuid == null) { + throw new ApiException("Missing the required parameter 'mp4Uuid' when calling cancelCreatingProjectMP4(Async)"); + } + + return cancelCreatingProjectMP4Call(projectUuid, videoUuid, mp4Uuid, _callback); + + } + + /** + * Cancel Creating Project MP4 + * 動画(video)からMP4データへの変換をキャンセルします。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param mp4Uuid MP4のUUID (required) + * @return MP4 + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public MP4 cancelCreatingProjectMP4(String projectUuid, String videoUuid, String mp4Uuid) throws ApiException { + ApiResponse localVarResp = cancelCreatingProjectMP4WithHttpInfo(projectUuid, videoUuid, mp4Uuid); + return localVarResp.getData(); + } + + /** + * Cancel Creating Project MP4 + * 動画(video)からMP4データへの変換をキャンセルします。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param mp4Uuid MP4のUUID (required) + * @return ApiResponse<MP4> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public ApiResponse cancelCreatingProjectMP4WithHttpInfo(String projectUuid, String videoUuid, String mp4Uuid) throws ApiException { + okhttp3.Call localVarCall = cancelCreatingProjectMP4ValidateBeforeCall(projectUuid, videoUuid, mp4Uuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Cancel Creating Project MP4 (asynchronously) + * 動画(video)からMP4データへの変換をキャンセルします。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param mp4Uuid MP4のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
400 Bad Request -
+ */ + public okhttp3.Call cancelCreatingProjectMP4Async(String projectUuid, String videoUuid, String mp4Uuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = cancelCreatingProjectMP4ValidateBeforeCall(projectUuid, videoUuid, mp4Uuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createJpeg + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param createJpegRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
400 Bad Request -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call createJpegCall(String videoUuid, CreateJpegRequest createJpegRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = createJpegRequest; + + // create path and map variables + String localVarPath = "/media/videos/{video_uuid}/jpegs" + .replace("{" + "video_uuid" + "}", localVarApiClient.escapeString(videoUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call createJpegValidateBeforeCall(String videoUuid, CreateJpegRequest createJpegRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'videoUuid' is set + if (videoUuid == null) { + throw new ApiException("Missing the required parameter 'videoUuid' when calling createJpeg(Async)"); + } + + return createJpegCall(videoUuid, createJpegRequest, _callback); + + } + + /** + * Create JPEG + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)を変換してJPEGデータを作成します。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param createJpegRequest (optional) + * @return Jpeg + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
400 Bad Request -
+ * @deprecated + */ + @Deprecated + public Jpeg createJpeg(String videoUuid, CreateJpegRequest createJpegRequest) throws ApiException { + ApiResponse localVarResp = createJpegWithHttpInfo(videoUuid, createJpegRequest); + return localVarResp.getData(); + } + + /** + * Create JPEG + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)を変換してJPEGデータを作成します。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param createJpegRequest (optional) + * @return ApiResponse<Jpeg> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
400 Bad Request -
+ * @deprecated + */ + @Deprecated + public ApiResponse createJpegWithHttpInfo(String videoUuid, CreateJpegRequest createJpegRequest) throws ApiException { + okhttp3.Call localVarCall = createJpegValidateBeforeCall(videoUuid, createJpegRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create JPEG (asynchronously) + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)を変換してJPEGデータを作成します。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param createJpegRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
400 Bad Request -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call createJpegAsync(String videoUuid, CreateJpegRequest createJpegRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createJpegValidateBeforeCall(videoUuid, createJpegRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createMP4 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param createMP4Request (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
400 Bad Request -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call createMP4Call(String videoUuid, CreateMP4Request createMP4Request, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = createMP4Request; + + // create path and map variables + String localVarPath = "/media/videos/{video_uuid}/mp4s" + .replace("{" + "video_uuid" + "}", localVarApiClient.escapeString(videoUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call createMP4ValidateBeforeCall(String videoUuid, CreateMP4Request createMP4Request, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'videoUuid' is set + if (videoUuid == null) { + throw new ApiException("Missing the required parameter 'videoUuid' when calling createMP4(Async)"); + } + + return createMP4Call(videoUuid, createMP4Request, _callback); + + } + + /** + * Create MP4 + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)を変換してMP4データを作成します。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param createMP4Request (optional) + * @return MP4 + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
400 Bad Request -
+ * @deprecated + */ + @Deprecated + public MP4 createMP4(String videoUuid, CreateMP4Request createMP4Request) throws ApiException { + ApiResponse localVarResp = createMP4WithHttpInfo(videoUuid, createMP4Request); + return localVarResp.getData(); + } + + /** + * Create MP4 + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)を変換してMP4データを作成します。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param createMP4Request (optional) + * @return ApiResponse<MP4> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
400 Bad Request -
+ * @deprecated + */ + @Deprecated + public ApiResponse createMP4WithHttpInfo(String videoUuid, CreateMP4Request createMP4Request) throws ApiException { + okhttp3.Call localVarCall = createMP4ValidateBeforeCall(videoUuid, createMP4Request, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create MP4 (asynchronously) + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)を変換してMP4データを作成します。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param createMP4Request (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
400 Bad Request -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call createMP4Async(String videoUuid, CreateMP4Request createMP4Request, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createMP4ValidateBeforeCall(videoUuid, createMP4Request, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createProjectJpeg + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param createJpegRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
400 Bad Request -
+ */ + public okhttp3.Call createProjectJpegCall(String projectUuid, String videoUuid, CreateJpegRequest createJpegRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = createJpegRequest; + + // create path and map variables + String localVarPath = "/media/projects/{project_uuid}/videos/{video_uuid}/jpegs" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "video_uuid" + "}", localVarApiClient.escapeString(videoUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createProjectJpegValidateBeforeCall(String projectUuid, String videoUuid, CreateJpegRequest createJpegRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling createProjectJpeg(Async)"); + } + + // verify the required parameter 'videoUuid' is set + if (videoUuid == null) { + throw new ApiException("Missing the required parameter 'videoUuid' when calling createProjectJpeg(Async)"); + } + + return createProjectJpegCall(projectUuid, videoUuid, createJpegRequest, _callback); + + } + + /** + * Create Project JPEG + * 動画(video)を変換してJPEGデータを作成します。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param createJpegRequest (optional) + * @return Jpeg + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
400 Bad Request -
+ */ + public Jpeg createProjectJpeg(String projectUuid, String videoUuid, CreateJpegRequest createJpegRequest) throws ApiException { + ApiResponse localVarResp = createProjectJpegWithHttpInfo(projectUuid, videoUuid, createJpegRequest); + return localVarResp.getData(); + } + + /** + * Create Project JPEG + * 動画(video)を変換してJPEGデータを作成します。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param createJpegRequest (optional) + * @return ApiResponse<Jpeg> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
400 Bad Request -
+ */ + public ApiResponse createProjectJpegWithHttpInfo(String projectUuid, String videoUuid, CreateJpegRequest createJpegRequest) throws ApiException { + okhttp3.Call localVarCall = createProjectJpegValidateBeforeCall(projectUuid, videoUuid, createJpegRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Project JPEG (asynchronously) + * 動画(video)を変換してJPEGデータを作成します。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param createJpegRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
400 Bad Request -
+ */ + public okhttp3.Call createProjectJpegAsync(String projectUuid, String videoUuid, CreateJpegRequest createJpegRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createProjectJpegValidateBeforeCall(projectUuid, videoUuid, createJpegRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createProjectMP4 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param createMP4Request (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
400 Bad Request -
+ */ + public okhttp3.Call createProjectMP4Call(String projectUuid, String videoUuid, CreateMP4Request createMP4Request, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = createMP4Request; + + // create path and map variables + String localVarPath = "/media/projects/{project_uuid}/videos/{video_uuid}/mp4s" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "video_uuid" + "}", localVarApiClient.escapeString(videoUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createProjectMP4ValidateBeforeCall(String projectUuid, String videoUuid, CreateMP4Request createMP4Request, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling createProjectMP4(Async)"); + } + + // verify the required parameter 'videoUuid' is set + if (videoUuid == null) { + throw new ApiException("Missing the required parameter 'videoUuid' when calling createProjectMP4(Async)"); + } + + return createProjectMP4Call(projectUuid, videoUuid, createMP4Request, _callback); + + } + + /** + * Create Project MP4 + * 動画(video)を変換してMP4データを作成します。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param createMP4Request (optional) + * @return MP4 + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
400 Bad Request -
+ */ + public MP4 createProjectMP4(String projectUuid, String videoUuid, CreateMP4Request createMP4Request) throws ApiException { + ApiResponse localVarResp = createProjectMP4WithHttpInfo(projectUuid, videoUuid, createMP4Request); + return localVarResp.getData(); + } + + /** + * Create Project MP4 + * 動画(video)を変換してMP4データを作成します。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param createMP4Request (optional) + * @return ApiResponse<MP4> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
400 Bad Request -
+ */ + public ApiResponse createProjectMP4WithHttpInfo(String projectUuid, String videoUuid, CreateMP4Request createMP4Request) throws ApiException { + okhttp3.Call localVarCall = createProjectMP4ValidateBeforeCall(projectUuid, videoUuid, createMP4Request, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create Project MP4 (asynchronously) + * 動画(video)を変換してMP4データを作成します。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param createMP4Request (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
400 Bad Request -
+ */ + public okhttp3.Call createProjectMP4Async(String projectUuid, String videoUuid, CreateMP4Request createMP4Request, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createProjectMP4ValidateBeforeCall(projectUuid, videoUuid, createMP4Request, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteJpeg + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call deleteJpegCall(String videoUuid, String jpegUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/videos/{video_uuid}/jpegs/{jpeg_uuid}" + .replace("{" + "video_uuid" + "}", localVarApiClient.escapeString(videoUuid.toString())) + .replace("{" + "jpeg_uuid" + "}", localVarApiClient.escapeString(jpegUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteJpegValidateBeforeCall(String videoUuid, String jpegUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'videoUuid' is set + if (videoUuid == null) { + throw new ApiException("Missing the required parameter 'videoUuid' when calling deleteJpeg(Async)"); + } + + // verify the required parameter 'jpegUuid' is set + if (jpegUuid == null) { + throw new ApiException("Missing the required parameter 'jpegUuid' when calling deleteJpeg(Async)"); + } + + return deleteJpegCall(videoUuid, jpegUuid, _callback); + + } + + /** + * Delete JPEG + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)から変換されたJPEGデータを削除します。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public void deleteJpeg(String videoUuid, String jpegUuid) throws ApiException { + deleteJpegWithHttpInfo(videoUuid, jpegUuid); + } + + /** + * Delete JPEG + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)から変換されたJPEGデータを削除します。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public ApiResponse deleteJpegWithHttpInfo(String videoUuid, String jpegUuid) throws ApiException { + okhttp3.Call localVarCall = deleteJpegValidateBeforeCall(videoUuid, jpegUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete JPEG (asynchronously) + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)から変換されたJPEGデータを削除します。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call deleteJpegAsync(String videoUuid, String jpegUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteJpegValidateBeforeCall(videoUuid, jpegUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteMP4 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param mp4Uuid MP4のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call deleteMP4Call(String videoUuid, String mp4Uuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/videos/{video_uuid}/mp4s/{mp4_uuid}" + .replace("{" + "video_uuid" + "}", localVarApiClient.escapeString(videoUuid.toString())) + .replace("{" + "mp4_uuid" + "}", localVarApiClient.escapeString(mp4Uuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteMP4ValidateBeforeCall(String videoUuid, String mp4Uuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'videoUuid' is set + if (videoUuid == null) { + throw new ApiException("Missing the required parameter 'videoUuid' when calling deleteMP4(Async)"); + } + + // verify the required parameter 'mp4Uuid' is set + if (mp4Uuid == null) { + throw new ApiException("Missing the required parameter 'mp4Uuid' when calling deleteMP4(Async)"); + } + + return deleteMP4Call(videoUuid, mp4Uuid, _callback); + + } + + /** + * Delete MP4 + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)から変換されたMP4データを削除します。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param mp4Uuid MP4のUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public void deleteMP4(String videoUuid, String mp4Uuid) throws ApiException { + deleteMP4WithHttpInfo(videoUuid, mp4Uuid); + } + + /** + * Delete MP4 + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)から変換されたMP4データを削除します。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param mp4Uuid MP4のUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public ApiResponse deleteMP4WithHttpInfo(String videoUuid, String mp4Uuid) throws ApiException { + okhttp3.Call localVarCall = deleteMP4ValidateBeforeCall(videoUuid, mp4Uuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete MP4 (asynchronously) + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)から変換されたMP4データを削除します。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param mp4Uuid MP4のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call deleteMP4Async(String videoUuid, String mp4Uuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteMP4ValidateBeforeCall(videoUuid, mp4Uuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteProjectJpeg + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteProjectJpegCall(String projectUuid, String videoUuid, String jpegUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/projects/{project_uuid}/videos/{video_uuid}/jpegs/{jpeg_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "video_uuid" + "}", localVarApiClient.escapeString(videoUuid.toString())) + .replace("{" + "jpeg_uuid" + "}", localVarApiClient.escapeString(jpegUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteProjectJpegValidateBeforeCall(String projectUuid, String videoUuid, String jpegUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling deleteProjectJpeg(Async)"); + } + + // verify the required parameter 'videoUuid' is set + if (videoUuid == null) { + throw new ApiException("Missing the required parameter 'videoUuid' when calling deleteProjectJpeg(Async)"); + } + + // verify the required parameter 'jpegUuid' is set + if (jpegUuid == null) { + throw new ApiException("Missing the required parameter 'jpegUuid' when calling deleteProjectJpeg(Async)"); + } + + return deleteProjectJpegCall(projectUuid, videoUuid, jpegUuid, _callback); + + } + + /** + * Delete Project JPEG + * 動画(video)から変換されたJPEGデータを削除します。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void deleteProjectJpeg(String projectUuid, String videoUuid, String jpegUuid) throws ApiException { + deleteProjectJpegWithHttpInfo(projectUuid, videoUuid, jpegUuid); + } + + /** + * Delete Project JPEG + * 動画(video)から変換されたJPEGデータを削除します。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse deleteProjectJpegWithHttpInfo(String projectUuid, String videoUuid, String jpegUuid) throws ApiException { + okhttp3.Call localVarCall = deleteProjectJpegValidateBeforeCall(projectUuid, videoUuid, jpegUuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete Project JPEG (asynchronously) + * 動画(video)から変換されたJPEGデータを削除します。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteProjectJpegAsync(String projectUuid, String videoUuid, String jpegUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteProjectJpegValidateBeforeCall(projectUuid, videoUuid, jpegUuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteProjectMP4 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param mp4Uuid MP4のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteProjectMP4Call(String projectUuid, String videoUuid, String mp4Uuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/projects/{project_uuid}/videos/{video_uuid}/mp4s/{mp4_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "video_uuid" + "}", localVarApiClient.escapeString(videoUuid.toString())) + .replace("{" + "mp4_uuid" + "}", localVarApiClient.escapeString(mp4Uuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteProjectMP4ValidateBeforeCall(String projectUuid, String videoUuid, String mp4Uuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling deleteProjectMP4(Async)"); + } + + // verify the required parameter 'videoUuid' is set + if (videoUuid == null) { + throw new ApiException("Missing the required parameter 'videoUuid' when calling deleteProjectMP4(Async)"); + } + + // verify the required parameter 'mp4Uuid' is set + if (mp4Uuid == null) { + throw new ApiException("Missing the required parameter 'mp4Uuid' when calling deleteProjectMP4(Async)"); + } + + return deleteProjectMP4Call(projectUuid, videoUuid, mp4Uuid, _callback); + + } + + /** + * Delete Project MP4 + * 動画(video)から変換されたMP4データを削除します。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param mp4Uuid MP4のUUID (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public void deleteProjectMP4(String projectUuid, String videoUuid, String mp4Uuid) throws ApiException { + deleteProjectMP4WithHttpInfo(projectUuid, videoUuid, mp4Uuid); + } + + /** + * Delete Project MP4 + * 動画(video)から変換されたMP4データを削除します。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param mp4Uuid MP4のUUID (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public ApiResponse deleteProjectMP4WithHttpInfo(String projectUuid, String videoUuid, String mp4Uuid) throws ApiException { + okhttp3.Call localVarCall = deleteProjectMP4ValidateBeforeCall(projectUuid, videoUuid, mp4Uuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete Project MP4 (asynchronously) + * 動画(video)から変換されたMP4データを削除します。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param mp4Uuid MP4のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
204 No Content -
+ */ + public okhttp3.Call deleteProjectMP4Async(String projectUuid, String videoUuid, String mp4Uuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteProjectMP4ValidateBeforeCall(projectUuid, videoUuid, mp4Uuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getJpeg + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getJpegCall(String videoUuid, String jpegUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/videos/{video_uuid}/jpegs/{jpeg_uuid}" + .replace("{" + "video_uuid" + "}", localVarApiClient.escapeString(videoUuid.toString())) + .replace("{" + "jpeg_uuid" + "}", localVarApiClient.escapeString(jpegUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call getJpegValidateBeforeCall(String videoUuid, String jpegUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'videoUuid' is set + if (videoUuid == null) { + throw new ApiException("Missing the required parameter 'videoUuid' when calling getJpeg(Async)"); + } + + // verify the required parameter 'jpegUuid' is set + if (jpegUuid == null) { + throw new ApiException("Missing the required parameter 'jpegUuid' when calling getJpeg(Async)"); + } + + return getJpegCall(videoUuid, jpegUuid, _callback); + + } + + /** + * Get JPEG + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)から変換されたJPEGデータの情報を取得します。 JPEGファイル自体を取得するには、`GET /media/videos/{video_uuid}/jpegs/{jpeg_uuid}/images/selected.zip` を使用してください。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @return Jpeg + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public Jpeg getJpeg(String videoUuid, String jpegUuid) throws ApiException { + ApiResponse localVarResp = getJpegWithHttpInfo(videoUuid, jpegUuid); + return localVarResp.getData(); + } + + /** + * Get JPEG + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)から変換されたJPEGデータの情報を取得します。 JPEGファイル自体を取得するには、`GET /media/videos/{video_uuid}/jpegs/{jpeg_uuid}/images/selected.zip` を使用してください。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @return ApiResponse<Jpeg> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse getJpegWithHttpInfo(String videoUuid, String jpegUuid) throws ApiException { + okhttp3.Call localVarCall = getJpegValidateBeforeCall(videoUuid, jpegUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get JPEG (asynchronously) + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)から変換されたJPEGデータの情報を取得します。 JPEGファイル自体を取得するには、`GET /media/videos/{video_uuid}/jpegs/{jpeg_uuid}/images/selected.zip` を使用してください。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getJpegAsync(String videoUuid, String jpegUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getJpegValidateBeforeCall(videoUuid, jpegUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getJpegAsZip + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @param indexes 取得したいJPEGのインデックス番号(最初の番号は1)。指定がない場合はすべて取得します。 `indexes` パラメーターを複数回指定することで、複数のJPEGファイルを取得することができます。 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getJpegAsZipCall(String videoUuid, String jpegUuid, List indexes, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/videos/{video_uuid}/jpegs/{jpeg_uuid}/images/selected.zip" + .replace("{" + "video_uuid" + "}", localVarApiClient.escapeString(videoUuid.toString())) + .replace("{" + "jpeg_uuid" + "}", localVarApiClient.escapeString(jpegUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (indexes != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "indexes", indexes)); + } + + final String[] localVarAccepts = { + "application/zip" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call getJpegAsZipValidateBeforeCall(String videoUuid, String jpegUuid, List indexes, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'videoUuid' is set + if (videoUuid == null) { + throw new ApiException("Missing the required parameter 'videoUuid' when calling getJpegAsZip(Async)"); + } + + // verify the required parameter 'jpegUuid' is set + if (jpegUuid == null) { + throw new ApiException("Missing the required parameter 'jpegUuid' when calling getJpegAsZip(Async)"); + } + + return getJpegAsZipCall(videoUuid, jpegUuid, indexes, _callback); + + } + + /** + * Get JPEG as zip + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) JPEGデータをZIPファイルにまとめた形で取得します。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @param indexes 取得したいJPEGのインデックス番号(最初の番号は1)。指定がない場合はすべて取得します。 `indexes` パラメーターを複数回指定することで、複数のJPEGファイルを取得することができます。 (optional) + * @return File + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public File getJpegAsZip(String videoUuid, String jpegUuid, List indexes) throws ApiException { + ApiResponse localVarResp = getJpegAsZipWithHttpInfo(videoUuid, jpegUuid, indexes); + return localVarResp.getData(); + } + + /** + * Get JPEG as zip + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) JPEGデータをZIPファイルにまとめた形で取得します。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @param indexes 取得したいJPEGのインデックス番号(最初の番号は1)。指定がない場合はすべて取得します。 `indexes` パラメーターを複数回指定することで、複数のJPEGファイルを取得することができます。 (optional) + * @return ApiResponse<File> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse getJpegAsZipWithHttpInfo(String videoUuid, String jpegUuid, List indexes) throws ApiException { + okhttp3.Call localVarCall = getJpegAsZipValidateBeforeCall(videoUuid, jpegUuid, indexes, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get JPEG as zip (asynchronously) + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) JPEGデータをZIPファイルにまとめた形で取得します。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @param indexes 取得したいJPEGのインデックス番号(最初の番号は1)。指定がない場合はすべて取得します。 `indexes` パラメーターを複数回指定することで、複数のJPEGファイルを取得することができます。 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getJpegAsZipAsync(String videoUuid, String jpegUuid, List indexes, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getJpegAsZipValidateBeforeCall(videoUuid, jpegUuid, indexes, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getJpegs + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getJpegsCall(String videoUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/videos/{video_uuid}/jpegs" + .replace("{" + "video_uuid" + "}", localVarApiClient.escapeString(videoUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call getJpegsValidateBeforeCall(String videoUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'videoUuid' is set + if (videoUuid == null) { + throw new ApiException("Missing the required parameter 'videoUuid' when calling getJpegs(Async)"); + } + + return getJpegsCall(videoUuid, _callback); + + } + + /** + * List JPEGs + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)から変換されたJPEGデータのリストを取得します。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @return Jpegs + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public Jpegs getJpegs(String videoUuid) throws ApiException { + ApiResponse localVarResp = getJpegsWithHttpInfo(videoUuid); + return localVarResp.getData(); + } + + /** + * List JPEGs + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)から変換されたJPEGデータのリストを取得します。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @return ApiResponse<Jpegs> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse getJpegsWithHttpInfo(String videoUuid) throws ApiException { + okhttp3.Call localVarCall = getJpegsValidateBeforeCall(videoUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List JPEGs (asynchronously) + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)から変換されたJPEGデータのリストを取得します。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getJpegsAsync(String videoUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getJpegsValidateBeforeCall(videoUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getMP4 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param mp4Uuid MP4のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getMP4Call(String videoUuid, String mp4Uuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/videos/{video_uuid}/mp4s/{mp4_uuid}" + .replace("{" + "video_uuid" + "}", localVarApiClient.escapeString(videoUuid.toString())) + .replace("{" + "mp4_uuid" + "}", localVarApiClient.escapeString(mp4Uuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call getMP4ValidateBeforeCall(String videoUuid, String mp4Uuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'videoUuid' is set + if (videoUuid == null) { + throw new ApiException("Missing the required parameter 'videoUuid' when calling getMP4(Async)"); + } + + // verify the required parameter 'mp4Uuid' is set + if (mp4Uuid == null) { + throw new ApiException("Missing the required parameter 'mp4Uuid' when calling getMP4(Async)"); + } + + return getMP4Call(videoUuid, mp4Uuid, _callback); + + } + + /** + * Get MP4 + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)から変換されたMP4データの情報を取得します。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param mp4Uuid MP4のUUID (required) + * @return MP4 + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public MP4 getMP4(String videoUuid, String mp4Uuid) throws ApiException { + ApiResponse localVarResp = getMP4WithHttpInfo(videoUuid, mp4Uuid); + return localVarResp.getData(); + } + + /** + * Get MP4 + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)から変換されたMP4データの情報を取得します。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param mp4Uuid MP4のUUID (required) + * @return ApiResponse<MP4> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse getMP4WithHttpInfo(String videoUuid, String mp4Uuid) throws ApiException { + okhttp3.Call localVarCall = getMP4ValidateBeforeCall(videoUuid, mp4Uuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get MP4 (asynchronously) + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)から変換されたMP4データの情報を取得します。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param mp4Uuid MP4のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getMP4Async(String videoUuid, String mp4Uuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getMP4ValidateBeforeCall(videoUuid, mp4Uuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getMP4s + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getMP4sCall(String videoUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/videos/{video_uuid}/mp4s" + .replace("{" + "video_uuid" + "}", localVarApiClient.escapeString(videoUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @Deprecated + @SuppressWarnings("rawtypes") + private okhttp3.Call getMP4sValidateBeforeCall(String videoUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'videoUuid' is set + if (videoUuid == null) { + throw new ApiException("Missing the required parameter 'videoUuid' when calling getMP4s(Async)"); + } + + return getMP4sCall(videoUuid, _callback); + + } + + /** + * List MP4s + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)から変換されたMP4データのリストを取得します。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @return MP4s + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public MP4s getMP4s(String videoUuid) throws ApiException { + ApiResponse localVarResp = getMP4sWithHttpInfo(videoUuid); + return localVarResp.getData(); + } + + /** + * List MP4s + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)から変換されたMP4データのリストを取得します。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @return ApiResponse<MP4s> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public ApiResponse getMP4sWithHttpInfo(String videoUuid) throws ApiException { + okhttp3.Call localVarCall = getMP4sValidateBeforeCall(videoUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List MP4s (asynchronously) + * (Deprecated。代わりに Prefix(`/projects/00000000-0000-0000-0000-000000000000/`)が付いたエンドポイントを使用してください) 動画(video)から変換されたMP4データのリストを取得します。 + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ * @deprecated + */ + @Deprecated + public okhttp3.Call getMP4sAsync(String videoUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getMP4sValidateBeforeCall(videoUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getProjectJpeg + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectJpegCall(String projectUuid, String videoUuid, String jpegUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/projects/{project_uuid}/videos/{video_uuid}/jpegs/{jpeg_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "video_uuid" + "}", localVarApiClient.escapeString(videoUuid.toString())) + .replace("{" + "jpeg_uuid" + "}", localVarApiClient.escapeString(jpegUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getProjectJpegValidateBeforeCall(String projectUuid, String videoUuid, String jpegUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling getProjectJpeg(Async)"); + } + + // verify the required parameter 'videoUuid' is set + if (videoUuid == null) { + throw new ApiException("Missing the required parameter 'videoUuid' when calling getProjectJpeg(Async)"); + } + + // verify the required parameter 'jpegUuid' is set + if (jpegUuid == null) { + throw new ApiException("Missing the required parameter 'jpegUuid' when calling getProjectJpeg(Async)"); + } + + return getProjectJpegCall(projectUuid, videoUuid, jpegUuid, _callback); + + } + + /** + * Get Project JPEG + * 動画(video)から変換されたJPEGデータの情報を取得します。 JPEGファイル自体を取得するには、`GET /media/videos/{video_uuid}/jpegs/{jpeg_uuid}/images/selected.zip` を使用してください。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @return Jpeg + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Jpeg getProjectJpeg(String projectUuid, String videoUuid, String jpegUuid) throws ApiException { + ApiResponse localVarResp = getProjectJpegWithHttpInfo(projectUuid, videoUuid, jpegUuid); + return localVarResp.getData(); + } + + /** + * Get Project JPEG + * 動画(video)から変換されたJPEGデータの情報を取得します。 JPEGファイル自体を取得するには、`GET /media/videos/{video_uuid}/jpegs/{jpeg_uuid}/images/selected.zip` を使用してください。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @return ApiResponse<Jpeg> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getProjectJpegWithHttpInfo(String projectUuid, String videoUuid, String jpegUuid) throws ApiException { + okhttp3.Call localVarCall = getProjectJpegValidateBeforeCall(projectUuid, videoUuid, jpegUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Project JPEG (asynchronously) + * 動画(video)から変換されたJPEGデータの情報を取得します。 JPEGファイル自体を取得するには、`GET /media/videos/{video_uuid}/jpegs/{jpeg_uuid}/images/selected.zip` を使用してください。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectJpegAsync(String projectUuid, String videoUuid, String jpegUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getProjectJpegValidateBeforeCall(projectUuid, videoUuid, jpegUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getProjectJpegAsZip + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @param indexes 取得したいJPEGのインデックス番号(最初の番号は1)。指定がない場合はすべて取得します。 `indexes` パラメーターを複数回指定することで、複数のJPEGファイルを取得することができます。 (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectJpegAsZipCall(String projectUuid, String videoUuid, String jpegUuid, List indexes, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/projects/{project_uuid}/videos/{video_uuid}/jpegs/{jpeg_uuid}/images/selected.zip" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "video_uuid" + "}", localVarApiClient.escapeString(videoUuid.toString())) + .replace("{" + "jpeg_uuid" + "}", localVarApiClient.escapeString(jpegUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (indexes != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "indexes", indexes)); + } + + final String[] localVarAccepts = { + "application/zip" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getProjectJpegAsZipValidateBeforeCall(String projectUuid, String videoUuid, String jpegUuid, List indexes, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling getProjectJpegAsZip(Async)"); + } + + // verify the required parameter 'videoUuid' is set + if (videoUuid == null) { + throw new ApiException("Missing the required parameter 'videoUuid' when calling getProjectJpegAsZip(Async)"); + } + + // verify the required parameter 'jpegUuid' is set + if (jpegUuid == null) { + throw new ApiException("Missing the required parameter 'jpegUuid' when calling getProjectJpegAsZip(Async)"); + } + + return getProjectJpegAsZipCall(projectUuid, videoUuid, jpegUuid, indexes, _callback); + + } + + /** + * Get Project JPEG as zip + * JPEGデータをZIPファイルにまとめた形で取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @param indexes 取得したいJPEGのインデックス番号(最初の番号は1)。指定がない場合はすべて取得します。 `indexes` パラメーターを複数回指定することで、複数のJPEGファイルを取得することができます。 (optional) + * @return File + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public File getProjectJpegAsZip(String projectUuid, String videoUuid, String jpegUuid, List indexes) throws ApiException { + ApiResponse localVarResp = getProjectJpegAsZipWithHttpInfo(projectUuid, videoUuid, jpegUuid, indexes); + return localVarResp.getData(); + } + + /** + * Get Project JPEG as zip + * JPEGデータをZIPファイルにまとめた形で取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @param indexes 取得したいJPEGのインデックス番号(最初の番号は1)。指定がない場合はすべて取得します。 `indexes` パラメーターを複数回指定することで、複数のJPEGファイルを取得することができます。 (optional) + * @return ApiResponse<File> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getProjectJpegAsZipWithHttpInfo(String projectUuid, String videoUuid, String jpegUuid, List indexes) throws ApiException { + okhttp3.Call localVarCall = getProjectJpegAsZipValidateBeforeCall(projectUuid, videoUuid, jpegUuid, indexes, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Project JPEG as zip (asynchronously) + * JPEGデータをZIPファイルにまとめた形で取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param jpegUuid JPEGのUUID (required) + * @param indexes 取得したいJPEGのインデックス番号(最初の番号は1)。指定がない場合はすべて取得します。 `indexes` パラメーターを複数回指定することで、複数のJPEGファイルを取得することができます。 (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectJpegAsZipAsync(String projectUuid, String videoUuid, String jpegUuid, List indexes, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getProjectJpegAsZipValidateBeforeCall(projectUuid, videoUuid, jpegUuid, indexes, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getProjectJpegs + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectJpegsCall(String projectUuid, String videoUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/projects/{project_uuid}/videos/{video_uuid}/jpegs" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "video_uuid" + "}", localVarApiClient.escapeString(videoUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getProjectJpegsValidateBeforeCall(String projectUuid, String videoUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling getProjectJpegs(Async)"); + } + + // verify the required parameter 'videoUuid' is set + if (videoUuid == null) { + throw new ApiException("Missing the required parameter 'videoUuid' when calling getProjectJpegs(Async)"); + } + + return getProjectJpegsCall(projectUuid, videoUuid, _callback); + + } + + /** + * List Project JPEGs + * 動画(video)から変換されたJPEGデータのリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @return Jpegs + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Jpegs getProjectJpegs(String projectUuid, String videoUuid) throws ApiException { + ApiResponse localVarResp = getProjectJpegsWithHttpInfo(projectUuid, videoUuid); + return localVarResp.getData(); + } + + /** + * List Project JPEGs + * 動画(video)から変換されたJPEGデータのリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @return ApiResponse<Jpegs> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getProjectJpegsWithHttpInfo(String projectUuid, String videoUuid) throws ApiException { + okhttp3.Call localVarCall = getProjectJpegsValidateBeforeCall(projectUuid, videoUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Project JPEGs (asynchronously) + * 動画(video)から変換されたJPEGデータのリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectJpegsAsync(String projectUuid, String videoUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getProjectJpegsValidateBeforeCall(projectUuid, videoUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getProjectMP4 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param mp4Uuid MP4のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectMP4Call(String projectUuid, String videoUuid, String mp4Uuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/projects/{project_uuid}/videos/{video_uuid}/mp4s/{mp4_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "video_uuid" + "}", localVarApiClient.escapeString(videoUuid.toString())) + .replace("{" + "mp4_uuid" + "}", localVarApiClient.escapeString(mp4Uuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getProjectMP4ValidateBeforeCall(String projectUuid, String videoUuid, String mp4Uuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling getProjectMP4(Async)"); + } + + // verify the required parameter 'videoUuid' is set + if (videoUuid == null) { + throw new ApiException("Missing the required parameter 'videoUuid' when calling getProjectMP4(Async)"); + } + + // verify the required parameter 'mp4Uuid' is set + if (mp4Uuid == null) { + throw new ApiException("Missing the required parameter 'mp4Uuid' when calling getProjectMP4(Async)"); + } + + return getProjectMP4Call(projectUuid, videoUuid, mp4Uuid, _callback); + + } + + /** + * Get Project MP4 + * 動画(video)から変換されたMP4データの情報を取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param mp4Uuid MP4のUUID (required) + * @return MP4 + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public MP4 getProjectMP4(String projectUuid, String videoUuid, String mp4Uuid) throws ApiException { + ApiResponse localVarResp = getProjectMP4WithHttpInfo(projectUuid, videoUuid, mp4Uuid); + return localVarResp.getData(); + } + + /** + * Get Project MP4 + * 動画(video)から変換されたMP4データの情報を取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param mp4Uuid MP4のUUID (required) + * @return ApiResponse<MP4> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getProjectMP4WithHttpInfo(String projectUuid, String videoUuid, String mp4Uuid) throws ApiException { + okhttp3.Call localVarCall = getProjectMP4ValidateBeforeCall(projectUuid, videoUuid, mp4Uuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get Project MP4 (asynchronously) + * 動画(video)から変換されたMP4データの情報を取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param mp4Uuid MP4のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectMP4Async(String projectUuid, String videoUuid, String mp4Uuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getProjectMP4ValidateBeforeCall(projectUuid, videoUuid, mp4Uuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getProjectMP4s + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectMP4sCall(String projectUuid, String videoUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/projects/{project_uuid}/videos/{video_uuid}/mp4s" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "video_uuid" + "}", localVarApiClient.escapeString(videoUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getProjectMP4sValidateBeforeCall(String projectUuid, String videoUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling getProjectMP4s(Async)"); + } + + // verify the required parameter 'videoUuid' is set + if (videoUuid == null) { + throw new ApiException("Missing the required parameter 'videoUuid' when calling getProjectMP4s(Async)"); + } + + return getProjectMP4sCall(projectUuid, videoUuid, _callback); + + } + + /** + * List Project MP4s + * 動画(video)から変換されたMP4データのリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @return MP4s + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public MP4s getProjectMP4s(String projectUuid, String videoUuid) throws ApiException { + ApiResponse localVarResp = getProjectMP4sWithHttpInfo(projectUuid, videoUuid); + return localVarResp.getData(); + } + + /** + * List Project MP4s + * 動画(video)から変換されたMP4データのリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @return ApiResponse<MP4s> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getProjectMP4sWithHttpInfo(String projectUuid, String videoUuid) throws ApiException { + okhttp3.Call localVarCall = getProjectMP4sValidateBeforeCall(projectUuid, videoUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Project MP4s (asynchronously) + * 動画(video)から変換されたMP4データのリストを取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectMP4sAsync(String projectUuid, String videoUuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getProjectMP4sValidateBeforeCall(projectUuid, videoUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getProjectVideo + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getProjectVideoCall(String projectUuid, String videoUuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/media/projects/{project_uuid}/videos/{video_uuid}" + .replace("{" + "project_uuid" + "}", localVarApiClient.escapeString(projectUuid.toString())) + .replace("{" + "video_uuid" + "}", localVarApiClient.escapeString(videoUuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json; charset=utf-8" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "IntdashToken", "OAuth2TokenInCookie", "OAuth2TokenInHeader" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getProjectVideoValidateBeforeCall(String projectUuid, String videoUuid, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'projectUuid' is set + if (projectUuid == null) { + throw new ApiException("Missing the required parameter 'projectUuid' when calling getProjectVideo(Async)"); + } + + // verify the required parameter 'videoUuid' is set + if (videoUuid == null) { + throw new ApiException("Missing the required parameter 'videoUuid' when calling getProjectVideo(Async)"); + } + + return getProjectVideoCall(projectUuid, videoUuid, _callback); + + } + + /** + * Get Project Video + * 動画を取得します。 + * @param projectUuid プロジェクトのUUID (required) + * @param videoUuid 変換元の動画(video)のUUID (required) + * @return Video + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Video getProjectVideo(String projectUuid, String videoUuid) throws ApiException { + ApiResponse