cloudid

package
v0.0.0-...-2b29b9b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2024 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudgroupCreateOptions

type CloudgroupCreateOptions struct {
	NAME           string `json:"name"`
	MANAGER_ID     string
	CloudpolicyIds []string `json:"cloudpolicy_ids"`
	Desc           string   `json:"description"`
}

func (*CloudgroupCreateOptions) Params

type CloudgroupIdOptions

type CloudgroupIdOptions struct {
	ID string `help:"Cloudgroup Id"`
}

func (*CloudgroupIdOptions) GetId

func (opts *CloudgroupIdOptions) GetId() string

func (*CloudgroupIdOptions) Params

func (opts *CloudgroupIdOptions) Params() (jsonutils.JSONObject, error)

type CloudgroupListOptions

type CloudgroupListOptions struct {
	options.BaseListOptions

	ClouduserId   string `json:"clouduser_id"`
	CloudpolicyId string `json:"cloudpolicy_id"`
	Usable        bool   `json:"usable"`
}

func (*CloudgroupListOptions) Params

func (opts *CloudgroupListOptions) Params() (jsonutils.JSONObject, error)

type CloudgroupPoliciesOptions

type CloudgroupPoliciesOptions struct {
	CloudgroupIdOptions
	CloudpolicyIds []string `json:"cloudpolicy_ids"`
}

func (*CloudgroupPoliciesOptions) Params

type CloudgroupPolicyListOptions

type CloudgroupPolicyListOptions struct {
	options.BaseListOptions
	Cloudgroup  string `help:"ID or Name of Cloudgroup"`
	Cloudpolicy string `help:"Policy ID or name"`
}

func (*CloudgroupPolicyListOptions) GetContextId

func (opts *CloudgroupPolicyListOptions) GetContextId() string

func (*CloudgroupPolicyListOptions) Params

type CloudgroupPolicyOptions

type CloudgroupPolicyOptions struct {
	CloudgroupIdOptions
	CLOUDPOLICY_ID string `help:"Cloudpolicy Id"`
}

func (*CloudgroupPolicyOptions) Params

type CloudgroupPublicOptions

type CloudgroupPublicOptions struct {
	CloudgroupIdOptions
	Scope         string   `help:"sharing scope" choices:"system|domain"`
	SharedDomains []string `help:"share to domains"`
}

func (*CloudgroupPublicOptions) Params

type CloudgroupUserListOptions

type CloudgroupUserListOptions struct {
	options.BaseListOptions
	Cloudgroup string `help:"ID or Name of Cloudgroup"`
	Clouduser  string `help:"User ID or name"`
}

func (*CloudgroupUserListOptions) GetContextId

func (opts *CloudgroupUserListOptions) GetContextId() string

func (*CloudgroupUserListOptions) Params

type CloudgroupUserOptions

type CloudgroupUserOptions struct {
	CloudgroupIdOptions
	CLOUDUSER_ID string `help:"Clouduser Id"`
}

func (*CloudgroupUserOptions) Params

func (opts *CloudgroupUserOptions) Params() (jsonutils.JSONObject, error)

type CloudgroupUsersOptions

type CloudgroupUsersOptions struct {
	CloudgroupIdOptions
	ClouduserIds []string `json:"clouduser_ids"`
}

func (*CloudgroupUsersOptions) Params

type CloudpolicyCacheOption

type CloudpolicyCacheOption struct {
	CloudpolicyIdOptions
	ManagerId string `positional:"true"`
}

func (*CloudpolicyCacheOption) Params

type CloudpolicyCreateOption

type CloudpolicyCreateOption struct {
	NAME        string
	PROVIDER    string `choices:"Aliyun|Google|Aws|Azure|Huawei"`
	Descritpion string
	CloudEnv    string
	POLICY_FILE string
}

func (*CloudpolicyCreateOption) Params

type CloudpolicyGroupOptions

type CloudpolicyGroupOptions struct {
	CloudpolicyIdOptions
	CLOUDGROUP_ID string `help:"Cloudgroup Id" json:"cloudgroup_id"`
}

func (*CloudpolicyGroupOptions) Params

type CloudpolicyIdOptions

type CloudpolicyIdOptions struct {
	ID string `help:"Cloudpolicy Id"`
}

func (*CloudpolicyIdOptions) GetId

func (opts *CloudpolicyIdOptions) GetId() string

func (*CloudpolicyIdOptions) Params

func (opts *CloudpolicyIdOptions) Params() (jsonutils.JSONObject, error)

type CloudpolicyListOptions

type CloudpolicyListOptions struct {
	options.BaseListOptions

	ManagerId    string `json:"manager_id"`
	ClouduserId  string `json:"clouduser_id"`
	CloudgroupId string `json:"cloudgroup_id"`
	PolicyType   string `help:"Filter cloudpolicy by policy type" choices:"system|custom"`
}

func (*CloudpolicyListOptions) Params

type CloudpolicyUpdateOption

type CloudpolicyUpdateOption struct {
	CloudpolicyIdOptions
	Name           string
	Description    string
	PolicyDocument string
}

func (*CloudpolicyUpdateOption) Params

type CloudroleIdOptions

type CloudroleIdOptions struct {
	ID string `help:"Cloudrole Id"`
}

func (*CloudroleIdOptions) GetId

func (opts *CloudroleIdOptions) GetId() string

func (*CloudroleIdOptions) Params

func (opts *CloudroleIdOptions) Params() (jsonutils.JSONObject, error)

type CloudroleListOptions

type CloudroleListOptions struct {
	options.BaseListOptions
}

func (*CloudroleListOptions) Params

func (opts *CloudroleListOptions) Params() (jsonutils.JSONObject, error)

type ClouduserChangeOwnerOptions

type ClouduserChangeOwnerOptions struct {
	ClouduserIdOption
	UserId string `help:"local user id"`
}

func (*ClouduserChangeOwnerOptions) Params

type ClouduserCreateAccessKeyInput

type ClouduserCreateAccessKeyInput struct {
	ClouduserIdOption
	Name string `json:"Name"`
}

func (*ClouduserCreateAccessKeyInput) Params

type ClouduserCreateOptions

type ClouduserCreateOptions struct {
	NAME           string   `help:"Clouduser name"`
	MANAGER_ID     string   `help:"Cloudprovider Id"`
	OwnerId        string   `help:"Owner Id"`
	CloudpolicyIds []string `help:"cloudpolicy ids"`
	CloudgroupIds  []string `help:"cloudgroup ids"`
	Email          string   `help:"email address"`
	MobilePhone    string   `help:"phone number"`
	IsConsoleLogin *bool    `help:"is console login"`
	Password       string   `help:"clouduser password"`
	Notify         *bool    `help:"Notify user which set email when clouduser created"`
}

func (*ClouduserCreateOptions) Params

type ClouduserDeleteAccessKeyInput

type ClouduserDeleteAccessKeyInput struct {
	ClouduserIdOption
	AccessKey string `json:"access_key"`
}

func (*ClouduserDeleteAccessKeyInput) Params

type ClouduserGroupOptions

type ClouduserGroupOptions struct {
	ClouduserIdOption
	CLOUDGROUP_ID string `help:"cloudgroup id" json:"cloudgroup_id"`
}

func (*ClouduserGroupOptions) Params

func (opts *ClouduserGroupOptions) Params() (jsonutils.JSONObject, error)

type ClouduserIdOption

type ClouduserIdOption struct {
	ID string `help:"Clouduser Id or name"`
}

func (*ClouduserIdOption) GetId

func (opts *ClouduserIdOption) GetId() string

func (*ClouduserIdOption) Params

func (opts *ClouduserIdOption) Params() (jsonutils.JSONObject, error)

type ClouduserListAccessKeyInput

type ClouduserListAccessKeyInput struct {
	ClouduserIdOption
}

func (*ClouduserListAccessKeyInput) Params

type ClouduserListOptions

type ClouduserListOptions struct {
	options.BaseListOptions
	CloudaccountId  string `help:"Cloudaccount Id"`
	CloudproviderId string `help:"Cloudprovider Id"`
	CloudpolicyId   string `help:"filter cloudusers by cloudpolicy"`
	CloudgroupId    string `help:"filter cloudusers by cloudgroup"`
}

func (*ClouduserListOptions) Params

func (opts *ClouduserListOptions) Params() (jsonutils.JSONObject, error)

type ClouduserPasswordOptions

type ClouduserPasswordOptions struct {
	ClouduserIdOption
	Password string `help:"clouduser password"`
}

func (*ClouduserPasswordOptions) Params

type ClouduserPolicyListOptions

type ClouduserPolicyListOptions struct {
	options.BaseListOptions
	Clouduser   string `help:"ID or Name of Clouduser"`
	Cloudpolicy string `help:"Policy ID or name"`
}

func (*ClouduserPolicyListOptions) GetContextId

func (opts *ClouduserPolicyListOptions) GetContextId() string

func (*ClouduserPolicyListOptions) Params

type ClouduserPolicyOptions

type ClouduserPolicyOptions struct {
	ClouduserIdOption
	CLOUDPOLICY_ID string `help:"cloudpolicy Id"`
}

func (*ClouduserPolicyOptions) Params

type ClouduserResetPasswordOptions

type ClouduserResetPasswordOptions struct {
	ClouduserIdOption
	Password string `help:"password"`
}

func (*ClouduserResetPasswordOptions) Params

type ClouduserSyncOptions

type ClouduserSyncOptions struct {
	ClouduserIdOption
	PolicyOnly bool `help:"Ony sync clouduser policies for cloud"`
}

func (*ClouduserSyncOptions) Params

func (opts *ClouduserSyncOptions) Params() (jsonutils.JSONObject, error)

type SAMLProviderCreateOptions

type SAMLProviderCreateOptions struct {
	CLOUDACCOUNT_ID string
}

func (*SAMLProviderCreateOptions) Params

type SAMLProviderIdOptions

type SAMLProviderIdOptions struct {
	ID string `help:"SAML Provider Id"`
}

func (*SAMLProviderIdOptions) GetId

func (opts *SAMLProviderIdOptions) GetId() string

func (*SAMLProviderIdOptions) Params

func (opts *SAMLProviderIdOptions) Params() (jsonutils.JSONObject, error)

type SAMLProviderListOptions

type SAMLProviderListOptions struct {
	options.BaseListOptions
}

func (*SAMLProviderListOptions) Params

type SamluserCreateOptions

type SamluserCreateOptions struct {
	OwnerId         string
	CLOUDGROUP_ID   string `help:"CloudgroupId"`
	CLOUDACCOUNT_ID string `help:"CloudaccountId"`
}

func (*SamluserCreateOptions) Params

func (opts *SamluserCreateOptions) Params() (jsonutils.JSONObject, error)

type SamluserIdOptions

type SamluserIdOptions struct {
	ID string `help:"SAML user Id"`
}

func (*SamluserIdOptions) GetId

func (opts *SamluserIdOptions) GetId() string

func (*SamluserIdOptions) Params

func (opts *SamluserIdOptions) Params() (jsonutils.JSONObject, error)

type SamluserListOptions

type SamluserListOptions struct {
	options.BaseListOptions
	CloudgroupId   string `help:"Filter by cloudgroup"`
	CloudaccountId string `help:"Filter by cloudaccount"`
}

func (*SamluserListOptions) Params

func (opts *SamluserListOptions) Params() (jsonutils.JSONObject, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL