Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DisableAutoRenewalCmd = &cobra.Command{ Use: "disable-auto-renewal <subscription-id>", Short: "Disable auto-renewal", Long: "Disable auto-renewal for a subscription.\n\nUse this endpoint when disable auto-renewal for a subscription.", Args: cobra.MatchAll(cobra.ExactArgs(1)), Run: func(cmd *cobra.Command, args []string) { r, err := api.Request().BillingDisableAutoRenewalV1WithResponse(context.TODO(), args[0]) if err != nil { log.Fatal(err) } output.Format(cmd, r.Body, r.StatusCode()) }, }
View Source
var EnableAutoRenewalCmd = &cobra.Command{ Use: "enable-auto-renewal <subscription-id>", Short: "Enable auto-renewal", Long: "Enable auto-renewal for a subscription.\n\nUse this endpoint when enable auto-renewal for a subscription.", Args: cobra.MatchAll(cobra.ExactArgs(1)), Run: func(cmd *cobra.Command, args []string) { r, err := api.Request().BillingEnableAutoRenewalV1WithResponse(context.TODO(), args[0]) if err != nil { log.Fatal(err) } output.Format(cmd, r.Body, r.StatusCode()) }, }
View Source
var GroupCmd = &cobra.Command{
Use: "subscriptions",
Short: "Subscriptions commands",
}
View Source
var ListCmd = &cobra.Command{ Use: "list", Short: "Get subscription list", Long: "Retrieve a list of all subscriptions associated with your account.\n\nUse this endpoint to monitor active services and billing status.", Run: func(cmd *cobra.Command, args []string) { r, err := api.Request().BillingGetSubscriptionListV1WithResponse(context.TODO()) if err != nil { log.Fatal(err) } output.Format(cmd, r.Body, r.StatusCode()) }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.