All URIs are relative to https://api.soracom.io/v1
Method | HTTP request | Description |
---|---|---|
CreateLagoonUser | Post /lagoon/users | SORACOM Lagoon のユーザーを新たに作成します。 |
DeleteLagoonUser | Delete /lagoon/users/{lagoon_user_id} | SORACOM Lagoon のユーザーを削除します。 |
GetImageLink | Get /lagoon/image/link | SORACOM Lagoon の提供するカスタムアイコンのイメージへのリンク提供 |
GetLagoonMigrationInfo | Get /lagoon/migration | (廃止されました) この API は常に `410 GONE` を返却します: SORACOM Lagoon のバージョン移行に関連する情報の取得 |
InitializeLagoonDashboardPermissions | Post /lagoon/dashboards/{dashboard_id}/permissions/init | SORACOM Lagoon のダッシュボードの権限初期化 |
ListLagoonDashboardsPermissions | Get /lagoon/dashboards/permissions | SORACOM Lagoon の全ダッシュボードの権限取得 |
ListLagoonLicensePackStatus | Get /lagoon/license_packs | SORACOM Lagoon のライセンスパックのステータス取得 |
ListLagoonUsers | Get /lagoon/users | オペレーターに属する SORACOM Lagoon のユーザー一覧を取得します。 |
MigrateLagoon | Post /lagoon/migration | (廃止されました) この API は常に `410 GONE` を返却します: SORACOM Lagoon のバージョン移行の実行 |
RegisterLagoon | Post /lagoon/register | SORACOM Lagoon サービスを有効にします。 |
TerminateLagoon | Post /lagoon/terminate | SORACOM Lagoon サービスの使用を終了します。 |
UpdateLagoonDashboardPermissions | Put /lagoon/dashboards/{dashboard_id}/permissions | SORACOM Lagoon のダッシュボード権限更新 |
UpdateLagoonLicensePack | Put /lagoon/license_packs | SORACOM Lagoon の追加ライセンスパック更新・変更 |
UpdateLagoonPlan | Put /lagoon/plan | SORACOM Lagoon のプラン変更 |
UpdateLagoonUserEmail | Put /lagoon/users/{lagoon_user_id}/email | SORACOM Lagoon のユーザーのメールアドレスを変更します。 |
UpdateLagoonUserPassword | Put /lagoon/users/{lagoon_user_id}/password | SORACOM Lagoon のユーザーのパスワードを変更します。 |
UpdateLagoonUserPermission | Put /lagoon/users/{lagoon_user_id}/permission | SORACOM Lagoon のユーザーの権限を変更します。 |
LagoonUserCreationResponse CreateLagoonUser(ctx).LagoonUserCreationRequest(lagoonUserCreationRequest).Execute()
SORACOM Lagoon のユーザーを新たに作成します。
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
lagoonUserCreationRequest := *openapiclient.NewLagoonUserCreationRequest() // LagoonUserCreationRequest | request
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LagoonApi.CreateLagoonUser(context.Background()).LagoonUserCreationRequest(lagoonUserCreationRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LagoonApi.CreateLagoonUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateLagoonUser`: LagoonUserCreationResponse
fmt.Fprintf(os.Stdout, "Response from `LagoonApi.CreateLagoonUser`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreateLagoonUserRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
lagoonUserCreationRequest | LagoonUserCreationRequest | request |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteLagoonUser(ctx, lagoonUserId).Execute()
SORACOM Lagoon のユーザーを削除します。
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
lagoonUserId := int32(56) // int32 | Target ID of the lagoon user
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LagoonApi.DeleteLagoonUser(context.Background(), lagoonUserId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LagoonApi.DeleteLagoonUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
lagoonUserId | int32 | Target ID of the lagoon user |
Other parameters are passed through a pointer to a apiDeleteLagoonUserRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string GetImageLink(ctx).Classic(classic).Execute()
SORACOM Lagoon の提供するカスタムアイコンのイメージへのリンク提供
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
classic := true // bool | If the value is true, a request will be issued to Lagoon Classic. This is only valid if both Lagoon and Lagoon Classic are enabled. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LagoonApi.GetImageLink(context.Background()).Classic(classic).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LagoonApi.GetImageLink``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetImageLink`: string
fmt.Fprintf(os.Stdout, "Response from `LagoonApi.GetImageLink`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiGetImageLinkRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
classic | bool | If the value is true, a request will be issued to Lagoon Classic. This is only valid if both Lagoon and Lagoon Classic are enabled. |
string
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetLagoonMigrationInfo(ctx).LagoonPlanChangingRequest(lagoonPlanChangingRequest).Execute()
(廃止されました) この API は常に 410 GONE
を返却します: SORACOM Lagoon のバージョン移行に関連する情報の取得
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
lagoonPlanChangingRequest := *openapiclient.NewLagoonPlanChangingRequest() // LagoonPlanChangingRequest | req
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LagoonApi.GetLagoonMigrationInfo(context.Background()).LagoonPlanChangingRequest(lagoonPlanChangingRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LagoonApi.GetLagoonMigrationInfo``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiGetLagoonMigrationInfoRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
lagoonPlanChangingRequest | LagoonPlanChangingRequest | req |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InitializeLagoonDashboardPermissions(ctx, dashboardId).Classic(classic).Execute()
SORACOM Lagoon のダッシュボードの権限初期化
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
dashboardId := int64(789) // int64 | dashboard_id
classic := true // bool | If the value is true, a request will be issued to Lagoon Classic. This is only valid if both Lagoon and Lagoon Classic are enabled. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LagoonApi.InitializeLagoonDashboardPermissions(context.Background(), dashboardId).Classic(classic).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LagoonApi.InitializeLagoonDashboardPermissions``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
dashboardId | int64 | dashboard_id |
Other parameters are passed through a pointer to a apiInitializeLagoonDashboardPermissionsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
classic | bool | If the value is true, a request will be issued to Lagoon Classic. This is only valid if both Lagoon and Lagoon Classic are enabled. |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]LagoonDashboardPermissionsResponse ListLagoonDashboardsPermissions(ctx).Classic(classic).Execute()
SORACOM Lagoon の全ダッシュボードの権限取得
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
classic := true // bool | If the value is true, a request will be issued to Lagoon Classic. This is only valid if both Lagoon and Lagoon Classic are enabled. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LagoonApi.ListLagoonDashboardsPermissions(context.Background()).Classic(classic).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LagoonApi.ListLagoonDashboardsPermissions``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListLagoonDashboardsPermissions`: []LagoonDashboardPermissionsResponse
fmt.Fprintf(os.Stdout, "Response from `LagoonApi.ListLagoonDashboardsPermissions`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListLagoonDashboardsPermissionsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
classic | bool | If the value is true, a request will be issued to Lagoon Classic. This is only valid if both Lagoon and Lagoon Classic are enabled. |
[]LagoonDashboardPermissionsResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]LagoonLicensePackStatusResponse ListLagoonLicensePackStatus(ctx).Execute()
SORACOM Lagoon のライセンスパックのステータス取得
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LagoonApi.ListLagoonLicensePackStatus(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LagoonApi.ListLagoonLicensePackStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListLagoonLicensePackStatus`: []LagoonLicensePackStatusResponse
fmt.Fprintf(os.Stdout, "Response from `LagoonApi.ListLagoonLicensePackStatus`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListLagoonLicensePackStatusRequest struct via the builder pattern
[]LagoonLicensePackStatusResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]LagoonUser ListLagoonUsers(ctx).Classic(classic).Execute()
オペレーターに属する SORACOM Lagoon のユーザー一覧を取得します。
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
classic := true // bool | If the value is true, a request will be issued to Lagoon Classic. This is only valid if both Lagoon and Lagoon Classic are enabled. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LagoonApi.ListLagoonUsers(context.Background()).Classic(classic).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LagoonApi.ListLagoonUsers``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListLagoonUsers`: []LagoonUser
fmt.Fprintf(os.Stdout, "Response from `LagoonApi.ListLagoonUsers`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListLagoonUsersRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
classic | bool | If the value is true, a request will be issued to Lagoon Classic. This is only valid if both Lagoon and Lagoon Classic are enabled. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MigrateLagoon(ctx).LagoonMigrationFromClassicRequest(lagoonMigrationFromClassicRequest).Execute()
(廃止されました) この API は常に 410 GONE
を返却します: SORACOM Lagoon のバージョン移行の実行
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
lagoonMigrationFromClassicRequest := *openapiclient.NewLagoonMigrationFromClassicRequest() // LagoonMigrationFromClassicRequest | req
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LagoonApi.MigrateLagoon(context.Background()).LagoonMigrationFromClassicRequest(lagoonMigrationFromClassicRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LagoonApi.MigrateLagoon``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiMigrateLagoonRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
lagoonMigrationFromClassicRequest | LagoonMigrationFromClassicRequest | req |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LagoonRegistrationResponse RegisterLagoon(ctx).LagoonRegistrationRequest(lagoonRegistrationRequest).Execute()
SORACOM Lagoon サービスを有効にします。
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
lagoonRegistrationRequest := *openapiclient.NewLagoonRegistrationRequest() // LagoonRegistrationRequest | request
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LagoonApi.RegisterLagoon(context.Background()).LagoonRegistrationRequest(lagoonRegistrationRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LagoonApi.RegisterLagoon``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RegisterLagoon`: LagoonRegistrationResponse
fmt.Fprintf(os.Stdout, "Response from `LagoonApi.RegisterLagoon`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiRegisterLagoonRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
lagoonRegistrationRequest | LagoonRegistrationRequest | request |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TerminateLagoon(ctx).Execute()
SORACOM Lagoon サービスの使用を終了します。
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LagoonApi.TerminateLagoon(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LagoonApi.TerminateLagoon``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiTerminateLagoonRequest struct via the builder pattern
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateLagoonDashboardPermissions(ctx, dashboardId).LagoonDashboardPermissionsUpdatingRequest(lagoonDashboardPermissionsUpdatingRequest).Classic(classic).Execute()
SORACOM Lagoon のダッシュボード権限更新
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
dashboardId := int64(789) // int64 | dashboard_id
lagoonDashboardPermissionsUpdatingRequest := *openapiclient.NewLagoonDashboardPermissionsUpdatingRequest() // LagoonDashboardPermissionsUpdatingRequest | req
classic := true // bool | If the value is true, a request will be issued to Lagoon Classic. This is only valid if both Lagoon and Lagoon Classic are enabled. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LagoonApi.UpdateLagoonDashboardPermissions(context.Background(), dashboardId).LagoonDashboardPermissionsUpdatingRequest(lagoonDashboardPermissionsUpdatingRequest).Classic(classic).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LagoonApi.UpdateLagoonDashboardPermissions``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
dashboardId | int64 | dashboard_id |
Other parameters are passed through a pointer to a apiUpdateLagoonDashboardPermissionsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
lagoonDashboardPermissionsUpdatingRequest | LagoonDashboardPermissionsUpdatingRequest | req | classic | bool | If the value is true, a request will be issued to Lagoon Classic. This is only valid if both Lagoon and Lagoon Classic are enabled. |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateLagoonLicensePack(ctx).LagoonLicensePacksUpdatingRequest(lagoonLicensePacksUpdatingRequest).Execute()
SORACOM Lagoon の追加ライセンスパック更新・変更
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
lagoonLicensePacksUpdatingRequest := *openapiclient.NewLagoonLicensePacksUpdatingRequest() // LagoonLicensePacksUpdatingRequest | req
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LagoonApi.UpdateLagoonLicensePack(context.Background()).LagoonLicensePacksUpdatingRequest(lagoonLicensePacksUpdatingRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LagoonApi.UpdateLagoonLicensePack``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiUpdateLagoonLicensePackRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
lagoonLicensePacksUpdatingRequest | LagoonLicensePacksUpdatingRequest | req |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateLagoonPlan(ctx).LagoonPlanChangingRequest(lagoonPlanChangingRequest).Execute()
SORACOM Lagoon のプラン変更
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
lagoonPlanChangingRequest := *openapiclient.NewLagoonPlanChangingRequest() // LagoonPlanChangingRequest | req
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LagoonApi.UpdateLagoonPlan(context.Background()).LagoonPlanChangingRequest(lagoonPlanChangingRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LagoonApi.UpdateLagoonPlan``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiUpdateLagoonPlanRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
lagoonPlanChangingRequest | LagoonPlanChangingRequest | req |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateLagoonUserEmail(ctx, lagoonUserId).LagoonUserEmailUpdatingRequest(lagoonUserEmailUpdatingRequest).Execute()
SORACOM Lagoon のユーザーのメールアドレスを変更します。
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
lagoonUserId := int32(56) // int32 | Target ID of the lagoon user
lagoonUserEmailUpdatingRequest := *openapiclient.NewLagoonUserEmailUpdatingRequest() // LagoonUserEmailUpdatingRequest | request
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LagoonApi.UpdateLagoonUserEmail(context.Background(), lagoonUserId).LagoonUserEmailUpdatingRequest(lagoonUserEmailUpdatingRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LagoonApi.UpdateLagoonUserEmail``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
lagoonUserId | int32 | Target ID of the lagoon user |
Other parameters are passed through a pointer to a apiUpdateLagoonUserEmailRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
lagoonUserEmailUpdatingRequest | LagoonUserEmailUpdatingRequest | request |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateLagoonUserPassword(ctx, lagoonUserId).LagoonUserPasswordUpdatingRequest(lagoonUserPasswordUpdatingRequest).Execute()
SORACOM Lagoon のユーザーのパスワードを変更します。
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
lagoonUserId := int32(56) // int32 | Target ID of the lagoon user
lagoonUserPasswordUpdatingRequest := *openapiclient.NewLagoonUserPasswordUpdatingRequest() // LagoonUserPasswordUpdatingRequest | request
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LagoonApi.UpdateLagoonUserPassword(context.Background(), lagoonUserId).LagoonUserPasswordUpdatingRequest(lagoonUserPasswordUpdatingRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LagoonApi.UpdateLagoonUserPassword``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
lagoonUserId | int32 | Target ID of the lagoon user |
Other parameters are passed through a pointer to a apiUpdateLagoonUserPasswordRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
lagoonUserPasswordUpdatingRequest | LagoonUserPasswordUpdatingRequest | request |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateLagoonUserPermission(ctx, lagoonUserId).LagoonUserPermissionUpdatingRequest(lagoonUserPermissionUpdatingRequest).Execute()
SORACOM Lagoon のユーザーの権限を変更します。
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
lagoonUserId := int32(56) // int32 | Target ID of the lagoon user
lagoonUserPermissionUpdatingRequest := *openapiclient.NewLagoonUserPermissionUpdatingRequest() // LagoonUserPermissionUpdatingRequest | request
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LagoonApi.UpdateLagoonUserPermission(context.Background(), lagoonUserId).LagoonUserPermissionUpdatingRequest(lagoonUserPermissionUpdatingRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LagoonApi.UpdateLagoonUserPermission``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
lagoonUserId | int32 | Target ID of the lagoon user |
Other parameters are passed through a pointer to a apiUpdateLagoonUserPermissionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
lagoonUserPermissionUpdatingRequest | LagoonUserPermissionUpdatingRequest | request |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]