Documentation
¶
Overview ¶
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Code generated by soracom-cli generate-cmd. DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Assets = assets.NewFileSystem(map[string][]string{"/": {"soracom-api.en.yaml", "soracom-api.ja.yaml"}, "/cli": {"en.yaml", "ja.yaml"}, "/sandbox": {"soracom-sandbox-api.en.yaml", "soracom-sandbox-api.ja.yaml"}}, map[string]*assets.File{ "/cli": { Path: "/cli", FileMode: 0x800001fd, Mtime: time.Unix(1594891716, 1594891716863907812), Data: nil, }, "/sandbox": { Path: "/sandbox", FileMode: 0x800001fd, Mtime: time.Unix(1589532330, 1589532330074102612), Data: nil, }, "/sandbox/soracom-sandbox-api.en.yaml": { Path: "/sandbox/soracom-sandbox-api.en.yaml", FileMode: 0x1b4, Mtime: time.Unix(1594876908, 1594876908239533807), Data: []byte(_Assets97a20b3222934f45582ee03978d9d580a7ac794a), }, "/sandbox/soracom-sandbox-api.ja.yaml": { Path: "/sandbox/soracom-sandbox-api.ja.yaml", FileMode: 0x1b4, Mtime: time.Unix(1594876908, 1594876908243533807), Data: []byte(_Assetsf42da71514797c324cbb698b0b797762ff9918a7), }, "/": { Path: "/", FileMode: 0x800001fd, Mtime: time.Unix(1594943683, 1594943683416849043), Data: nil, }, "/cli/en.yaml": { Path: "/cli/en.yaml", FileMode: 0x1b4, Mtime: time.Unix(1594891716, 1594891716863907812), Data: []byte(_Assets5c7a5c077bf08178252e3232f159748d3047d4e1), }, "/cli/ja.yaml": { Path: "/cli/ja.yaml", FileMode: 0x1b4, Mtime: time.Unix(1594891716, 1594891716863907812), Data: []byte(_Assetsc656f9a20bab5c445f670257a18d5d8b67a927b2), }, "/soracom-api.en.yaml": { Path: "/soracom-api.en.yaml", FileMode: 0x1fd, Mtime: time.Unix(1594943683, 1594943683416849043), Data: []byte(_Assets0764b782d9c1bd06ad125db0a570e6abd04c472c), }, "/soracom-api.ja.yaml": { Path: "/soracom-api.ja.yaml", FileMode: 0x1fd, Mtime: time.Unix(1594943683, 1594943683416849043), Data: []byte(_Assets6869369ac6cbeb59ff80562bf70e125cfe403b8c), }}, "")
Assets returns go-assets FileSystem
var AuditLogsCmd = &cobra.Command{ Use: "audit-logs", Short: TRCLI("cli.audit-logs.summary"), Long: TRCLI(`cli.audit-logs.description`), }
AuditLogsCmd defines 'audit-logs' subcommand
var AuditLogsNapterCmd = &cobra.Command{ Use: "napter", Short: TRCLI("cli.audit-logs.napter.summary"), Long: TRCLI(`cli.audit-logs.napter.description`), }
AuditLogsNapterCmd defines 'napter' subcommand
var AuditLogsNapterGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/audit_logs/napter:get:summary"), Long: TRAPI(`/audit_logs/napter:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectAuditLogsNapterGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
AuditLogsNapterGetCmd defines 'get' subcommand
var AuditLogsNapterGetCmdFrom int64
AuditLogsNapterGetCmdFrom holds value of 'from' option
var AuditLogsNapterGetCmdLastEvaluatedKey string
AuditLogsNapterGetCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var AuditLogsNapterGetCmdLimit int64
AuditLogsNapterGetCmdLimit holds value of 'limit' option
var AuditLogsNapterGetCmdPaginate bool
AuditLogsNapterGetCmdPaginate indicates to do pagination or not
var AuditLogsNapterGetCmdResourceId string
AuditLogsNapterGetCmdResourceId holds value of 'resource_id' option
var AuditLogsNapterGetCmdResourceType string
AuditLogsNapterGetCmdResourceType holds value of 'resource_type' option
var AuditLogsNapterGetCmdTo int64
AuditLogsNapterGetCmdTo holds value of 'to' option
var AuthCmd = &cobra.Command{ Use: "auth", Short: TRAPI("/auth:post:summary"), Long: TRAPI(`/auth:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } param, err := collectAuthCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
AuthCmd defines 'auth' subcommand
var AuthCmdAuthKey string
AuthCmdAuthKey holds value of 'authKey' option
var AuthCmdAuthKeyId string
AuthCmdAuthKeyId holds value of 'authKeyId' option
var AuthCmdBody string
AuthCmdBody holds contents of request body to be sent
var AuthCmdEmail string
AuthCmdEmail holds value of 'email' option
var AuthCmdMfaOTPCode string
AuthCmdMfaOTPCode holds value of 'mfaOTPCode' option
var AuthCmdOperatorId string
AuthCmdOperatorId holds value of 'operatorId' option
var AuthCmdPassword string
AuthCmdPassword holds value of 'password' option
var AuthCmdTokenTimeoutSeconds int64
AuthCmdTokenTimeoutSeconds holds value of 'tokenTimeoutSeconds' option
var AuthCmdUserName string
AuthCmdUserName holds value of 'userName' option
var AuthIssuePasswordResetTokenCmd = &cobra.Command{ Use: "issue-password-reset-token", Short: TRAPI("/auth/password_reset_token/issue:post:summary"), Long: TRAPI(`/auth/password_reset_token/issue:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } param, err := collectAuthIssuePasswordResetTokenCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
AuthIssuePasswordResetTokenCmd defines 'issue-password-reset-token' subcommand
var AuthIssuePasswordResetTokenCmdBody string
AuthIssuePasswordResetTokenCmdBody holds contents of request body to be sent
var AuthIssuePasswordResetTokenCmdEmail string
AuthIssuePasswordResetTokenCmdEmail holds value of 'email' option
var AuthVerifyPasswordResetTokenCmd = &cobra.Command{ Use: "verify-password-reset-token", Short: TRAPI("/auth/password_reset_token/verify:post:summary"), Long: TRAPI(`/auth/password_reset_token/verify:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } param, err := collectAuthVerifyPasswordResetTokenCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
AuthVerifyPasswordResetTokenCmd defines 'verify-password-reset-token' subcommand
var AuthVerifyPasswordResetTokenCmdBody string
AuthVerifyPasswordResetTokenCmdBody holds contents of request body to be sent
var AuthVerifyPasswordResetTokenCmdPassword string
AuthVerifyPasswordResetTokenCmdPassword holds value of 'password' option
var AuthVerifyPasswordResetTokenCmdToken string
AuthVerifyPasswordResetTokenCmdToken holds value of 'token' option
var BillsCmd = &cobra.Command{ Use: "bills", Short: TRCLI("cli.bills.summary"), Long: TRCLI(`cli.bills.description`), }
BillsCmd defines 'bills' subcommand
var BillsExportCmd = &cobra.Command{ Use: "export", Short: TRAPI("/bills/{yyyyMM}/export:post:summary"), Long: TRAPI(`/bills/{yyyyMM}/export:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectBillsExportCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
BillsExportCmd defines 'export' subcommand
var BillsExportCmdExportMode string
BillsExportCmdExportMode holds value of 'export_mode' option
var BillsExportCmdYyyyMM string
BillsExportCmdYyyyMM holds value of 'yyyyMM' option
var BillsExportLatestCmd = &cobra.Command{ Use: "export-latest", Short: TRAPI("/bills/latest/export:post:summary"), Long: TRAPI(`/bills/latest/export:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectBillsExportLatestCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
BillsExportLatestCmd defines 'export-latest' subcommand
var BillsExportLatestCmdExportMode string
BillsExportLatestCmdExportMode holds value of 'export_mode' option
var BillsGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/bills/{yyyyMM}:get:summary"), Long: TRAPI(`/bills/{yyyyMM}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectBillsGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
BillsGetCmd defines 'get' subcommand
var BillsGetCmdYyyyMM string
BillsGetCmdYyyyMM holds value of 'yyyyMM' option
var BillsGetDailyCmd = &cobra.Command{ Use: "get-daily", Short: TRAPI("/bills/{yyyyMM}/daily:get:summary"), Long: TRAPI(`/bills/{yyyyMM}/daily:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectBillsGetDailyCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
BillsGetDailyCmd defines 'get-daily' subcommand
var BillsGetDailyCmdYyyyMM string
BillsGetDailyCmdYyyyMM holds value of 'yyyyMM' option
var BillsGetLatestCmd = &cobra.Command{ Use: "get-latest", Short: TRAPI("/bills/latest:get:summary"), Long: TRAPI(`/bills/latest:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectBillsGetLatestCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
BillsGetLatestCmd defines 'get-latest' subcommand
var BillsListCmd = &cobra.Command{ Use: "list", Short: TRAPI("/bills:get:summary"), Long: TRAPI(`/bills:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectBillsListCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
BillsListCmd defines 'list' subcommand
var CompletionBashCmd = &cobra.Command{ Use: "bash", Short: TRCLI("cli.completion.bash.summary"), Long: TRCLI("cli.completion.bash.description"), RunE: func(cmd *cobra.Command, args []string) error { err := RootCmd.GenBashCompletion(os.Stdout) if err != nil { return err } return nil }, }
var CompletionCmd = &cobra.Command{ Use: "completion", Short: TRCLI("cli.completion.summary"), Long: TRCLI("cli.completion.description"), RunE: func(cmd *cobra.Command, args []string) error { err := RootCmd.GenBashCompletion(os.Stdout) if err != nil { return err } return nil }, }
CompletionCmd defines 'completion' subcommand
var CompletionZshCmd = &cobra.Command{ Use: "zsh", Short: TRCLI("cli.completion.zsh.summary"), Long: TRCLI("cli.completion.zsh.description"), RunE: func(cmd *cobra.Command, args []string) error { err := RootCmd.GenZshCompletion(os.Stdout) if err != nil { return err } return nil }, }
var ConfigureCmd = &cobra.Command{ Use: "configure", Short: TRCLI("cli.configure.summary"), Long: TRCLI("cli.configure.description"), RunE: func(cmd *cobra.Command, args []string) error { pn := getSpecifiedProfileName() if pn == "" { pn = "default" } profile, err := collectProfileInfo(pn) if err != nil { cmd.SilenceUsage = true return err } err = saveProfile(pn, profile) if err != nil { cmd.SilenceUsage = true return err } return nil }, }
ConfigureCmd defines 'configure' subcommand
var ConfigureGetCmd = &cobra.Command{ Use: "get", Short: TRCLI("cli.configure.get.summary"), Long: TRCLI("cli.configure.get.description"), RunE: func(cmd *cobra.Command, args []string) error { pn := getSpecifiedProfileName() if pn == "" { pn = "default" } p, err := loadProfile(pn) if err != nil { return err } return prettyPrintObjectAsJSON(p) }, }
ConfigureGetCmd defineds 'get' subcommand
var ConfigureSandboxAuthKey string
var ConfigureSandboxAuthKeyID string
var ConfigureSandboxCmd = &cobra.Command{ Use: "configure-sandbox", Short: TRCLI("cli.configure_sandbox.summary"), Long: TRCLI("cli.configure_sandbox.description"), RunE: func(cmd *cobra.Command, args []string) error { pn := getSpecifiedSandboxProfileName() var p *profile var err error if ConfigureSandboxAuthKeyID == "" || ConfigureSandboxAuthKey == "" || ConfigureSandboxEmail == "" || ConfigureSandboxPassword == "" { p, err = collectSandboxProfileInfo(pn, ConfigureSandboxRegisterPaymentMethod) if err != nil { cmd.SilenceUsage = true return err } ep := getSpecifiedSandboxEndpoint(p.CoverageType) p.Endpoint = &ep } else { ct := getSpecifiedCoverageType() ep := getSpecifiedSandboxEndpoint(ct) p = &profile{ Sandbox: true, CoverageType: ct, Endpoint: &ep, AuthKeyID: &ConfigureSandboxAuthKeyID, AuthKey: &ConfigureSandboxAuthKey, Email: &ConfigureSandboxEmail, Password: &ConfigureSandboxPassword, RegisterPaymentMethod: ConfigureSandboxRegisterPaymentMethod, } } _, err = sandboxInit(p) if err != nil { cmd.SilenceUsage = true return err } p.AuthKeyID = nil p.AuthKey = nil err = saveProfile(pn, p) if err != nil { cmd.SilenceUsage = true return err } return nil }, }
ConfigureSandboxCmd defines 'configure-sandbox' subcommand
var ConfigureSandboxEmail string
var ConfigureSandboxPassword string
var ConfigureSandboxRegisterPaymentMethod bool
var CouponsCmd = &cobra.Command{ Use: "coupons", Short: TRCLI("cli.coupons.summary"), Long: TRCLI(`cli.coupons.description`), }
CouponsCmd defines 'coupons' subcommand
var CouponsListCmd = &cobra.Command{ Use: "list", Short: TRAPI("/coupons:get:summary"), Long: TRAPI(`/coupons:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectCouponsListCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
CouponsListCmd defines 'list' subcommand
var CouponsRegisterCmd = &cobra.Command{ Use: "register", Short: TRAPI("/coupons/{coupon_code}/register:post:summary"), Long: TRAPI(`/coupons/{coupon_code}/register:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectCouponsRegisterCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
CouponsRegisterCmd defines 'register' subcommand
var CouponsRegisterCmdCouponCode string
CouponsRegisterCmdCouponCode holds value of 'coupon_code' option
var CredentialsCmd = &cobra.Command{ Use: "credentials", Short: TRCLI("cli.credentials.summary"), Long: TRCLI(`cli.credentials.description`), }
CredentialsCmd defines 'credentials' subcommand
var CredentialsCreateCmd = &cobra.Command{ Use: "create", Short: TRAPI("/credentials/{credentials_id}:post:summary"), Long: TRAPI(`/credentials/{credentials_id}:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectCredentialsCreateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
CredentialsCreateCmd defines 'create' subcommand
var CredentialsCreateCmdBody string
CredentialsCreateCmdBody holds contents of request body to be sent
var CredentialsCreateCmdCredentialsId string
CredentialsCreateCmdCredentialsId holds value of 'credentials_id' option
var CredentialsCreateCmdDescription string
CredentialsCreateCmdDescription holds value of 'description' option
var CredentialsCreateCmdType string
CredentialsCreateCmdType holds value of 'type' option
var CredentialsDeleteCmd = &cobra.Command{ Use: "delete", Short: TRAPI("/credentials/{credentials_id}:delete:summary"), Long: TRAPI(`/credentials/{credentials_id}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectCredentialsDeleteCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
CredentialsDeleteCmd defines 'delete' subcommand
var CredentialsDeleteCmdCredentialsId string
CredentialsDeleteCmdCredentialsId holds value of 'credentials_id' option
var CredentialsListCmd = &cobra.Command{ Use: "list", Short: TRAPI("/credentials:get:summary"), Long: TRAPI(`/credentials:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectCredentialsListCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
CredentialsListCmd defines 'list' subcommand
var CredentialsUpdateCmd = &cobra.Command{ Use: "update", Short: TRAPI("/credentials/{credentials_id}:put:summary"), Long: TRAPI(`/credentials/{credentials_id}:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectCredentialsUpdateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
CredentialsUpdateCmd defines 'update' subcommand
var CredentialsUpdateCmdBody string
CredentialsUpdateCmdBody holds contents of request body to be sent
var CredentialsUpdateCmdCredentialsId string
CredentialsUpdateCmdCredentialsId holds value of 'credentials_id' option
var CredentialsUpdateCmdDescription string
CredentialsUpdateCmdDescription holds value of 'description' option
var CredentialsUpdateCmdType string
CredentialsUpdateCmdType holds value of 'type' option
var DataCmd = &cobra.Command{ Use: "data", Short: TRCLI("cli.data.summary"), Long: TRCLI(`cli.data.description`), }
DataCmd defines 'data' subcommand
var DataDeleteEntryCmd = &cobra.Command{ Use: "delete-entry", Short: TRAPI("/data/{resource_type}/{resource_id}/{time}:delete:summary"), Long: TRAPI(`/data/{resource_type}/{resource_id}/{time}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectDataDeleteEntryCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
DataDeleteEntryCmd defines 'delete-entry' subcommand
var DataDeleteEntryCmdResourceId string
DataDeleteEntryCmdResourceId holds value of 'resource_id' option
var DataDeleteEntryCmdResourceType string
DataDeleteEntryCmdResourceType holds value of 'resource_type' option
var DataDeleteEntryCmdTime int64
DataDeleteEntryCmdTime holds value of 'time' option
var DataGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/sims/{sim_id}/data:get:summary"), Long: TRAPI(`/sims/{sim_id}/data:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectDataGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
DataGetCmd defines 'get' subcommand
var DataGetCmdFrom int64
DataGetCmdFrom holds value of 'from' option
var DataGetCmdLastEvaluatedKey string
DataGetCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var DataGetCmdLimit int64
DataGetCmdLimit holds value of 'limit' option
var DataGetCmdSimId string
DataGetCmdSimId holds value of 'sim_id' option
var DataGetCmdSort string
DataGetCmdSort holds value of 'sort' option
var DataGetCmdTo int64
DataGetCmdTo holds value of 'to' option
var DataGetEntriesCmd = &cobra.Command{ Use: "get-entries", Short: TRAPI("/data/{resource_type}/{resource_id}:get:summary"), Long: TRAPI(`/data/{resource_type}/{resource_id}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectDataGetEntriesCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
DataGetEntriesCmd defines 'get-entries' subcommand
var DataGetEntriesCmdFrom int64
DataGetEntriesCmdFrom holds value of 'from' option
var DataGetEntriesCmdLastEvaluatedKey string
DataGetEntriesCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var DataGetEntriesCmdLimit int64
DataGetEntriesCmdLimit holds value of 'limit' option
var DataGetEntriesCmdPaginate bool
DataGetEntriesCmdPaginate indicates to do pagination or not
var DataGetEntriesCmdResourceId string
DataGetEntriesCmdResourceId holds value of 'resource_id' option
var DataGetEntriesCmdResourceType string
DataGetEntriesCmdResourceType holds value of 'resource_type' option
var DataGetEntriesCmdSort string
DataGetEntriesCmdSort holds value of 'sort' option
var DataGetEntriesCmdTo int64
DataGetEntriesCmdTo holds value of 'to' option
var DataGetEntryCmd = &cobra.Command{ Use: "get-entry", Short: TRAPI("/data/{resource_type}/{resource_id}/{time}:get:summary"), Long: TRAPI(`/data/{resource_type}/{resource_id}/{time}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectDataGetEntryCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
DataGetEntryCmd defines 'get-entry' subcommand
var DataGetEntryCmdResourceId string
DataGetEntryCmdResourceId holds value of 'resource_id' option
var DataGetEntryCmdResourceType string
DataGetEntryCmdResourceType holds value of 'resource_type' option
var DataGetEntryCmdTime int64
DataGetEntryCmdTime holds value of 'time' option
var DataListSourceResourcesCmd = &cobra.Command{ Use: "list-source-resources", Short: TRAPI("/data/resources:get:summary"), Long: TRAPI(`/data/resources:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectDataListSourceResourcesCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
DataListSourceResourcesCmd defines 'list-source-resources' subcommand
var DataListSourceResourcesCmdLastEvaluatedKey string
DataListSourceResourcesCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var DataListSourceResourcesCmdLimit int64
DataListSourceResourcesCmdLimit holds value of 'limit' option
var DataListSourceResourcesCmdPaginate bool
DataListSourceResourcesCmdPaginate indicates to do pagination or not
var DataListSourceResourcesCmdResourceType string
DataListSourceResourcesCmdResourceType holds value of 'resource_type' option
var DevicesCmd = &cobra.Command{ Use: "devices", Short: TRCLI("cli.devices.summary"), Long: TRCLI(`cli.devices.description`), }
DevicesCmd defines 'devices' subcommand
var DevicesCreateCmd = &cobra.Command{ Use: "create", Short: TRAPI("/devices:post:summary"), Long: TRAPI(`/devices:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectDevicesCreateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
DevicesCreateCmd defines 'create' subcommand
var DevicesCreateCmdBody string
DevicesCreateCmdBody holds contents of request body to be sent
var DevicesCreateCmdDeviceId string
DevicesCreateCmdDeviceId holds value of 'device_id' option
var DevicesCreateCmdEndpoint string
DevicesCreateCmdEndpoint holds value of 'endpoint' option
var DevicesCreateCmdFirmwareVersion string
DevicesCreateCmdFirmwareVersion holds value of 'firmwareVersion' option
var DevicesCreateCmdGroupId string
DevicesCreateCmdGroupId holds value of 'groupId' option
var DevicesCreateCmdIpAddress string
DevicesCreateCmdIpAddress holds value of 'ipAddress' option
var DevicesCreateCmdLastModifiedTime string
DevicesCreateCmdLastModifiedTime holds value of 'lastModifiedTime' option
var DevicesCreateCmdLastRegistrationUpdate string
DevicesCreateCmdLastRegistrationUpdate holds value of 'lastRegistrationUpdate' option
var DevicesCreateCmdManufacturer string
DevicesCreateCmdManufacturer holds value of 'manufacturer' option
var DevicesCreateCmdModelNumber string
DevicesCreateCmdModelNumber holds value of 'modelNumber' option
var DevicesCreateCmdOnline bool
DevicesCreateCmdOnline holds value of 'online' option
var DevicesCreateCmdOperatorId string
DevicesCreateCmdOperatorId holds value of 'operatorId' option
var DevicesCreateCmdRegistrationId string
DevicesCreateCmdRegistrationId holds value of 'registrationId' option
var DevicesCreateCmdRegistrationLifeTime int64
DevicesCreateCmdRegistrationLifeTime holds value of 'registrationLifeTime' option
var DevicesCreateCmdSerialNumber string
DevicesCreateCmdSerialNumber holds value of 'serialNumber' option
var DevicesCreateObjectModelCmd = &cobra.Command{ Use: "create-object-model", Short: TRAPI("/device_object_models:post:summary"), Long: TRAPI(`/device_object_models:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectDevicesCreateObjectModelCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
DevicesCreateObjectModelCmd defines 'create-object-model' subcommand
var DevicesCreateObjectModelCmdBody string
DevicesCreateObjectModelCmdBody holds contents of request body to be sent
var DevicesCreateObjectModelCmdCreatedTime string
DevicesCreateObjectModelCmdCreatedTime holds value of 'createdTime' option
var DevicesCreateObjectModelCmdFormat string
DevicesCreateObjectModelCmdFormat holds value of 'format' option
var DevicesCreateObjectModelCmdLastModifiedTime string
DevicesCreateObjectModelCmdLastModifiedTime holds value of 'lastModifiedTime' option
var DevicesCreateObjectModelCmdObjectId string
DevicesCreateObjectModelCmdObjectId holds value of 'objectId' option
var DevicesCreateObjectModelCmdObjectName string
DevicesCreateObjectModelCmdObjectName holds value of 'objectName' option
var DevicesCreateObjectModelCmdOperatorId string
DevicesCreateObjectModelCmdOperatorId holds value of 'operatorId' option
var DevicesCreateObjectModelCmdScope string
DevicesCreateObjectModelCmdScope holds value of 'scope' option
var DevicesDeleteCmd = &cobra.Command{ Use: "delete", Short: TRAPI("/devices/{device_id}:delete:summary"), Long: TRAPI(`/devices/{device_id}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectDevicesDeleteCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
DevicesDeleteCmd defines 'delete' subcommand
var DevicesDeleteCmdDeviceId string
DevicesDeleteCmdDeviceId holds value of 'device_id' option
var DevicesDeleteDeviceTagCmd = &cobra.Command{ Use: "delete-device-tag", Short: TRAPI("/devices/{device_id}/tags/{tag_name}:delete:summary"), Long: TRAPI(`/devices/{device_id}/tags/{tag_name}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectDevicesDeleteDeviceTagCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
DevicesDeleteDeviceTagCmd defines 'delete-device-tag' subcommand
var DevicesDeleteDeviceTagCmdDeviceId string
DevicesDeleteDeviceTagCmdDeviceId holds value of 'device_id' option
var DevicesDeleteDeviceTagCmdTagName string
DevicesDeleteDeviceTagCmdTagName holds value of 'tag_name' option
var DevicesDeleteObjectModelCmd = &cobra.Command{ Use: "delete-object-model", Short: TRAPI("/device_object_models/{model_id}:delete:summary"), Long: TRAPI(`/device_object_models/{model_id}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectDevicesDeleteObjectModelCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
DevicesDeleteObjectModelCmd defines 'delete-object-model' subcommand
var DevicesDeleteObjectModelCmdModelId string
DevicesDeleteObjectModelCmdModelId holds value of 'model_id' option
var DevicesExecuteResourceCmd = &cobra.Command{ Use: "execute-resource", Short: TRAPI("/devices/{device_id}/{object}/{instance}/{resource}/execute:post:summary"), Long: TRAPI(`/devices/{device_id}/{object}/{instance}/{resource}/execute:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectDevicesExecuteResourceCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
DevicesExecuteResourceCmd defines 'execute-resource' subcommand
var DevicesExecuteResourceCmdBody string
DevicesExecuteResourceCmdBody holds contents of request body to be sent
var DevicesExecuteResourceCmdDeviceId string
DevicesExecuteResourceCmdDeviceId holds value of 'device_id' option
var DevicesExecuteResourceCmdInstance string
DevicesExecuteResourceCmdInstance holds value of 'instance' option
var DevicesExecuteResourceCmdObject string
DevicesExecuteResourceCmdObject holds value of 'object' option
var DevicesExecuteResourceCmdResource string
DevicesExecuteResourceCmdResource holds value of 'resource' option
var DevicesGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/devices/{device_id}:get:summary"), Long: TRAPI(`/devices/{device_id}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectDevicesGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
DevicesGetCmd defines 'get' subcommand
var DevicesGetCmdDeviceId string
DevicesGetCmdDeviceId holds value of 'device_id' option
var DevicesGetCmdModel bool
DevicesGetCmdModel holds value of 'model' option
var DevicesGetDataCmd = &cobra.Command{ Use: "get-data", Short: TRAPI("/devices/{device_id}/data:get:summary"), Long: TRAPI(`/devices/{device_id}/data:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectDevicesGetDataCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
DevicesGetDataCmd defines 'get-data' subcommand
var DevicesGetDataCmdDeviceId string
DevicesGetDataCmdDeviceId holds value of 'device_id' option
var DevicesGetDataCmdFrom int64
DevicesGetDataCmdFrom holds value of 'from' option
var DevicesGetDataCmdLastEvaluatedKey string
DevicesGetDataCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var DevicesGetDataCmdLimit int64
DevicesGetDataCmdLimit holds value of 'limit' option
var DevicesGetDataCmdPaginate bool
DevicesGetDataCmdPaginate indicates to do pagination or not
var DevicesGetDataCmdSort string
DevicesGetDataCmdSort holds value of 'sort' option
var DevicesGetDataCmdTo int64
DevicesGetDataCmdTo holds value of 'to' option
var DevicesGetInstanceCmd = &cobra.Command{ Use: "get-instance", Short: TRAPI("/devices/{device_id}/{object}/{instance}:get:summary"), Long: TRAPI(`/devices/{device_id}/{object}/{instance}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectDevicesGetInstanceCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
DevicesGetInstanceCmd defines 'get-instance' subcommand
var DevicesGetInstanceCmdDeviceId string
DevicesGetInstanceCmdDeviceId holds value of 'device_id' option
var DevicesGetInstanceCmdInstance string
DevicesGetInstanceCmdInstance holds value of 'instance' option
var DevicesGetInstanceCmdModel bool
DevicesGetInstanceCmdModel holds value of 'model' option
var DevicesGetInstanceCmdObject string
DevicesGetInstanceCmdObject holds value of 'object' option
var DevicesGetObjectModelCmd = &cobra.Command{ Use: "get-object-model", Short: TRAPI("/device_object_models/{model_id}:get:summary"), Long: TRAPI(`/device_object_models/{model_id}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectDevicesGetObjectModelCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
DevicesGetObjectModelCmd defines 'get-object-model' subcommand
var DevicesGetObjectModelCmdModelId string
DevicesGetObjectModelCmdModelId holds value of 'model_id' option
var DevicesGetResourceCmd = &cobra.Command{ Use: "get-resource", Short: TRAPI("/devices/{device_id}/{object}/{instance}/{resource}:get:summary"), Long: TRAPI(`/devices/{device_id}/{object}/{instance}/{resource}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectDevicesGetResourceCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
DevicesGetResourceCmd defines 'get-resource' subcommand
var DevicesGetResourceCmdDeviceId string
DevicesGetResourceCmdDeviceId holds value of 'device_id' option
var DevicesGetResourceCmdInstance string
DevicesGetResourceCmdInstance holds value of 'instance' option
var DevicesGetResourceCmdModel bool
DevicesGetResourceCmdModel holds value of 'model' option
var DevicesGetResourceCmdObject string
DevicesGetResourceCmdObject holds value of 'object' option
var DevicesGetResourceCmdResource string
DevicesGetResourceCmdResource holds value of 'resource' option
var DevicesListCmd = &cobra.Command{ Use: "list", Short: TRAPI("/devices:get:summary"), Long: TRAPI(`/devices:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectDevicesListCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
DevicesListCmd defines 'list' subcommand
var DevicesListCmdLastEvaluatedKey string
DevicesListCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var DevicesListCmdLimit int64
DevicesListCmdLimit holds value of 'limit' option
var DevicesListCmdPaginate bool
DevicesListCmdPaginate indicates to do pagination or not
var DevicesListCmdTagName string
DevicesListCmdTagName holds value of 'tag_name' option
var DevicesListCmdTagValue string
DevicesListCmdTagValue holds value of 'tag_value' option
var DevicesListCmdTagValueMatchMode string
DevicesListCmdTagValueMatchMode holds value of 'tag_value_match_mode' option
var DevicesListObjectModelsCmd = &cobra.Command{ Use: "list-object-models", Short: TRAPI("/device_object_models:get:summary"), Long: TRAPI(`/device_object_models:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectDevicesListObjectModelsCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
DevicesListObjectModelsCmd defines 'list-object-models' subcommand
var DevicesListObjectModelsCmdLastEvaluatedKey string
DevicesListObjectModelsCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var DevicesListObjectModelsCmdLimit int64
DevicesListObjectModelsCmdLimit holds value of 'limit' option
var DevicesListObjectModelsCmdPaginate bool
DevicesListObjectModelsCmdPaginate indicates to do pagination or not
var DevicesObserveResourceCmd = &cobra.Command{ Use: "observe-resource", Short: TRAPI("/devices/{device_id}/{object}/{instance}/{resource}/observe:post:summary"), Long: TRAPI(`/devices/{device_id}/{object}/{instance}/{resource}/observe:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectDevicesObserveResourceCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
DevicesObserveResourceCmd defines 'observe-resource' subcommand
var DevicesObserveResourceCmdDeviceId string
DevicesObserveResourceCmdDeviceId holds value of 'device_id' option
var DevicesObserveResourceCmdInstance string
DevicesObserveResourceCmdInstance holds value of 'instance' option
var DevicesObserveResourceCmdModel bool
DevicesObserveResourceCmdModel holds value of 'model' option
var DevicesObserveResourceCmdObject string
DevicesObserveResourceCmdObject holds value of 'object' option
var DevicesObserveResourceCmdResource string
DevicesObserveResourceCmdResource holds value of 'resource' option
var DevicesObserveResourcesCmd = &cobra.Command{ Use: "observe-resources", Short: TRAPI("/devices/{device_id}/{object}/{instance}/observe:post:summary"), Long: TRAPI(`/devices/{device_id}/{object}/{instance}/observe:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectDevicesObserveResourcesCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
DevicesObserveResourcesCmd defines 'observe-resources' subcommand
var DevicesObserveResourcesCmdDeviceId string
DevicesObserveResourcesCmdDeviceId holds value of 'device_id' option
var DevicesObserveResourcesCmdInstance string
DevicesObserveResourcesCmdInstance holds value of 'instance' option
var DevicesObserveResourcesCmdModel bool
DevicesObserveResourcesCmdModel holds value of 'model' option
var DevicesObserveResourcesCmdObject string
DevicesObserveResourcesCmdObject holds value of 'object' option
var DevicesPutDeviceTagsCmd = &cobra.Command{ Use: "put-device-tags", Short: TRAPI("/devices/{device_id}/tags:put:summary"), Long: TRAPI(`/devices/{device_id}/tags:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectDevicesPutDeviceTagsCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
DevicesPutDeviceTagsCmd defines 'put-device-tags' subcommand
var DevicesPutDeviceTagsCmdBody string
DevicesPutDeviceTagsCmdBody holds contents of request body to be sent
var DevicesPutDeviceTagsCmdDeviceId string
DevicesPutDeviceTagsCmdDeviceId holds value of 'device_id' option
var DevicesPutResourceCmd = &cobra.Command{ Use: "put-resource", Short: TRAPI("/devices/{device_id}/{object}/{instance}/{resource}:put:summary"), Long: TRAPI(`/devices/{device_id}/{object}/{instance}/{resource}:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectDevicesPutResourceCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
DevicesPutResourceCmd defines 'put-resource' subcommand
var DevicesPutResourceCmdBody string
DevicesPutResourceCmdBody holds contents of request body to be sent
var DevicesPutResourceCmdDeviceId string
DevicesPutResourceCmdDeviceId holds value of 'device_id' option
var DevicesPutResourceCmdInstance string
DevicesPutResourceCmdInstance holds value of 'instance' option
var DevicesPutResourceCmdObject string
DevicesPutResourceCmdObject holds value of 'object' option
var DevicesPutResourceCmdResource string
DevicesPutResourceCmdResource holds value of 'resource' option
var DevicesSetGroupCmd = &cobra.Command{ Use: "set-group", Short: TRAPI("/devices/{device_id}/set_group:post:summary"), Long: TRAPI(`/devices/{device_id}/set_group:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectDevicesSetGroupCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
DevicesSetGroupCmd defines 'set-group' subcommand
var DevicesSetGroupCmdBody string
DevicesSetGroupCmdBody holds contents of request body to be sent
var DevicesSetGroupCmdDeviceId string
DevicesSetGroupCmdDeviceId holds value of 'device_id' option
var DevicesSetObjectModelScopeCmd = &cobra.Command{ Use: "set-object-model-scope", Short: TRAPI("/device_object_models/{model_id}/set_scope:post:summary"), Long: TRAPI(`/device_object_models/{model_id}/set_scope:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectDevicesSetObjectModelScopeCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
DevicesSetObjectModelScopeCmd defines 'set-object-model-scope' subcommand
var DevicesSetObjectModelScopeCmdBody string
DevicesSetObjectModelScopeCmdBody holds contents of request body to be sent
var DevicesSetObjectModelScopeCmdModelId string
DevicesSetObjectModelScopeCmdModelId holds value of 'model_id' option
var DevicesSetObjectModelScopeCmdScope string
DevicesSetObjectModelScopeCmdScope holds value of 'scope' option
var DevicesUnobserveResourceCmd = &cobra.Command{ Use: "unobserve-resource", Short: TRAPI("/devices/{device_id}/{object}/{instance}/{resource}/unobserve:post:summary"), Long: TRAPI(`/devices/{device_id}/{object}/{instance}/{resource}/unobserve:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectDevicesUnobserveResourceCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
DevicesUnobserveResourceCmd defines 'unobserve-resource' subcommand
var DevicesUnobserveResourceCmdDeviceId string
DevicesUnobserveResourceCmdDeviceId holds value of 'device_id' option
var DevicesUnobserveResourceCmdInstance string
DevicesUnobserveResourceCmdInstance holds value of 'instance' option
var DevicesUnobserveResourceCmdObject string
DevicesUnobserveResourceCmdObject holds value of 'object' option
var DevicesUnobserveResourceCmdResource string
DevicesUnobserveResourceCmdResource holds value of 'resource' option
var DevicesUnobserveResourcesCmd = &cobra.Command{ Use: "unobserve-resources", Short: TRAPI("/devices/{device_id}/{object}/{instance}/unobserve:post:summary"), Long: TRAPI(`/devices/{device_id}/{object}/{instance}/unobserve:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectDevicesUnobserveResourcesCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
DevicesUnobserveResourcesCmd defines 'unobserve-resources' subcommand
var DevicesUnobserveResourcesCmdDeviceId string
DevicesUnobserveResourcesCmdDeviceId holds value of 'device_id' option
var DevicesUnobserveResourcesCmdInstance string
DevicesUnobserveResourcesCmdInstance holds value of 'instance' option
var DevicesUnobserveResourcesCmdObject string
DevicesUnobserveResourcesCmdObject holds value of 'object' option
var DevicesUnsetGroupCmd = &cobra.Command{ Use: "unset-group", Short: TRAPI("/devices/{device_id}/unset_group:post:summary"), Long: TRAPI(`/devices/{device_id}/unset_group:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectDevicesUnsetGroupCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
DevicesUnsetGroupCmd defines 'unset-group' subcommand
var DevicesUnsetGroupCmdDeviceId string
DevicesUnsetGroupCmdDeviceId holds value of 'device_id' option
var DevicesUpdateObjectModelCmd = &cobra.Command{ Use: "update-object-model", Short: TRAPI("/device_object_models/{model_id}:post:summary"), Long: TRAPI(`/device_object_models/{model_id}:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectDevicesUpdateObjectModelCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
DevicesUpdateObjectModelCmd defines 'update-object-model' subcommand
var DevicesUpdateObjectModelCmdBody string
DevicesUpdateObjectModelCmdBody holds contents of request body to be sent
var DevicesUpdateObjectModelCmdCreatedTime string
DevicesUpdateObjectModelCmdCreatedTime holds value of 'createdTime' option
var DevicesUpdateObjectModelCmdFormat string
DevicesUpdateObjectModelCmdFormat holds value of 'format' option
var DevicesUpdateObjectModelCmdLastModifiedTime string
DevicesUpdateObjectModelCmdLastModifiedTime holds value of 'lastModifiedTime' option
var DevicesUpdateObjectModelCmdModelId string
DevicesUpdateObjectModelCmdModelId holds value of 'model_id' option
var DevicesUpdateObjectModelCmdObjectId string
DevicesUpdateObjectModelCmdObjectId holds value of 'objectId' option
var DevicesUpdateObjectModelCmdObjectName string
DevicesUpdateObjectModelCmdObjectName holds value of 'objectName' option
var DevicesUpdateObjectModelCmdOperatorId string
DevicesUpdateObjectModelCmdOperatorId holds value of 'operatorId' option
var DevicesUpdateObjectModelCmdScope string
DevicesUpdateObjectModelCmdScope holds value of 'scope' option
var EventHandlersCmd = &cobra.Command{ Use: "event-handlers", Short: TRCLI("cli.event-handlers.summary"), Long: TRCLI(`cli.event-handlers.description`), }
EventHandlersCmd defines 'event-handlers' subcommand
var EventHandlersCreateCmd = &cobra.Command{ Use: "create", Short: TRAPI("/event_handlers:post:summary"), Long: TRAPI(`/event_handlers:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectEventHandlersCreateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
EventHandlersCreateCmd defines 'create' subcommand
var EventHandlersCreateCmdBody string
EventHandlersCreateCmdBody holds contents of request body to be sent
var EventHandlersCreateCmdDescription string
EventHandlersCreateCmdDescription holds value of 'description' option
var EventHandlersCreateCmdName string
EventHandlersCreateCmdName holds value of 'name' option
var EventHandlersCreateCmdStatus string
EventHandlersCreateCmdStatus holds value of 'status' option
var EventHandlersCreateCmdTargetGroupId string
EventHandlersCreateCmdTargetGroupId holds value of 'targetGroupId' option
var EventHandlersCreateCmdTargetImsi string
EventHandlersCreateCmdTargetImsi holds value of 'targetImsi' option
var EventHandlersCreateCmdTargetOperatorId string
EventHandlersCreateCmdTargetOperatorId holds value of 'targetOperatorId' option
var EventHandlersCreateCmdTargetSimId string
EventHandlersCreateCmdTargetSimId holds value of 'targetSimId' option
var EventHandlersDeleteCmd = &cobra.Command{ Use: "delete", Short: TRAPI("/event_handlers/{handler_id}:delete:summary"), Long: TRAPI(`/event_handlers/{handler_id}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectEventHandlersDeleteCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
EventHandlersDeleteCmd defines 'delete' subcommand
var EventHandlersDeleteCmdHandlerId string
EventHandlersDeleteCmdHandlerId holds value of 'handler_id' option
var EventHandlersGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/event_handlers/{handler_id}:get:summary"), Long: TRAPI(`/event_handlers/{handler_id}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectEventHandlersGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
EventHandlersGetCmd defines 'get' subcommand
var EventHandlersGetCmdHandlerId string
EventHandlersGetCmdHandlerId holds value of 'handler_id' option
var EventHandlersIgnoreCmd = &cobra.Command{ Use: "ignore", Short: TRAPI("/event_handlers/{handler_id}/subscribers/{imsi}/ignore:post:summary"), Long: TRAPI(`/event_handlers/{handler_id}/subscribers/{imsi}/ignore:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectEventHandlersIgnoreCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
EventHandlersIgnoreCmd defines 'ignore' subcommand
var EventHandlersIgnoreCmdHandlerId string
EventHandlersIgnoreCmdHandlerId holds value of 'handler_id' option
var EventHandlersIgnoreCmdImsi string
EventHandlersIgnoreCmdImsi holds value of 'imsi' option
var EventHandlersListCmd = &cobra.Command{ Use: "list", Short: TRAPI("/event_handlers:get:summary"), Long: TRAPI(`/event_handlers:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectEventHandlersListCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
EventHandlersListCmd defines 'list' subcommand
var EventHandlersListCmdTarget string
EventHandlersListCmdTarget holds value of 'target' option
var EventHandlersListForSubscriberCmd = &cobra.Command{ Use: "list-for-subscriber", Short: TRAPI("/event_handlers/subscribers/{imsi}:get:summary"), Long: TRAPI(`/event_handlers/subscribers/{imsi}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectEventHandlersListForSubscriberCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
EventHandlersListForSubscriberCmd defines 'list-for-subscriber' subcommand
var EventHandlersListForSubscriberCmdImsi string
EventHandlersListForSubscriberCmdImsi holds value of 'imsi' option
var EventHandlersUnignoreCmd = &cobra.Command{ Use: "unignore", Short: TRAPI("/event_handlers/{handler_id}/subscribers/{imsi}/ignore:delete:summary"), Long: TRAPI(`/event_handlers/{handler_id}/subscribers/{imsi}/ignore:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectEventHandlersUnignoreCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
EventHandlersUnignoreCmd defines 'unignore' subcommand
var EventHandlersUnignoreCmdHandlerId string
EventHandlersUnignoreCmdHandlerId holds value of 'handler_id' option
var EventHandlersUnignoreCmdImsi string
EventHandlersUnignoreCmdImsi holds value of 'imsi' option
var EventHandlersUpdateCmd = &cobra.Command{ Use: "update", Short: TRAPI("/event_handlers/{handler_id}:put:summary"), Long: TRAPI(`/event_handlers/{handler_id}:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectEventHandlersUpdateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
EventHandlersUpdateCmd defines 'update' subcommand
var EventHandlersUpdateCmdBody string
EventHandlersUpdateCmdBody holds contents of request body to be sent
var EventHandlersUpdateCmdHandlerId string
EventHandlersUpdateCmdHandlerId holds value of 'handler_id' option
var FilesCmd = &cobra.Command{ Use: "files", Short: TRCLI("cli.files.summary"), Long: TRCLI(`cli.files.description`), }
FilesCmd defines 'files' subcommand
var FilesDeleteCmd = &cobra.Command{ Use: "delete", Short: TRAPI("/files/{scope}/{path}:delete:summary"), Long: TRAPI(`/files/{scope}/{path}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectFilesDeleteCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
FilesDeleteCmd defines 'delete' subcommand
var FilesDeleteCmdPath string
FilesDeleteCmdPath holds value of 'path' option
var FilesDeleteCmdScope string
FilesDeleteCmdScope holds value of 'scope' option
var FilesDeleteDirectoryCmd = &cobra.Command{ Use: "delete-directory", Short: TRAPI("/files/{scope}/{path}/:delete:summary"), Long: TRAPI(`/files/{scope}/{path}/:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectFilesDeleteDirectoryCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
FilesDeleteDirectoryCmd defines 'delete-directory' subcommand
var FilesDeleteDirectoryCmdPath string
FilesDeleteDirectoryCmdPath holds value of 'path' option
var FilesDeleteDirectoryCmdScope string
FilesDeleteDirectoryCmdScope holds value of 'scope' option
var FilesGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/files/{scope}/{path}:get:summary"), Long: TRAPI(`/files/{scope}/{path}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectFilesGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } rawOutput = true if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
FilesGetCmd defines 'get' subcommand
var FilesGetCmdPath string
FilesGetCmdPath holds value of 'path' option
var FilesGetCmdScope string
FilesGetCmdScope holds value of 'scope' option
var FilesGetExportedCmd = &cobra.Command{ Use: "get-exported", Short: TRAPI("/files/exported/{exported_file_id}:get:summary"), Long: TRAPI(`/files/exported/{exported_file_id}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectFilesGetExportedCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
FilesGetExportedCmd defines 'get-exported' subcommand
var FilesGetExportedCmdExportedFileId string
FilesGetExportedCmdExportedFileId holds value of 'exported_file_id' option
var FilesGetMetadataCmd = &cobra.Command{ Use: "get-metadata", Short: TRAPI("/files/{scope}/{path}:head:summary"), Long: TRAPI(`/files/{scope}/{path}:head:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectFilesGetMetadataCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
FilesGetMetadataCmd defines 'get-metadata' subcommand
var FilesGetMetadataCmdPath string
FilesGetMetadataCmdPath holds value of 'path' option
var FilesGetMetadataCmdScope string
FilesGetMetadataCmdScope holds value of 'scope' option
var FilesListCmd = &cobra.Command{ Use: "list", Short: TRAPI("/files/{scope}/{path}/:get:summary"), Long: TRAPI(`/files/{scope}/{path}/:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectFilesListCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
FilesListCmd defines 'list' subcommand
var FilesListCmdLimit string
FilesListCmdLimit holds value of 'limit' option
var FilesListCmdPath string
FilesListCmdPath holds value of 'path' option
var FilesListCmdScope string
FilesListCmdScope holds value of 'scope' option
var FilesPutCmd = &cobra.Command{ Use: "put", Short: TRAPI("/files/{scope}/{path}:put:summary"), Long: TRAPI(`/files/{scope}/{path}:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectFilesPutCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
FilesPutCmd defines 'put' subcommand
var FilesPutCmdBody string
FilesPutCmdBody holds contents of request body to be sent
var FilesPutCmdContentType string
FilesPutCmdContentType holds value of 'content-type' option
var FilesPutCmdPath string
FilesPutCmdPath holds value of 'path' option
var FilesPutCmdScope string
FilesPutCmdScope holds value of 'scope' option
var GadgetsCmd = &cobra.Command{ Use: "gadgets", Short: TRCLI("cli.gadgets.summary"), Long: TRCLI(`cli.gadgets.description`), }
GadgetsCmd defines 'gadgets' subcommand
var GadgetsDeleteTagCmd = &cobra.Command{ Use: "delete-tag", Short: TRAPI("/gadgets/{product_id}/{serial_number}/tags/{tag_name}:delete:summary"), Long: TRAPI(`/gadgets/{product_id}/{serial_number}/tags/{tag_name}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectGadgetsDeleteTagCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
GadgetsDeleteTagCmd defines 'delete-tag' subcommand
var GadgetsDeleteTagCmdProductId string
GadgetsDeleteTagCmdProductId holds value of 'product_id' option
var GadgetsDeleteTagCmdSerialNumber string
GadgetsDeleteTagCmdSerialNumber holds value of 'serial_number' option
var GadgetsDeleteTagCmdTagName string
GadgetsDeleteTagCmdTagName holds value of 'tag_name' option
var GadgetsDisableTerminationCmd = &cobra.Command{ Use: "disable-termination", Short: TRAPI("/gadgets/{product_id}/{serial_number}/disable_termination:post:summary"), Long: TRAPI(`/gadgets/{product_id}/{serial_number}/disable_termination:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectGadgetsDisableTerminationCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
GadgetsDisableTerminationCmd defines 'disable-termination' subcommand
var GadgetsDisableTerminationCmdProductId string
GadgetsDisableTerminationCmdProductId holds value of 'product_id' option
var GadgetsDisableTerminationCmdSerialNumber string
GadgetsDisableTerminationCmdSerialNumber holds value of 'serial_number' option
var GadgetsEnableTerminationCmd = &cobra.Command{ Use: "enable-termination", Short: TRAPI("/gadgets/{product_id}/{serial_number}/enable_termination:post:summary"), Long: TRAPI(`/gadgets/{product_id}/{serial_number}/enable_termination:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectGadgetsEnableTerminationCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
GadgetsEnableTerminationCmd defines 'enable-termination' subcommand
var GadgetsEnableTerminationCmdProductId string
GadgetsEnableTerminationCmdProductId holds value of 'product_id' option
var GadgetsEnableTerminationCmdSerialNumber string
GadgetsEnableTerminationCmdSerialNumber holds value of 'serial_number' option
var GadgetsGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/gadgets/{product_id}/{serial_number}:get:summary"), Long: TRAPI(`/gadgets/{product_id}/{serial_number}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectGadgetsGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
GadgetsGetCmd defines 'get' subcommand
var GadgetsGetCmdProductId string
GadgetsGetCmdProductId holds value of 'product_id' option
var GadgetsGetCmdSerialNumber string
GadgetsGetCmdSerialNumber holds value of 'serial_number' option
var GadgetsListCmd = &cobra.Command{ Use: "list", Short: TRAPI("/gadgets:get:summary"), Long: TRAPI(`/gadgets:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectGadgetsListCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
GadgetsListCmd defines 'list' subcommand
var GadgetsListCmdLastEvaluatedKey string
GadgetsListCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var GadgetsListCmdLimit int64
GadgetsListCmdLimit holds value of 'limit' option
var GadgetsListCmdPaginate bool
GadgetsListCmdPaginate indicates to do pagination or not
var GadgetsListCmdProductId string
GadgetsListCmdProductId holds value of 'product_id' option
var GadgetsListCmdTagName string
GadgetsListCmdTagName holds value of 'tag_name' option
var GadgetsListCmdTagValue string
GadgetsListCmdTagValue holds value of 'tag_value' option
var GadgetsListCmdTagValueMatchMode string
GadgetsListCmdTagValueMatchMode holds value of 'tag_value_match_mode' option
var GadgetsPutTagsCmd = &cobra.Command{ Use: "put-tags", Short: TRAPI("/gadgets/{product_id}/{serial_number}/tags:put:summary"), Long: TRAPI(`/gadgets/{product_id}/{serial_number}/tags:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectGadgetsPutTagsCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
GadgetsPutTagsCmd defines 'put-tags' subcommand
var GadgetsPutTagsCmdBody string
GadgetsPutTagsCmdBody holds contents of request body to be sent
var GadgetsPutTagsCmdProductId string
GadgetsPutTagsCmdProductId holds value of 'product_id' option
var GadgetsPutTagsCmdSerialNumber string
GadgetsPutTagsCmdSerialNumber holds value of 'serial_number' option
var GadgetsRegisterCmd = &cobra.Command{ Use: "register", Short: TRAPI("/gadgets/{product_id}/{serial_number}/register:post:summary"), Long: TRAPI(`/gadgets/{product_id}/{serial_number}/register:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectGadgetsRegisterCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
GadgetsRegisterCmd defines 'register' subcommand
var GadgetsRegisterCmdBody string
GadgetsRegisterCmdBody holds contents of request body to be sent
var GadgetsRegisterCmdProductId string
GadgetsRegisterCmdProductId holds value of 'product_id' option
var GadgetsRegisterCmdSerialNumber string
GadgetsRegisterCmdSerialNumber holds value of 'serial_number' option
var GadgetsSetGroupCmd = &cobra.Command{ Use: "set-group", Short: TRAPI("/gadgets/{product_id}/{serial_number}/set_group:post:summary"), Long: TRAPI(`/gadgets/{product_id}/{serial_number}/set_group:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectGadgetsSetGroupCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
GadgetsSetGroupCmd defines 'set-group' subcommand
var GadgetsSetGroupCmdBody string
GadgetsSetGroupCmdBody holds contents of request body to be sent
var GadgetsSetGroupCmdCreatedTime int64
GadgetsSetGroupCmdCreatedTime holds value of 'createdTime' option
var GadgetsSetGroupCmdGroupId string
GadgetsSetGroupCmdGroupId holds value of 'groupId' option
var GadgetsSetGroupCmdLastModifiedTime int64
GadgetsSetGroupCmdLastModifiedTime holds value of 'lastModifiedTime' option
var GadgetsSetGroupCmdOperatorId string
GadgetsSetGroupCmdOperatorId holds value of 'operatorId' option
var GadgetsSetGroupCmdProductId string
GadgetsSetGroupCmdProductId holds value of 'product_id' option
var GadgetsSetGroupCmdSerialNumber string
GadgetsSetGroupCmdSerialNumber holds value of 'serial_number' option
var GadgetsTerminateCmd = &cobra.Command{ Use: "terminate", Short: TRAPI("/gadgets/{product_id}/{serial_number}/terminate:post:summary"), Long: TRAPI(`/gadgets/{product_id}/{serial_number}/terminate:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectGadgetsTerminateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
GadgetsTerminateCmd defines 'terminate' subcommand
var GadgetsTerminateCmdProductId string
GadgetsTerminateCmdProductId holds value of 'product_id' option
var GadgetsTerminateCmdSerialNumber string
GadgetsTerminateCmdSerialNumber holds value of 'serial_number' option
var GadgetsUnsetGroupCmd = &cobra.Command{ Use: "unset-group", Short: TRAPI("/gadgets/{product_id}/{serial_number}/unset_group:post:summary"), Long: TRAPI(`/gadgets/{product_id}/{serial_number}/unset_group:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectGadgetsUnsetGroupCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
GadgetsUnsetGroupCmd defines 'unset-group' subcommand
var GadgetsUnsetGroupCmdProductId string
GadgetsUnsetGroupCmdProductId holds value of 'product_id' option
var GadgetsUnsetGroupCmdSerialNumber string
GadgetsUnsetGroupCmdSerialNumber holds value of 'serial_number' option
var GroupsCmd = &cobra.Command{ Use: "groups", Short: TRCLI("cli.groups.summary"), Long: TRCLI(`cli.groups.description`), }
GroupsCmd defines 'groups' subcommand
var GroupsCreateCmd = &cobra.Command{ Use: "create", Short: TRAPI("/groups:post:summary"), Long: TRAPI(`/groups:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectGroupsCreateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
GroupsCreateCmd defines 'create' subcommand
var GroupsCreateCmdBody string
GroupsCreateCmdBody holds contents of request body to be sent
var GroupsDeleteCmd = &cobra.Command{ Use: "delete", Short: TRAPI("/groups/{group_id}:delete:summary"), Long: TRAPI(`/groups/{group_id}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectGroupsDeleteCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
GroupsDeleteCmd defines 'delete' subcommand
var GroupsDeleteCmdGroupId string
GroupsDeleteCmdGroupId holds value of 'group_id' option
var GroupsDeleteConfigCmd = &cobra.Command{ Use: "delete-config", Short: TRAPI("/groups/{group_id}/configuration/{namespace}/{name}:delete:summary"), Long: TRAPI(`/groups/{group_id}/configuration/{namespace}/{name}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectGroupsDeleteConfigCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
GroupsDeleteConfigCmd defines 'delete-config' subcommand
var GroupsDeleteConfigCmdGroupId string
GroupsDeleteConfigCmdGroupId holds value of 'group_id' option
var GroupsDeleteConfigCmdName string
GroupsDeleteConfigCmdName holds value of 'name' option
var GroupsDeleteConfigCmdNamespace string
GroupsDeleteConfigCmdNamespace holds value of 'namespace' option
var GroupsDeleteConfigNamespaceCmd = &cobra.Command{ Use: "delete-config-namespace", Short: TRAPI("/groups/{group_id}/configuration/{namespace}:delete:summary"), Long: TRAPI(`/groups/{group_id}/configuration/{namespace}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectGroupsDeleteConfigNamespaceCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
GroupsDeleteConfigNamespaceCmd defines 'delete-config-namespace' subcommand
var GroupsDeleteConfigNamespaceCmdGroupId string
GroupsDeleteConfigNamespaceCmdGroupId holds value of 'group_id' option
var GroupsDeleteConfigNamespaceCmdNamespace string
GroupsDeleteConfigNamespaceCmdNamespace holds value of 'namespace' option
var GroupsDeleteTagCmd = &cobra.Command{ Use: "delete-tag", Short: TRAPI("/groups/{group_id}/tags/{tag_name}:delete:summary"), Long: TRAPI(`/groups/{group_id}/tags/{tag_name}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectGroupsDeleteTagCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
GroupsDeleteTagCmd defines 'delete-tag' subcommand
var GroupsDeleteTagCmdGroupId string
GroupsDeleteTagCmdGroupId holds value of 'group_id' option
var GroupsDeleteTagCmdTagName string
GroupsDeleteTagCmdTagName holds value of 'tag_name' option
var GroupsGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/groups/{group_id}:get:summary"), Long: TRAPI(`/groups/{group_id}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectGroupsGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
GroupsGetCmd defines 'get' subcommand
var GroupsGetCmdGroupId string
GroupsGetCmdGroupId holds value of 'group_id' option
var GroupsListCmd = &cobra.Command{ Use: "list", Short: TRAPI("/groups:get:summary"), Long: TRAPI(`/groups:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectGroupsListCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
GroupsListCmd defines 'list' subcommand
var GroupsListCmdLastEvaluatedKey string
GroupsListCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var GroupsListCmdLimit int64
GroupsListCmdLimit holds value of 'limit' option
var GroupsListCmdPaginate bool
GroupsListCmdPaginate indicates to do pagination or not
var GroupsListCmdTagName string
GroupsListCmdTagName holds value of 'tag_name' option
var GroupsListCmdTagValue string
GroupsListCmdTagValue holds value of 'tag_value' option
var GroupsListCmdTagValueMatchMode string
GroupsListCmdTagValueMatchMode holds value of 'tag_value_match_mode' option
var GroupsListSubscribersCmd = &cobra.Command{ Use: "list-subscribers", Short: TRAPI("/groups/{group_id}/subscribers:get:summary"), Long: TRAPI(`/groups/{group_id}/subscribers:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectGroupsListSubscribersCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
GroupsListSubscribersCmd defines 'list-subscribers' subcommand
var GroupsListSubscribersCmdGroupId string
GroupsListSubscribersCmdGroupId holds value of 'group_id' option
var GroupsListSubscribersCmdLastEvaluatedKey string
GroupsListSubscribersCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var GroupsListSubscribersCmdLimit int64
GroupsListSubscribersCmdLimit holds value of 'limit' option
var GroupsListSubscribersCmdPaginate bool
GroupsListSubscribersCmdPaginate indicates to do pagination or not
var GroupsPutConfigCmd = &cobra.Command{ Use: "put-config", Short: TRAPI("/groups/{group_id}/configuration/{namespace}:put:summary"), Long: TRAPI(`/groups/{group_id}/configuration/{namespace}:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectGroupsPutConfigCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
GroupsPutConfigCmd defines 'put-config' subcommand
var GroupsPutConfigCmdBody string
GroupsPutConfigCmdBody holds contents of request body to be sent
var GroupsPutConfigCmdGroupId string
GroupsPutConfigCmdGroupId holds value of 'group_id' option
var GroupsPutConfigCmdNamespace string
GroupsPutConfigCmdNamespace holds value of 'namespace' option
var GroupsPutTagsCmd = &cobra.Command{ Use: "put-tags", Short: TRAPI("/groups/{group_id}/tags:put:summary"), Long: TRAPI(`/groups/{group_id}/tags:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectGroupsPutTagsCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
GroupsPutTagsCmd defines 'put-tags' subcommand
var GroupsPutTagsCmdBody string
GroupsPutTagsCmdBody holds contents of request body to be sent
var GroupsPutTagsCmdGroupId string
GroupsPutTagsCmdGroupId holds value of 'group_id' option
var LagoonCmd = &cobra.Command{ Use: "lagoon", Short: TRCLI("cli.lagoon.summary"), Long: TRCLI(`cli.lagoon.description`), }
LagoonCmd defines 'lagoon' subcommand
var LagoonCreateUserCmd = &cobra.Command{ Use: "create-user", Short: TRAPI("/lagoon/users:post:summary"), Long: TRAPI(`/lagoon/users:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLagoonCreateUserCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LagoonCreateUserCmd defines 'create-user' subcommand
var LagoonCreateUserCmdBody string
LagoonCreateUserCmdBody holds contents of request body to be sent
var LagoonCreateUserCmdRole string
LagoonCreateUserCmdRole holds value of 'role' option
var LagoonCreateUserCmdUserEmail string
LagoonCreateUserCmdUserEmail holds value of 'userEmail' option
var LagoonCreateUserCmdUserPassword string
LagoonCreateUserCmdUserPassword holds value of 'userPassword' option
var LagoonDashboardsCmd = &cobra.Command{ Use: "dashboards", Short: TRCLI("cli.lagoon.dashboards.summary"), Long: TRCLI(`cli.lagoon.dashboards.description`), }
LagoonDashboardsCmd defines 'dashboards' subcommand
var LagoonDashboardsInitPermissionsCmd = &cobra.Command{ Use: "init-permissions", Short: TRAPI("/lagoon/dashboards/{dashboard_id}/permissions/init:post:summary"), Long: TRAPI(`/lagoon/dashboards/{dashboard_id}/permissions/init:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } param, err := collectLagoonDashboardsInitPermissionsCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LagoonDashboardsInitPermissionsCmd defines 'init-permissions' subcommand
var LagoonDashboardsInitPermissionsCmdDashboardId int64
LagoonDashboardsInitPermissionsCmdDashboardId holds value of 'dashboard_id' option
var LagoonDashboardsListPermissionsCmd = &cobra.Command{ Use: "list-permissions", Short: TRAPI("/lagoon/dashboards/permission:get:summary"), Long: TRAPI(`/lagoon/dashboards/permission:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLagoonDashboardsListPermissionsCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LagoonDashboardsListPermissionsCmd defines 'list-permissions' subcommand
var LagoonDashboardsUpdatePermissionsCmd = &cobra.Command{ Use: "update-permissions", Short: TRAPI("/lagoon/dashboards/{dashboard_id}/permissions:put:summary"), Long: TRAPI(`/lagoon/dashboards/{dashboard_id}/permissions:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } param, err := collectLagoonDashboardsUpdatePermissionsCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LagoonDashboardsUpdatePermissionsCmd defines 'update-permissions' subcommand
var LagoonDashboardsUpdatePermissionsCmdBody string
LagoonDashboardsUpdatePermissionsCmdBody holds contents of request body to be sent
var LagoonDashboardsUpdatePermissionsCmdDashboardId int64
LagoonDashboardsUpdatePermissionsCmdDashboardId holds value of 'dashboard_id' option
var LagoonDeleteUserCmd = &cobra.Command{ Use: "delete-user", Short: TRAPI("/lagoon/users/{lagoon_user_id}:delete:summary"), Long: TRAPI(`/lagoon/users/{lagoon_user_id}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLagoonDeleteUserCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LagoonDeleteUserCmd defines 'delete-user' subcommand
var LagoonDeleteUserCmdLagoonUserId int64
LagoonDeleteUserCmdLagoonUserId holds value of 'lagoon_user_id' option
var LagoonGetImageLinkCmd = &cobra.Command{ Use: "get-image-link", Short: TRAPI("/lagoon/image/link:get:summary"), Long: TRAPI(`/lagoon/image/link:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } param, err := collectLagoonGetImageLinkCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LagoonGetImageLinkCmd defines 'get-image-link' subcommand
var LagoonLicensePacksCmd = &cobra.Command{ Use: "license-packs", Short: TRCLI("cli.lagoon.license-packs.summary"), Long: TRCLI(`cli.lagoon.license-packs.description`), }
LagoonLicensePacksCmd defines 'license-packs' subcommand
var LagoonLicensePacksListStatusCmd = &cobra.Command{ Use: "list-status", Short: TRAPI("/lagoon/license_packs:get:summary"), Long: TRAPI(`/lagoon/license_packs:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } param, err := collectLagoonLicensePacksListStatusCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LagoonLicensePacksListStatusCmd defines 'list-status' subcommand
var LagoonLicensePacksUpdateCmd = &cobra.Command{ Use: "update", Short: TRAPI("/lagoon/license_packs:put:summary"), Long: TRAPI(`/lagoon/license_packs:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } param, err := collectLagoonLicensePacksUpdateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LagoonLicensePacksUpdateCmd defines 'update' subcommand
var LagoonLicensePacksUpdateCmdBody string
LagoonLicensePacksUpdateCmdBody holds contents of request body to be sent
var LagoonListUsersCmd = &cobra.Command{ Use: "list-users", Short: TRAPI("/lagoon/users:get:summary"), Long: TRAPI(`/lagoon/users:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLagoonListUsersCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LagoonListUsersCmd defines 'list-users' subcommand
var LagoonRegisterCmd = &cobra.Command{ Use: "register", Short: TRAPI("/lagoon/register:post:summary"), Long: TRAPI(`/lagoon/register:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLagoonRegisterCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LagoonRegisterCmd defines 'register' subcommand
var LagoonRegisterCmdBody string
LagoonRegisterCmdBody holds contents of request body to be sent
var LagoonRegisterCmdPlan string
LagoonRegisterCmdPlan holds value of 'plan' option
var LagoonRegisterCmdUserPassword string
LagoonRegisterCmdUserPassword holds value of 'userPassword' option
var LagoonTerminateCmd = &cobra.Command{ Use: "terminate", Short: TRAPI("/lagoon/terminate:post:summary"), Long: TRAPI(`/lagoon/terminate:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLagoonTerminateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LagoonTerminateCmd defines 'terminate' subcommand
var LagoonUpdateUserEmailCmd = &cobra.Command{ Use: "update-user-email", Short: TRAPI("/lagoon/users/{lagoon_user_id}/email:put:summary"), Long: TRAPI(`/lagoon/users/{lagoon_user_id}/email:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLagoonUpdateUserEmailCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LagoonUpdateUserEmailCmd defines 'update-user-email' subcommand
var LagoonUpdateUserEmailCmdBody string
LagoonUpdateUserEmailCmdBody holds contents of request body to be sent
var LagoonUpdateUserEmailCmdLagoonUserId int64
LagoonUpdateUserEmailCmdLagoonUserId holds value of 'lagoon_user_id' option
var LagoonUpdateUserEmailCmdUserEmail string
LagoonUpdateUserEmailCmdUserEmail holds value of 'userEmail' option
var LagoonUpdateUserPasswordCmd = &cobra.Command{ Use: "update-user-password", Short: TRAPI("/lagoon/users/{lagoon_user_id}/password:put:summary"), Long: TRAPI(`/lagoon/users/{lagoon_user_id}/password:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLagoonUpdateUserPasswordCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LagoonUpdateUserPasswordCmd defines 'update-user-password' subcommand
var LagoonUpdateUserPasswordCmdBody string
LagoonUpdateUserPasswordCmdBody holds contents of request body to be sent
var LagoonUpdateUserPasswordCmdLagoonUserId int64
LagoonUpdateUserPasswordCmdLagoonUserId holds value of 'lagoon_user_id' option
var LagoonUpdateUserPasswordCmdNewPassword string
LagoonUpdateUserPasswordCmdNewPassword holds value of 'newPassword' option
var LagoonUpdateUserPasswordCmdOldPassword string
LagoonUpdateUserPasswordCmdOldPassword holds value of 'oldPassword' option
var LagoonUpdateUserPasswordCmdUserEmail string
LagoonUpdateUserPasswordCmdUserEmail holds value of 'userEmail' option
var LagoonUpdateUserPermissionCmd = &cobra.Command{ Use: "update-user-permission", Short: TRAPI("/lagoon/users/{lagoon_user_id}/permission:put:summary"), Long: TRAPI(`/lagoon/users/{lagoon_user_id}/permission:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLagoonUpdateUserPermissionCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LagoonUpdateUserPermissionCmd defines 'update-user-permission' subcommand
var LagoonUpdateUserPermissionCmdBody string
LagoonUpdateUserPermissionCmdBody holds contents of request body to be sent
var LagoonUpdateUserPermissionCmdLagoonUserId int64
LagoonUpdateUserPermissionCmdLagoonUserId holds value of 'lagoon_user_id' option
var LagoonUpdateUserPermissionCmdRole string
LagoonUpdateUserPermissionCmdRole holds value of 'role' option
var LagoonUpdatedPlanCmd = &cobra.Command{ Use: "updated-plan", Short: TRAPI("/lagoon/plan:put:summary"), Long: TRAPI(`/lagoon/plan:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } param, err := collectLagoonUpdatedPlanCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LagoonUpdatedPlanCmd defines 'updated-plan' subcommand
var LagoonUpdatedPlanCmdBody string
LagoonUpdatedPlanCmdBody holds contents of request body to be sent
var LagoonUpdatedPlanCmdPlan string
LagoonUpdatedPlanCmdPlan holds value of 'plan' option
var LagoonUsersCmd = &cobra.Command{ Use: "users", Short: TRCLI("cli.lagoon.users.summary"), Long: TRCLI(`cli.lagoon.users.description`), }
LagoonUsersCmd defines 'users' subcommand
var LagoonUsersCreateCmd = &cobra.Command{ Use: "create", Short: TRAPI("/lagoon/users:post:summary"), Long: TRAPI(`/lagoon/users:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLagoonUsersCreateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LagoonUsersCreateCmd defines 'create' subcommand
var LagoonUsersCreateCmdBody string
LagoonUsersCreateCmdBody holds contents of request body to be sent
var LagoonUsersCreateCmdRole string
LagoonUsersCreateCmdRole holds value of 'role' option
var LagoonUsersCreateCmdUserEmail string
LagoonUsersCreateCmdUserEmail holds value of 'userEmail' option
var LagoonUsersCreateCmdUserPassword string
LagoonUsersCreateCmdUserPassword holds value of 'userPassword' option
var LagoonUsersDeleteCmd = &cobra.Command{ Use: "delete", Short: TRAPI("/lagoon/users/{lagoon_user_id}:delete:summary"), Long: TRAPI(`/lagoon/users/{lagoon_user_id}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLagoonUsersDeleteCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LagoonUsersDeleteCmd defines 'delete' subcommand
var LagoonUsersDeleteCmdLagoonUserId int64
LagoonUsersDeleteCmdLagoonUserId holds value of 'lagoon_user_id' option
var LagoonUsersListCmd = &cobra.Command{ Use: "list", Short: TRAPI("/lagoon/users:get:summary"), Long: TRAPI(`/lagoon/users:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLagoonUsersListCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LagoonUsersListCmd defines 'list' subcommand
var LagoonUsersUpdateEmailCmd = &cobra.Command{ Use: "update-email", Short: TRAPI("/lagoon/users/{lagoon_user_id}/email:put:summary"), Long: TRAPI(`/lagoon/users/{lagoon_user_id}/email:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLagoonUsersUpdateEmailCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LagoonUsersUpdateEmailCmd defines 'update-email' subcommand
var LagoonUsersUpdateEmailCmdBody string
LagoonUsersUpdateEmailCmdBody holds contents of request body to be sent
var LagoonUsersUpdateEmailCmdLagoonUserId int64
LagoonUsersUpdateEmailCmdLagoonUserId holds value of 'lagoon_user_id' option
var LagoonUsersUpdateEmailCmdUserEmail string
LagoonUsersUpdateEmailCmdUserEmail holds value of 'userEmail' option
var LagoonUsersUpdatePasswordCmd = &cobra.Command{ Use: "update-password", Short: TRAPI("/lagoon/users/{lagoon_user_id}/password:put:summary"), Long: TRAPI(`/lagoon/users/{lagoon_user_id}/password:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLagoonUsersUpdatePasswordCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LagoonUsersUpdatePasswordCmd defines 'update-password' subcommand
var LagoonUsersUpdatePasswordCmdBody string
LagoonUsersUpdatePasswordCmdBody holds contents of request body to be sent
var LagoonUsersUpdatePasswordCmdLagoonUserId int64
LagoonUsersUpdatePasswordCmdLagoonUserId holds value of 'lagoon_user_id' option
var LagoonUsersUpdatePasswordCmdNewPassword string
LagoonUsersUpdatePasswordCmdNewPassword holds value of 'newPassword' option
var LagoonUsersUpdatePasswordCmdOldPassword string
LagoonUsersUpdatePasswordCmdOldPassword holds value of 'oldPassword' option
var LagoonUsersUpdatePasswordCmdUserEmail string
LagoonUsersUpdatePasswordCmdUserEmail holds value of 'userEmail' option
var LagoonUsersUpdatePermissionCmd = &cobra.Command{ Use: "update-permission", Short: TRAPI("/lagoon/users/{lagoon_user_id}/permission:put:summary"), Long: TRAPI(`/lagoon/users/{lagoon_user_id}/permission:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLagoonUsersUpdatePermissionCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LagoonUsersUpdatePermissionCmd defines 'update-permission' subcommand
var LagoonUsersUpdatePermissionCmdBody string
LagoonUsersUpdatePermissionCmdBody holds contents of request body to be sent
var LagoonUsersUpdatePermissionCmdLagoonUserId int64
LagoonUsersUpdatePermissionCmdLagoonUserId holds value of 'lagoon_user_id' option
var LagoonUsersUpdatePermissionCmdRole string
LagoonUsersUpdatePermissionCmdRole holds value of 'role' option
var LogsCmd = &cobra.Command{ Use: "logs", Short: TRCLI("cli.logs.summary"), Long: TRCLI(`cli.logs.description`), }
LogsCmd defines 'logs' subcommand
var LogsGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/logs:get:summary"), Long: TRAPI(`/logs:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLogsGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LogsGetCmd defines 'get' subcommand
var LogsGetCmdFrom int64
LogsGetCmdFrom holds value of 'from' option
var LogsGetCmdLastEvaluatedKey string
LogsGetCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var LogsGetCmdLimit int64
LogsGetCmdLimit holds value of 'limit' option
var LogsGetCmdPaginate bool
LogsGetCmdPaginate indicates to do pagination or not
var LogsGetCmdResourceId string
LogsGetCmdResourceId holds value of 'resource_id' option
var LogsGetCmdResourceType string
LogsGetCmdResourceType holds value of 'resource_type' option
var LogsGetCmdService string
LogsGetCmdService holds value of 'service' option
var LogsGetCmdTo int64
LogsGetCmdTo holds value of 'to' option
var LoraDevicesCmd = &cobra.Command{ Use: "lora-devices", Short: TRCLI("cli.lora-devices.summary"), Long: TRCLI(`cli.lora-devices.description`), }
LoraDevicesCmd defines 'lora-devices' subcommand
var LoraDevicesDeleteTagCmd = &cobra.Command{ Use: "delete-tag", Short: TRAPI("/lora_devices/{device_id}/tags/{tag_name}:delete:summary"), Long: TRAPI(`/lora_devices/{device_id}/tags/{tag_name}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraDevicesDeleteTagCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraDevicesDeleteTagCmd defines 'delete-tag' subcommand
var LoraDevicesDeleteTagCmdDeviceId string
LoraDevicesDeleteTagCmdDeviceId holds value of 'device_id' option
var LoraDevicesDeleteTagCmdTagName string
LoraDevicesDeleteTagCmdTagName holds value of 'tag_name' option
var LoraDevicesDisableTerminationCmd = &cobra.Command{ Use: "disable-termination", Short: TRAPI("/lora_devices/{device_id}/disable_termination:post:summary"), Long: TRAPI(`/lora_devices/{device_id}/disable_termination:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraDevicesDisableTerminationCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraDevicesDisableTerminationCmd defines 'disable-termination' subcommand
var LoraDevicesDisableTerminationCmdDeviceId string
LoraDevicesDisableTerminationCmdDeviceId holds value of 'device_id' option
var LoraDevicesEnableTerminationCmd = &cobra.Command{ Use: "enable-termination", Short: TRAPI("/lora_devices/{device_id}/enable_termination:post:summary"), Long: TRAPI(`/lora_devices/{device_id}/enable_termination:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraDevicesEnableTerminationCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraDevicesEnableTerminationCmd defines 'enable-termination' subcommand
var LoraDevicesEnableTerminationCmdDeviceId string
LoraDevicesEnableTerminationCmdDeviceId holds value of 'device_id' option
var LoraDevicesGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/lora_devices/{device_id}:get:summary"), Long: TRAPI(`/lora_devices/{device_id}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraDevicesGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraDevicesGetCmd defines 'get' subcommand
var LoraDevicesGetCmdDeviceId string
LoraDevicesGetCmdDeviceId holds value of 'device_id' option
var LoraDevicesGetDataCmd = &cobra.Command{ Use: "get-data", Short: TRAPI("/lora_devices/{device_id}/data:get:summary"), Long: TRAPI(`/lora_devices/{device_id}/data:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraDevicesGetDataCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraDevicesGetDataCmd defines 'get-data' subcommand
var LoraDevicesGetDataCmdDeviceId string
LoraDevicesGetDataCmdDeviceId holds value of 'device_id' option
var LoraDevicesGetDataCmdFrom int64
LoraDevicesGetDataCmdFrom holds value of 'from' option
var LoraDevicesGetDataCmdLastEvaluatedKey string
LoraDevicesGetDataCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var LoraDevicesGetDataCmdLimit int64
LoraDevicesGetDataCmdLimit holds value of 'limit' option
var LoraDevicesGetDataCmdPaginate bool
LoraDevicesGetDataCmdPaginate indicates to do pagination or not
var LoraDevicesGetDataCmdSort string
LoraDevicesGetDataCmdSort holds value of 'sort' option
var LoraDevicesGetDataCmdTo int64
LoraDevicesGetDataCmdTo holds value of 'to' option
var LoraDevicesListCmd = &cobra.Command{ Use: "list", Short: TRAPI("/lora_devices:get:summary"), Long: TRAPI(`/lora_devices:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraDevicesListCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraDevicesListCmd defines 'list' subcommand
var LoraDevicesListCmdLastEvaluatedKey string
LoraDevicesListCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var LoraDevicesListCmdLimit int64
LoraDevicesListCmdLimit holds value of 'limit' option
var LoraDevicesListCmdPaginate bool
LoraDevicesListCmdPaginate indicates to do pagination or not
var LoraDevicesListCmdTagName string
LoraDevicesListCmdTagName holds value of 'tag_name' option
var LoraDevicesListCmdTagValue string
LoraDevicesListCmdTagValue holds value of 'tag_value' option
var LoraDevicesListCmdTagValueMatchMode string
LoraDevicesListCmdTagValueMatchMode holds value of 'tag_value_match_mode' option
var LoraDevicesPutTagsCmd = &cobra.Command{ Use: "put-tags", Short: TRAPI("/lora_devices/{device_id}/tags:put:summary"), Long: TRAPI(`/lora_devices/{device_id}/tags:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraDevicesPutTagsCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraDevicesPutTagsCmd defines 'put-tags' subcommand
var LoraDevicesPutTagsCmdBody string
LoraDevicesPutTagsCmdBody holds contents of request body to be sent
var LoraDevicesPutTagsCmdDeviceId string
LoraDevicesPutTagsCmdDeviceId holds value of 'device_id' option
var LoraDevicesRegisterCmd = &cobra.Command{ Use: "register", Short: TRAPI("/lora_devices/{device_id}/register:post:summary"), Long: TRAPI(`/lora_devices/{device_id}/register:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraDevicesRegisterCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraDevicesRegisterCmd defines 'register' subcommand
var LoraDevicesRegisterCmdBody string
LoraDevicesRegisterCmdBody holds contents of request body to be sent
var LoraDevicesRegisterCmdDeviceId string
LoraDevicesRegisterCmdDeviceId holds value of 'device_id' option
var LoraDevicesRegisterCmdGroupId string
LoraDevicesRegisterCmdGroupId holds value of 'groupId' option
var LoraDevicesRegisterCmdRegistrationSecret string
LoraDevicesRegisterCmdRegistrationSecret holds value of 'registrationSecret' option
var LoraDevicesSendDataCmd = &cobra.Command{ Use: "send-data", Short: TRAPI("/lora_devices/{device_id}/data:post:summary"), Long: TRAPI(`/lora_devices/{device_id}/data:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraDevicesSendDataCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraDevicesSendDataCmd defines 'send-data' subcommand
var LoraDevicesSendDataCmdBody string
LoraDevicesSendDataCmdBody holds contents of request body to be sent
var LoraDevicesSendDataCmdData string
LoraDevicesSendDataCmdData holds value of 'data' option
var LoraDevicesSendDataCmdDeviceId string
LoraDevicesSendDataCmdDeviceId holds value of 'device_id' option
var LoraDevicesSendDataCmdFPort int64
LoraDevicesSendDataCmdFPort holds value of 'fPort' option
var LoraDevicesSetGroupCmd = &cobra.Command{ Use: "set-group", Short: TRAPI("/lora_devices/{device_id}/set_group:post:summary"), Long: TRAPI(`/lora_devices/{device_id}/set_group:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraDevicesSetGroupCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraDevicesSetGroupCmd defines 'set-group' subcommand
var LoraDevicesSetGroupCmdBody string
LoraDevicesSetGroupCmdBody holds contents of request body to be sent
var LoraDevicesSetGroupCmdCreatedTime int64
LoraDevicesSetGroupCmdCreatedTime holds value of 'createdTime' option
var LoraDevicesSetGroupCmdDeviceId string
LoraDevicesSetGroupCmdDeviceId holds value of 'device_id' option
var LoraDevicesSetGroupCmdGroupId string
LoraDevicesSetGroupCmdGroupId holds value of 'groupId' option
var LoraDevicesSetGroupCmdLastModifiedTime int64
LoraDevicesSetGroupCmdLastModifiedTime holds value of 'lastModifiedTime' option
var LoraDevicesSetGroupCmdOperatorId string
LoraDevicesSetGroupCmdOperatorId holds value of 'operatorId' option
var LoraDevicesTerminateCmd = &cobra.Command{ Use: "terminate", Short: TRAPI("/lora_devices/{device_id}/terminate:post:summary"), Long: TRAPI(`/lora_devices/{device_id}/terminate:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraDevicesTerminateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraDevicesTerminateCmd defines 'terminate' subcommand
var LoraDevicesTerminateCmdDeviceId string
LoraDevicesTerminateCmdDeviceId holds value of 'device_id' option
var LoraDevicesUnsetGroupCmd = &cobra.Command{ Use: "unset-group", Short: TRAPI("/lora_devices/{device_id}/unset_group:post:summary"), Long: TRAPI(`/lora_devices/{device_id}/unset_group:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraDevicesUnsetGroupCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraDevicesUnsetGroupCmd defines 'unset-group' subcommand
var LoraDevicesUnsetGroupCmdDeviceId string
LoraDevicesUnsetGroupCmdDeviceId holds value of 'device_id' option
var LoraGatewaysCmd = &cobra.Command{ Use: "lora-gateways", Short: TRCLI("cli.lora-gateways.summary"), Long: TRCLI(`cli.lora-gateways.description`), }
LoraGatewaysCmd defines 'lora-gateways' subcommand
var LoraGatewaysDeleteTagCmd = &cobra.Command{ Use: "delete-tag", Short: TRAPI("/lora_gateways/{gateway_id}/tags/{tag_name}:delete:summary"), Long: TRAPI(`/lora_gateways/{gateway_id}/tags/{tag_name}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraGatewaysDeleteTagCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraGatewaysDeleteTagCmd defines 'delete-tag' subcommand
var LoraGatewaysDeleteTagCmdGatewayId string
LoraGatewaysDeleteTagCmdGatewayId holds value of 'gateway_id' option
var LoraGatewaysDeleteTagCmdTagName string
LoraGatewaysDeleteTagCmdTagName holds value of 'tag_name' option
var LoraGatewaysDisableTerminationCmd = &cobra.Command{ Use: "disable-termination", Short: TRAPI("/lora_gateways/{gateway_id}/disable_termination:post:summary"), Long: TRAPI(`/lora_gateways/{gateway_id}/disable_termination:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraGatewaysDisableTerminationCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraGatewaysDisableTerminationCmd defines 'disable-termination' subcommand
var LoraGatewaysDisableTerminationCmdGatewayId string
LoraGatewaysDisableTerminationCmdGatewayId holds value of 'gateway_id' option
var LoraGatewaysEnableTerminationCmd = &cobra.Command{ Use: "enable-termination", Short: TRAPI("/lora_gateways/{gateway_id}/enable_termination:post:summary"), Long: TRAPI(`/lora_gateways/{gateway_id}/enable_termination:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraGatewaysEnableTerminationCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraGatewaysEnableTerminationCmd defines 'enable-termination' subcommand
var LoraGatewaysEnableTerminationCmdGatewayId string
LoraGatewaysEnableTerminationCmdGatewayId holds value of 'gateway_id' option
var LoraGatewaysGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/lora_gateways/{gateway_id}:get:summary"), Long: TRAPI(`/lora_gateways/{gateway_id}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraGatewaysGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraGatewaysGetCmd defines 'get' subcommand
var LoraGatewaysGetCmdGatewayId string
LoraGatewaysGetCmdGatewayId holds value of 'gateway_id' option
var LoraGatewaysListCmd = &cobra.Command{ Use: "list", Short: TRAPI("/lora_gateways:get:summary"), Long: TRAPI(`/lora_gateways:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraGatewaysListCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraGatewaysListCmd defines 'list' subcommand
var LoraGatewaysListCmdLastEvaluatedKey string
LoraGatewaysListCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var LoraGatewaysListCmdLimit int64
LoraGatewaysListCmdLimit holds value of 'limit' option
var LoraGatewaysListCmdPaginate bool
LoraGatewaysListCmdPaginate indicates to do pagination or not
var LoraGatewaysListCmdTagName string
LoraGatewaysListCmdTagName holds value of 'tag_name' option
var LoraGatewaysListCmdTagValue string
LoraGatewaysListCmdTagValue holds value of 'tag_value' option
var LoraGatewaysListCmdTagValueMatchMode string
LoraGatewaysListCmdTagValueMatchMode holds value of 'tag_value_match_mode' option
var LoraGatewaysPutTagsCmd = &cobra.Command{ Use: "put-tags", Short: TRAPI("/lora_gateways/{gateway_id}/tags:put:summary"), Long: TRAPI(`/lora_gateways/{gateway_id}/tags:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraGatewaysPutTagsCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraGatewaysPutTagsCmd defines 'put-tags' subcommand
var LoraGatewaysPutTagsCmdBody string
LoraGatewaysPutTagsCmdBody holds contents of request body to be sent
var LoraGatewaysPutTagsCmdGatewayId string
LoraGatewaysPutTagsCmdGatewayId holds value of 'gateway_id' option
var LoraGatewaysSetNetworkSetCmd = &cobra.Command{ Use: "set-network-set", Short: TRAPI("/lora_gateways/{gateway_id}/set_network_set:post:summary"), Long: TRAPI(`/lora_gateways/{gateway_id}/set_network_set:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraGatewaysSetNetworkSetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraGatewaysSetNetworkSetCmd defines 'set-network-set' subcommand
var LoraGatewaysSetNetworkSetCmdBody string
LoraGatewaysSetNetworkSetCmdBody holds contents of request body to be sent
var LoraGatewaysSetNetworkSetCmdGatewayId string
LoraGatewaysSetNetworkSetCmdGatewayId holds value of 'gateway_id' option
var LoraGatewaysSetNetworkSetCmdNetworkSetId string
LoraGatewaysSetNetworkSetCmdNetworkSetId holds value of 'networkSetId' option
var LoraGatewaysTerminateCmd = &cobra.Command{ Use: "terminate", Short: TRAPI("/lora_gateways/{gateway_id}/terminate:post:summary"), Long: TRAPI(`/lora_gateways/{gateway_id}/terminate:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraGatewaysTerminateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraGatewaysTerminateCmd defines 'terminate' subcommand
var LoraGatewaysTerminateCmdGatewayId string
LoraGatewaysTerminateCmdGatewayId holds value of 'gateway_id' option
var LoraGatewaysUnsetNetworkSetCmd = &cobra.Command{ Use: "unset-network-set", Short: TRAPI("/lora_gateways/{gateway_id}/unset_network_set:post:summary"), Long: TRAPI(`/lora_gateways/{gateway_id}/unset_network_set:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraGatewaysUnsetNetworkSetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraGatewaysUnsetNetworkSetCmd defines 'unset-network-set' subcommand
var LoraGatewaysUnsetNetworkSetCmdGatewayId string
LoraGatewaysUnsetNetworkSetCmdGatewayId holds value of 'gateway_id' option
var LoraNetworkSetsAddPermissionCmd = &cobra.Command{ Use: "add-permission", Short: TRAPI("/lora_network_sets/{ns_id}/add_permission:post:summary"), Long: TRAPI(`/lora_network_sets/{ns_id}/add_permission:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraNetworkSetsAddPermissionCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraNetworkSetsAddPermissionCmd defines 'add-permission' subcommand
var LoraNetworkSetsAddPermissionCmdBody string
LoraNetworkSetsAddPermissionCmdBody holds contents of request body to be sent
var LoraNetworkSetsAddPermissionCmdNsId string
LoraNetworkSetsAddPermissionCmdNsId holds value of 'ns_id' option
var LoraNetworkSetsAddPermissionCmdOperatorId string
LoraNetworkSetsAddPermissionCmdOperatorId holds value of 'operatorId' option
var LoraNetworkSetsCmd = &cobra.Command{ Use: "lora-network-sets", Short: TRCLI("cli.lora-network-sets.summary"), Long: TRCLI(`cli.lora-network-sets.description`), }
LoraNetworkSetsCmd defines 'lora-network-sets' subcommand
var LoraNetworkSetsCreateCmd = &cobra.Command{ Use: "create", Short: TRAPI("/lora_network_sets:post:summary"), Long: TRAPI(`/lora_network_sets:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraNetworkSetsCreateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraNetworkSetsCreateCmd defines 'create' subcommand
var LoraNetworkSetsCreateCmdBody string
LoraNetworkSetsCreateCmdBody holds contents of request body to be sent
var LoraNetworkSetsCreateCmdCreatedTime string
LoraNetworkSetsCreateCmdCreatedTime holds value of 'createdTime' option
var LoraNetworkSetsCreateCmdLastModifiedTime string
LoraNetworkSetsCreateCmdLastModifiedTime holds value of 'lastModifiedTime' option
var LoraNetworkSetsCreateCmdNetworkSetId string
LoraNetworkSetsCreateCmdNetworkSetId holds value of 'networkSetId' option
var LoraNetworkSetsCreateCmdOperatorId string
LoraNetworkSetsCreateCmdOperatorId holds value of 'operatorId' option
var LoraNetworkSetsDeleteCmd = &cobra.Command{ Use: "delete", Short: TRAPI("/lora_network_sets/{ns_id}:delete:summary"), Long: TRAPI(`/lora_network_sets/{ns_id}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraNetworkSetsDeleteCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraNetworkSetsDeleteCmd defines 'delete' subcommand
var LoraNetworkSetsDeleteCmdNsId string
LoraNetworkSetsDeleteCmdNsId holds value of 'ns_id' option
var LoraNetworkSetsDeleteTagCmd = &cobra.Command{ Use: "delete-tag", Short: TRAPI("/lora_network_sets/{ns_id}/tags/{tag_name}:delete:summary"), Long: TRAPI(`/lora_network_sets/{ns_id}/tags/{tag_name}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraNetworkSetsDeleteTagCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraNetworkSetsDeleteTagCmd defines 'delete-tag' subcommand
var LoraNetworkSetsDeleteTagCmdNsId string
LoraNetworkSetsDeleteTagCmdNsId holds value of 'ns_id' option
var LoraNetworkSetsDeleteTagCmdTagName string
LoraNetworkSetsDeleteTagCmdTagName holds value of 'tag_name' option
var LoraNetworkSetsGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/lora_network_sets/{ns_id}:get:summary"), Long: TRAPI(`/lora_network_sets/{ns_id}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraNetworkSetsGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraNetworkSetsGetCmd defines 'get' subcommand
var LoraNetworkSetsGetCmdNsId string
LoraNetworkSetsGetCmdNsId holds value of 'ns_id' option
var LoraNetworkSetsListCmd = &cobra.Command{ Use: "list", Short: TRAPI("/lora_network_sets:get:summary"), Long: TRAPI(`/lora_network_sets:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraNetworkSetsListCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraNetworkSetsListCmd defines 'list' subcommand
var LoraNetworkSetsListCmdLastEvaluatedKey string
LoraNetworkSetsListCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var LoraNetworkSetsListCmdLimit int64
LoraNetworkSetsListCmdLimit holds value of 'limit' option
var LoraNetworkSetsListCmdPaginate bool
LoraNetworkSetsListCmdPaginate indicates to do pagination or not
var LoraNetworkSetsListCmdTagName string
LoraNetworkSetsListCmdTagName holds value of 'tag_name' option
var LoraNetworkSetsListCmdTagValue string
LoraNetworkSetsListCmdTagValue holds value of 'tag_value' option
var LoraNetworkSetsListCmdTagValueMatchMode string
LoraNetworkSetsListCmdTagValueMatchMode holds value of 'tag_value_match_mode' option
var LoraNetworkSetsListGatewaysCmd = &cobra.Command{ Use: "list-gateways", Short: TRAPI("/lora_network_sets/{ns_id}/gateways:get:summary"), Long: TRAPI(`/lora_network_sets/{ns_id}/gateways:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraNetworkSetsListGatewaysCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraNetworkSetsListGatewaysCmd defines 'list-gateways' subcommand
var LoraNetworkSetsListGatewaysCmdLastEvaluatedKey string
LoraNetworkSetsListGatewaysCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var LoraNetworkSetsListGatewaysCmdLimit int64
LoraNetworkSetsListGatewaysCmdLimit holds value of 'limit' option
var LoraNetworkSetsListGatewaysCmdNsId string
LoraNetworkSetsListGatewaysCmdNsId holds value of 'ns_id' option
var LoraNetworkSetsListGatewaysCmdPaginate bool
LoraNetworkSetsListGatewaysCmdPaginate indicates to do pagination or not
var LoraNetworkSetsRevokePermissionCmd = &cobra.Command{ Use: "revoke-permission", Short: TRAPI("/lora_network_sets/{ns_id}/revoke_permission:post:summary"), Long: TRAPI(`/lora_network_sets/{ns_id}/revoke_permission:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectLoraNetworkSetsRevokePermissionCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
LoraNetworkSetsRevokePermissionCmd defines 'revoke-permission' subcommand
var LoraNetworkSetsRevokePermissionCmdBody string
LoraNetworkSetsRevokePermissionCmdBody holds contents of request body to be sent
var LoraNetworkSetsRevokePermissionCmdNsId string
LoraNetworkSetsRevokePermissionCmdNsId holds value of 'ns_id' option
var LoraNetworkSetsRevokePermissionCmdOperatorId string
LoraNetworkSetsRevokePermissionCmdOperatorId holds value of 'operatorId' option
var OperatorAddContractCmd = &cobra.Command{ Use: "add-contract", Short: TRAPI("/operators/{operator_id}/contracts:post:summary"), Long: TRAPI(`/operators/{operator_id}/contracts:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOperatorAddContractCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OperatorAddContractCmd defines 'add-contract' subcommand
var OperatorAddContractCmdBody string
OperatorAddContractCmdBody holds contents of request body to be sent
var OperatorAddContractCmdContractName string
OperatorAddContractCmdContractName holds value of 'contractName' option
var OperatorAddContractCmdOperatorId string
OperatorAddContractCmdOperatorId holds value of 'operator_id' option
var OperatorAddCoverageTypeCmd = &cobra.Command{ Use: "add-coverage-type", Short: TRAPI("/operators/{operator_id}/coverage_type/{coverage_type}:post:summary"), Long: TRAPI(`/operators/{operator_id}/coverage_type/{coverage_type}:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOperatorAddCoverageTypeCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OperatorAddCoverageTypeCmd defines 'add-coverage-type' subcommand
var OperatorAddCoverageTypeCmdCoverageType string
OperatorAddCoverageTypeCmdCoverageType holds value of 'coverage_type' option
var OperatorAddCoverageTypeCmdOperatorId string
OperatorAddCoverageTypeCmdOperatorId holds value of 'operator_id' option
var OperatorAuthKeysCmd = &cobra.Command{ Use: "auth-keys", Short: TRCLI("cli.operator.auth-keys.summary"), Long: TRCLI(`cli.operator.auth-keys.description`), }
OperatorAuthKeysCmd defines 'auth-keys' subcommand
var OperatorAuthKeysDeleteCmd = &cobra.Command{ Use: "delete", Short: TRAPI("/operators/{operator_id}/auth_keys/{auth_key_id}:delete:summary"), Long: TRAPI(`/operators/{operator_id}/auth_keys/{auth_key_id}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOperatorAuthKeysDeleteCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OperatorAuthKeysDeleteCmd defines 'delete' subcommand
var OperatorAuthKeysDeleteCmdAuthKeyId string
OperatorAuthKeysDeleteCmdAuthKeyId holds value of 'auth_key_id' option
var OperatorAuthKeysDeleteCmdOperatorId string
OperatorAuthKeysDeleteCmdOperatorId holds value of 'operator_id' option
var OperatorAuthKeysGenerateCmd = &cobra.Command{ Use: "generate", Short: TRAPI("/operators/{operator_id}/auth_keys:post:summary"), Long: TRAPI(`/operators/{operator_id}/auth_keys:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOperatorAuthKeysGenerateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OperatorAuthKeysGenerateCmd defines 'generate' subcommand
var OperatorAuthKeysGenerateCmdOperatorId string
OperatorAuthKeysGenerateCmdOperatorId holds value of 'operator_id' option
var OperatorAuthKeysListCmd = &cobra.Command{ Use: "list", Short: TRAPI("/operators/{operator_id}/auth_keys:get:summary"), Long: TRAPI(`/operators/{operator_id}/auth_keys:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOperatorAuthKeysListCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OperatorAuthKeysListCmd defines 'list' subcommand
var OperatorAuthKeysListCmdOperatorId string
OperatorAuthKeysListCmdOperatorId holds value of 'operator_id' option
var OperatorCmd = &cobra.Command{ Use: "operator", Short: TRCLI("cli.operator.summary"), Long: TRCLI(`cli.operator.description`), }
OperatorCmd defines 'operator' subcommand
var OperatorCreateCmd = &cobra.Command{ Use: "create", Short: TRAPI("/operators:post:summary"), Long: TRAPI(`/operators:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOperatorCreateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OperatorCreateCmd defines 'create' subcommand
var OperatorCreateCmdBody string
OperatorCreateCmdBody holds contents of request body to be sent
var OperatorCreateCmdEmail string
OperatorCreateCmdEmail holds value of 'email' option
var OperatorCreateCmdPassword string
OperatorCreateCmdPassword holds value of 'password' option
var OperatorCreateCompanyInformationCmd = &cobra.Command{ Use: "create-company-information", Short: TRAPI("/operators/{operator_id}/company_information:post:summary"), Long: TRAPI(`/operators/{operator_id}/company_information:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOperatorCreateCompanyInformationCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OperatorCreateCompanyInformationCmd defines 'create-company-information' subcommand
var OperatorCreateCompanyInformationCmdAddressLine1 string
OperatorCreateCompanyInformationCmdAddressLine1 holds value of 'addressLine1' option
var OperatorCreateCompanyInformationCmdAddressLine2 string
OperatorCreateCompanyInformationCmdAddressLine2 holds value of 'addressLine2' option
var OperatorCreateCompanyInformationCmdBody string
OperatorCreateCompanyInformationCmdBody holds contents of request body to be sent
var OperatorCreateCompanyInformationCmdBuilding string
OperatorCreateCompanyInformationCmdBuilding holds value of 'building' option
var OperatorCreateCompanyInformationCmdCity string
OperatorCreateCompanyInformationCmdCity holds value of 'city' option
var OperatorCreateCompanyInformationCmdCompanyName string
OperatorCreateCompanyInformationCmdCompanyName holds value of 'companyName' option
var OperatorCreateCompanyInformationCmdContactPersonName string
OperatorCreateCompanyInformationCmdContactPersonName holds value of 'contactPersonName' option
var OperatorCreateCompanyInformationCmdCountryCode string
OperatorCreateCompanyInformationCmdCountryCode holds value of 'countryCode' option
var OperatorCreateCompanyInformationCmdDepartment string
OperatorCreateCompanyInformationCmdDepartment holds value of 'department' option
var OperatorCreateCompanyInformationCmdOperatorId string
OperatorCreateCompanyInformationCmdOperatorId holds value of 'operator_id' option
var OperatorCreateCompanyInformationCmdPhoneNumber string
OperatorCreateCompanyInformationCmdPhoneNumber holds value of 'phoneNumber' option
var OperatorCreateCompanyInformationCmdState string
OperatorCreateCompanyInformationCmdState holds value of 'state' option
var OperatorCreateCompanyInformationCmdVatIdentificationNumber string
OperatorCreateCompanyInformationCmdVatIdentificationNumber holds value of 'vatIdentificationNumber' option
var OperatorCreateCompanyInformationCmdZipCode string
OperatorCreateCompanyInformationCmdZipCode holds value of 'zipCode' option
var OperatorCreateIndividualInformationCmd = &cobra.Command{ Use: "create-individual-information", Short: TRAPI("/operators/{operator_id}/individual_information:post:summary"), Long: TRAPI(`/operators/{operator_id}/individual_information:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOperatorCreateIndividualInformationCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OperatorCreateIndividualInformationCmd defines 'create-individual-information' subcommand
var OperatorCreateIndividualInformationCmdAddressLine1 string
OperatorCreateIndividualInformationCmdAddressLine1 holds value of 'addressLine1' option
var OperatorCreateIndividualInformationCmdAddressLine2 string
OperatorCreateIndividualInformationCmdAddressLine2 holds value of 'addressLine2' option
var OperatorCreateIndividualInformationCmdBody string
OperatorCreateIndividualInformationCmdBody holds contents of request body to be sent
var OperatorCreateIndividualInformationCmdBuilding string
OperatorCreateIndividualInformationCmdBuilding holds value of 'building' option
var OperatorCreateIndividualInformationCmdCity string
OperatorCreateIndividualInformationCmdCity holds value of 'city' option
var OperatorCreateIndividualInformationCmdCountryCode string
OperatorCreateIndividualInformationCmdCountryCode holds value of 'countryCode' option
var OperatorCreateIndividualInformationCmdFullName string
OperatorCreateIndividualInformationCmdFullName holds value of 'fullName' option
var OperatorCreateIndividualInformationCmdOperatorId string
OperatorCreateIndividualInformationCmdOperatorId holds value of 'operator_id' option
var OperatorCreateIndividualInformationCmdPhoneNumber string
OperatorCreateIndividualInformationCmdPhoneNumber holds value of 'phoneNumber' option
var OperatorCreateIndividualInformationCmdState string
OperatorCreateIndividualInformationCmdState holds value of 'state' option
var OperatorCreateIndividualInformationCmdZipCode string
OperatorCreateIndividualInformationCmdZipCode holds value of 'zipCode' option
var OperatorDeleteContractCmd = &cobra.Command{ Use: "delete-contract", Short: TRAPI("/operators/{operator_id}/contracts/{contract_name}:delete:summary"), Long: TRAPI(`/operators/{operator_id}/contracts/{contract_name}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOperatorDeleteContractCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OperatorDeleteContractCmd defines 'delete-contract' subcommand
var OperatorDeleteContractCmdContractName string
OperatorDeleteContractCmdContractName holds value of 'contract_name' option
var OperatorDeleteContractCmdOperatorId string
OperatorDeleteContractCmdOperatorId holds value of 'operator_id' option
var OperatorEnableMfaCmd = &cobra.Command{ Use: "enable-mfa", Short: TRAPI("/operators/{operator_id}/mfa:post:summary"), Long: TRAPI(`/operators/{operator_id}/mfa:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOperatorEnableMfaCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OperatorEnableMfaCmd defines 'enable-mfa' subcommand
var OperatorEnableMfaCmdOperatorId string
OperatorEnableMfaCmdOperatorId holds value of 'operator_id' option
var OperatorGenerateApiTokenCmd = &cobra.Command{ Use: "generate-api-token", Short: TRAPI("/operators/{operator_id}/token:post:summary"), Long: TRAPI(`/operators/{operator_id}/token:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOperatorGenerateApiTokenCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OperatorGenerateApiTokenCmd defines 'generate-api-token' subcommand
var OperatorGenerateApiTokenCmdBody string
OperatorGenerateApiTokenCmdBody holds contents of request body to be sent
var OperatorGenerateApiTokenCmdOperatorId string
OperatorGenerateApiTokenCmdOperatorId holds value of 'operator_id' option
var OperatorGenerateApiTokenCmdTokenTimeoutSeconds int64
OperatorGenerateApiTokenCmdTokenTimeoutSeconds holds value of 'tokenTimeoutSeconds' option
var OperatorGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/operators/{operator_id}:get:summary"), Long: TRAPI(`/operators/{operator_id}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOperatorGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OperatorGetCmd defines 'get' subcommand
var OperatorGetCmdOperatorId string
OperatorGetCmdOperatorId holds value of 'operator_id' option
var OperatorGetCompanyInformationCmd = &cobra.Command{ Use: "get-company-information", Short: TRAPI("/operators/{operator_id}/company_information:get:summary"), Long: TRAPI(`/operators/{operator_id}/company_information:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOperatorGetCompanyInformationCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OperatorGetCompanyInformationCmd defines 'get-company-information' subcommand
var OperatorGetCompanyInformationCmdOperatorId string
OperatorGetCompanyInformationCmdOperatorId holds value of 'operator_id' option
var OperatorGetIndividualInformationCmd = &cobra.Command{ Use: "get-individual-information", Short: TRAPI("/operators/{operator_id}/individual_information:get:summary"), Long: TRAPI(`/operators/{operator_id}/individual_information:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOperatorGetIndividualInformationCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OperatorGetIndividualInformationCmd defines 'get-individual-information' subcommand
var OperatorGetIndividualInformationCmdOperatorId string
OperatorGetIndividualInformationCmdOperatorId holds value of 'operator_id' option
var OperatorGetMfaStatusCmd = &cobra.Command{ Use: "get-mfa-status", Short: TRAPI("/operators/{operator_id}/mfa:get:summary"), Long: TRAPI(`/operators/{operator_id}/mfa:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOperatorGetMfaStatusCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OperatorGetMfaStatusCmd defines 'get-mfa-status' subcommand
var OperatorGetMfaStatusCmdOperatorId string
OperatorGetMfaStatusCmdOperatorId holds value of 'operator_id' option
var OperatorGetSupportTokenCmd = &cobra.Command{ Use: "get-support-token", Short: TRAPI("/operators/{operator_id}/support/token:post:summary"), Long: TRAPI(`/operators/{operator_id}/support/token:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOperatorGetSupportTokenCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OperatorGetSupportTokenCmd defines 'get-support-token' subcommand
var OperatorGetSupportTokenCmdOperatorId string
OperatorGetSupportTokenCmdOperatorId holds value of 'operator_id' option
var OperatorIssueEmailChangeTokenCmd = &cobra.Command{ Use: "issue-email-change-token", Short: TRAPI("/operators/email_change_token/issue:post:summary"), Long: TRAPI(`/operators/email_change_token/issue:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOperatorIssueEmailChangeTokenCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OperatorIssueEmailChangeTokenCmd defines 'issue-email-change-token' subcommand
var OperatorIssueEmailChangeTokenCmdBody string
OperatorIssueEmailChangeTokenCmdBody holds contents of request body to be sent
var OperatorIssueEmailChangeTokenCmdEmail string
OperatorIssueEmailChangeTokenCmdEmail holds value of 'email' option
var OperatorIssueMfaRevokeTokenCmd = &cobra.Command{ Use: "issue-mfa-revoke-token", Short: TRAPI("/operators/mfa_revoke_token/issue:post:summary"), Long: TRAPI(`/operators/mfa_revoke_token/issue:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } param, err := collectOperatorIssueMfaRevokeTokenCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OperatorIssueMfaRevokeTokenCmd defines 'issue-mfa-revoke-token' subcommand
var OperatorIssueMfaRevokeTokenCmdBody string
OperatorIssueMfaRevokeTokenCmdBody holds contents of request body to be sent
var OperatorIssueMfaRevokeTokenCmdEmail string
OperatorIssueMfaRevokeTokenCmdEmail holds value of 'email' option
var OperatorIssueMfaRevokeTokenCmdPassword string
OperatorIssueMfaRevokeTokenCmdPassword holds value of 'password' option
var OperatorRevokeMfaCmd = &cobra.Command{ Use: "revoke-mfa", Short: TRAPI("/operators/{operator_id}/mfa:delete:summary"), Long: TRAPI(`/operators/{operator_id}/mfa:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOperatorRevokeMfaCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OperatorRevokeMfaCmd defines 'revoke-mfa' subcommand
var OperatorRevokeMfaCmdOperatorId string
OperatorRevokeMfaCmdOperatorId holds value of 'operator_id' option
var OperatorUpdateCompanyInformationCmd = &cobra.Command{ Use: "update-company-information", Short: TRAPI("/operators/{operator_id}/company_information:put:summary"), Long: TRAPI(`/operators/{operator_id}/company_information:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOperatorUpdateCompanyInformationCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OperatorUpdateCompanyInformationCmd defines 'update-company-information' subcommand
var OperatorUpdateCompanyInformationCmdAddressLine1 string
OperatorUpdateCompanyInformationCmdAddressLine1 holds value of 'addressLine1' option
var OperatorUpdateCompanyInformationCmdAddressLine2 string
OperatorUpdateCompanyInformationCmdAddressLine2 holds value of 'addressLine2' option
var OperatorUpdateCompanyInformationCmdBody string
OperatorUpdateCompanyInformationCmdBody holds contents of request body to be sent
var OperatorUpdateCompanyInformationCmdBuilding string
OperatorUpdateCompanyInformationCmdBuilding holds value of 'building' option
var OperatorUpdateCompanyInformationCmdCity string
OperatorUpdateCompanyInformationCmdCity holds value of 'city' option
var OperatorUpdateCompanyInformationCmdCompanyName string
OperatorUpdateCompanyInformationCmdCompanyName holds value of 'companyName' option
var OperatorUpdateCompanyInformationCmdContactPersonName string
OperatorUpdateCompanyInformationCmdContactPersonName holds value of 'contactPersonName' option
var OperatorUpdateCompanyInformationCmdCountryCode string
OperatorUpdateCompanyInformationCmdCountryCode holds value of 'countryCode' option
var OperatorUpdateCompanyInformationCmdDepartment string
OperatorUpdateCompanyInformationCmdDepartment holds value of 'department' option
var OperatorUpdateCompanyInformationCmdOperatorId string
OperatorUpdateCompanyInformationCmdOperatorId holds value of 'operator_id' option
var OperatorUpdateCompanyInformationCmdPhoneNumber string
OperatorUpdateCompanyInformationCmdPhoneNumber holds value of 'phoneNumber' option
var OperatorUpdateCompanyInformationCmdState string
OperatorUpdateCompanyInformationCmdState holds value of 'state' option
var OperatorUpdateCompanyInformationCmdVatIdentificationNumber string
OperatorUpdateCompanyInformationCmdVatIdentificationNumber holds value of 'vatIdentificationNumber' option
var OperatorUpdateCompanyInformationCmdZipCode string
OperatorUpdateCompanyInformationCmdZipCode holds value of 'zipCode' option
var OperatorUpdateIndividualInformationCmd = &cobra.Command{ Use: "update-individual-information", Short: TRAPI("/operators/{operator_id}/individual_information:put:summary"), Long: TRAPI(`/operators/{operator_id}/individual_information:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOperatorUpdateIndividualInformationCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OperatorUpdateIndividualInformationCmd defines 'update-individual-information' subcommand
var OperatorUpdateIndividualInformationCmdAddressLine1 string
OperatorUpdateIndividualInformationCmdAddressLine1 holds value of 'addressLine1' option
var OperatorUpdateIndividualInformationCmdAddressLine2 string
OperatorUpdateIndividualInformationCmdAddressLine2 holds value of 'addressLine2' option
var OperatorUpdateIndividualInformationCmdBody string
OperatorUpdateIndividualInformationCmdBody holds contents of request body to be sent
var OperatorUpdateIndividualInformationCmdBuilding string
OperatorUpdateIndividualInformationCmdBuilding holds value of 'building' option
var OperatorUpdateIndividualInformationCmdCity string
OperatorUpdateIndividualInformationCmdCity holds value of 'city' option
var OperatorUpdateIndividualInformationCmdCountryCode string
OperatorUpdateIndividualInformationCmdCountryCode holds value of 'countryCode' option
var OperatorUpdateIndividualInformationCmdFullName string
OperatorUpdateIndividualInformationCmdFullName holds value of 'fullName' option
var OperatorUpdateIndividualInformationCmdOperatorId string
OperatorUpdateIndividualInformationCmdOperatorId holds value of 'operator_id' option
var OperatorUpdateIndividualInformationCmdPhoneNumber string
OperatorUpdateIndividualInformationCmdPhoneNumber holds value of 'phoneNumber' option
var OperatorUpdateIndividualInformationCmdState string
OperatorUpdateIndividualInformationCmdState holds value of 'state' option
var OperatorUpdateIndividualInformationCmdZipCode string
OperatorUpdateIndividualInformationCmdZipCode holds value of 'zipCode' option
var OperatorUpdatePasswordCmd = &cobra.Command{ Use: "update-password", Short: TRAPI("/operators/{operator_id}/password:post:summary"), Long: TRAPI(`/operators/{operator_id}/password:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOperatorUpdatePasswordCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OperatorUpdatePasswordCmd defines 'update-password' subcommand
var OperatorUpdatePasswordCmdBody string
OperatorUpdatePasswordCmdBody holds contents of request body to be sent
var OperatorUpdatePasswordCmdCurrentPassword string
OperatorUpdatePasswordCmdCurrentPassword holds value of 'currentPassword' option
var OperatorUpdatePasswordCmdNewPassword string
OperatorUpdatePasswordCmdNewPassword holds value of 'newPassword' option
var OperatorUpdatePasswordCmdOperatorId string
OperatorUpdatePasswordCmdOperatorId holds value of 'operator_id' option
var OperatorVerifyCmd = &cobra.Command{ Use: "verify", Short: TRAPI("/operators/verify:post:summary"), Long: TRAPI(`/operators/verify:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } param, err := collectOperatorVerifyCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OperatorVerifyCmd defines 'verify' subcommand
var OperatorVerifyCmdBody string
OperatorVerifyCmdBody holds contents of request body to be sent
var OperatorVerifyCmdToken string
OperatorVerifyCmdToken holds value of 'token' option
var OperatorVerifyEmailChangeTokenCmd = &cobra.Command{ Use: "verify-email-change-token", Short: TRAPI("/operators/email_change_token/verify:post:summary"), Long: TRAPI(`/operators/email_change_token/verify:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOperatorVerifyEmailChangeTokenCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OperatorVerifyEmailChangeTokenCmd defines 'verify-email-change-token' subcommand
var OperatorVerifyEmailChangeTokenCmdBody string
OperatorVerifyEmailChangeTokenCmdBody holds contents of request body to be sent
var OperatorVerifyEmailChangeTokenCmdToken string
OperatorVerifyEmailChangeTokenCmdToken holds value of 'token' option
var OperatorVerifyMfaOtpCmd = &cobra.Command{ Use: "verify-mfa-otp", Short: TRAPI("/operators/{operator_id}/mfa/verify:post:summary"), Long: TRAPI(`/operators/{operator_id}/mfa/verify:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOperatorVerifyMfaOtpCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OperatorVerifyMfaOtpCmd defines 'verify-mfa-otp' subcommand
var OperatorVerifyMfaOtpCmdBody string
OperatorVerifyMfaOtpCmdBody holds contents of request body to be sent
var OperatorVerifyMfaOtpCmdMfaOTPCode string
OperatorVerifyMfaOtpCmdMfaOTPCode holds value of 'mfaOTPCode' option
var OperatorVerifyMfaOtpCmdOperatorId string
OperatorVerifyMfaOtpCmdOperatorId holds value of 'operator_id' option
var OperatorVerifyMfaRevokeTokenCmd = &cobra.Command{ Use: "verify-mfa-revoke-token", Short: TRAPI("/operators/mfa_revoke_token/verify:post:summary"), Long: TRAPI(`/operators/mfa_revoke_token/verify:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } param, err := collectOperatorVerifyMfaRevokeTokenCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OperatorVerifyMfaRevokeTokenCmd defines 'verify-mfa-revoke-token' subcommand
var OperatorVerifyMfaRevokeTokenCmdBackupCode string
OperatorVerifyMfaRevokeTokenCmdBackupCode holds value of 'backupCode' option
var OperatorVerifyMfaRevokeTokenCmdBody string
OperatorVerifyMfaRevokeTokenCmdBody holds contents of request body to be sent
var OperatorVerifyMfaRevokeTokenCmdEmail string
OperatorVerifyMfaRevokeTokenCmdEmail holds value of 'email' option
var OperatorVerifyMfaRevokeTokenCmdPassword string
OperatorVerifyMfaRevokeTokenCmdPassword holds value of 'password' option
var OperatorVerifyMfaRevokeTokenCmdToken string
OperatorVerifyMfaRevokeTokenCmdToken holds value of 'token' option
var OrdersCancelCmd = &cobra.Command{ Use: "cancel", Short: TRAPI("/orders/{order_id}/cancel:put:summary"), Long: TRAPI(`/orders/{order_id}/cancel:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOrdersCancelCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OrdersCancelCmd defines 'cancel' subcommand
var OrdersCancelCmdOrderId string
OrdersCancelCmdOrderId holds value of 'order_id' option
var OrdersCmd = &cobra.Command{ Use: "orders", Short: TRCLI("cli.orders.summary"), Long: TRCLI(`cli.orders.description`), }
OrdersCmd defines 'orders' subcommand
var OrdersConfirmCmd = &cobra.Command{ Use: "confirm", Short: TRAPI("/orders/{order_id}/confirm:put:summary"), Long: TRAPI(`/orders/{order_id}/confirm:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOrdersConfirmCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OrdersConfirmCmd defines 'confirm' subcommand
var OrdersConfirmCmdOrderId string
OrdersConfirmCmdOrderId holds value of 'order_id' option
var OrdersCreateCmd = &cobra.Command{ Use: "create", Short: TRAPI("/orders:post:summary"), Long: TRAPI(`/orders:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOrdersCreateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OrdersCreateCmd defines 'create' subcommand
var OrdersCreateCmdBody string
OrdersCreateCmdBody holds contents of request body to be sent
var OrdersCreateCmdShippingAddressId string
OrdersCreateCmdShippingAddressId holds value of 'shippingAddressId' option
var OrdersGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/orders/{order_id}:get:summary"), Long: TRAPI(`/orders/{order_id}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOrdersGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OrdersGetCmd defines 'get' subcommand
var OrdersGetCmdOrderId string
OrdersGetCmdOrderId holds value of 'order_id' option
var OrdersListCmd = &cobra.Command{ Use: "list", Short: TRAPI("/orders:get:summary"), Long: TRAPI(`/orders:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOrdersListCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OrdersListCmd defines 'list' subcommand
var OrdersListSubscribersCmd = &cobra.Command{ Use: "list-subscribers", Short: TRAPI("/orders/{order_id}/subscribers:get:summary"), Long: TRAPI(`/orders/{order_id}/subscribers:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOrdersListSubscribersCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OrdersListSubscribersCmd defines 'list-subscribers' subcommand
var OrdersListSubscribersCmdLastEvaluatedKey string
OrdersListSubscribersCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var OrdersListSubscribersCmdLimit int64
OrdersListSubscribersCmdLimit holds value of 'limit' option
var OrdersListSubscribersCmdOrderId string
OrdersListSubscribersCmdOrderId holds value of 'order_id' option
var OrdersRegisterSubscribersCmd = &cobra.Command{ Use: "register-subscribers", Short: TRAPI("/orders/{order_id}/subscribers/register:post:summary"), Long: TRAPI(`/orders/{order_id}/subscribers/register:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectOrdersRegisterSubscribersCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
OrdersRegisterSubscribersCmd defines 'register-subscribers' subcommand
var OrdersRegisterSubscribersCmdOrderId string
OrdersRegisterSubscribersCmdOrderId holds value of 'order_id' option
var PayerInformationCmd = &cobra.Command{ Use: "payer-information", Short: TRCLI("cli.payer-information.summary"), Long: TRCLI(`cli.payer-information.description`), }
PayerInformationCmd defines 'payer-information' subcommand
var PayerInformationGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/payment_statements/payer_information:get:summary"), Long: TRAPI(`/payment_statements/payer_information:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectPayerInformationGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
PayerInformationGetCmd defines 'get' subcommand
var PayerInformationRegisterCmd = &cobra.Command{ Use: "register", Short: TRAPI("/payment_statements/payer_information:post:summary"), Long: TRAPI(`/payment_statements/payer_information:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectPayerInformationRegisterCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
PayerInformationRegisterCmd defines 'register' subcommand
var PayerInformationRegisterCmdBody string
PayerInformationRegisterCmdBody holds contents of request body to be sent
var PayerInformationRegisterCmdCompanyName string
PayerInformationRegisterCmdCompanyName holds value of 'companyName' option
var PayerInformationRegisterCmdDepartment string
PayerInformationRegisterCmdDepartment holds value of 'department' option
var PayerInformationRegisterCmdFullName string
PayerInformationRegisterCmdFullName holds value of 'fullName' option
var PaymentHistoryCmd = &cobra.Command{ Use: "payment-history", Short: TRCLI("cli.payment-history.summary"), Long: TRCLI(`cli.payment-history.description`), }
PaymentHistoryCmd defines 'payment-history' subcommand
var PaymentHistoryGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/payment_history/transactions/{payment_transaction_id}:get:summary"), Long: TRAPI(`/payment_history/transactions/{payment_transaction_id}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectPaymentHistoryGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
PaymentHistoryGetCmd defines 'get' subcommand
var PaymentHistoryGetCmdPaymentTransactionId string
PaymentHistoryGetCmdPaymentTransactionId holds value of 'payment_transaction_id' option
var PaymentMethodsCmd = &cobra.Command{ Use: "payment-methods", Short: TRCLI("cli.payment-methods.summary"), Long: TRCLI(`cli.payment-methods.description`), }
PaymentMethodsCmd defines 'payment-methods' subcommand
var PaymentMethodsGetCurrentCmd = &cobra.Command{ Use: "get-current", Short: TRAPI("/payment_methods/current:get:summary"), Long: TRAPI(`/payment_methods/current:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectPaymentMethodsGetCurrentCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
PaymentMethodsGetCurrentCmd defines 'get-current' subcommand
var PaymentMethodsReactivateCurrentCmd = &cobra.Command{ Use: "reactivate-current", Short: TRAPI("/payment_methods/current/activate:post:summary"), Long: TRAPI(`/payment_methods/current/activate:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectPaymentMethodsReactivateCurrentCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
PaymentMethodsReactivateCurrentCmd defines 'reactivate-current' subcommand
var PaymentStatementsCmd = &cobra.Command{ Use: "payment-statements", Short: TRCLI("cli.payment-statements.summary"), Long: TRCLI(`cli.payment-statements.description`), }
PaymentStatementsCmd defines 'payment-statements' subcommand
var PaymentStatementsExportCmd = &cobra.Command{ Use: "export", Short: TRAPI("/payment_statements/{payment_statement_id}/export:post:summary"), Long: TRAPI(`/payment_statements/{payment_statement_id}/export:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectPaymentStatementsExportCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
PaymentStatementsExportCmd defines 'export' subcommand
var PaymentStatementsExportCmdExportMode string
PaymentStatementsExportCmdExportMode holds value of 'export_mode' option
var PaymentStatementsExportCmdPaymentStatementId string
PaymentStatementsExportCmdPaymentStatementId holds value of 'payment_statement_id' option
var PaymentStatementsListCmd = &cobra.Command{ Use: "list", Short: TRAPI("/payment_statements:get:summary"), Long: TRAPI(`/payment_statements:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectPaymentStatementsListCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
PaymentStatementsListCmd defines 'list' subcommand
var PortMappingsCmd = &cobra.Command{ Use: "port-mappings", Short: TRCLI("cli.port-mappings.summary"), Long: TRCLI(`cli.port-mappings.description`), }
PortMappingsCmd defines 'port-mappings' subcommand
var PortMappingsCreateCmd = &cobra.Command{ Use: "create", Short: TRAPI("/port_mappings:post:summary"), Long: TRAPI(`/port_mappings:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectPortMappingsCreateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
PortMappingsCreateCmd defines 'create' subcommand
var PortMappingsCreateCmdBody string
PortMappingsCreateCmdBody holds contents of request body to be sent
var PortMappingsCreateCmdDuration float64
PortMappingsCreateCmdDuration holds value of 'duration' option
var PortMappingsCreateCmdTlsRequired bool
PortMappingsCreateCmdTlsRequired holds value of 'tlsRequired' option
var PortMappingsDeleteCmd = &cobra.Command{ Use: "delete", Short: TRAPI("/port_mappings/{ip_address}/{port}:delete:summary"), Long: TRAPI(`/port_mappings/{ip_address}/{port}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectPortMappingsDeleteCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
PortMappingsDeleteCmd defines 'delete' subcommand
var PortMappingsDeleteCmdIpAddress string
PortMappingsDeleteCmdIpAddress holds value of 'ip_address' option
var PortMappingsDeleteCmdPort string
PortMappingsDeleteCmdPort holds value of 'port' option
var PortMappingsGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/port_mappings/subscribers/{imsi}:get:summary"), Long: TRAPI(`/port_mappings/subscribers/{imsi}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectPortMappingsGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
PortMappingsGetCmd defines 'get' subcommand
var PortMappingsGetCmdImsi string
PortMappingsGetCmdImsi holds value of 'imsi' option
var PortMappingsListCmd = &cobra.Command{ Use: "list", Short: TRAPI("/port_mappings:get:summary"), Long: TRAPI(`/port_mappings:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectPortMappingsListCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
PortMappingsListCmd defines 'list' subcommand
var PortMappingsListCmdLastEvaluatedKey string
PortMappingsListCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var PortMappingsListCmdLimit int64
PortMappingsListCmdLimit holds value of 'limit' option
var PortMappingsListCmdPaginate bool
PortMappingsListCmdPaginate indicates to do pagination or not
var ProductsCmd = &cobra.Command{ Use: "products", Short: TRCLI("cli.products.summary"), Long: TRCLI(`cli.products.description`), }
ProductsCmd defines 'products' subcommand
var ProductsListCmd = &cobra.Command{ Use: "list", Short: TRAPI("/products:get:summary"), Long: TRAPI(`/products:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectProductsListCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
ProductsListCmd defines 'list' subcommand
var QueryCmd = &cobra.Command{ Use: "query", Short: TRCLI("cli.query.summary"), Long: TRCLI(`cli.query.description`), }
QueryCmd defines 'query' subcommand
var QueryDevicesCmd = &cobra.Command{ Use: "devices", Short: TRAPI("/query/devices:get:summary"), Long: TRAPI(`/query/devices:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectQueryDevicesCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
QueryDevicesCmd defines 'devices' subcommand
var QueryDevicesCmdDeviceId []string
QueryDevicesCmdDeviceId holds multiple values of 'deviceId' option
var QueryDevicesCmdGroup []string
QueryDevicesCmdGroup holds multiple values of 'group' option
var QueryDevicesCmdImei []string
QueryDevicesCmdImei holds multiple values of 'imei' option
var QueryDevicesCmdImsi []string
QueryDevicesCmdImsi holds multiple values of 'imsi' option
var QueryDevicesCmdLastEvaluatedKey string
QueryDevicesCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var QueryDevicesCmdLimit int64
QueryDevicesCmdLimit holds value of 'limit' option
var QueryDevicesCmdName []string
QueryDevicesCmdName holds multiple values of 'name' option
var QueryDevicesCmdPaginate bool
QueryDevicesCmdPaginate indicates to do pagination or not
var QueryDevicesCmdSearchType string
QueryDevicesCmdSearchType holds value of 'search_type' option
var QueryDevicesCmdTag []string
QueryDevicesCmdTag holds multiple values of 'tag' option
var QuerySigfoxDevicesCmd = &cobra.Command{ Use: "sigfox-devices", Short: TRAPI("/query/sigfox_devices:get:summary"), Long: TRAPI(`/query/sigfox_devices:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectQuerySigfoxDevicesCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
QuerySigfoxDevicesCmd defines 'sigfox-devices' subcommand
var QuerySigfoxDevicesCmdDeviceId []string
QuerySigfoxDevicesCmdDeviceId holds multiple values of 'deviceId' option
var QuerySigfoxDevicesCmdGroup []string
QuerySigfoxDevicesCmdGroup holds multiple values of 'group' option
var QuerySigfoxDevicesCmdLastEvaluatedKey string
QuerySigfoxDevicesCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var QuerySigfoxDevicesCmdLimit int64
QuerySigfoxDevicesCmdLimit holds value of 'limit' option
var QuerySigfoxDevicesCmdName []string
QuerySigfoxDevicesCmdName holds multiple values of 'name' option
var QuerySigfoxDevicesCmdPaginate bool
QuerySigfoxDevicesCmdPaginate indicates to do pagination or not
var QuerySigfoxDevicesCmdRegistration string
QuerySigfoxDevicesCmdRegistration holds value of 'registration' option
var QuerySigfoxDevicesCmdSearchType string
QuerySigfoxDevicesCmdSearchType holds value of 'search_type' option
var QuerySigfoxDevicesCmdStatus string
QuerySigfoxDevicesCmdStatus holds value of 'status' option
var QuerySigfoxDevicesCmdTag []string
QuerySigfoxDevicesCmdTag holds multiple values of 'tag' option
var QuerySimsCmd = &cobra.Command{ Use: "sims", Short: TRAPI("/query/sims:get:summary"), Long: TRAPI(`/query/sims:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectQuerySimsCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
QuerySimsCmd defines 'sims' subcommand
var QuerySimsCmdBundles []string
QuerySimsCmdBundles holds multiple values of 'bundles' option
var QuerySimsCmdGroup []string
QuerySimsCmdGroup holds multiple values of 'group' option
var QuerySimsCmdIccid []string
QuerySimsCmdIccid holds multiple values of 'iccid' option
var QuerySimsCmdImsi []string
QuerySimsCmdImsi holds multiple values of 'imsi' option
var QuerySimsCmdLastEvaluatedKey string
QuerySimsCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var QuerySimsCmdLimit int64
QuerySimsCmdLimit holds value of 'limit' option
var QuerySimsCmdMsisdn []string
QuerySimsCmdMsisdn holds multiple values of 'msisdn' option
var QuerySimsCmdName []string
QuerySimsCmdName holds multiple values of 'name' option
var QuerySimsCmdPaginate bool
QuerySimsCmdPaginate indicates to do pagination or not
var QuerySimsCmdSearchType string
QuerySimsCmdSearchType holds value of 'search_type' option
var QuerySimsCmdSerialNumber []string
QuerySimsCmdSerialNumber holds multiple values of 'serial_number' option
var QuerySimsCmdSessionStatus string
QuerySimsCmdSessionStatus holds value of 'session_status' option
var QuerySimsCmdSimId []string
QuerySimsCmdSimId holds multiple values of 'sim_id' option
var QuerySimsCmdTag []string
QuerySimsCmdTag holds multiple values of 'tag' option
var QuerySubscribersCmd = &cobra.Command{ Use: "subscribers", Short: TRAPI("/query/subscribers:get:summary"), Long: TRAPI(`/query/subscribers:get:description`), RunE: func(cmd *cobra.Command, args []string) error { lib.WarnfStderr(TRCLI("cli.deprecated-api") + "\n") lib.WarnfStderr(TRCLI("cli.alternative-api-suggestion")+"\n", "query sims") opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectQuerySubscribersCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
QuerySubscribersCmd defines 'subscribers' subcommand
var QuerySubscribersCmdGroup []string
QuerySubscribersCmdGroup holds multiple values of 'group' option
var QuerySubscribersCmdIccid []string
QuerySubscribersCmdIccid holds multiple values of 'iccid' option
var QuerySubscribersCmdImsi []string
QuerySubscribersCmdImsi holds multiple values of 'imsi' option
var QuerySubscribersCmdLastEvaluatedKey string
QuerySubscribersCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var QuerySubscribersCmdLimit int64
QuerySubscribersCmdLimit holds value of 'limit' option
var QuerySubscribersCmdMsisdn []string
QuerySubscribersCmdMsisdn holds multiple values of 'msisdn' option
var QuerySubscribersCmdName []string
QuerySubscribersCmdName holds multiple values of 'name' option
var QuerySubscribersCmdPaginate bool
QuerySubscribersCmdPaginate indicates to do pagination or not
var QuerySubscribersCmdSearchType string
QuerySubscribersCmdSearchType holds value of 'search_type' option
var QuerySubscribersCmdSerialNumber []string
QuerySubscribersCmdSerialNumber holds multiple values of 'serial_number' option
var QuerySubscribersCmdTag []string
QuerySubscribersCmdTag holds multiple values of 'tag' option
var QuerySubscribersTrafficVolumeRankingCmd = &cobra.Command{ Use: "traffic-volume-ranking", Short: TRAPI("/query/subscribers/traffic_volume/ranking:get:summary"), Long: TRAPI(`/query/subscribers/traffic_volume/ranking:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectQuerySubscribersTrafficVolumeRankingCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
QuerySubscribersTrafficVolumeRankingCmd defines 'traffic-volume-ranking' subcommand
var QuerySubscribersTrafficVolumeRankingCmdFrom int64
QuerySubscribersTrafficVolumeRankingCmdFrom holds value of 'from' option
var QuerySubscribersTrafficVolumeRankingCmdLimit int64
QuerySubscribersTrafficVolumeRankingCmdLimit holds value of 'limit' option
var QuerySubscribersTrafficVolumeRankingCmdOrder string
QuerySubscribersTrafficVolumeRankingCmdOrder holds value of 'order' option
var QuerySubscribersTrafficVolumeRankingCmdTo int64
QuerySubscribersTrafficVolumeRankingCmdTo holds value of 'to' option
var QueryTrafficRankingCmd = &cobra.Command{ Use: "traffic-ranking", Short: TRAPI("/query/subscribers/traffic_volume/ranking:get:summary"), Long: TRAPI(`/query/subscribers/traffic_volume/ranking:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectQueryTrafficRankingCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
QueryTrafficRankingCmd defines 'traffic-ranking' subcommand
var QueryTrafficRankingCmdFrom int64
QueryTrafficRankingCmdFrom holds value of 'from' option
var QueryTrafficRankingCmdLimit int64
QueryTrafficRankingCmdLimit holds value of 'limit' option
var QueryTrafficRankingCmdOrder string
QueryTrafficRankingCmdOrder holds value of 'order' option
var QueryTrafficRankingCmdTo int64
QueryTrafficRankingCmdTo holds value of 'to' option
var RolesCmd = &cobra.Command{ Use: "roles", Short: TRCLI("cli.roles.summary"), Long: TRCLI(`cli.roles.description`), }
RolesCmd defines 'roles' subcommand
var RolesCreateCmd = &cobra.Command{ Use: "create", Short: TRAPI("/operators/{operator_id}/roles/{role_id}:post:summary"), Long: TRAPI(`/operators/{operator_id}/roles/{role_id}:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectRolesCreateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
RolesCreateCmd defines 'create' subcommand
var RolesCreateCmdBody string
RolesCreateCmdBody holds contents of request body to be sent
var RolesCreateCmdDescription string
RolesCreateCmdDescription holds value of 'description' option
var RolesCreateCmdOperatorId string
RolesCreateCmdOperatorId holds value of 'operator_id' option
var RolesCreateCmdPermission string
RolesCreateCmdPermission holds value of 'permission' option
var RolesCreateCmdRoleId string
RolesCreateCmdRoleId holds value of 'role_id' option
var RolesDeleteCmd = &cobra.Command{ Use: "delete", Short: TRAPI("/operators/{operator_id}/roles/{role_id}:delete:summary"), Long: TRAPI(`/operators/{operator_id}/roles/{role_id}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectRolesDeleteCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
RolesDeleteCmd defines 'delete' subcommand
var RolesDeleteCmdOperatorId string
RolesDeleteCmdOperatorId holds value of 'operator_id' option
var RolesDeleteCmdRoleId string
RolesDeleteCmdRoleId holds value of 'role_id' option
var RolesGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/operators/{operator_id}/roles/{role_id}:get:summary"), Long: TRAPI(`/operators/{operator_id}/roles/{role_id}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectRolesGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
RolesGetCmd defines 'get' subcommand
var RolesGetCmdOperatorId string
RolesGetCmdOperatorId holds value of 'operator_id' option
var RolesGetCmdRoleId string
RolesGetCmdRoleId holds value of 'role_id' option
var RolesListCmd = &cobra.Command{ Use: "list", Short: TRAPI("/operators/{operator_id}/roles:get:summary"), Long: TRAPI(`/operators/{operator_id}/roles:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectRolesListCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
RolesListCmd defines 'list' subcommand
var RolesListCmdOperatorId string
RolesListCmdOperatorId holds value of 'operator_id' option
var RolesListUsersCmd = &cobra.Command{ Use: "list-users", Short: TRAPI("/operators/{operator_id}/roles/{role_id}/users:get:summary"), Long: TRAPI(`/operators/{operator_id}/roles/{role_id}/users:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectRolesListUsersCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
RolesListUsersCmd defines 'list-users' subcommand
var RolesListUsersCmdOperatorId string
RolesListUsersCmdOperatorId holds value of 'operator_id' option
var RolesListUsersCmdRoleId string
RolesListUsersCmdRoleId holds value of 'role_id' option
var RolesUpdateCmd = &cobra.Command{ Use: "update", Short: TRAPI("/operators/{operator_id}/roles/{role_id}:put:summary"), Long: TRAPI(`/operators/{operator_id}/roles/{role_id}:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectRolesUpdateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
RolesUpdateCmd defines 'update' subcommand
var RolesUpdateCmdBody string
RolesUpdateCmdBody holds contents of request body to be sent
var RolesUpdateCmdDescription string
RolesUpdateCmdDescription holds value of 'description' option
var RolesUpdateCmdOperatorId string
RolesUpdateCmdOperatorId holds value of 'operator_id' option
var RolesUpdateCmdPermission string
RolesUpdateCmdPermission holds value of 'permission' option
var RolesUpdateCmdRoleId string
RolesUpdateCmdRoleId holds value of 'role_id' option
var RootCmd = &cobra.Command{
Use: "soracom",
Short: "soracom command",
Long: `A command line tool to invoke SORACOM API`,
}
RootCmd defines 'soracom' command
var SandboxCmd = &cobra.Command{ Use: "sandbox", Short: TRCLI("cli.sandbox.summary"), Long: TRCLI(`cli.sandbox.description`), }
SandboxCmd defines 'sandbox' subcommand
var SandboxCouponsCmd = &cobra.Command{ Use: "coupons", Short: TRCLI("cli.sandbox.coupons.summary"), Long: TRCLI(`cli.sandbox.coupons.description`), }
SandboxCouponsCmd defines 'coupons' subcommand
var SandboxCouponsCreateCmd = &cobra.Command{ Use: "create", Short: TRAPI("/sandbox/coupons/create:post:summary"), Long: TRAPI(`/sandbox/coupons/create:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSandboxCouponsCreateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SandboxCouponsCreateCmd defines 'create' subcommand
var SandboxCouponsCreateCmdAmount int64
SandboxCouponsCreateCmdAmount holds value of 'amount' option
var SandboxCouponsCreateCmdApplicableBillItemName string
SandboxCouponsCreateCmdApplicableBillItemName holds value of 'applicableBillItemName' option
var SandboxCouponsCreateCmdBody string
SandboxCouponsCreateCmdBody holds contents of request body to be sent
var SandboxCouponsCreateCmdExpiryYearMonth string
SandboxCouponsCreateCmdExpiryYearMonth holds value of 'expiryYearMonth' option
var SandboxInitCmd = &cobra.Command{ Use: "init", Short: TRAPI("/sandbox/init:post:summary"), Long: TRAPI(`/sandbox/init:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } param, err := collectSandboxInitCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SandboxInitCmd defines 'init' subcommand
var SandboxInitCmdAuthKey string
SandboxInitCmdAuthKey holds value of 'authKey' option
var SandboxInitCmdAuthKeyId string
SandboxInitCmdAuthKeyId holds value of 'authKeyId' option
var SandboxInitCmdBody string
SandboxInitCmdBody holds contents of request body to be sent
var SandboxInitCmdEmail string
SandboxInitCmdEmail holds value of 'email' option
var SandboxInitCmdPassword string
SandboxInitCmdPassword holds value of 'password' option
var SandboxInitCmdRegisterPaymentMethod bool
SandboxInitCmdRegisterPaymentMethod holds value of 'registerPaymentMethod' option
var SandboxOperatorsCmd = &cobra.Command{ Use: "operators", Short: TRCLI("cli.sandbox.operators.summary"), Long: TRCLI(`cli.sandbox.operators.description`), }
SandboxOperatorsCmd defines 'operators' subcommand
var SandboxOperatorsDeleteCmd = &cobra.Command{ Use: "delete", Short: TRAPI("/sandbox/operators/{operator_id}:delete:summary"), Long: TRAPI(`/sandbox/operators/{operator_id}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSandboxOperatorsDeleteCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SandboxOperatorsDeleteCmd defines 'delete' subcommand
var SandboxOperatorsDeleteCmdOperatorId string
SandboxOperatorsDeleteCmdOperatorId holds value of 'operator_id' option
var SandboxOperatorsGetSignupTokenCmd = &cobra.Command{ Use: "get-signup-token", Short: TRAPI("/sandbox/operators/token/{email}:post:summary"), Long: TRAPI(`/sandbox/operators/token/{email}:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } param, err := collectSandboxOperatorsGetSignupTokenCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SandboxOperatorsGetSignupTokenCmd defines 'get-signup-token' subcommand
var SandboxOperatorsGetSignupTokenCmdAuthKey string
SandboxOperatorsGetSignupTokenCmdAuthKey holds value of 'authKey' option
var SandboxOperatorsGetSignupTokenCmdAuthKeyId string
SandboxOperatorsGetSignupTokenCmdAuthKeyId holds value of 'authKeyId' option
var SandboxOperatorsGetSignupTokenCmdBody string
SandboxOperatorsGetSignupTokenCmdBody holds contents of request body to be sent
var SandboxOperatorsGetSignupTokenCmdEmail string
SandboxOperatorsGetSignupTokenCmdEmail holds value of 'email' option
var SandboxOrdersCmd = &cobra.Command{ Use: "orders", Short: TRCLI("cli.sandbox.orders.summary"), Long: TRCLI(`cli.sandbox.orders.description`), }
SandboxOrdersCmd defines 'orders' subcommand
var SandboxOrdersShipCmd = &cobra.Command{ Use: "ship", Short: TRAPI("/sandbox/orders/ship:post:summary"), Long: TRAPI(`/sandbox/orders/ship:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSandboxOrdersShipCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SandboxOrdersShipCmd defines 'ship' subcommand
var SandboxOrdersShipCmdBody string
SandboxOrdersShipCmdBody holds contents of request body to be sent
var SandboxOrdersShipCmdOperatorId string
SandboxOrdersShipCmdOperatorId holds value of 'operatorId' option
var SandboxOrdersShipCmdOrderId string
SandboxOrdersShipCmdOrderId holds value of 'orderId' option
var SandboxStatsAirCmd = &cobra.Command{ Use: "air", Short: TRCLI("cli.sandbox.stats.air.summary"), Long: TRCLI(`cli.sandbox.stats.air.description`), }
SandboxStatsAirCmd defines 'air' subcommand
var SandboxStatsAirInsertCmd = &cobra.Command{ Use: "insert", Short: TRAPI("/sandbox/stats/air/subscribers/{imsi}:post:summary"), Long: TRAPI(`/sandbox/stats/air/subscribers/{imsi}:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSandboxStatsAirInsertCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SandboxStatsAirInsertCmd defines 'insert' subcommand
var SandboxStatsAirInsertCmdBody string
SandboxStatsAirInsertCmdBody holds contents of request body to be sent
var SandboxStatsAirInsertCmdImsi string
SandboxStatsAirInsertCmdImsi holds value of 'imsi' option
var SandboxStatsAirInsertCmdUnixtime int64
SandboxStatsAirInsertCmdUnixtime holds value of 'unixtime' option
var SandboxStatsBeamCmd = &cobra.Command{ Use: "beam", Short: TRCLI("cli.sandbox.stats.beam.summary"), Long: TRCLI(`cli.sandbox.stats.beam.description`), }
SandboxStatsBeamCmd defines 'beam' subcommand
var SandboxStatsBeamInsertCmd = &cobra.Command{ Use: "insert", Short: TRAPI("/sandbox/stats/beam/subscribers/{imsi}:post:summary"), Long: TRAPI(`/sandbox/stats/beam/subscribers/{imsi}:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSandboxStatsBeamInsertCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SandboxStatsBeamInsertCmd defines 'insert' subcommand
var SandboxStatsBeamInsertCmdBody string
SandboxStatsBeamInsertCmdBody holds contents of request body to be sent
var SandboxStatsBeamInsertCmdImsi string
SandboxStatsBeamInsertCmdImsi holds value of 'imsi' option
var SandboxStatsBeamInsertCmdUnixtime int64
SandboxStatsBeamInsertCmdUnixtime holds value of 'unixtime' option
var SandboxStatsCmd = &cobra.Command{ Use: "stats", Short: TRCLI("cli.sandbox.stats.summary"), Long: TRCLI(`cli.sandbox.stats.description`), }
SandboxStatsCmd defines 'stats' subcommand
var SandboxSubscribersCmd = &cobra.Command{ Use: "subscribers", Short: TRCLI("cli.sandbox.subscribers.summary"), Long: TRCLI(`cli.sandbox.subscribers.description`), }
SandboxSubscribersCmd defines 'subscribers' subcommand
var SandboxSubscribersCreateCmd = &cobra.Command{ Use: "create", Short: TRAPI("/sandbox/subscribers/create:post:summary"), Long: TRAPI(`/sandbox/subscribers/create:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSandboxSubscribersCreateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SandboxSubscribersCreateCmd defines 'create' subcommand
var SandboxSubscribersCreateCmdBody string
SandboxSubscribersCreateCmdBody holds contents of request body to be sent
var SandboxSubscribersCreateCmdSubscription string
SandboxSubscribersCreateCmdSubscription holds value of 'subscription' option
var ShippingAddressesCmd = &cobra.Command{ Use: "shipping-addresses", Short: TRCLI("cli.shipping-addresses.summary"), Long: TRCLI(`cli.shipping-addresses.description`), }
ShippingAddressesCmd defines 'shipping-addresses' subcommand
var ShippingAddressesCreateCmd = &cobra.Command{ Use: "create", Short: TRAPI("/operators/{operator_id}/shipping_addresses:post:summary"), Long: TRAPI(`/operators/{operator_id}/shipping_addresses:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectShippingAddressesCreateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
ShippingAddressesCreateCmd defines 'create' subcommand
var ShippingAddressesCreateCmdAddressLine1 string
ShippingAddressesCreateCmdAddressLine1 holds value of 'addressLine1' option
var ShippingAddressesCreateCmdAddressLine2 string
ShippingAddressesCreateCmdAddressLine2 holds value of 'addressLine2' option
var ShippingAddressesCreateCmdBody string
ShippingAddressesCreateCmdBody holds contents of request body to be sent
var ShippingAddressesCreateCmdBuilding string
ShippingAddressesCreateCmdBuilding holds value of 'building' option
var ShippingAddressesCreateCmdCity string
ShippingAddressesCreateCmdCity holds value of 'city' option
var ShippingAddressesCreateCmdCompanyName string
ShippingAddressesCreateCmdCompanyName holds value of 'companyName' option
var ShippingAddressesCreateCmdCountryCode string
ShippingAddressesCreateCmdCountryCode holds value of 'countryCode' option
var ShippingAddressesCreateCmdDepartment string
ShippingAddressesCreateCmdDepartment holds value of 'department' option
var ShippingAddressesCreateCmdEmail string
ShippingAddressesCreateCmdEmail holds value of 'email' option
var ShippingAddressesCreateCmdFullName string
ShippingAddressesCreateCmdFullName holds value of 'fullName' option
var ShippingAddressesCreateCmdOperatorId string
ShippingAddressesCreateCmdOperatorId holds value of 'operator_id' option
var ShippingAddressesCreateCmdPhoneNumber string
ShippingAddressesCreateCmdPhoneNumber holds value of 'phoneNumber' option
var ShippingAddressesCreateCmdState string
ShippingAddressesCreateCmdState holds value of 'state' option
var ShippingAddressesCreateCmdZipCode string
ShippingAddressesCreateCmdZipCode holds value of 'zipCode' option
var ShippingAddressesDeleteCmd = &cobra.Command{ Use: "delete", Short: TRAPI("/operators/{operator_id}/shipping_addresses/{shipping_address_id}:delete:summary"), Long: TRAPI(`/operators/{operator_id}/shipping_addresses/{shipping_address_id}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectShippingAddressesDeleteCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
ShippingAddressesDeleteCmd defines 'delete' subcommand
var ShippingAddressesDeleteCmdOperatorId string
ShippingAddressesDeleteCmdOperatorId holds value of 'operator_id' option
var ShippingAddressesDeleteCmdShippingAddressId string
ShippingAddressesDeleteCmdShippingAddressId holds value of 'shipping_address_id' option
var ShippingAddressesGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/operators/{operator_id}/shipping_addresses/{shipping_address_id}:get:summary"), Long: TRAPI(`/operators/{operator_id}/shipping_addresses/{shipping_address_id}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectShippingAddressesGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
ShippingAddressesGetCmd defines 'get' subcommand
var ShippingAddressesGetCmdOperatorId string
ShippingAddressesGetCmdOperatorId holds value of 'operator_id' option
var ShippingAddressesGetCmdShippingAddressId string
ShippingAddressesGetCmdShippingAddressId holds value of 'shipping_address_id' option
var ShippingAddressesListCmd = &cobra.Command{ Use: "list", Short: TRAPI("/operators/{operator_id}/shipping_addresses:get:summary"), Long: TRAPI(`/operators/{operator_id}/shipping_addresses:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectShippingAddressesListCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
ShippingAddressesListCmd defines 'list' subcommand
var ShippingAddressesListCmdOperatorId string
ShippingAddressesListCmdOperatorId holds value of 'operator_id' option
var ShippingAddressesUpdateCmd = &cobra.Command{ Use: "update", Short: TRAPI("/operators/{operator_id}/shipping_addresses/{shipping_address_id}:put:summary"), Long: TRAPI(`/operators/{operator_id}/shipping_addresses/{shipping_address_id}:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectShippingAddressesUpdateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
ShippingAddressesUpdateCmd defines 'update' subcommand
var ShippingAddressesUpdateCmdAddressLine1 string
ShippingAddressesUpdateCmdAddressLine1 holds value of 'addressLine1' option
var ShippingAddressesUpdateCmdAddressLine2 string
ShippingAddressesUpdateCmdAddressLine2 holds value of 'addressLine2' option
var ShippingAddressesUpdateCmdBody string
ShippingAddressesUpdateCmdBody holds contents of request body to be sent
var ShippingAddressesUpdateCmdBuilding string
ShippingAddressesUpdateCmdBuilding holds value of 'building' option
var ShippingAddressesUpdateCmdCity string
ShippingAddressesUpdateCmdCity holds value of 'city' option
var ShippingAddressesUpdateCmdCompanyName string
ShippingAddressesUpdateCmdCompanyName holds value of 'companyName' option
var ShippingAddressesUpdateCmdCountryCode string
ShippingAddressesUpdateCmdCountryCode holds value of 'countryCode' option
var ShippingAddressesUpdateCmdDepartment string
ShippingAddressesUpdateCmdDepartment holds value of 'department' option
var ShippingAddressesUpdateCmdEmail string
ShippingAddressesUpdateCmdEmail holds value of 'email' option
var ShippingAddressesUpdateCmdFullName string
ShippingAddressesUpdateCmdFullName holds value of 'fullName' option
var ShippingAddressesUpdateCmdOperatorId string
ShippingAddressesUpdateCmdOperatorId holds value of 'operator_id' option
var ShippingAddressesUpdateCmdPhoneNumber string
ShippingAddressesUpdateCmdPhoneNumber holds value of 'phoneNumber' option
var ShippingAddressesUpdateCmdShippingAddressId string
ShippingAddressesUpdateCmdShippingAddressId holds value of 'shipping_address_id' option
var ShippingAddressesUpdateCmdState string
ShippingAddressesUpdateCmdState holds value of 'state' option
var ShippingAddressesUpdateCmdZipCode string
ShippingAddressesUpdateCmdZipCode holds value of 'zipCode' option
var SigfoxDevicesCmd = &cobra.Command{ Use: "sigfox-devices", Short: TRCLI("cli.sigfox-devices.summary"), Long: TRCLI(`cli.sigfox-devices.description`), }
SigfoxDevicesCmd defines 'sigfox-devices' subcommand
var SigfoxDevicesDeleteTagCmd = &cobra.Command{ Use: "delete-tag", Short: TRAPI("/sigfox_devices/{device_id}/tags/{tag_name}:delete:summary"), Long: TRAPI(`/sigfox_devices/{device_id}/tags/{tag_name}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSigfoxDevicesDeleteTagCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SigfoxDevicesDeleteTagCmd defines 'delete-tag' subcommand
var SigfoxDevicesDeleteTagCmdDeviceId string
SigfoxDevicesDeleteTagCmdDeviceId holds value of 'device_id' option
var SigfoxDevicesDeleteTagCmdTagName string
SigfoxDevicesDeleteTagCmdTagName holds value of 'tag_name' option
var SigfoxDevicesDisableTerminationCmd = &cobra.Command{ Use: "disable-termination", Short: TRAPI("/sigfox_devices/{device_id}/disable_termination:post:summary"), Long: TRAPI(`/sigfox_devices/{device_id}/disable_termination:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSigfoxDevicesDisableTerminationCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SigfoxDevicesDisableTerminationCmd defines 'disable-termination' subcommand
var SigfoxDevicesDisableTerminationCmdDeviceId string
SigfoxDevicesDisableTerminationCmdDeviceId holds value of 'device_id' option
var SigfoxDevicesEnableTerminationCmd = &cobra.Command{ Use: "enable-termination", Short: TRAPI("/sigfox_devices/{device_id}/enable_termination:post:summary"), Long: TRAPI(`/sigfox_devices/{device_id}/enable_termination:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSigfoxDevicesEnableTerminationCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SigfoxDevicesEnableTerminationCmd defines 'enable-termination' subcommand
var SigfoxDevicesEnableTerminationCmdDeviceId string
SigfoxDevicesEnableTerminationCmdDeviceId holds value of 'device_id' option
var SigfoxDevicesGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/sigfox_devices/{device_id}:get:summary"), Long: TRAPI(`/sigfox_devices/{device_id}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSigfoxDevicesGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SigfoxDevicesGetCmd defines 'get' subcommand
var SigfoxDevicesGetCmdDeviceId string
SigfoxDevicesGetCmdDeviceId holds value of 'device_id' option
var SigfoxDevicesGetDataCmd = &cobra.Command{ Use: "get-data", Short: TRAPI("/sigfox_devices/{device_id}/data:get:summary"), Long: TRAPI(`/sigfox_devices/{device_id}/data:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSigfoxDevicesGetDataCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SigfoxDevicesGetDataCmd defines 'get-data' subcommand
var SigfoxDevicesGetDataCmdDeviceId string
SigfoxDevicesGetDataCmdDeviceId holds value of 'device_id' option
var SigfoxDevicesGetDataCmdFrom int64
SigfoxDevicesGetDataCmdFrom holds value of 'from' option
var SigfoxDevicesGetDataCmdLastEvaluatedKey string
SigfoxDevicesGetDataCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var SigfoxDevicesGetDataCmdLimit int64
SigfoxDevicesGetDataCmdLimit holds value of 'limit' option
var SigfoxDevicesGetDataCmdPaginate bool
SigfoxDevicesGetDataCmdPaginate indicates to do pagination or not
var SigfoxDevicesGetDataCmdSort string
SigfoxDevicesGetDataCmdSort holds value of 'sort' option
var SigfoxDevicesGetDataCmdTo int64
SigfoxDevicesGetDataCmdTo holds value of 'to' option
var SigfoxDevicesListCmd = &cobra.Command{ Use: "list", Short: TRAPI("/sigfox_devices:get:summary"), Long: TRAPI(`/sigfox_devices:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSigfoxDevicesListCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SigfoxDevicesListCmd defines 'list' subcommand
var SigfoxDevicesListCmdLastEvaluatedKey string
SigfoxDevicesListCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var SigfoxDevicesListCmdLimit int64
SigfoxDevicesListCmdLimit holds value of 'limit' option
var SigfoxDevicesListCmdPaginate bool
SigfoxDevicesListCmdPaginate indicates to do pagination or not
var SigfoxDevicesListCmdTagName string
SigfoxDevicesListCmdTagName holds value of 'tag_name' option
var SigfoxDevicesListCmdTagValue string
SigfoxDevicesListCmdTagValue holds value of 'tag_value' option
var SigfoxDevicesListCmdTagValueMatchMode string
SigfoxDevicesListCmdTagValueMatchMode holds value of 'tag_value_match_mode' option
var SigfoxDevicesPutTagsCmd = &cobra.Command{ Use: "put-tags", Short: TRAPI("/sigfox_devices/{device_id}/tags:put:summary"), Long: TRAPI(`/sigfox_devices/{device_id}/tags:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSigfoxDevicesPutTagsCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SigfoxDevicesPutTagsCmd defines 'put-tags' subcommand
var SigfoxDevicesPutTagsCmdBody string
SigfoxDevicesPutTagsCmdBody holds contents of request body to be sent
var SigfoxDevicesPutTagsCmdDeviceId string
SigfoxDevicesPutTagsCmdDeviceId holds value of 'device_id' option
var SigfoxDevicesRegisterCmd = &cobra.Command{ Use: "register", Short: TRAPI("/sigfox_devices/{device_id}/register:post:summary"), Long: TRAPI(`/sigfox_devices/{device_id}/register:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSigfoxDevicesRegisterCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SigfoxDevicesRegisterCmd defines 'register' subcommand
var SigfoxDevicesRegisterCmdBody string
SigfoxDevicesRegisterCmdBody holds contents of request body to be sent
var SigfoxDevicesRegisterCmdDeviceId string
SigfoxDevicesRegisterCmdDeviceId holds value of 'device_id' option
var SigfoxDevicesRegisterCmdRegistrationSecret string
SigfoxDevicesRegisterCmdRegistrationSecret holds value of 'registrationSecret' option
var SigfoxDevicesSendDataCmd = &cobra.Command{ Use: "send-data", Short: TRAPI("/sigfox_devices/{device_id}/data:post:summary"), Long: TRAPI(`/sigfox_devices/{device_id}/data:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSigfoxDevicesSendDataCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SigfoxDevicesSendDataCmd defines 'send-data' subcommand
var SigfoxDevicesSendDataCmdBody string
SigfoxDevicesSendDataCmdBody holds contents of request body to be sent
var SigfoxDevicesSendDataCmdData string
SigfoxDevicesSendDataCmdData holds value of 'data' option
var SigfoxDevicesSendDataCmdDeviceId string
SigfoxDevicesSendDataCmdDeviceId holds value of 'device_id' option
var SigfoxDevicesSetGroupCmd = &cobra.Command{ Use: "set-group", Short: TRAPI("/sigfox_devices/{device_id}/set_group:post:summary"), Long: TRAPI(`/sigfox_devices/{device_id}/set_group:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSigfoxDevicesSetGroupCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SigfoxDevicesSetGroupCmd defines 'set-group' subcommand
var SigfoxDevicesSetGroupCmdBody string
SigfoxDevicesSetGroupCmdBody holds contents of request body to be sent
var SigfoxDevicesSetGroupCmdCreatedTime int64
SigfoxDevicesSetGroupCmdCreatedTime holds value of 'createdTime' option
var SigfoxDevicesSetGroupCmdDeviceId string
SigfoxDevicesSetGroupCmdDeviceId holds value of 'device_id' option
var SigfoxDevicesSetGroupCmdGroupId string
SigfoxDevicesSetGroupCmdGroupId holds value of 'groupId' option
var SigfoxDevicesSetGroupCmdLastModifiedTime int64
SigfoxDevicesSetGroupCmdLastModifiedTime holds value of 'lastModifiedTime' option
var SigfoxDevicesSetGroupCmdOperatorId string
SigfoxDevicesSetGroupCmdOperatorId holds value of 'operatorId' option
var SigfoxDevicesTerminateCmd = &cobra.Command{ Use: "terminate", Short: TRAPI("/sigfox_devices/{device_id}/terminate:post:summary"), Long: TRAPI(`/sigfox_devices/{device_id}/terminate:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSigfoxDevicesTerminateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SigfoxDevicesTerminateCmd defines 'terminate' subcommand
var SigfoxDevicesTerminateCmdDeviceId string
SigfoxDevicesTerminateCmdDeviceId holds value of 'device_id' option
var SigfoxDevicesUnsetGroupCmd = &cobra.Command{ Use: "unset-group", Short: TRAPI("/sigfox_devices/{device_id}/unset_group:post:summary"), Long: TRAPI(`/sigfox_devices/{device_id}/unset_group:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSigfoxDevicesUnsetGroupCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SigfoxDevicesUnsetGroupCmd defines 'unset-group' subcommand
var SigfoxDevicesUnsetGroupCmdDeviceId string
SigfoxDevicesUnsetGroupCmdDeviceId holds value of 'device_id' option
var SimsActivateCmd = &cobra.Command{ Use: "activate", Short: TRAPI("/sims/{sim_id}/activate:post:summary"), Long: TRAPI(`/sims/{sim_id}/activate:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSimsActivateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SimsActivateCmd defines 'activate' subcommand
var SimsActivateCmdSimId string
SimsActivateCmdSimId holds value of 'sim_id' option
var SimsAddSubscriptionCmd = &cobra.Command{ Use: "add-subscription", Short: TRAPI("/sims/{sim_id}/profiles/{iccid}/add_subscription:post:summary"), Long: TRAPI(`/sims/{sim_id}/profiles/{iccid}/add_subscription:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSimsAddSubscriptionCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SimsAddSubscriptionCmd defines 'add-subscription' subcommand
var SimsAddSubscriptionCmdBody string
SimsAddSubscriptionCmdBody holds contents of request body to be sent
var SimsAddSubscriptionCmdIccid string
SimsAddSubscriptionCmdIccid holds value of 'iccid' option
var SimsAddSubscriptionCmdSimId string
SimsAddSubscriptionCmdSimId holds value of 'sim_id' option
var SimsCmd = &cobra.Command{ Use: "sims", Short: TRCLI("cli.sims.summary"), Long: TRCLI(`cli.sims.description`), }
SimsCmd defines 'sims' subcommand
var SimsDeactivateCmd = &cobra.Command{ Use: "deactivate", Short: TRAPI("/sims/{sim_id}/deactivate:post:summary"), Long: TRAPI(`/sims/{sim_id}/deactivate:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSimsDeactivateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SimsDeactivateCmd defines 'deactivate' subcommand
var SimsDeactivateCmdSimId string
SimsDeactivateCmdSimId holds value of 'sim_id' option
var SimsDeleteSessionCmd = &cobra.Command{ Use: "delete-session", Short: TRAPI("/sims/{sim_id}/delete_session:post:summary"), Long: TRAPI(`/sims/{sim_id}/delete_session:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSimsDeleteSessionCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SimsDeleteSessionCmd defines 'delete-session' subcommand
var SimsDeleteSessionCmdSimId string
SimsDeleteSessionCmdSimId holds value of 'sim_id' option
var SimsDeleteTagCmd = &cobra.Command{ Use: "delete-tag", Short: TRAPI("/sims/{sim_id}/tags/{tag_name}:delete:summary"), Long: TRAPI(`/sims/{sim_id}/tags/{tag_name}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSimsDeleteTagCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SimsDeleteTagCmd defines 'delete-tag' subcommand
var SimsDeleteTagCmdSimId string
SimsDeleteTagCmdSimId holds value of 'sim_id' option
var SimsDeleteTagCmdTagName string
SimsDeleteTagCmdTagName holds value of 'tag_name' option
var SimsDisableTerminationCmd = &cobra.Command{ Use: "disable-termination", Short: TRAPI("/sims/{sim_id}/disable_termination:post:summary"), Long: TRAPI(`/sims/{sim_id}/disable_termination:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSimsDisableTerminationCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SimsDisableTerminationCmd defines 'disable-termination' subcommand
var SimsDisableTerminationCmdSimId string
SimsDisableTerminationCmdSimId holds value of 'sim_id' option
var SimsEnableTerminationCmd = &cobra.Command{ Use: "enable-termination", Short: TRAPI("/sims/{sim_id}/enable_termination:post:summary"), Long: TRAPI(`/sims/{sim_id}/enable_termination:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSimsEnableTerminationCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SimsEnableTerminationCmd defines 'enable-termination' subcommand
var SimsEnableTerminationCmdSimId string
SimsEnableTerminationCmdSimId holds value of 'sim_id' option
var SimsGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/sims/{sim_id}:get:summary"), Long: TRAPI(`/sims/{sim_id}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSimsGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SimsGetCmd defines 'get' subcommand
var SimsGetCmdSimId string
SimsGetCmdSimId holds value of 'sim_id' option
var SimsGetDataCmd = &cobra.Command{ Use: "get-data", Short: TRAPI("/sims/{sim_id}/data:get:summary"), Long: TRAPI(`/sims/{sim_id}/data:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSimsGetDataCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SimsGetDataCmd defines 'get-data' subcommand
var SimsGetDataCmdFrom int64
SimsGetDataCmdFrom holds value of 'from' option
var SimsGetDataCmdLastEvaluatedKey string
SimsGetDataCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var SimsGetDataCmdLimit int64
SimsGetDataCmdLimit holds value of 'limit' option
var SimsGetDataCmdSimId string
SimsGetDataCmdSimId holds value of 'sim_id' option
var SimsGetDataCmdSort string
SimsGetDataCmdSort holds value of 'sort' option
var SimsGetDataCmdTo int64
SimsGetDataCmdTo holds value of 'to' option
var SimsListCmd = &cobra.Command{ Use: "list", Short: TRAPI("/sims:get:summary"), Long: TRAPI(`/sims:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSimsListCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SimsListCmd defines 'list' subcommand
var SimsListCmdLastEvaluatedKey string
SimsListCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var SimsListCmdLimit int64
SimsListCmdLimit holds value of 'limit' option
var SimsPutTagsCmd = &cobra.Command{ Use: "put-tags", Short: TRAPI("/sims/{sim_id}/tags:put:summary"), Long: TRAPI(`/sims/{sim_id}/tags:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSimsPutTagsCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SimsPutTagsCmd defines 'put-tags' subcommand
var SimsPutTagsCmdBody string
SimsPutTagsCmdBody holds contents of request body to be sent
var SimsPutTagsCmdSimId string
SimsPutTagsCmdSimId holds value of 'sim_id' option
var SimsRegisterCmd = &cobra.Command{ Use: "register", Short: TRAPI("/sims/{sim_id}/register:post:summary"), Long: TRAPI(`/sims/{sim_id}/register:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSimsRegisterCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SimsRegisterCmd defines 'register' subcommand
var SimsRegisterCmdBody string
SimsRegisterCmdBody holds contents of request body to be sent
var SimsRegisterCmdGroupId string
SimsRegisterCmdGroupId holds value of 'groupId' option
var SimsRegisterCmdRegistrationSecret string
SimsRegisterCmdRegistrationSecret holds value of 'registrationSecret' option
var SimsRegisterCmdSimId string
SimsRegisterCmdSimId holds value of 'sim_id' option
var SimsReportLocalInfoCmd = &cobra.Command{ Use: "report-local-info", Short: TRAPI("/sims/{sim_id}/report_local_info:post:summary"), Long: TRAPI(`/sims/{sim_id}/report_local_info:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSimsReportLocalInfoCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SimsReportLocalInfoCmd defines 'report-local-info' subcommand
var SimsReportLocalInfoCmdSimId string
SimsReportLocalInfoCmdSimId holds value of 'sim_id' option
var SimsSendSmsCmd = &cobra.Command{ Use: "send-sms", Short: TRAPI("/sims/{sim_id}/send_sms:post:summary"), Long: TRAPI(`/sims/{sim_id}/send_sms:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSimsSendSmsCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SimsSendSmsCmd defines 'send-sms' subcommand
var SimsSendSmsCmdBody string
SimsSendSmsCmdBody holds contents of request body to be sent
var SimsSendSmsCmdEncodingType int64
SimsSendSmsCmdEncodingType holds value of 'encodingType' option
var SimsSendSmsCmdPayload string
SimsSendSmsCmdPayload holds value of 'payload' option
var SimsSendSmsCmdSimId string
SimsSendSmsCmdSimId holds value of 'sim_id' option
var SimsSessionEventsCmd = &cobra.Command{ Use: "session-events", Short: TRAPI("/sims/{sim_id}/events/sessions:get:summary"), Long: TRAPI(`/sims/{sim_id}/events/sessions:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSimsSessionEventsCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SimsSessionEventsCmd defines 'session-events' subcommand
var SimsSessionEventsCmdFrom int64
SimsSessionEventsCmdFrom holds value of 'from' option
var SimsSessionEventsCmdLastEvaluatedKey string
SimsSessionEventsCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var SimsSessionEventsCmdLimit int64
SimsSessionEventsCmdLimit holds value of 'limit' option
var SimsSessionEventsCmdSimId string
SimsSessionEventsCmdSimId holds value of 'sim_id' option
var SimsSessionEventsCmdTo int64
SimsSessionEventsCmdTo holds value of 'to' option
var SimsSetExpiryTimeCmd = &cobra.Command{ Use: "set-expiry-time", Short: TRAPI("/sims/{sim_id}/set_expiry_time:post:summary"), Long: TRAPI(`/sims/{sim_id}/set_expiry_time:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSimsSetExpiryTimeCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SimsSetExpiryTimeCmd defines 'set-expiry-time' subcommand
var SimsSetExpiryTimeCmdBody string
SimsSetExpiryTimeCmdBody holds contents of request body to be sent
var SimsSetExpiryTimeCmdExpiryAction string
SimsSetExpiryTimeCmdExpiryAction holds value of 'expiryAction' option
var SimsSetExpiryTimeCmdExpiryTime int64
SimsSetExpiryTimeCmdExpiryTime holds value of 'expiryTime' option
var SimsSetExpiryTimeCmdSimId string
SimsSetExpiryTimeCmdSimId holds value of 'sim_id' option
var SimsSetGroupCmd = &cobra.Command{ Use: "set-group", Short: TRAPI("/sims/{sim_id}/set_group:post:summary"), Long: TRAPI(`/sims/{sim_id}/set_group:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSimsSetGroupCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SimsSetGroupCmd defines 'set-group' subcommand
var SimsSetGroupCmdBody string
SimsSetGroupCmdBody holds contents of request body to be sent
var SimsSetGroupCmdGroupId string
SimsSetGroupCmdGroupId holds value of 'groupId' option
var SimsSetGroupCmdSimId string
SimsSetGroupCmdSimId holds value of 'sim_id' option
var SimsSetImeiLockCmd = &cobra.Command{ Use: "set-imei-lock", Short: TRAPI("/sims/{sim_id}/set_imei_lock:post:summary"), Long: TRAPI(`/sims/{sim_id}/set_imei_lock:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSimsSetImeiLockCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SimsSetImeiLockCmd defines 'set-imei-lock' subcommand
var SimsSetImeiLockCmdBody string
SimsSetImeiLockCmdBody holds contents of request body to be sent
var SimsSetImeiLockCmdImei string
SimsSetImeiLockCmdImei holds value of 'imei' option
var SimsSetImeiLockCmdSimId string
SimsSetImeiLockCmdSimId holds value of 'sim_id' option
var SimsSetToStandbyCmd = &cobra.Command{ Use: "set-to-standby", Short: TRAPI("/sims/{sim_id}/set_to_standby:post:summary"), Long: TRAPI(`/sims/{sim_id}/set_to_standby:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSimsSetToStandbyCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SimsSetToStandbyCmd defines 'set-to-standby' subcommand
var SimsSetToStandbyCmdSimId string
SimsSetToStandbyCmdSimId holds value of 'sim_id' option
var SimsSuspendCmd = &cobra.Command{ Use: "suspend", Short: TRAPI("/sims/{sim_id}/suspend:post:summary"), Long: TRAPI(`/sims/{sim_id}/suspend:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSimsSuspendCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SimsSuspendCmd defines 'suspend' subcommand
var SimsSuspendCmdSimId string
SimsSuspendCmdSimId holds value of 'sim_id' option
var SimsTerminateCmd = &cobra.Command{ Use: "terminate", Short: TRAPI("/sims/{sim_id}/terminate:post:summary"), Long: TRAPI(`/sims/{sim_id}/terminate:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSimsTerminateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SimsTerminateCmd defines 'terminate' subcommand
var SimsTerminateCmdSimId string
SimsTerminateCmdSimId holds value of 'sim_id' option
var SimsUnsetExpiryTimeCmd = &cobra.Command{ Use: "unset-expiry-time", Short: TRAPI("/sims/{sim_id}/unset_expiry_time:post:summary"), Long: TRAPI(`/sims/{sim_id}/unset_expiry_time:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSimsUnsetExpiryTimeCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SimsUnsetExpiryTimeCmd defines 'unset-expiry-time' subcommand
var SimsUnsetExpiryTimeCmdSimId string
SimsUnsetExpiryTimeCmdSimId holds value of 'sim_id' option
var SimsUnsetGroupCmd = &cobra.Command{ Use: "unset-group", Short: TRAPI("/sims/{sim_id}/unset_group:post:summary"), Long: TRAPI(`/sims/{sim_id}/unset_group:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSimsUnsetGroupCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SimsUnsetGroupCmd defines 'unset-group' subcommand
var SimsUnsetGroupCmdSimId string
SimsUnsetGroupCmdSimId holds value of 'sim_id' option
var SimsUnsetImeiLockCmd = &cobra.Command{ Use: "unset-imei-lock", Short: TRAPI("/sims/{sim_id}/unset_imei_lock:post:summary"), Long: TRAPI(`/sims/{sim_id}/unset_imei_lock:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSimsUnsetImeiLockCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SimsUnsetImeiLockCmd defines 'unset-imei-lock' subcommand
var SimsUnsetImeiLockCmdSimId string
SimsUnsetImeiLockCmdSimId holds value of 'sim_id' option
var SimsUpdateSpeedClassCmd = &cobra.Command{ Use: "update-speed-class", Short: TRAPI("/sims/{sim_id}/update_speed_class:post:summary"), Long: TRAPI(`/sims/{sim_id}/update_speed_class:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSimsUpdateSpeedClassCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SimsUpdateSpeedClassCmd defines 'update-speed-class' subcommand
var SimsUpdateSpeedClassCmdBody string
SimsUpdateSpeedClassCmdBody holds contents of request body to be sent
var SimsUpdateSpeedClassCmdSimId string
SimsUpdateSpeedClassCmdSimId holds value of 'sim_id' option
var SimsUpdateSpeedClassCmdSpeedClass string
SimsUpdateSpeedClassCmdSpeedClass holds value of 'speedClass' option
var SoraletsCmd = &cobra.Command{ Use: "soralets", Short: TRCLI("cli.soralets.summary"), Long: TRCLI(`cli.soralets.description`), }
SoraletsCmd defines 'soralets' subcommand
var SoraletsCreateCmd = &cobra.Command{ Use: "create", Short: TRAPI("/soralets:post:summary"), Long: TRAPI(`/soralets:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSoraletsCreateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SoraletsCreateCmd defines 'create' subcommand
var SoraletsCreateCmdBody string
SoraletsCreateCmdBody holds contents of request body to be sent
var SoraletsCreateCmdDescription string
SoraletsCreateCmdDescription holds value of 'description' option
var SoraletsCreateCmdSoraletId string
SoraletsCreateCmdSoraletId holds value of 'soraletId' option
var SoraletsDeleteCmd = &cobra.Command{ Use: "delete", Short: TRAPI("/soralets/{soralet_id}:delete:summary"), Long: TRAPI(`/soralets/{soralet_id}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSoraletsDeleteCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SoraletsDeleteCmd defines 'delete' subcommand
var SoraletsDeleteCmdSoraletId string
SoraletsDeleteCmdSoraletId holds value of 'soralet_id' option
var SoraletsDeleteVersionCmd = &cobra.Command{ Use: "delete-version", Short: TRAPI("/soralets/{soralet_id}/versions/{version}:delete:summary"), Long: TRAPI(`/soralets/{soralet_id}/versions/{version}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSoraletsDeleteVersionCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SoraletsDeleteVersionCmd defines 'delete-version' subcommand
var SoraletsDeleteVersionCmdSoraletId string
SoraletsDeleteVersionCmdSoraletId holds value of 'soralet_id' option
var SoraletsDeleteVersionCmdVersion int64
SoraletsDeleteVersionCmdVersion holds value of 'version' option
var SoraletsExecCmd = &cobra.Command{ Use: "exec", Short: TRAPI("/soralets/{soralet_id}/test:post:summary"), Long: TRAPI(`/soralets/{soralet_id}/test:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSoraletsExecCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SoraletsExecCmd defines 'exec' subcommand
var SoraletsExecCmdBody string
SoraletsExecCmdBody holds contents of request body to be sent
var SoraletsExecCmdContentType string
SoraletsExecCmdContentType holds value of 'contentType' option
var SoraletsExecCmdDirection string
SoraletsExecCmdDirection holds value of 'direction' option
var SoraletsExecCmdEncodingType string
SoraletsExecCmdEncodingType holds value of 'encodingType' option
var SoraletsExecCmdPayload string
SoraletsExecCmdPayload holds value of 'payload' option
var SoraletsExecCmdSoraletId string
SoraletsExecCmdSoraletId holds value of 'soralet_id' option
var SoraletsExecCmdUserdata string
SoraletsExecCmdUserdata holds value of 'userdata' option
var SoraletsExecCmdVersion string
SoraletsExecCmdVersion holds value of 'version' option
var SoraletsGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/soralets/{soralet_id}:get:summary"), Long: TRAPI(`/soralets/{soralet_id}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSoraletsGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SoraletsGetCmd defines 'get' subcommand
var SoraletsGetCmdSoraletId string
SoraletsGetCmdSoraletId holds value of 'soralet_id' option
var SoraletsGetLogsCmd = &cobra.Command{ Use: "get-logs", Short: TRAPI("/soralets/{soralet_id}/logs:get:summary"), Long: TRAPI(`/soralets/{soralet_id}/logs:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSoraletsGetLogsCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SoraletsGetLogsCmd defines 'get-logs' subcommand
var SoraletsGetLogsCmdLastEvaluatedKey string
SoraletsGetLogsCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var SoraletsGetLogsCmdLimit int64
SoraletsGetLogsCmdLimit holds value of 'limit' option
var SoraletsGetLogsCmdPaginate bool
SoraletsGetLogsCmdPaginate indicates to do pagination or not
var SoraletsGetLogsCmdSoraletId string
SoraletsGetLogsCmdSoraletId holds value of 'soralet_id' option
var SoraletsGetLogsCmdSort string
SoraletsGetLogsCmdSort holds value of 'sort' option
var SoraletsListCmd = &cobra.Command{ Use: "list", Short: TRAPI("/soralets:get:summary"), Long: TRAPI(`/soralets:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSoraletsListCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SoraletsListCmd defines 'list' subcommand
var SoraletsListCmdLastEvaluatedKey string
SoraletsListCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var SoraletsListCmdLimit int64
SoraletsListCmdLimit holds value of 'limit' option
var SoraletsListCmdPaginate bool
SoraletsListCmdPaginate indicates to do pagination or not
var SoraletsListCmdSort string
SoraletsListCmdSort holds value of 'sort' option
var SoraletsListVersionsCmd = &cobra.Command{ Use: "list-versions", Short: TRAPI("/soralets/{soralet_id}/versions:get:summary"), Long: TRAPI(`/soralets/{soralet_id}/versions:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSoraletsListVersionsCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SoraletsListVersionsCmd defines 'list-versions' subcommand
var SoraletsListVersionsCmdLastEvaluatedKey string
SoraletsListVersionsCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var SoraletsListVersionsCmdLimit int64
SoraletsListVersionsCmdLimit holds value of 'limit' option
var SoraletsListVersionsCmdPaginate bool
SoraletsListVersionsCmdPaginate indicates to do pagination or not
var SoraletsListVersionsCmdSoraletId string
SoraletsListVersionsCmdSoraletId holds value of 'soralet_id' option
var SoraletsListVersionsCmdSort string
SoraletsListVersionsCmdSort holds value of 'sort' option
var SoraletsUploadCmd = &cobra.Command{ Use: "upload", Short: TRAPI("/soralets/{soralet_id}/versions:post:summary"), Long: TRAPI(`/soralets/{soralet_id}/versions:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSoraletsUploadCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SoraletsUploadCmd defines 'upload' subcommand
var SoraletsUploadCmdBody string
SoraletsUploadCmdBody holds contents of request body to be sent
var SoraletsUploadCmdContentType string
SoraletsUploadCmdContentType holds value of 'content-type' option
var SoraletsUploadCmdSoraletId string
SoraletsUploadCmdSoraletId holds value of 'soralet_id' option
var StatsAirCmd = &cobra.Command{ Use: "air", Short: TRCLI("cli.stats.air.summary"), Long: TRCLI(`cli.stats.air.description`), }
StatsAirCmd defines 'air' subcommand
var StatsAirExportCmd = &cobra.Command{ Use: "export", Short: TRAPI("/stats/air/operators/{operator_id}/export:post:summary"), Long: TRAPI(`/stats/air/operators/{operator_id}/export:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectStatsAirExportCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
StatsAirExportCmd defines 'export' subcommand
var StatsAirExportCmdBody string
StatsAirExportCmdBody holds contents of request body to be sent
var StatsAirExportCmdExportMode string
StatsAirExportCmdExportMode holds value of 'export_mode' option
var StatsAirExportCmdFrom int64
StatsAirExportCmdFrom holds value of 'from' option
var StatsAirExportCmdOperatorId string
StatsAirExportCmdOperatorId holds value of 'operator_id' option
var StatsAirExportCmdPeriod string
StatsAirExportCmdPeriod holds value of 'period' option
var StatsAirExportCmdTo int64
StatsAirExportCmdTo holds value of 'to' option
var StatsAirGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/stats/air/subscribers/{imsi}:get:summary"), Long: TRAPI(`/stats/air/subscribers/{imsi}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectStatsAirGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
StatsAirGetCmd defines 'get' subcommand
var StatsAirGetCmdFrom int64
StatsAirGetCmdFrom holds value of 'from' option
var StatsAirGetCmdImsi string
StatsAirGetCmdImsi holds value of 'imsi' option
var StatsAirGetCmdPeriod string
StatsAirGetCmdPeriod holds value of 'period' option
var StatsAirGetCmdTo int64
StatsAirGetCmdTo holds value of 'to' option
var StatsAirSimsCmd = &cobra.Command{ Use: "sims", Short: TRCLI("cli.stats.air.sims.summary"), Long: TRCLI(`cli.stats.air.sims.description`), }
StatsAirSimsCmd defines 'sims' subcommand
var StatsAirSimsGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/stats/air/sims/{simId}:get:summary"), Long: TRAPI(`/stats/air/sims/{simId}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectStatsAirSimsGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
StatsAirSimsGetCmd defines 'get' subcommand
var StatsAirSimsGetCmdFrom int64
StatsAirSimsGetCmdFrom holds value of 'from' option
var StatsAirSimsGetCmdPeriod string
StatsAirSimsGetCmdPeriod holds value of 'period' option
var StatsAirSimsGetCmdSimId string
StatsAirSimsGetCmdSimId holds value of 'simId' option
var StatsAirSimsGetCmdTo int64
StatsAirSimsGetCmdTo holds value of 'to' option
var StatsBeamCmd = &cobra.Command{ Use: "beam", Short: TRCLI("cli.stats.beam.summary"), Long: TRCLI(`cli.stats.beam.description`), }
StatsBeamCmd defines 'beam' subcommand
var StatsBeamExportCmd = &cobra.Command{ Use: "export", Short: TRAPI("/stats/beam/operators/{operator_id}/export:post:summary"), Long: TRAPI(`/stats/beam/operators/{operator_id}/export:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectStatsBeamExportCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
StatsBeamExportCmd defines 'export' subcommand
var StatsBeamExportCmdBody string
StatsBeamExportCmdBody holds contents of request body to be sent
var StatsBeamExportCmdExportMode string
StatsBeamExportCmdExportMode holds value of 'export_mode' option
var StatsBeamExportCmdFrom int64
StatsBeamExportCmdFrom holds value of 'from' option
var StatsBeamExportCmdOperatorId string
StatsBeamExportCmdOperatorId holds value of 'operator_id' option
var StatsBeamExportCmdPeriod string
StatsBeamExportCmdPeriod holds value of 'period' option
var StatsBeamExportCmdTo int64
StatsBeamExportCmdTo holds value of 'to' option
var StatsBeamGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/stats/beam/subscribers/{imsi}:get:summary"), Long: TRAPI(`/stats/beam/subscribers/{imsi}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectStatsBeamGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
StatsBeamGetCmd defines 'get' subcommand
var StatsBeamGetCmdFrom int64
StatsBeamGetCmdFrom holds value of 'from' option
var StatsBeamGetCmdImsi string
StatsBeamGetCmdImsi holds value of 'imsi' option
var StatsBeamGetCmdPeriod string
StatsBeamGetCmdPeriod holds value of 'period' option
var StatsBeamGetCmdTo int64
StatsBeamGetCmdTo holds value of 'to' option
var StatsCmd = &cobra.Command{ Use: "stats", Short: TRCLI("cli.stats.summary"), Long: TRCLI(`cli.stats.description`), }
StatsCmd defines 'stats' subcommand
var StatsHarvestCmd = &cobra.Command{ Use: "harvest", Short: TRCLI("cli.stats.harvest.summary"), Long: TRCLI(`cli.stats.harvest.description`), }
StatsHarvestCmd defines 'harvest' subcommand
var StatsHarvestGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/stats/harvest/operators/{operator_id}:get:summary"), Long: TRAPI(`/stats/harvest/operators/{operator_id}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectStatsHarvestGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
StatsHarvestGetCmd defines 'get' subcommand
var StatsHarvestGetCmdOperatorId string
StatsHarvestGetCmdOperatorId holds value of 'operator_id' option
var StatsHarvestGetCmdYearMonth string
StatsHarvestGetCmdYearMonth holds value of 'year_month' option
var StatsNapterAuditLogsCmd = &cobra.Command{ Use: "audit-logs", Short: TRCLI("cli.stats.napter.audit-logs.summary"), Long: TRCLI(`cli.stats.napter.audit-logs.description`), }
StatsNapterAuditLogsCmd defines 'audit-logs' subcommand
var StatsNapterAuditLogsGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/stats/napter/audit_logs:get:summary"), Long: TRAPI(`/stats/napter/audit_logs:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectStatsNapterAuditLogsGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
StatsNapterAuditLogsGetCmd defines 'get' subcommand
var StatsNapterAuditLogsGetCmdYearMonth string
StatsNapterAuditLogsGetCmdYearMonth holds value of 'year_month' option
var StatsNapterCmd = &cobra.Command{ Use: "napter", Short: TRCLI("cli.stats.napter.summary"), Long: TRCLI(`cli.stats.napter.description`), }
StatsNapterCmd defines 'napter' subcommand
var SubscribersActivateCmd = &cobra.Command{ Use: "activate", Short: TRAPI("/subscribers/{imsi}/activate:post:summary"), Long: TRAPI(`/subscribers/{imsi}/activate:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSubscribersActivateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SubscribersActivateCmd defines 'activate' subcommand
var SubscribersActivateCmdImsi string
SubscribersActivateCmdImsi holds value of 'imsi' option
var SubscribersCmd = &cobra.Command{ Use: "subscribers", Short: TRCLI("cli.subscribers.summary"), Long: TRCLI(`cli.subscribers.description`), }
SubscribersCmd defines 'subscribers' subcommand
var SubscribersDeactivateCmd = &cobra.Command{ Use: "deactivate", Short: TRAPI("/subscribers/{imsi}/deactivate:post:summary"), Long: TRAPI(`/subscribers/{imsi}/deactivate:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSubscribersDeactivateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SubscribersDeactivateCmd defines 'deactivate' subcommand
var SubscribersDeactivateCmdImsi string
SubscribersDeactivateCmdImsi holds value of 'imsi' option
var SubscribersDeleteSessionCmd = &cobra.Command{ Use: "delete-session", Short: TRAPI("/subscribers/{imsi}/delete_session:post:summary"), Long: TRAPI(`/subscribers/{imsi}/delete_session:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSubscribersDeleteSessionCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SubscribersDeleteSessionCmd defines 'delete-session' subcommand
var SubscribersDeleteSessionCmdImsi string
SubscribersDeleteSessionCmdImsi holds value of 'imsi' option
var SubscribersDeleteTagCmd = &cobra.Command{ Use: "delete-tag", Short: TRAPI("/subscribers/{imsi}/tags/{tag_name}:delete:summary"), Long: TRAPI(`/subscribers/{imsi}/tags/{tag_name}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSubscribersDeleteTagCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SubscribersDeleteTagCmd defines 'delete-tag' subcommand
var SubscribersDeleteTagCmdImsi string
SubscribersDeleteTagCmdImsi holds value of 'imsi' option
var SubscribersDeleteTagCmdTagName string
SubscribersDeleteTagCmdTagName holds value of 'tag_name' option
var SubscribersDeleteTransferTokenCmd = &cobra.Command{ Use: "delete-transfer-token", Short: TRAPI("/subscribers/transfer_token/{token}:delete:summary"), Long: TRAPI(`/subscribers/transfer_token/{token}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSubscribersDeleteTransferTokenCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SubscribersDeleteTransferTokenCmd defines 'delete-transfer-token' subcommand
var SubscribersDeleteTransferTokenCmdToken string
SubscribersDeleteTransferTokenCmdToken holds value of 'token' option
var SubscribersDisableTerminationCmd = &cobra.Command{ Use: "disable-termination", Short: TRAPI("/subscribers/{imsi}/disable_termination:post:summary"), Long: TRAPI(`/subscribers/{imsi}/disable_termination:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSubscribersDisableTerminationCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SubscribersDisableTerminationCmd defines 'disable-termination' subcommand
var SubscribersDisableTerminationCmdImsi string
SubscribersDisableTerminationCmdImsi holds value of 'imsi' option
var SubscribersEnableTerminationCmd = &cobra.Command{ Use: "enable-termination", Short: TRAPI("/subscribers/{imsi}/enable_termination:post:summary"), Long: TRAPI(`/subscribers/{imsi}/enable_termination:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSubscribersEnableTerminationCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SubscribersEnableTerminationCmd defines 'enable-termination' subcommand
var SubscribersEnableTerminationCmdImsi string
SubscribersEnableTerminationCmdImsi holds value of 'imsi' option
var SubscribersGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/subscribers/{imsi}:get:summary"), Long: TRAPI(`/subscribers/{imsi}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSubscribersGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SubscribersGetCmd defines 'get' subcommand
var SubscribersGetCmdImsi string
SubscribersGetCmdImsi holds value of 'imsi' option
var SubscribersGetDataCmd = &cobra.Command{ Use: "get-data", Short: TRAPI("/subscribers/{imsi}/data:get:summary"), Long: TRAPI(`/subscribers/{imsi}/data:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSubscribersGetDataCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SubscribersGetDataCmd defines 'get-data' subcommand
var SubscribersGetDataCmdFrom int64
SubscribersGetDataCmdFrom holds value of 'from' option
var SubscribersGetDataCmdImsi string
SubscribersGetDataCmdImsi holds value of 'imsi' option
var SubscribersGetDataCmdLastEvaluatedKey string
SubscribersGetDataCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var SubscribersGetDataCmdLimit int64
SubscribersGetDataCmdLimit holds value of 'limit' option
var SubscribersGetDataCmdPaginate bool
SubscribersGetDataCmdPaginate indicates to do pagination or not
var SubscribersGetDataCmdSort string
SubscribersGetDataCmdSort holds value of 'sort' option
var SubscribersGetDataCmdTo int64
SubscribersGetDataCmdTo holds value of 'to' option
var SubscribersIssueTransferTokenCmd = &cobra.Command{ Use: "issue-transfer-token", Short: TRAPI("/subscribers/transfer_token/issue:post:summary"), Long: TRAPI(`/subscribers/transfer_token/issue:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSubscribersIssueTransferTokenCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SubscribersIssueTransferTokenCmd defines 'issue-transfer-token' subcommand
var SubscribersIssueTransferTokenCmdBody string
SubscribersIssueTransferTokenCmdBody holds contents of request body to be sent
var SubscribersIssueTransferTokenCmdTransferDestinationOperatorEmail string
SubscribersIssueTransferTokenCmdTransferDestinationOperatorEmail holds value of 'transferDestinationOperatorEmail' option
var SubscribersIssueTransferTokenCmdTransferDestinationOperatorId string
SubscribersIssueTransferTokenCmdTransferDestinationOperatorId holds value of 'transferDestinationOperatorId' option
var SubscribersListCmd = &cobra.Command{ Use: "list", Short: TRAPI("/subscribers:get:summary"), Long: TRAPI(`/subscribers:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSubscribersListCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SubscribersListCmd defines 'list' subcommand
var SubscribersListCmdLastEvaluatedKey string
SubscribersListCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var SubscribersListCmdLimit int64
SubscribersListCmdLimit holds value of 'limit' option
var SubscribersListCmdPaginate bool
SubscribersListCmdPaginate indicates to do pagination or not
var SubscribersListCmdSerialNumberFilter string
SubscribersListCmdSerialNumberFilter holds value of 'serial_number_filter' option
var SubscribersListCmdSpeedClassFilter string
SubscribersListCmdSpeedClassFilter holds value of 'speed_class_filter' option
var SubscribersListCmdStatusFilter string
SubscribersListCmdStatusFilter holds value of 'status_filter' option
var SubscribersListCmdTagName string
SubscribersListCmdTagName holds value of 'tag_name' option
var SubscribersListCmdTagValue string
SubscribersListCmdTagValue holds value of 'tag_value' option
var SubscribersListCmdTagValueMatchMode string
SubscribersListCmdTagValueMatchMode holds value of 'tag_value_match_mode' option
var SubscribersPutTagsCmd = &cobra.Command{ Use: "put-tags", Short: TRAPI("/subscribers/{imsi}/tags:put:summary"), Long: TRAPI(`/subscribers/{imsi}/tags:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSubscribersPutTagsCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SubscribersPutTagsCmd defines 'put-tags' subcommand
var SubscribersPutTagsCmdBody string
SubscribersPutTagsCmdBody holds contents of request body to be sent
var SubscribersPutTagsCmdImsi string
SubscribersPutTagsCmdImsi holds value of 'imsi' option
var SubscribersRegisterCmd = &cobra.Command{ Use: "register", Short: TRAPI("/subscribers/{imsi}/register:post:summary"), Long: TRAPI(`/subscribers/{imsi}/register:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSubscribersRegisterCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SubscribersRegisterCmd defines 'register' subcommand
var SubscribersRegisterCmdBody string
SubscribersRegisterCmdBody holds contents of request body to be sent
var SubscribersRegisterCmdGroupId string
SubscribersRegisterCmdGroupId holds value of 'groupId' option
var SubscribersRegisterCmdImsi string
SubscribersRegisterCmdImsi holds value of 'imsi' option
var SubscribersRegisterCmdRegistrationSecret string
SubscribersRegisterCmdRegistrationSecret holds value of 'registrationSecret' option
var SubscribersReportLocalInfoCmd = &cobra.Command{ Use: "report-local-info", Short: TRAPI("/subscribers/{imsi}/report_local_info:post:summary"), Long: TRAPI(`/subscribers/{imsi}/report_local_info:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSubscribersReportLocalInfoCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SubscribersReportLocalInfoCmd defines 'report-local-info' subcommand
var SubscribersReportLocalInfoCmdImsi string
SubscribersReportLocalInfoCmdImsi holds value of 'imsi' option
var SubscribersSendSmsByMsisdnCmd = &cobra.Command{ Use: "send-sms-by-msisdn", Short: TRAPI("/subscribers/msisdn/{msisdn}/send_sms:post:summary"), Long: TRAPI(`/subscribers/msisdn/{msisdn}/send_sms:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSubscribersSendSmsByMsisdnCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SubscribersSendSmsByMsisdnCmd defines 'send-sms-by-msisdn' subcommand
var SubscribersSendSmsByMsisdnCmdBody string
SubscribersSendSmsByMsisdnCmdBody holds contents of request body to be sent
var SubscribersSendSmsByMsisdnCmdEncodingType int64
SubscribersSendSmsByMsisdnCmdEncodingType holds value of 'encodingType' option
var SubscribersSendSmsByMsisdnCmdMsisdn string
SubscribersSendSmsByMsisdnCmdMsisdn holds value of 'msisdn' option
var SubscribersSendSmsByMsisdnCmdPayload string
SubscribersSendSmsByMsisdnCmdPayload holds value of 'payload' option
var SubscribersSendSmsCmd = &cobra.Command{ Use: "send-sms", Short: TRAPI("/subscribers/{imsi}/send_sms:post:summary"), Long: TRAPI(`/subscribers/{imsi}/send_sms:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSubscribersSendSmsCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SubscribersSendSmsCmd defines 'send-sms' subcommand
var SubscribersSendSmsCmdBody string
SubscribersSendSmsCmdBody holds contents of request body to be sent
var SubscribersSendSmsCmdEncodingType int64
SubscribersSendSmsCmdEncodingType holds value of 'encodingType' option
var SubscribersSendSmsCmdImsi string
SubscribersSendSmsCmdImsi holds value of 'imsi' option
var SubscribersSendSmsCmdPayload string
SubscribersSendSmsCmdPayload holds value of 'payload' option
var SubscribersSessionEventsCmd = &cobra.Command{ Use: "session-events", Short: TRAPI("/subscribers/{imsi}/events/sessions:get:summary"), Long: TRAPI(`/subscribers/{imsi}/events/sessions:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSubscribersSessionEventsCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SubscribersSessionEventsCmd defines 'session-events' subcommand
var SubscribersSessionEventsCmdFrom int64
SubscribersSessionEventsCmdFrom holds value of 'from' option
var SubscribersSessionEventsCmdImsi string
SubscribersSessionEventsCmdImsi holds value of 'imsi' option
var SubscribersSessionEventsCmdLastEvaluatedKey string
SubscribersSessionEventsCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var SubscribersSessionEventsCmdLimit int64
SubscribersSessionEventsCmdLimit holds value of 'limit' option
var SubscribersSessionEventsCmdPaginate bool
SubscribersSessionEventsCmdPaginate indicates to do pagination or not
var SubscribersSessionEventsCmdTo int64
SubscribersSessionEventsCmdTo holds value of 'to' option
var SubscribersSetExpiryTimeCmd = &cobra.Command{ Use: "set-expiry-time", Short: TRAPI("/subscribers/{imsi}/set_expiry_time:post:summary"), Long: TRAPI(`/subscribers/{imsi}/set_expiry_time:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSubscribersSetExpiryTimeCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SubscribersSetExpiryTimeCmd defines 'set-expiry-time' subcommand
var SubscribersSetExpiryTimeCmdBody string
SubscribersSetExpiryTimeCmdBody holds contents of request body to be sent
var SubscribersSetExpiryTimeCmdExpiryAction string
SubscribersSetExpiryTimeCmdExpiryAction holds value of 'expiryAction' option
var SubscribersSetExpiryTimeCmdExpiryTime int64
SubscribersSetExpiryTimeCmdExpiryTime holds value of 'expiryTime' option
var SubscribersSetExpiryTimeCmdImsi string
SubscribersSetExpiryTimeCmdImsi holds value of 'imsi' option
var SubscribersSetGroupCmd = &cobra.Command{ Use: "set-group", Short: TRAPI("/subscribers/{imsi}/set_group:post:summary"), Long: TRAPI(`/subscribers/{imsi}/set_group:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSubscribersSetGroupCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SubscribersSetGroupCmd defines 'set-group' subcommand
var SubscribersSetGroupCmdBody string
SubscribersSetGroupCmdBody holds contents of request body to be sent
var SubscribersSetGroupCmdGroupId string
SubscribersSetGroupCmdGroupId holds value of 'groupId' option
var SubscribersSetGroupCmdImsi string
SubscribersSetGroupCmdImsi holds value of 'imsi' option
var SubscribersSetImeiLockCmd = &cobra.Command{ Use: "set-imei-lock", Short: TRAPI("/subscribers/{imsi}/set_imei_lock:post:summary"), Long: TRAPI(`/subscribers/{imsi}/set_imei_lock:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSubscribersSetImeiLockCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SubscribersSetImeiLockCmd defines 'set-imei-lock' subcommand
var SubscribersSetImeiLockCmdBody string
SubscribersSetImeiLockCmdBody holds contents of request body to be sent
var SubscribersSetImeiLockCmdImei string
SubscribersSetImeiLockCmdImei holds value of 'imei' option
var SubscribersSetImeiLockCmdImsi string
SubscribersSetImeiLockCmdImsi holds value of 'imsi' option
var SubscribersSetToStandbyCmd = &cobra.Command{ Use: "set-to-standby", Short: TRAPI("/subscribers/{imsi}/set_to_standby:post:summary"), Long: TRAPI(`/subscribers/{imsi}/set_to_standby:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSubscribersSetToStandbyCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SubscribersSetToStandbyCmd defines 'set-to-standby' subcommand
var SubscribersSetToStandbyCmdImsi string
SubscribersSetToStandbyCmdImsi holds value of 'imsi' option
var SubscribersSuspendCmd = &cobra.Command{ Use: "suspend", Short: TRAPI("/subscribers/{imsi}/suspend:post:summary"), Long: TRAPI(`/subscribers/{imsi}/suspend:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSubscribersSuspendCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SubscribersSuspendCmd defines 'suspend' subcommand
var SubscribersSuspendCmdImsi string
SubscribersSuspendCmdImsi holds value of 'imsi' option
var SubscribersTerminateCmd = &cobra.Command{ Use: "terminate", Short: TRAPI("/subscribers/{imsi}/terminate:post:summary"), Long: TRAPI(`/subscribers/{imsi}/terminate:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSubscribersTerminateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SubscribersTerminateCmd defines 'terminate' subcommand
var SubscribersTerminateCmdImsi string
SubscribersTerminateCmdImsi holds value of 'imsi' option
var SubscribersUnsetExpiryTimeCmd = &cobra.Command{ Use: "unset-expiry-time", Short: TRAPI("/subscribers/{imsi}/unset_expiry_time:post:summary"), Long: TRAPI(`/subscribers/{imsi}/unset_expiry_time:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSubscribersUnsetExpiryTimeCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SubscribersUnsetExpiryTimeCmd defines 'unset-expiry-time' subcommand
var SubscribersUnsetExpiryTimeCmdImsi string
SubscribersUnsetExpiryTimeCmdImsi holds value of 'imsi' option
var SubscribersUnsetGroupCmd = &cobra.Command{ Use: "unset-group", Short: TRAPI("/subscribers/{imsi}/unset_group:post:summary"), Long: TRAPI(`/subscribers/{imsi}/unset_group:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSubscribersUnsetGroupCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SubscribersUnsetGroupCmd defines 'unset-group' subcommand
var SubscribersUnsetGroupCmdImsi string
SubscribersUnsetGroupCmdImsi holds value of 'imsi' option
var SubscribersUnsetImeiLockCmd = &cobra.Command{ Use: "unset-imei-lock", Short: TRAPI("/subscribers/{imsi}/unset_imei_lock:post:summary"), Long: TRAPI(`/subscribers/{imsi}/unset_imei_lock:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSubscribersUnsetImeiLockCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SubscribersUnsetImeiLockCmd defines 'unset-imei-lock' subcommand
var SubscribersUnsetImeiLockCmdImsi string
SubscribersUnsetImeiLockCmdImsi holds value of 'imsi' option
var SubscribersUpdateSpeedClassCmd = &cobra.Command{ Use: "update-speed-class", Short: TRAPI("/subscribers/{imsi}/update_speed_class:post:summary"), Long: TRAPI(`/subscribers/{imsi}/update_speed_class:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSubscribersUpdateSpeedClassCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SubscribersUpdateSpeedClassCmd defines 'update-speed-class' subcommand
var SubscribersUpdateSpeedClassCmdBody string
SubscribersUpdateSpeedClassCmdBody holds contents of request body to be sent
var SubscribersUpdateSpeedClassCmdImsi string
SubscribersUpdateSpeedClassCmdImsi holds value of 'imsi' option
var SubscribersUpdateSpeedClassCmdSpeedClass string
SubscribersUpdateSpeedClassCmdSpeedClass holds value of 'speedClass' option
var SubscribersVerifyTransferTokenCmd = &cobra.Command{ Use: "verify-transfer-token", Short: TRAPI("/subscribers/transfer_token/verify:post:summary"), Long: TRAPI(`/subscribers/transfer_token/verify:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectSubscribersVerifyTransferTokenCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
SubscribersVerifyTransferTokenCmd defines 'verify-transfer-token' subcommand
var SubscribersVerifyTransferTokenCmdBody string
SubscribersVerifyTransferTokenCmdBody holds contents of request body to be sent
var SubscribersVerifyTransferTokenCmdToken string
SubscribersVerifyTransferTokenCmdToken holds value of 'token' option
var Test500Cmd = &cobra.Command{ Use: "500", Short: TRCLI("cli.test._500.summary"), Long: TRCLI("cli.test._500.description"), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } param := &apiParams{ method: "POST", path: "500", contentType: "application/json", body: `{"expect":"500 Internal Server Error"}`, } _, err := ac.callAPI(param) return err }, }
Test500Cmd defines 'test 500' subcommand
var TestCmd = &cobra.Command{ Use: "test", Short: TRCLI("cli.test.summary"), Long: TRCLI("cli.test.description"), Hidden: true, }
TestCmd defines 'test' subcommand
var UnconfigureCmd = &cobra.Command{ Use: "unconfigure", Short: TRCLI("cli.unconfigure.summary"), Long: TRCLI("cli.unconfigure.description"), RunE: func(cmd *cobra.Command, args []string) error { pn := getSpecifiedProfileName() if pn == "" { pn = "default" } if confirmDeleteProfile(pn) { err := deleteProfile(pn) if err != nil { cmd.SilenceUsage = true return err } } return nil }, }
UnconfigureCmd defines 'unconfigure' subcommand
var UsersAttachRoleCmd = &cobra.Command{ Use: "attach-role", Short: TRAPI("/operators/{operator_id}/users/{user_name}/roles:post:summary"), Long: TRAPI(`/operators/{operator_id}/users/{user_name}/roles:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectUsersAttachRoleCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
UsersAttachRoleCmd defines 'attach-role' subcommand
var UsersAttachRoleCmdBody string
UsersAttachRoleCmdBody holds contents of request body to be sent
var UsersAttachRoleCmdOperatorId string
UsersAttachRoleCmdOperatorId holds value of 'operator_id' option
var UsersAttachRoleCmdRoleId string
UsersAttachRoleCmdRoleId holds value of 'roleId' option
var UsersAttachRoleCmdUserName string
UsersAttachRoleCmdUserName holds value of 'user_name' option
var UsersAuthKeysCmd = &cobra.Command{ Use: "auth-keys", Short: TRCLI("cli.users.auth-keys.summary"), Long: TRCLI(`cli.users.auth-keys.description`), }
UsersAuthKeysCmd defines 'auth-keys' subcommand
var UsersAuthKeysDeleteCmd = &cobra.Command{ Use: "delete", Short: TRAPI("/operators/{operator_id}/users/{user_name}/auth_keys/{auth_key_id}:delete:summary"), Long: TRAPI(`/operators/{operator_id}/users/{user_name}/auth_keys/{auth_key_id}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectUsersAuthKeysDeleteCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
UsersAuthKeysDeleteCmd defines 'delete' subcommand
var UsersAuthKeysDeleteCmdAuthKeyId string
UsersAuthKeysDeleteCmdAuthKeyId holds value of 'auth_key_id' option
var UsersAuthKeysDeleteCmdOperatorId string
UsersAuthKeysDeleteCmdOperatorId holds value of 'operator_id' option
var UsersAuthKeysDeleteCmdUserName string
UsersAuthKeysDeleteCmdUserName holds value of 'user_name' option
var UsersAuthKeysGenerateCmd = &cobra.Command{ Use: "generate", Short: TRAPI("/operators/{operator_id}/users/{user_name}/auth_keys:post:summary"), Long: TRAPI(`/operators/{operator_id}/users/{user_name}/auth_keys:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectUsersAuthKeysGenerateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
UsersAuthKeysGenerateCmd defines 'generate' subcommand
var UsersAuthKeysGenerateCmdOperatorId string
UsersAuthKeysGenerateCmdOperatorId holds value of 'operator_id' option
var UsersAuthKeysGenerateCmdUserName string
UsersAuthKeysGenerateCmdUserName holds value of 'user_name' option
var UsersAuthKeysGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/operators/{operator_id}/users/{user_name}/auth_keys/{auth_key_id}:get:summary"), Long: TRAPI(`/operators/{operator_id}/users/{user_name}/auth_keys/{auth_key_id}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectUsersAuthKeysGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
UsersAuthKeysGetCmd defines 'get' subcommand
var UsersAuthKeysGetCmdAuthKeyId string
UsersAuthKeysGetCmdAuthKeyId holds value of 'auth_key_id' option
var UsersAuthKeysGetCmdOperatorId string
UsersAuthKeysGetCmdOperatorId holds value of 'operator_id' option
var UsersAuthKeysGetCmdUserName string
UsersAuthKeysGetCmdUserName holds value of 'user_name' option
var UsersAuthKeysListCmd = &cobra.Command{ Use: "list", Short: TRAPI("/operators/{operator_id}/users/{user_name}/auth_keys:get:summary"), Long: TRAPI(`/operators/{operator_id}/users/{user_name}/auth_keys:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectUsersAuthKeysListCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
UsersAuthKeysListCmd defines 'list' subcommand
var UsersAuthKeysListCmdOperatorId string
UsersAuthKeysListCmdOperatorId holds value of 'operator_id' option
var UsersAuthKeysListCmdUserName string
UsersAuthKeysListCmdUserName holds value of 'user_name' option
var UsersCmd = &cobra.Command{ Use: "users", Short: TRCLI("cli.users.summary"), Long: TRCLI(`cli.users.description`), }
UsersCmd defines 'users' subcommand
var UsersCreateCmd = &cobra.Command{ Use: "create", Short: TRAPI("/operators/{operator_id}/users/{user_name}:post:summary"), Long: TRAPI(`/operators/{operator_id}/users/{user_name}:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectUsersCreateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
UsersCreateCmd defines 'create' subcommand
var UsersCreateCmdBody string
UsersCreateCmdBody holds contents of request body to be sent
var UsersCreateCmdDescription string
UsersCreateCmdDescription holds value of 'description' option
var UsersCreateCmdOperatorId string
UsersCreateCmdOperatorId holds value of 'operator_id' option
var UsersCreateCmdUserName string
UsersCreateCmdUserName holds value of 'user_name' option
var UsersDefaultPermissionsCmd = &cobra.Command{ Use: "default-permissions", Short: TRCLI("cli.users.default-permissions.summary"), Long: TRCLI(`cli.users.default-permissions.description`), }
UsersDefaultPermissionsCmd defines 'default-permissions' subcommand
var UsersDefaultPermissionsGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/operators/{operator_id}/users/default_permissions:get:summary"), Long: TRAPI(`/operators/{operator_id}/users/default_permissions:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectUsersDefaultPermissionsGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
UsersDefaultPermissionsGetCmd defines 'get' subcommand
var UsersDefaultPermissionsGetCmdOperatorId string
UsersDefaultPermissionsGetCmdOperatorId holds value of 'operator_id' option
var UsersDefaultPermissionsUpdateCmd = &cobra.Command{ Use: "update", Short: TRAPI("/operators/{operator_id}/users/default_permissions:put:summary"), Long: TRAPI(`/operators/{operator_id}/users/default_permissions:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectUsersDefaultPermissionsUpdateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
UsersDefaultPermissionsUpdateCmd defines 'update' subcommand
var UsersDefaultPermissionsUpdateCmdBody string
UsersDefaultPermissionsUpdateCmdBody holds contents of request body to be sent
var UsersDefaultPermissionsUpdateCmdOperatorId string
UsersDefaultPermissionsUpdateCmdOperatorId holds value of 'operator_id' option
var UsersDefaultPermissionsUpdateCmdPermissions string
UsersDefaultPermissionsUpdateCmdPermissions holds value of 'permissions' option
var UsersDeleteCmd = &cobra.Command{ Use: "delete", Short: TRAPI("/operators/{operator_id}/users/{user_name}:delete:summary"), Long: TRAPI(`/operators/{operator_id}/users/{user_name}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectUsersDeleteCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
UsersDeleteCmd defines 'delete' subcommand
var UsersDeleteCmdOperatorId string
UsersDeleteCmdOperatorId holds value of 'operator_id' option
var UsersDeleteCmdUserName string
UsersDeleteCmdUserName holds value of 'user_name' option
var UsersDetachRoleCmd = &cobra.Command{ Use: "detach-role", Short: TRAPI("/operators/{operator_id}/users/{user_name}/roles/{role_id}:delete:summary"), Long: TRAPI(`/operators/{operator_id}/users/{user_name}/roles/{role_id}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectUsersDetachRoleCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
UsersDetachRoleCmd defines 'detach-role' subcommand
var UsersDetachRoleCmdOperatorId string
UsersDetachRoleCmdOperatorId holds value of 'operator_id' option
var UsersDetachRoleCmdRoleId string
UsersDetachRoleCmdRoleId holds value of 'role_id' option
var UsersDetachRoleCmdUserName string
UsersDetachRoleCmdUserName holds value of 'user_name' option
var UsersGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/operators/{operator_id}/users/{user_name}:get:summary"), Long: TRAPI(`/operators/{operator_id}/users/{user_name}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectUsersGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
UsersGetCmd defines 'get' subcommand
var UsersGetCmdOperatorId string
UsersGetCmdOperatorId holds value of 'operator_id' option
var UsersGetCmdUserName string
UsersGetCmdUserName holds value of 'user_name' option
var UsersListCmd = &cobra.Command{ Use: "list", Short: TRAPI("/operators/{operator_id}/users:get:summary"), Long: TRAPI(`/operators/{operator_id}/users:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectUsersListCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
UsersListCmd defines 'list' subcommand
var UsersListCmdOperatorId string
UsersListCmdOperatorId holds value of 'operator_id' option
var UsersListRolesCmd = &cobra.Command{ Use: "list-roles", Short: TRAPI("/operators/{operator_id}/users/{user_name}/roles:get:summary"), Long: TRAPI(`/operators/{operator_id}/users/{user_name}/roles:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectUsersListRolesCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
UsersListRolesCmd defines 'list-roles' subcommand
var UsersListRolesCmdOperatorId string
UsersListRolesCmdOperatorId holds value of 'operator_id' option
var UsersListRolesCmdUserName string
UsersListRolesCmdUserName holds value of 'user_name' option
var UsersMfaCmd = &cobra.Command{ Use: "mfa", Short: TRCLI("cli.users.mfa.summary"), Long: TRCLI(`cli.users.mfa.description`), }
UsersMfaCmd defines 'mfa' subcommand
var UsersMfaEnableCmd = &cobra.Command{ Use: "enable", Short: TRAPI("/operators/{operator_id}/users/{user_name}/mfa:post:summary"), Long: TRAPI(`/operators/{operator_id}/users/{user_name}/mfa:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectUsersMfaEnableCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
UsersMfaEnableCmd defines 'enable' subcommand
var UsersMfaEnableCmdOperatorId string
UsersMfaEnableCmdOperatorId holds value of 'operator_id' option
var UsersMfaEnableCmdUserName string
UsersMfaEnableCmdUserName holds value of 'user_name' option
var UsersMfaGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/operators/{operator_id}/users/{user_name}/mfa:get:summary"), Long: TRAPI(`/operators/{operator_id}/users/{user_name}/mfa:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectUsersMfaGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
UsersMfaGetCmd defines 'get' subcommand
var UsersMfaGetCmdOperatorId string
UsersMfaGetCmdOperatorId holds value of 'operator_id' option
var UsersMfaGetCmdUserName string
UsersMfaGetCmdUserName holds value of 'user_name' option
var UsersMfaRevokeCmd = &cobra.Command{ Use: "revoke", Short: TRAPI("/operators/{operator_id}/users/{user_name}/mfa:delete:summary"), Long: TRAPI(`/operators/{operator_id}/users/{user_name}/mfa:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectUsersMfaRevokeCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
UsersMfaRevokeCmd defines 'revoke' subcommand
var UsersMfaRevokeCmdOperatorId string
UsersMfaRevokeCmdOperatorId holds value of 'operator_id' option
var UsersMfaRevokeCmdUserName string
UsersMfaRevokeCmdUserName holds value of 'user_name' option
var UsersMfaVerifyCmd = &cobra.Command{ Use: "verify", Short: TRAPI("/operators/{operator_id}/users/{user_name}/mfa/verify:post:summary"), Long: TRAPI(`/operators/{operator_id}/users/{user_name}/mfa/verify:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectUsersMfaVerifyCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
UsersMfaVerifyCmd defines 'verify' subcommand
var UsersMfaVerifyCmdBody string
UsersMfaVerifyCmdBody holds contents of request body to be sent
var UsersMfaVerifyCmdMfaOTPCode string
UsersMfaVerifyCmdMfaOTPCode holds value of 'mfaOTPCode' option
var UsersMfaVerifyCmdOperatorId string
UsersMfaVerifyCmdOperatorId holds value of 'operator_id' option
var UsersMfaVerifyCmdUserName string
UsersMfaVerifyCmdUserName holds value of 'user_name' option
var UsersPasswordCmd = &cobra.Command{ Use: "password", Short: TRCLI("cli.users.password.summary"), Long: TRCLI(`cli.users.password.description`), }
UsersPasswordCmd defines 'password' subcommand
var UsersPasswordConfiguredCmd = &cobra.Command{ Use: "configured", Short: TRAPI("/operators/{operator_id}/users/{user_name}/password:get:summary"), Long: TRAPI(`/operators/{operator_id}/users/{user_name}/password:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectUsersPasswordConfiguredCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
UsersPasswordConfiguredCmd defines 'configured' subcommand
var UsersPasswordConfiguredCmdOperatorId string
UsersPasswordConfiguredCmdOperatorId holds value of 'operator_id' option
var UsersPasswordConfiguredCmdUserName string
UsersPasswordConfiguredCmdUserName holds value of 'user_name' option
var UsersPasswordCreateCmd = &cobra.Command{ Use: "create", Short: TRAPI("/operators/{operator_id}/users/{user_name}/password:post:summary"), Long: TRAPI(`/operators/{operator_id}/users/{user_name}/password:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectUsersPasswordCreateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
UsersPasswordCreateCmd defines 'create' subcommand
var UsersPasswordCreateCmdBody string
UsersPasswordCreateCmdBody holds contents of request body to be sent
var UsersPasswordCreateCmdOperatorId string
UsersPasswordCreateCmdOperatorId holds value of 'operator_id' option
var UsersPasswordCreateCmdPassword string
UsersPasswordCreateCmdPassword holds value of 'password' option
var UsersPasswordCreateCmdUserName string
UsersPasswordCreateCmdUserName holds value of 'user_name' option
var UsersPasswordDeleteCmd = &cobra.Command{ Use: "delete", Short: TRAPI("/operators/{operator_id}/users/{user_name}/password:delete:summary"), Long: TRAPI(`/operators/{operator_id}/users/{user_name}/password:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectUsersPasswordDeleteCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
UsersPasswordDeleteCmd defines 'delete' subcommand
var UsersPasswordDeleteCmdOperatorId string
UsersPasswordDeleteCmdOperatorId holds value of 'operator_id' option
var UsersPasswordDeleteCmdUserName string
UsersPasswordDeleteCmdUserName holds value of 'user_name' option
var UsersPasswordUpdateCmd = &cobra.Command{ Use: "update", Short: TRAPI("/operators/{operator_id}/users/{user_name}/password:put:summary"), Long: TRAPI(`/operators/{operator_id}/users/{user_name}/password:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectUsersPasswordUpdateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
UsersPasswordUpdateCmd defines 'update' subcommand
var UsersPasswordUpdateCmdBody string
UsersPasswordUpdateCmdBody holds contents of request body to be sent
var UsersPasswordUpdateCmdCurrentPassword string
UsersPasswordUpdateCmdCurrentPassword holds value of 'currentPassword' option
var UsersPasswordUpdateCmdNewPassword string
UsersPasswordUpdateCmdNewPassword holds value of 'newPassword' option
var UsersPasswordUpdateCmdOperatorId string
UsersPasswordUpdateCmdOperatorId holds value of 'operator_id' option
var UsersPasswordUpdateCmdUserName string
UsersPasswordUpdateCmdUserName holds value of 'user_name' option
var UsersPermissionsCmd = &cobra.Command{ Use: "permissions", Short: TRCLI("cli.users.permissions.summary"), Long: TRCLI(`cli.users.permissions.description`), }
UsersPermissionsCmd defines 'permissions' subcommand
var UsersPermissionsGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/operators/{operator_id}/users/{user_name}/permission:get:summary"), Long: TRAPI(`/operators/{operator_id}/users/{user_name}/permission:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectUsersPermissionsGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
UsersPermissionsGetCmd defines 'get' subcommand
var UsersPermissionsGetCmdOperatorId string
UsersPermissionsGetCmdOperatorId holds value of 'operator_id' option
var UsersPermissionsGetCmdUserName string
UsersPermissionsGetCmdUserName holds value of 'user_name' option
var UsersPermissionsUpdateCmd = &cobra.Command{ Use: "update", Short: TRAPI("/operators/{operator_id}/users/{user_name}/permission:put:summary"), Long: TRAPI(`/operators/{operator_id}/users/{user_name}/permission:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectUsersPermissionsUpdateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
UsersPermissionsUpdateCmd defines 'update' subcommand
var UsersPermissionsUpdateCmdBody string
UsersPermissionsUpdateCmdBody holds contents of request body to be sent
var UsersPermissionsUpdateCmdDescription string
UsersPermissionsUpdateCmdDescription holds value of 'description' option
var UsersPermissionsUpdateCmdOperatorId string
UsersPermissionsUpdateCmdOperatorId holds value of 'operator_id' option
var UsersPermissionsUpdateCmdPermission string
UsersPermissionsUpdateCmdPermission holds value of 'permission' option
var UsersPermissionsUpdateCmdUserName string
UsersPermissionsUpdateCmdUserName holds value of 'user_name' option
var UsersUpdateCmd = &cobra.Command{ Use: "update", Short: TRAPI("/operators/{operator_id}/users/{user_name}:put:summary"), Long: TRAPI(`/operators/{operator_id}/users/{user_name}:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectUsersUpdateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
UsersUpdateCmd defines 'update' subcommand
var UsersUpdateCmdBody string
UsersUpdateCmdBody holds contents of request body to be sent
var UsersUpdateCmdDescription string
UsersUpdateCmdDescription holds value of 'description' option
var UsersUpdateCmdOperatorId string
UsersUpdateCmdOperatorId holds value of 'operator_id' option
var UsersUpdateCmdUserName string
UsersUpdateCmdUserName holds value of 'user_name' option
var VersionCmd = &cobra.Command{ Use: "version", Short: TRCLI("cli.version.summary"), Long: TRCLI("cli.version.description"), Run: func(cmd *cobra.Command, args []string) { fmt.Printf("SORACOM API client v%s\n", version) }, }
VersionCmd defines 'version' subcommand
var VolumeDiscountsCmd = &cobra.Command{ Use: "volume-discounts", Short: TRCLI("cli.volume-discounts.summary"), Long: TRCLI(`cli.volume-discounts.description`), }
VolumeDiscountsCmd defines 'volume-discounts' subcommand
var VolumeDiscountsGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/volume_discounts/{contract_id}:get:summary"), Long: TRAPI(`/volume_discounts/{contract_id}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectVolumeDiscountsGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
VolumeDiscountsGetCmd defines 'get' subcommand
var VolumeDiscountsGetCmdContractId string
VolumeDiscountsGetCmdContractId holds value of 'contract_id' option
var VolumeDiscountsListCmd = &cobra.Command{ Use: "list", Short: TRAPI("/volume_discounts:get:summary"), Long: TRAPI(`/volume_discounts:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectVolumeDiscountsListCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
VolumeDiscountsListCmd defines 'list' subcommand
var VpgCloseGateCmd = &cobra.Command{ Use: "close-gate", Short: TRAPI("/virtual_private_gateways/{vpg_id}/gate/close:post:summary"), Long: TRAPI(`/virtual_private_gateways/{vpg_id}/gate/close:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectVpgCloseGateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
VpgCloseGateCmd defines 'close-gate' subcommand
var VpgCloseGateCmdVpgId string
VpgCloseGateCmdVpgId holds value of 'vpg_id' option
var VpgCmd = &cobra.Command{ Use: "vpg", Short: TRCLI("cli.vpg.summary"), Long: TRCLI(`cli.vpg.description`), }
VpgCmd defines 'vpg' subcommand
var VpgCreateCmd = &cobra.Command{ Use: "create", Short: TRAPI("/virtual_private_gateways:post:summary"), Long: TRAPI(`/virtual_private_gateways:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectVpgCreateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
VpgCreateCmd defines 'create' subcommand
var VpgCreateCmdBody string
VpgCreateCmdBody holds contents of request body to be sent
var VpgCreateCmdDeviceSubnetCidrRange string
VpgCreateCmdDeviceSubnetCidrRange holds value of 'deviceSubnetCidrRange' option
var VpgCreateCmdType int64
VpgCreateCmdType holds value of 'type' option
var VpgCreateCmdUseInternetGateway bool
VpgCreateCmdUseInternetGateway holds value of 'useInternetGateway' option
var VpgCreateMirroringPeerCmd = &cobra.Command{ Use: "create-mirroring-peer", Short: TRAPI("/virtual_private_gateways/{vpg_id}/junction/mirroring/peers:post:summary"), Long: TRAPI(`/virtual_private_gateways/{vpg_id}/junction/mirroring/peers:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectVpgCreateMirroringPeerCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
VpgCreateMirroringPeerCmd defines 'create-mirroring-peer' subcommand
var VpgCreateMirroringPeerCmdBody string
VpgCreateMirroringPeerCmdBody holds contents of request body to be sent
var VpgCreateMirroringPeerCmdDescription string
VpgCreateMirroringPeerCmdDescription holds value of 'description' option
var VpgCreateMirroringPeerCmdEnabled bool
VpgCreateMirroringPeerCmdEnabled holds value of 'enabled' option
var VpgCreateMirroringPeerCmdIpAddress string
VpgCreateMirroringPeerCmdIpAddress holds value of 'ipAddress' option
var VpgCreateMirroringPeerCmdProtocol string
VpgCreateMirroringPeerCmdProtocol holds value of 'protocol' option
var VpgCreateMirroringPeerCmdVpgId string
VpgCreateMirroringPeerCmdVpgId holds value of 'vpg_id' option
var VpgCreatePacketCaptureSessionCmd = &cobra.Command{ Use: "create-packet-capture-session", Short: TRAPI("/virtual_private_gateways/{vpg_id}/packet_capture_sessions:post:summary"), Long: TRAPI(`/virtual_private_gateways/{vpg_id}/packet_capture_sessions:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectVpgCreatePacketCaptureSessionCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
VpgCreatePacketCaptureSessionCmd defines 'create-packet-capture-session' subcommand
var VpgCreatePacketCaptureSessionCmdBody string
VpgCreatePacketCaptureSessionCmdBody holds contents of request body to be sent
var VpgCreatePacketCaptureSessionCmdDuration int64
VpgCreatePacketCaptureSessionCmdDuration holds value of 'duration' option
var VpgCreatePacketCaptureSessionCmdPrefix string
VpgCreatePacketCaptureSessionCmdPrefix holds value of 'prefix' option
var VpgCreatePacketCaptureSessionCmdVpgId string
VpgCreatePacketCaptureSessionCmdVpgId holds value of 'vpg_id' option
var VpgCreateVpcPeeringConnectionCmd = &cobra.Command{ Use: "create-vpc-peering-connection", Short: TRAPI("/virtual_private_gateways/{vpg_id}/vpc_peering_connections:post:summary"), Long: TRAPI(`/virtual_private_gateways/{vpg_id}/vpc_peering_connections:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectVpgCreateVpcPeeringConnectionCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
VpgCreateVpcPeeringConnectionCmd defines 'create-vpc-peering-connection' subcommand
var VpgCreateVpcPeeringConnectionCmdBody string
VpgCreateVpcPeeringConnectionCmdBody holds contents of request body to be sent
var VpgCreateVpcPeeringConnectionCmdDestinationCidrBlock string
VpgCreateVpcPeeringConnectionCmdDestinationCidrBlock holds value of 'destinationCidrBlock' option
var VpgCreateVpcPeeringConnectionCmdPeerOwnerId string
VpgCreateVpcPeeringConnectionCmdPeerOwnerId holds value of 'peerOwnerId' option
var VpgCreateVpcPeeringConnectionCmdPeerRegion string
VpgCreateVpcPeeringConnectionCmdPeerRegion holds value of 'peerRegion' option
var VpgCreateVpcPeeringConnectionCmdPeerVpcId string
VpgCreateVpcPeeringConnectionCmdPeerVpcId holds value of 'peerVpcId' option
var VpgCreateVpcPeeringConnectionCmdVpgId string
VpgCreateVpcPeeringConnectionCmdVpgId holds value of 'vpg_id' option
var VpgDeleteIpAddressMapEntryCmd = &cobra.Command{ Use: "delete-ip-address-map-entry", Short: TRAPI("/virtual_private_gateways/{vpg_id}/ip_address_map/{key}:delete:summary"), Long: TRAPI(`/virtual_private_gateways/{vpg_id}/ip_address_map/{key}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectVpgDeleteIpAddressMapEntryCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
VpgDeleteIpAddressMapEntryCmd defines 'delete-ip-address-map-entry' subcommand
var VpgDeleteIpAddressMapEntryCmdKey string
VpgDeleteIpAddressMapEntryCmdKey holds value of 'key' option
var VpgDeleteIpAddressMapEntryCmdVpgId string
VpgDeleteIpAddressMapEntryCmdVpgId holds value of 'vpg_id' option
var VpgDeleteMirroringPeerCmd = &cobra.Command{ Use: "delete-mirroring-peer", Short: TRAPI("/virtual_private_gateways/{vpg_id}/junction/mirroring/peers/{ipaddr}:delete:summary"), Long: TRAPI(`/virtual_private_gateways/{vpg_id}/junction/mirroring/peers/{ipaddr}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectVpgDeleteMirroringPeerCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
VpgDeleteMirroringPeerCmd defines 'delete-mirroring-peer' subcommand
var VpgDeleteMirroringPeerCmdIpaddr string
VpgDeleteMirroringPeerCmdIpaddr holds value of 'ipaddr' option
var VpgDeleteMirroringPeerCmdVpgId string
VpgDeleteMirroringPeerCmdVpgId holds value of 'vpg_id' option
var VpgDeletePacketCaptureSessionCmd = &cobra.Command{ Use: "delete-packet-capture-session", Short: TRAPI("/virtual_private_gateways/{vpg_id}/packet_capture_sessions/{session_id}:delete:summary"), Long: TRAPI(`/virtual_private_gateways/{vpg_id}/packet_capture_sessions/{session_id}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectVpgDeletePacketCaptureSessionCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
VpgDeletePacketCaptureSessionCmd defines 'delete-packet-capture-session' subcommand
var VpgDeletePacketCaptureSessionCmdSessionId string
VpgDeletePacketCaptureSessionCmdSessionId holds value of 'session_id' option
var VpgDeletePacketCaptureSessionCmdVpgId string
VpgDeletePacketCaptureSessionCmdVpgId holds value of 'vpg_id' option
var VpgDeleteVpcPeeringConnectionCmd = &cobra.Command{ Use: "delete-vpc-peering-connection", Short: TRAPI("/virtual_private_gateways/{vpg_id}/vpc_peering_connections/{pcx_id}:delete:summary"), Long: TRAPI(`/virtual_private_gateways/{vpg_id}/vpc_peering_connections/{pcx_id}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectVpgDeleteVpcPeeringConnectionCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
VpgDeleteVpcPeeringConnectionCmd defines 'delete-vpc-peering-connection' subcommand
var VpgDeleteVpcPeeringConnectionCmdPcxId string
VpgDeleteVpcPeeringConnectionCmdPcxId holds value of 'pcx_id' option
var VpgDeleteVpcPeeringConnectionCmdVpgId string
VpgDeleteVpcPeeringConnectionCmdVpgId holds value of 'vpg_id' option
var VpgGetCmd = &cobra.Command{ Use: "get", Short: TRAPI("/virtual_private_gateways/{vpg_id}:get:summary"), Long: TRAPI(`/virtual_private_gateways/{vpg_id}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectVpgGetCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
VpgGetCmd defines 'get' subcommand
var VpgGetCmdVpgId string
VpgGetCmdVpgId holds value of 'vpg_id' option
var VpgGetPacketCaptureSessionCmd = &cobra.Command{ Use: "get-packet-capture-session", Short: TRAPI("/virtual_private_gateways/{vpg_id}/packet_capture_sessions/{session_id}:get:summary"), Long: TRAPI(`/virtual_private_gateways/{vpg_id}/packet_capture_sessions/{session_id}:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectVpgGetPacketCaptureSessionCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
VpgGetPacketCaptureSessionCmd defines 'get-packet-capture-session' subcommand
var VpgGetPacketCaptureSessionCmdSessionId string
VpgGetPacketCaptureSessionCmdSessionId holds value of 'session_id' option
var VpgGetPacketCaptureSessionCmdVpgId string
VpgGetPacketCaptureSessionCmdVpgId holds value of 'vpg_id' option
var VpgListCmd = &cobra.Command{ Use: "list", Short: TRAPI("/virtual_private_gateways:get:summary"), Long: TRAPI(`/virtual_private_gateways:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectVpgListCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
VpgListCmd defines 'list' subcommand
var VpgListCmdLastEvaluatedKey string
VpgListCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var VpgListCmdLimit int64
VpgListCmdLimit holds value of 'limit' option
var VpgListCmdPaginate bool
VpgListCmdPaginate indicates to do pagination or not
var VpgListCmdTagName string
VpgListCmdTagName holds value of 'tag_name' option
var VpgListCmdTagValue string
VpgListCmdTagValue holds value of 'tag_value' option
var VpgListCmdTagValueMatchMode string
VpgListCmdTagValueMatchMode holds value of 'tag_value_match_mode' option
var VpgListGatePeersCmd = &cobra.Command{ Use: "list-gate-peers", Short: TRAPI("/virtual_private_gateways/{vpg_id}/gate/peers:get:summary"), Long: TRAPI(`/virtual_private_gateways/{vpg_id}/gate/peers:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectVpgListGatePeersCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
VpgListGatePeersCmd defines 'list-gate-peers' subcommand
var VpgListGatePeersCmdVpgId string
VpgListGatePeersCmdVpgId holds value of 'vpg_id' option
var VpgListIpAddressMapEntriesCmd = &cobra.Command{ Use: "list-ip-address-map-entries", Short: TRAPI("/virtual_private_gateways/{vpg_id}/ip_address_map:get:summary"), Long: TRAPI(`/virtual_private_gateways/{vpg_id}/ip_address_map:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectVpgListIpAddressMapEntriesCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
VpgListIpAddressMapEntriesCmd defines 'list-ip-address-map-entries' subcommand
var VpgListIpAddressMapEntriesCmdVpgId string
VpgListIpAddressMapEntriesCmdVpgId holds value of 'vpg_id' option
var VpgListPacketCaptureSessionsCmd = &cobra.Command{ Use: "list-packet-capture-sessions", Short: TRAPI("/virtual_private_gateways/{vpg_id}/packet_capture_sessions:get:summary"), Long: TRAPI(`/virtual_private_gateways/{vpg_id}/packet_capture_sessions:get:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectVpgListPacketCaptureSessionsCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
VpgListPacketCaptureSessionsCmd defines 'list-packet-capture-sessions' subcommand
var VpgListPacketCaptureSessionsCmdLastEvaluatedKey string
VpgListPacketCaptureSessionsCmdLastEvaluatedKey holds value of 'last_evaluated_key' option
var VpgListPacketCaptureSessionsCmdLimit int64
VpgListPacketCaptureSessionsCmdLimit holds value of 'limit' option
var VpgListPacketCaptureSessionsCmdVpgId string
VpgListPacketCaptureSessionsCmdVpgId holds value of 'vpg_id' option
var VpgOpenGateCmd = &cobra.Command{ Use: "open-gate", Short: TRAPI("/virtual_private_gateways/{vpg_id}/gate/open:post:summary"), Long: TRAPI(`/virtual_private_gateways/{vpg_id}/gate/open:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectVpgOpenGateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
VpgOpenGateCmd defines 'open-gate' subcommand
var VpgOpenGateCmdBody string
VpgOpenGateCmdBody holds contents of request body to be sent
var VpgOpenGateCmdPrivacySeparatorEnabled bool
VpgOpenGateCmdPrivacySeparatorEnabled holds value of 'privacySeparatorEnabled' option
var VpgOpenGateCmdVpgId string
VpgOpenGateCmdVpgId holds value of 'vpg_id' option
var VpgOpenGateCmdVxlanId int64
VpgOpenGateCmdVxlanId holds value of 'vxlanId' option
var VpgPutIpAddressMapEntryCmd = &cobra.Command{ Use: "put-ip-address-map-entry", Short: TRAPI("/virtual_private_gateways/{vpg_id}/ip_address_map:post:summary"), Long: TRAPI(`/virtual_private_gateways/{vpg_id}/ip_address_map:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectVpgPutIpAddressMapEntryCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
VpgPutIpAddressMapEntryCmd defines 'put-ip-address-map-entry' subcommand
var VpgPutIpAddressMapEntryCmdBody string
VpgPutIpAddressMapEntryCmdBody holds contents of request body to be sent
var VpgPutIpAddressMapEntryCmdIpAddress string
VpgPutIpAddressMapEntryCmdIpAddress holds value of 'ipAddress' option
var VpgPutIpAddressMapEntryCmdKey string
VpgPutIpAddressMapEntryCmdKey holds value of 'key' option
var VpgPutIpAddressMapEntryCmdVpgId string
VpgPutIpAddressMapEntryCmdVpgId holds value of 'vpg_id' option
var VpgRegisterGatePeerCmd = &cobra.Command{ Use: "register-gate-peer", Short: TRAPI("/virtual_private_gateways/{vpg_id}/gate/peers:post:summary"), Long: TRAPI(`/virtual_private_gateways/{vpg_id}/gate/peers:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectVpgRegisterGatePeerCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
VpgRegisterGatePeerCmd defines 'register-gate-peer' subcommand
var VpgRegisterGatePeerCmdBody string
VpgRegisterGatePeerCmdBody holds contents of request body to be sent
var VpgRegisterGatePeerCmdInnerIpAddress string
VpgRegisterGatePeerCmdInnerIpAddress holds value of 'innerIpAddress' option
var VpgRegisterGatePeerCmdOuterIpAddress string
VpgRegisterGatePeerCmdOuterIpAddress holds value of 'outerIpAddress' option
var VpgRegisterGatePeerCmdVpgId string
VpgRegisterGatePeerCmdVpgId holds value of 'vpg_id' option
var VpgSetInspectionCmd = &cobra.Command{ Use: "set-inspection", Short: TRAPI("/virtual_private_gateways/{vpg_id}/junction/set_inspection:post:summary"), Long: TRAPI(`/virtual_private_gateways/{vpg_id}/junction/set_inspection:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectVpgSetInspectionCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
VpgSetInspectionCmd defines 'set-inspection' subcommand
var VpgSetInspectionCmdBody string
VpgSetInspectionCmdBody holds contents of request body to be sent
var VpgSetInspectionCmdEnabled bool
VpgSetInspectionCmdEnabled holds value of 'enabled' option
var VpgSetInspectionCmdVpgId string
VpgSetInspectionCmdVpgId holds value of 'vpg_id' option
var VpgSetRedirectionCmd = &cobra.Command{ Use: "set-redirection", Short: TRAPI("/virtual_private_gateways/{vpg_id}/junction/set_redirection:post:summary"), Long: TRAPI(`/virtual_private_gateways/{vpg_id}/junction/set_redirection:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectVpgSetRedirectionCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
VpgSetRedirectionCmd defines 'set-redirection' subcommand
var VpgSetRedirectionCmdBody string
VpgSetRedirectionCmdBody holds contents of request body to be sent
var VpgSetRedirectionCmdDescription string
VpgSetRedirectionCmdDescription holds value of 'description' option
var VpgSetRedirectionCmdEnabled bool
VpgSetRedirectionCmdEnabled holds value of 'enabled' option
var VpgSetRedirectionCmdGateway string
VpgSetRedirectionCmdGateway holds value of 'gateway' option
var VpgSetRedirectionCmdVpgId string
VpgSetRedirectionCmdVpgId holds value of 'vpg_id' option
var VpgSetRoutingFilterCmd = &cobra.Command{ Use: "set-routing-filter", Short: TRAPI("/virtual_private_gateways/{vpg_id}/set_routing_filter:post:summary"), Long: TRAPI(`/virtual_private_gateways/{vpg_id}/set_routing_filter:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectVpgSetRoutingFilterCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
VpgSetRoutingFilterCmd defines 'set-routing-filter' subcommand
var VpgSetRoutingFilterCmdBody string
VpgSetRoutingFilterCmdBody holds contents of request body to be sent
var VpgSetRoutingFilterCmdVpgId string
VpgSetRoutingFilterCmdVpgId holds value of 'vpg_id' option
var VpgTerminateCmd = &cobra.Command{ Use: "terminate", Short: TRAPI("/virtual_private_gateways/{vpg_id}/terminate:post:summary"), Long: TRAPI(`/virtual_private_gateways/{vpg_id}/terminate:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectVpgTerminateCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
VpgTerminateCmd defines 'terminate' subcommand
var VpgTerminateCmdVpgId string
VpgTerminateCmdVpgId holds value of 'vpg_id' option
var VpgUnregisterGatePeerCmd = &cobra.Command{ Use: "unregister-gate-peer", Short: TRAPI("/virtual_private_gateways/{vpg_id}/gate/peers/{outer_ip_address}:delete:summary"), Long: TRAPI(`/virtual_private_gateways/{vpg_id}/gate/peers/{outer_ip_address}:delete:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectVpgUnregisterGatePeerCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
VpgUnregisterGatePeerCmd defines 'unregister-gate-peer' subcommand
var VpgUnregisterGatePeerCmdOuterIpAddress string
VpgUnregisterGatePeerCmdOuterIpAddress holds value of 'outer_ip_address' option
var VpgUnregisterGatePeerCmdVpgId string
VpgUnregisterGatePeerCmdVpgId holds value of 'vpg_id' option
var VpgUnsetInspectionCmd = &cobra.Command{ Use: "unset-inspection", Short: TRAPI("/virtual_private_gateways/{vpg_id}/junction/unset_inspection:post:summary"), Long: TRAPI(`/virtual_private_gateways/{vpg_id}/junction/unset_inspection:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectVpgUnsetInspectionCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
VpgUnsetInspectionCmd defines 'unset-inspection' subcommand
var VpgUnsetInspectionCmdVpgId string
VpgUnsetInspectionCmdVpgId holds value of 'vpg_id' option
var VpgUnsetRedirectionCmd = &cobra.Command{ Use: "unset-redirection", Short: TRAPI("/virtual_private_gateways/{vpg_id}/junction/unset_redirection:post:summary"), Long: TRAPI(`/virtual_private_gateways/{vpg_id}/junction/unset_redirection:post:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectVpgUnsetRedirectionCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
VpgUnsetRedirectionCmd defines 'unset-redirection' subcommand
var VpgUnsetRedirectionCmdVpgId string
VpgUnsetRedirectionCmdVpgId holds value of 'vpg_id' option
var VpgUpdateMirroringPeerCmd = &cobra.Command{ Use: "update-mirroring-peer", Short: TRAPI("/virtual_private_gateways/{vpg_id}/junction/mirroring/peers/{ipaddr}:put:summary"), Long: TRAPI(`/virtual_private_gateways/{vpg_id}/junction/mirroring/peers/{ipaddr}:put:description`), RunE: func(cmd *cobra.Command, args []string) error { opt := &apiClientOptions{ BasePath: "/v1", Language: getSelectedLanguage(), } ac := newAPIClient(opt) if v := os.Getenv("SORACOM_VERBOSE"); v != "" { ac.SetVerbose(true) } err := authHelper(ac, cmd, args) if err != nil { cmd.SilenceUsage = true return err } param, err := collectVpgUpdateMirroringPeerCmdParams(ac) if err != nil { return err } body, err := ac.callAPI(param) if err != nil { cmd.SilenceUsage = true return err } if body == "" { return nil } if rawOutput { _, err = os.Stdout.Write([]byte(body)) } else { return prettyPrintStringAsJSON(body) } return err }, }
VpgUpdateMirroringPeerCmd defines 'update-mirroring-peer' subcommand
var VpgUpdateMirroringPeerCmdBody string
VpgUpdateMirroringPeerCmdBody holds contents of request body to be sent
var VpgUpdateMirroringPeerCmdIpaddr string
VpgUpdateMirroringPeerCmdIpaddr holds value of 'ipaddr' option
var VpgUpdateMirroringPeerCmdVpgId string
VpgUpdateMirroringPeerCmdVpgId holds value of 'vpg_id' option
Functions ¶
Types ¶
This section is empty.
Source Files
¶
- apiclient.go
- audit_logs.go
- audit_logs_napter.go
- audit_logs_napter_get.go
- auth.go
- auth_helper.go
- auth_issue_password_reset_token.go
- auth_verify_password_reset_token.go
- bills.go
- bills_export.go
- bills_export_latest.go
- bills_get.go
- bills_get_daily.go
- bills_get_latest.go
- bills_list.go
- completion.go
- configure.go
- configure_get.go
- configure_sandbox.go
- coupons.go
- coupons_list.go
- coupons_register.go
- credentials.go
- credentials_create.go
- credentials_delete.go
- credentials_list.go
- credentials_update.go
- data.go
- data_delete_entry.go
- data_get.go
- data_get_entries.go
- data_get_entry.go
- data_list_source_resources.go
- devices.go
- devices_create.go
- devices_create_object_model.go
- devices_delete.go
- devices_delete_device_tag.go
- devices_delete_object_model.go
- devices_execute_resource.go
- devices_get.go
- devices_get_data.go
- devices_get_instance.go
- devices_get_object_model.go
- devices_get_resource.go
- devices_list.go
- devices_list_object_models.go
- devices_observe_resource.go
- devices_observe_resources.go
- devices_put_device_tags.go
- devices_put_resource.go
- devices_set_group.go
- devices_set_object_model_scope.go
- devices_unobserve_resource.go
- devices_unobserve_resources.go
- devices_unset_group.go
- devices_update_object_model.go
- endpoint.go
- event_handlers.go
- event_handlers_create.go
- event_handlers_delete.go
- event_handlers_get.go
- event_handlers_ignore.go
- event_handlers_list.go
- event_handlers_list_for_subscriber.go
- event_handlers_unignore.go
- event_handlers_update.go
- files.go
- files_delete.go
- files_delete_directory.go
- files_get.go
- files_get_exported.go
- files_get_metadata.go
- files_list.go
- files_put.go
- gadgets.go
- gadgets_delete_tag.go
- gadgets_disable_termination.go
- gadgets_enable_termination.go
- gadgets_get.go
- gadgets_list.go
- gadgets_put_tags.go
- gadgets_register.go
- gadgets_set_group.go
- gadgets_terminate.go
- gadgets_unset_group.go
- groups.go
- groups_create.go
- groups_delete.go
- groups_delete_config.go
- groups_delete_config_namespace.go
- groups_delete_tag.go
- groups_get.go
- groups_list.go
- groups_list_subscribers.go
- groups_put_config.go
- groups_put_tags.go
- harvest_files_path_escape.go
- i18n_data.go
- lagoon.go
- lagoon_create_user.go
- lagoon_dashboards.go
- lagoon_dashboards_init_permissions.go
- lagoon_dashboards_list_permissions.go
- lagoon_dashboards_update_permissions.go
- lagoon_delete_user.go
- lagoon_get_image_link.go
- lagoon_license_packs.go
- lagoon_license_packs_list_status.go
- lagoon_license_packs_update.go
- lagoon_list_users.go
- lagoon_register.go
- lagoon_terminate.go
- lagoon_update_user_email.go
- lagoon_update_user_password.go
- lagoon_update_user_permission.go
- lagoon_updated_plan.go
- lagoon_users.go
- lagoon_users_create.go
- lagoon_users_delete.go
- lagoon_users_list.go
- lagoon_users_update_email.go
- lagoon_users_update_password.go
- lagoon_users_update_permission.go
- lang_utils.go
- logs.go
- logs_get.go
- lora_devices.go
- lora_devices_delete_tag.go
- lora_devices_disable_termination.go
- lora_devices_enable_termination.go
- lora_devices_get.go
- lora_devices_get_data.go
- lora_devices_list.go
- lora_devices_put_tags.go
- lora_devices_register.go
- lora_devices_send_data.go
- lora_devices_set_group.go
- lora_devices_terminate.go
- lora_devices_unset_group.go
- lora_gateways.go
- lora_gateways_delete_tag.go
- lora_gateways_disable_termination.go
- lora_gateways_enable_termination.go
- lora_gateways_get.go
- lora_gateways_list.go
- lora_gateways_put_tags.go
- lora_gateways_set_network_set.go
- lora_gateways_terminate.go
- lora_gateways_unset_network_set.go
- lora_network_sets.go
- lora_network_sets_add_permission.go
- lora_network_sets_create.go
- lora_network_sets_delete.go
- lora_network_sets_delete_tag.go
- lora_network_sets_get.go
- lora_network_sets_list.go
- lora_network_sets_list_gateways.go
- lora_network_sets_revoke_permission.go
- operator.go
- operator_add_contract.go
- operator_add_coverage_type.go
- operator_auth_keys.go
- operator_auth_keys_delete.go
- operator_auth_keys_generate.go
- operator_auth_keys_list.go
- operator_create.go
- operator_create_company_information.go
- operator_create_individual_information.go
- operator_delete_contract.go
- operator_enable_mfa.go
- operator_generate_api_token.go
- operator_get.go
- operator_get_company_information.go
- operator_get_individual_information.go
- operator_get_mfa_status.go
- operator_get_support_token.go
- operator_issue_email_change_token.go
- operator_issue_mfa_revoke_token.go
- operator_revoke_mfa.go
- operator_update_company_information.go
- operator_update_individual_information.go
- operator_update_password.go
- operator_verify.go
- operator_verify_email_change_token.go
- operator_verify_mfa_otp.go
- operator_verify_mfa_revoke_token.go
- orders.go
- orders_cancel.go
- orders_confirm.go
- orders_create.go
- orders_get.go
- orders_list.go
- orders_list_subscribers.go
- orders_register_subscribers.go
- payer_information.go
- payer_information_get.go
- payer_information_register.go
- payment_history.go
- payment_history_get.go
- payment_methods.go
- payment_methods_get_current.go
- payment_methods_reactivate_current.go
- payment_statements.go
- payment_statements_export.go
- payment_statements_list.go
- port_mappings.go
- port_mappings_create.go
- port_mappings_delete.go
- port_mappings_get.go
- port_mappings_list.go
- pretty_print_json.go
- products.go
- products_list.go
- profiles.go
- query.go
- query_devices.go
- query_sigfox_devices.go
- query_sims.go
- query_subscribers.go
- query_subscribers_traffic_volume_ranking.go
- query_traffic_ranking.go
- roles.go
- roles_create.go
- roles_delete.go
- roles_get.go
- roles_list.go
- roles_list_users.go
- roles_update.go
- root.go
- sandbox.go
- sandbox_coupons.go
- sandbox_coupons_create.go
- sandbox_init.go
- sandbox_operators.go
- sandbox_operators_delete.go
- sandbox_operators_get_signup_token.go
- sandbox_orders.go
- sandbox_orders_ship.go
- sandbox_stats.go
- sandbox_stats_air.go
- sandbox_stats_air_insert.go
- sandbox_stats_beam.go
- sandbox_stats_beam_insert.go
- sandbox_subscribers.go
- sandbox_subscribers_create.go
- shipping_addresses.go
- shipping_addresses_create.go
- shipping_addresses_delete.go
- shipping_addresses_get.go
- shipping_addresses_list.go
- shipping_addresses_update.go
- sigfox_devices.go
- sigfox_devices_delete_tag.go
- sigfox_devices_disable_termination.go
- sigfox_devices_enable_termination.go
- sigfox_devices_get.go
- sigfox_devices_get_data.go
- sigfox_devices_list.go
- sigfox_devices_put_tags.go
- sigfox_devices_register.go
- sigfox_devices_send_data.go
- sigfox_devices_set_group.go
- sigfox_devices_terminate.go
- sigfox_devices_unset_group.go
- sims.go
- sims_activate.go
- sims_add_subscription.go
- sims_deactivate.go
- sims_delete_session.go
- sims_delete_tag.go
- sims_disable_termination.go
- sims_enable_termination.go
- sims_get.go
- sims_get_data.go
- sims_list.go
- sims_put_tags.go
- sims_register.go
- sims_report_local_info.go
- sims_send_sms.go
- sims_session_events.go
- sims_set_expiry_time.go
- sims_set_group.go
- sims_set_imei_lock.go
- sims_set_to_standby.go
- sims_suspend.go
- sims_terminate.go
- sims_unset_expiry_time.go
- sims_unset_group.go
- sims_unset_imei_lock.go
- sims_update_speed_class.go
- soralets.go
- soralets_create.go
- soralets_delete.go
- soralets_delete_version.go
- soralets_exec.go
- soralets_get.go
- soralets_get_logs.go
- soralets_list.go
- soralets_list_versions.go
- soralets_upload.go
- stats.go
- stats_air.go
- stats_air_export.go
- stats_air_get.go
- stats_air_sims.go
- stats_air_sims_get.go
- stats_beam.go
- stats_beam_export.go
- stats_beam_get.go
- stats_harvest.go
- stats_harvest_get.go
- stats_napter.go
- stats_napter_audit_logs.go
- stats_napter_audit_logs_get.go
- stringutils.go
- subscribers.go
- subscribers_activate.go
- subscribers_deactivate.go
- subscribers_delete_session.go
- subscribers_delete_tag.go
- subscribers_delete_transfer_token.go
- subscribers_disable_termination.go
- subscribers_enable_termination.go
- subscribers_get.go
- subscribers_get_data.go
- subscribers_issue_transfer_token.go
- subscribers_list.go
- subscribers_put_tags.go
- subscribers_register.go
- subscribers_report_local_info.go
- subscribers_send_sms.go
- subscribers_send_sms_by_msisdn.go
- subscribers_session_events.go
- subscribers_set_expiry_time.go
- subscribers_set_group.go
- subscribers_set_imei_lock.go
- subscribers_set_to_standby.go
- subscribers_suspend.go
- subscribers_terminate.go
- subscribers_unset_expiry_time.go
- subscribers_unset_group.go
- subscribers_unset_imei_lock.go
- subscribers_update_speed_class.go
- subscribers_verify_transfer_token.go
- test.go
- users.go
- users_attach_role.go
- users_auth_keys.go
- users_auth_keys_delete.go
- users_auth_keys_generate.go
- users_auth_keys_get.go
- users_auth_keys_list.go
- users_create.go
- users_default_permissions.go
- users_default_permissions_get.go
- users_default_permissions_update.go
- users_delete.go
- users_detach_role.go
- users_get.go
- users_list.go
- users_list_roles.go
- users_mfa.go
- users_mfa_enable.go
- users_mfa_get.go
- users_mfa_revoke.go
- users_mfa_verify.go
- users_password.go
- users_password_configured.go
- users_password_create.go
- users_password_delete.go
- users_password_update.go
- users_permissions.go
- users_permissions_get.go
- users_permissions_update.go
- users_update.go
- version.go
- volume_discounts.go
- volume_discounts_get.go
- volume_discounts_list.go
- vpg.go
- vpg_close_gate.go
- vpg_create.go
- vpg_create_mirroring_peer.go
- vpg_create_packet_capture_session.go
- vpg_create_vpc_peering_connection.go
- vpg_delete_ip_address_map_entry.go
- vpg_delete_mirroring_peer.go
- vpg_delete_packet_capture_session.go
- vpg_delete_vpc_peering_connection.go
- vpg_get.go
- vpg_get_packet_capture_session.go
- vpg_list.go
- vpg_list_gate_peers.go
- vpg_list_ip_address_map_entries.go
- vpg_list_packet_capture_sessions.go
- vpg_open_gate.go
- vpg_put_ip_address_map_entry.go
- vpg_register_gate_peer.go
- vpg_set_inspection.go
- vpg_set_redirection.go
- vpg_set_routing_filter.go
- vpg_terminate.go
- vpg_unregister_gate_peer.go
- vpg_unset_inspection.go
- vpg_unset_redirection.go
- vpg_update_mirroring_peer.go