options

package
v0.3.10-0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: Apache-2.0, Apache-2.0 Imports: 19 Imported by: 34

Documentation

Index

Constants

View Source
const (
	ListOrderAsc  = "asc"
	ListOrderDesc = "desc"
)

Variables

View Source
var BaseListOptionsType = reflect.TypeOf((*BaseListOptions)(nil)).Elem()

Functions

func Bool

func Bool(v bool) *bool

Bool returns a pointer to bool type with the same value as the argument. This is intended to be used for literal initialization of options

func BoolV

func BoolV(p *bool) bool

BoolV returns the bool value as pointed to by the argument if it's non-nil, return false otherwise

func Int

func Int(v int) *int

Int returns a pointer to int type with the same value as the argument. This is intended to be used for literal initialization of options

func IntV

func IntV(p *int) int

IntV returns the integer value as pointed to by the argument if it's non-nil, return 0 otherwise

func ListStructToParams

func ListStructToParams(v interface{}) (*jsonutils.JSONDict, error)

ListStructToParams converts the struct as pointed to by the argument to JSON dict params, taking into account .BaseListOptions.Params() if it exists

func SplitTag

func SplitTag(tag string) tagutils.TTagSet

func String

func String(v string) *string

func StringV

func StringV(p *string) string

func StructToParams

func StructToParams(v interface{}) (*jsonutils.JSONDict, error)

StructToParams converts the struct as pointed to by the argument to JSON dict params, ignoring any embedded in struct

Types

type AlarmEventListOptions

type AlarmEventListOptions struct {
	BaseListOptions
	NodeLabels     string `help:"Service tree node labels"`
	MetricName     string `help:"Metric name"`
	HostName       string `help:"Host name"`
	HostIp         string `help:"Host IP address"`
	AlarmLevel     string `help:"Alarm level"`
	AlarmCondition string `help:"Concrete alarm rule"`
	Template       string `help:"Template number of the alarm condition"`
	AckStatus      string `help:"Alarm event ack status"`
}

type AnsiblePlaybookCommonOptions

type AnsiblePlaybookCommonOptions struct {
	Host []string `help:"name or id of server or host in format '<[server:]id|host:id>|ipaddr var=val'"`
	Mod  []string `help:"ansible modules and their arguments in format 'name k1=v1 k2=v2'"`
	File []string `help:"files for use by modules, e.g. name=content, name=@file"`
}

func (*AnsiblePlaybookCommonOptions) ToPlaybook

func (opts *AnsiblePlaybookCommonOptions) ToPlaybook() (*ansible.Playbook, error)

type AnsiblePlaybookCreateOptions

type AnsiblePlaybookCreateOptions struct {
	NAME string `help:"name of the playbook"`
	AnsiblePlaybookCommonOptions
}

func (*AnsiblePlaybookCreateOptions) Params

type AnsiblePlaybookIdOptions

type AnsiblePlaybookIdOptions struct {
	ID string `help:"name/id of the playbook"`
}

type AnsiblePlaybookListOptions

type AnsiblePlaybookListOptions struct {
	BaseListOptions
}

type AnsiblePlaybookUpdateOptions

type AnsiblePlaybookUpdateOptions struct {
	ID   string `json:"-" help:"name/id of the playbook"`
	Name string
	AnsiblePlaybookCommonOptions
}

func (*AnsiblePlaybookUpdateOptions) Params

type BaseCreateOptions

type BaseCreateOptions struct {
	NAME string `json:"name" help:"Resource Name"`
	Desc string `metavar:"<DESCRIPTION>" help:"Description" json:"description"`
}

func (*BaseCreateOptions) Params

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

type BaseIdOptions

type BaseIdOptions struct {
	ID string `json:"-"`
}

func (*BaseIdOptions) GetId

func (o *BaseIdOptions) GetId() string

func (*BaseIdOptions) Params

func (o *BaseIdOptions) Params() (jsonutils.JSONObject, error)

type BaseIdsOptions

type BaseIdsOptions struct {
	ID []string `json:"-"`
}

func (*BaseIdsOptions) GetIds

func (o *BaseIdsOptions) GetIds() []string

func (*BaseIdsOptions) Params

func (o *BaseIdsOptions) Params() (jsonutils.JSONObject, error)

type BaseListOptions

type BaseListOptions struct {
	Limit          *int     `default:"20" help:"Page limit"`
	Offset         *int     `default:"0" help:"Page offset"`
	OrderBy        []string `help:"Name of the field to be ordered by"`
	Order          string   `help:"List order" choices:"desc|asc"`
	Details        *bool    `help:"Show more details" default:"false"`
	ShowFailReason *bool    `help:"show fail reason fields"`
	Search         string   `help:"Filter results by a simple keyword search"`
	Meta           *bool    `help:"Piggyback metadata information" json:"with_meta" token:"meta"`
	Filter         []string `help:"Filters"`
	JointFilter    []string `help:"Filters with joint table col; joint_tbl.related_key(origin_key).filter_col.filter_cond(filters)"`
	FilterAny      *bool    `help:"If true, match if any of the filters matches; otherwise, match if all of the filters match"`

	Admin         *bool    `help:"Is an admin call?"`
	Tenant        string   `help:"Tenant ID or Name" alias:"project"`
	ProjectDomain string   `help:"Project domain filter"`
	User          string   `help:"User ID or Name"`
	Field         []string `help:"Show only specified fields"`
	Scope         string   `help:"resource scope" choices:"system|domain|project|user"`

	System           *bool `help:"Show system resource"`
	PendingDelete    *bool `help:"Show only pending deleted resources"`
	PendingDeleteAll *bool `help:"Show also pending-deleted resources" json:"-"`
	DeleteAll        *bool `help:"Show also deleted resources" json:"-"`
	ShowEmulated     *bool `help:"Show all resources including the emulated resources"`

	ExportKeys string `help:"Export field keys"`
	ExtraListOptions

	Tags      []string `` /* 151-byte string literal not displayed */
	NoTags    []string `` /* 148-byte string literal not displayed */
	UserTags  []string `help:"UserTags info, key and value separated by \"=\", keyvalue pairs separated by \";\", eg: group=rd" json:"-"`
	CloudTags []string `help:"CloudTags info, key and value separated by \"=\", keyvalue pairs separated by \";\", eg: price_key=cn-beijing" json:"-"`

	NoUserTags  []string `` /* 131-byte string literal not displayed */
	NoCloudTags []string `` /* 139-byte string literal not displayed */

	ProjectTags   []string `help:"filter by project tags, key and value separated by \"=\", keyvalue pairs separated by \";\"" json:"-"`
	NoProjectTags []string `help:"filter by no these project tags, key and value separated by \"=\", keyvalue pairs separated by \";\"" json:"-"`
	DomainTags    []string `help:"filter by domain project tags, key and value separated by \"=\", keyvalue pairs separated by \";\"" json:"-"`
	NoDomainTags  []string `help:"filter by no these domain tags, key and value separated by \"=\", keyvalue pairs separated by \";\"" json:"-"`

	Manager      string   `help:"List objects belonging to the cloud provider" json:"manager,omitempty"`
	Account      string   `help:"List objects belonging to the cloud account" json:"account,omitempty"`
	Provider     []string `` /* 223-byte string literal not displayed */
	Brand        []string `help:"List objects belonging to a special brand"`
	CloudEnv     string   `help:"Cloud environment" choices:"public|private|onpremise|private_or_onpremise" json:"cloud_env,omitempty"`
	PublicCloud  *bool    `help:"List objects belonging to public cloud" json:"public_cloud"`
	PrivateCloud *bool    `help:"List objects belonging to private cloud" json:"private_cloud"`
	IsOnPremise  *bool    `help:"List objects belonging to on premise infrastructures" token:"on-premise" json:"is_on_premise"`
	IsManaged    *bool    `help:"List objects managed by external providers" token:"managed" json:"is_managed"`

	PagingMarker string `help:"Marker for pagination" json:"paging_marker"`
	PagingOrder  string `help:"paging order" choices:"DESC|ASC"`

	OrderByTag string `help:"Order results by tag values, composed by a tag key and order, e.g user:部门:ASC"`

	Delete string `help:"show deleted records"`
}

func (*BaseListOptions) GetExportKeys

func (o *BaseListOptions) GetExportKeys() string

func (*BaseListOptions) Params

func (opts *BaseListOptions) Params() (*jsonutils.JSONDict, error)

type BasePublicOptions

type BasePublicOptions struct {
	ID            string   `help:"ID or name of resource" json:"-"`
	Scope         string   `help:"sharing scope" choices:"system|domain"`
	SharedDomains []string `help:"share to domains"`
}

func (*BasePublicOptions) GetId

func (opts *BasePublicOptions) GetId() string

func (*BasePublicOptions) Params

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

type BaseShowOptions

type BaseShowOptions struct {
	BaseIdOptions
	WithMeta       *bool `help:"With meta data"`
	ShowFailReason *bool `help:"show fail reason fields"`
}

func (BaseShowOptions) Params

func (o BaseShowOptions) Params() (jsonutils.JSONObject, error)

type BaseUpdateOptions

type BaseUpdateOptions struct {
	ID   string `help:"ID or Name of resource to update"`
	Name string `help:"Name of resource to update"`
	Desc string `metavar:"<DESCRIPTION>" help:"Description" json:"description"`
}

func (*BaseUpdateOptions) GetId

func (opts *BaseUpdateOptions) GetId() string

func (*BaseUpdateOptions) Params

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

type ChangeOwnerOptions

type ChangeOwnerOptions struct {
	BaseIdOptions
	ProjectDomain string `json:"project_domain" help:"target domain"`
}

func (ChangeOwnerOptions) Params

type ClouaccountChangeOwnerOptions

type ClouaccountChangeOwnerOptions struct {
	SCloudAccountIdOptions
	ProjectDomain string `json:"project_domain" help:"target domain"`
}

func (*ClouaccountChangeOwnerOptions) Params

type ClouaccountChangeProjectOptions

type ClouaccountChangeProjectOptions struct {
	SCloudAccountIdOptions
	PROJECT string `json:"project" help:"target domain"`
}

func (*ClouaccountChangeProjectOptions) Params

type ClouaccountProjectMappingOptions

type ClouaccountProjectMappingOptions struct {
	SCloudAccountIdOptions
	ProjectMappingId string `json:"project_mapping_id" help:"project mapping id"`
}

func (*ClouaccountProjectMappingOptions) Params

type CloudaccountEnableAutoSyncOptions

type CloudaccountEnableAutoSyncOptions struct {
	SCloudAccountIdOptions
	SyncIntervalSeconds int `help:"new sync interval in seconds"`
}

func (*CloudaccountEnableAutoSyncOptions) Params

type CloudaccountListOptions

type CloudaccountListOptions struct {
	BaseListOptions
	Capability []string `help:"capability filter" choices:"project|compute|network|loadbalancer|objectstore|rds|cache|event|tablestore"`

	//DistinctField string `help:"distinct field"`
	ProxySetting string `help:"Proxy setting id or name"`
}

func (*CloudaccountListOptions) Params

type CloudaccountPublicOptions

type CloudaccountPublicOptions struct {
	SCloudAccountIdOptions
	Scope         string   `help:"public_sccope" choices:"domain|system" json:"scope"`
	SharedDomains []string `help:"shared domains" json:"shared_domains"`
	ShareMode     string   `help:"share_mode" choices:"account_domain|provider_domain|system"`
}

func (*CloudaccountPublicOptions) Params

type CloudaccountShareModeOptions

type CloudaccountShareModeOptions struct {
	SCloudAccountIdOptions
	MODE string `help:"cloud account share mode" choices:"account_domain|system|provider_domain"`
}

func (*CloudaccountShareModeOptions) Params

type CloudaccountSyncOptions

type CloudaccountSyncOptions struct {
	SCloudAccountIdOptions

	api.SyncRangeInput
}

func (*CloudaccountSyncOptions) Params

type CloudaccountSyncSkusOptions

type CloudaccountSyncSkusOptions struct {
	SCloudAccountIdOptions
	RESOURCE      string `help:"Resource of skus" choices:"serversku|elasticcachesku|dbinstance_sku|nat_sku|nas_sku"`
	Force         bool   `help:"Force sync no matter what"`
	Cloudprovider string `help:"provider to sync"`
	Region        string `help:"region to sync"`
}

func (*CloudaccountSyncSkusOptions) Params

type CloudaccountUpdateCredentialOptions

type CloudaccountUpdateCredentialOptions struct {
	SCloudAccountIdOptions
	AccessKeyID     string `help:"Aiyun|HuaWei|Aws access_key_id"`
	AccessKeySecret string `help:"Aiyun|HuaWei|Aws access_key_secret"`
	AppID           string `help:"Qcloud appid"`
	SecretID        string `help:"Qcloud secret_id"`
	SecretKey       string `help:"Qcloud secret_key"`
	ProjectName     string `help:"OpenStack project_name"`
	Username        string `help:"OpenStack|VMware username"`
	Password        string `help:"OpenStack|VMware password"`
	EndpointType    string `help:"OpenStack endpointType"`
	ClientID        string `help:"Azure tenant_id"`
	ClientSecret    string `help:"Azure clinet_secret"`
}

func (*CloudaccountUpdateCredentialOptions) Params

type CloudregionIdOptions

type CloudregionIdOptions struct {
	ID string `help:"Cloudregion Id"`
}

func (*CloudregionIdOptions) GetId

func (opts *CloudregionIdOptions) GetId() string

func (*CloudregionIdOptions) Params

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

type CloudregionSkuSyncOptions

type CloudregionSkuSyncOptions struct {
	RESOURCE string `help:"Resource of skus" choices:"serversku|elasticcachesku|dbinstance_sku"`
	SkuSyncOptions
}

func (*CloudregionSkuSyncOptions) Params

type DBInstanceAccountIdOptions

type DBInstanceAccountIdOptions struct {
	ID string `help:"ID of DBInstanceaccount"`
}

func (*DBInstanceAccountIdOptions) GetId

func (opts *DBInstanceAccountIdOptions) GetId() string

func (*DBInstanceAccountIdOptions) Params

type DBInstanceAccountListOptions

type DBInstanceAccountListOptions struct {
	BaseListOptions
	DBInstance string `help:"ID or Name of DBInstance" json:"dbinstance"`
}

func (*DBInstanceAccountListOptions) Params

type DBInstanceDatabaseCreateOptions

type DBInstanceDatabaseCreateOptions struct {
	NAME         string
	DBINSTANCE   string `help:"ID or Name of DBInstance" json:"dbinstance"`
	CharacterSet string `help:"CharacterSet for database"`
}

func (*DBInstanceDatabaseCreateOptions) Params

type DBInstanceDatabaseIdOptions

type DBInstanceDatabaseIdOptions struct {
	ID string `help:"ID of DBInstancedatabase"`
}

func (*DBInstanceDatabaseIdOptions) GetId

func (opts *DBInstanceDatabaseIdOptions) GetId() string

func (*DBInstanceDatabaseIdOptions) Params

type DBInstanceDatabaseListOptions

type DBInstanceDatabaseListOptions struct {
	BaseListOptions
	DBInstance string `help:"ID or Name of DBInstance" json:"dbinstance"`
}

func (*DBInstanceDatabaseListOptions) Params

type DBInstanceSkuIdOption

type DBInstanceSkuIdOption struct {
	ID string `help:"DBInstance Id or name"`
}

func (*DBInstanceSkuIdOption) GetId

func (opts *DBInstanceSkuIdOption) GetId() string

func (*DBInstanceSkuIdOption) Params

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

type DBInstanceSkuListOption

type DBInstanceSkuListOption struct {
	BaseListOptions
	Engine        string
	EngineVersion string
	Category      string
	StorageType   string
	Cloudregion   string
	VcpuCount     *int
	VmemSizeMb    *int
}

func (*DBInstanceSkuListOption) Params

type DNSCreateOptions

type DNSCreateOptions struct {
	NAME     string `help:"DNS name to create"`
	TTL      int64  `help:"TTL in seconds" positional:"false"`
	Desc     string `help:"Description" json:"description"`
	IsPublic *bool  `help:"Make the newly created record public to all"`

	DNSRecordOptions
}

func (*DNSCreateOptions) Params

func (opts *DNSCreateOptions) Params() (*jsonutils.JSONDict, error)

type DNSGetOptions

type DNSGetOptions struct {
	ID string `help:"ID of DNS record to show" json:"-"`
}

type DNSListOptions

type DNSListOptions struct {
	BaseListOptions

	IsPublic string `choices:"0|1"`
}

type DNSRecordOptions

type DNSRecordOptions struct {
	A     []string `help:"DNS A record" metavar:"A_RECORD" positional:"false"`
	AAAA  []string `help:"DNS AAAA record" metavar:"AAAA_RECORD" positional:"false"`
	CNAME string   `help:"DNS CNAME record" metavar:"CNAME_RECORD" positional:"false"`
	PTR   string   `help:"DNS PTR record" metavar:"PTR_RECORD" positional:"false"`

	SRVHost string   `help:"(deprecated) DNS SRV record, server of service" metavar:"SRV_RECORD_HOST" positional:"false"`
	SRVPort int64    `help:"(deprecated) DNS SRV record, port of service" metavar:"SRV_RECORD_PORT" positional:"false"`
	SRV     []string `help:"DNS SRV record, in the format of host:port:weight:priority" metavar:"SRV_RECORD" positional:"false"`
}

type DNSUpdateOptions

type DNSUpdateOptions struct {
	ID   string `help:"ID of DNS record to update" json:"-"`
	Name string `help:"Domain name"`
	TTL  int64  `help:"TTL in seconds" positional:"false"`
	Desc string `help:"Description" json:"description"`

	DNSRecordOptions
}

func (*DNSUpdateOptions) Params

func (opts *DNSUpdateOptions) Params() (*jsonutils.JSONDict, error)

type DNSUpdateRecordsOptions

type DNSUpdateRecordsOptions struct {
	ID string `help:"ID of dns record to modify" json:"-"`

	DNSRecordOptions
}

func (*DNSUpdateRecordsOptions) Params

func (opts *DNSUpdateRecordsOptions) Params() (*jsonutils.JSONDict, error)

type DevtoolTemplateBindingOptions

type DevtoolTemplateBindingOptions struct {
	DevtoolTemplateIdOptions
	ServerID string `help:"host/vm name/id to apply"`
}

type DevtoolTemplateCommonOptions

type DevtoolTemplateCommonOptions struct {
	DevtoolTemplateCronjobOptions
	Host []string `help:"name or id of server or host in format '<[server:]id|host:id>|ipaddr var=val'"`
	Mod  []string `help:"ansible modules and their arguments in format 'name k1=v1 k2=v2'"`
	File []string `help:"files for use by modules, e.g. name=content, name=@file"`
}

func (*DevtoolTemplateCommonOptions) ToPlaybook

func (opts *DevtoolTemplateCommonOptions) ToPlaybook() (*ansible.Playbook, error)

type DevtoolTemplateCreateOptions

type DevtoolTemplateCreateOptions struct {
	NAME string `help:"name of the playbook"`
	DevtoolTemplateCommonOptions
}

func (*DevtoolTemplateCreateOptions) Params

type DevtoolTemplateCronjobOptions

type DevtoolTemplateCronjobOptions struct {
	Day      int   `help:"Cronjob runs at given day" default:"0"`
	Hour     int   `help:"Cronjob runs at given hour" default:"0"`
	Min      int   `help:"Cronjob runs at given min" default:"0"`
	Sec      int   `help:"Cronjob runs at given sec" default:"0"`
	Interval int64 `help:"Cronjob runs at given interval" default:"0"`
	Start    bool  `help:"start job when created" default:"false"`
	Enabled  bool  `help:"Set job status enabled" default:"false"`
}

type DevtoolTemplateIdOptions

type DevtoolTemplateIdOptions struct {
	ID string `help:"name/id of the playbook"`
}

type DevtoolTemplateListOptions

type DevtoolTemplateListOptions struct {
	BaseListOptions
}

type DevtoolTemplateUpdateOptions

type DevtoolTemplateUpdateOptions struct {
	ID   string `json:"-" help:"name/id of the playbook"`
	Name string
	DevtoolTemplateCommonOptions
	Rebind bool `help:"Unbind and Bind all related servers" default:"false"`
}

func (*DevtoolTemplateUpdateOptions) Params

type DnsRecordSetCreateOptions

type DnsRecordSetCreateOptions struct {
	EnabledStatusCreateOptions
	DNS_ZONE_ID   string `help:"Dns Zone Id"`
	DNS_TYPE      string `choices:"A|AAAA|CAA|CNAME|MX|NS|SRV|SOA|TXT|PTR|DS|DNSKEY|IPSECKEY|NAPTR|SPF|SSHFP|TLSA|REDIRECT_URL|FORWARD_URL"`
	DNS_VALUE     string `help:"Dns Value"`
	TTL           int64  `help:"Dns ttl"`
	MxPriority    int64  `help:"dns mx type mxpriority"`
	Provider      string `help:"Dns triffic policy provider" choices:"Aws|Qcloud|Aliyun"`
	PolicyType    string `choices:"Simple|ByCarrier|ByGeoLocation|BySearchEngine|IpRange|Weighted|Failover|MultiValueAnswer|Latency"`
	PolicyValue   string `help:"Dns Traffic policy value"`
	PolicyOptions string
}

func (*DnsRecordSetCreateOptions) Params

type DnsRecordSetIdOptions

type DnsRecordSetIdOptions struct {
	ID string
}

func (*DnsRecordSetIdOptions) GetId

func (opts *DnsRecordSetIdOptions) GetId() string

func (*DnsRecordSetIdOptions) Params

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

type DnsRecordSetListOptions

type DnsRecordSetListOptions struct {
	BaseListOptions
	DnsZoneId string `help:"DnsZone Id or Name"`
}

func (*DnsRecordSetListOptions) Params

type DnsRecordSetTrafficPolicyOptions

type DnsRecordSetTrafficPolicyOptions struct {
	DnsRecordSetIdOptions

	PROVIDER      string `help:"provider" choices:"Qcloud|Aws"`
	POLICY_TYPE   string `help:"PolicyType" choices:"Simple|ByCarrier|ByGeoLocation|BySearchEngine|IpRange|Weighted|Failover|MultiValueAnswer|Latency"`
	PolicyValue   string
	PolicyOptions string `help:"Json format policy"`
}

func (DnsRecordSetTrafficPolicyOptions) Params

type DnsRecordSetUpdateOptions

type DnsRecordSetUpdateOptions struct {
	BaseUpdateOptions
	DnsType       string `choices:"A|AAAA|CAA|CNAME|MX|NS|SRV|SOA|TXT|PRT|DS|DNSKEY|IPSECKEY|NAPTR|SPF|SSHFP|TLSA|REDIRECT_URL|FORWARD_URL"`
	DnsValue      string
	Ttl           int64
	MxPriority    int64  `help:"dns mx type mxpriority"`
	Provider      string `help:"Dns triffic policy provider" choices:"Aws|Qcloud|Aliyun"`
	PolicyType    string `choices:"Simple|ByCarrier|ByGeoLocation|BySearchEngine|IpRange|Weighted|Failover|MultiValueAnswer|Latency"`
	PolicyValue   string `help:"Dns Traffic policy value"`
	PolicyOptions string
}

func (*DnsRecordSetUpdateOptions) Params

type DnsTrafficPolicyCreateOptions

type DnsTrafficPolicyCreateOptions struct {
	BaseCreateOptions
	PROVIDER      string `choices:"Aws|Qcloud"`
	POLICY_TYPE   string `choices:"Simple|ByCarrier|ByGeoLocation|BySearchEngine|IpRange|Weighted|Failover|MultiValueAnswer|Latency"`
	PolicyValue   string
	PolicyOptions string
}

func (*DnsTrafficPolicyCreateOptions) Params

type DnsTrafficPolicyListOptions

type DnsTrafficPolicyListOptions struct {
	BaseListOptions
	PolicyType string `choices:"Simple|ByCarrier|ByGeoLocation|BySearchEngine|IpRange|Weighted|Failover|MultiValueAnswer|Latency"`
}

func (*DnsTrafficPolicyListOptions) Params

type DnsZoneAddVpcsOptions

type DnsZoneAddVpcsOptions struct {
	SDnsZoneIdOptions
	VPC_IDS string
}

func (*DnsZoneAddVpcsOptions) Params

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

type DnsZoneCacheIdOptions

type DnsZoneCacheIdOptions struct {
	ID string `help:"Dns zone cache Id or Name"`
}

func (DnsZoneCacheIdOptions) GetId

func (opts DnsZoneCacheIdOptions) GetId() string

func (DnsZoneCacheIdOptions) Params

type DnsZoneCacheListOptions

type DnsZoneCacheListOptions struct {
	BaseListOptions
	DnsZoneId string `help:"Dns Zone Id"`
}

func (*DnsZoneCacheListOptions) Params

type DnsZoneCacheOptions

type DnsZoneCacheOptions struct {
	SDnsZoneIdOptions
	CLOUDACCOUNT_ID string
}

func (*DnsZoneCacheOptions) Params

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

type DnsZoneCapabilitiesOptions

type DnsZoneCapabilitiesOptions struct {
}

func (*DnsZoneCapabilitiesOptions) GetId

func (opts *DnsZoneCapabilitiesOptions) GetId() string

func (*DnsZoneCapabilitiesOptions) Params

type DnsZoneCreateOptions

type DnsZoneCreateOptions struct {
	EnabledStatusCreateOptions
	ZONE_TYPE      string   `choices:"PublicZone|PrivateZone" metavar:"zone_type"`
	VpcIds         []string `help:"Vpc Ids"`
	CloudaccountId string   `help:"Cloudaccount id"`
	Options        string
}

func (*DnsZoneCreateOptions) Params

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

type DnsZoneRemoveVpcsOptions

type DnsZoneRemoveVpcsOptions struct {
	SDnsZoneIdOptions
	VPC_IDS string
}

func (*DnsZoneRemoveVpcsOptions) Params

type DnsZoneUncacheOptions

type DnsZoneUncacheOptions struct {
	SDnsZoneIdOptions
	CLOUDACCOUNT_ID string
}

func (*DnsZoneUncacheOptions) Params

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

type DomainStatisticsOptions

type DomainStatisticsOptions struct {
}

func (DomainStatisticsOptions) Property

func (o DomainStatisticsOptions) Property() string

type DomainTagValuePairsOptions

type DomainTagValuePairsOptions struct {
	TagValuePairsOptions
}

func (*DomainTagValuePairsOptions) Property

func (opts *DomainTagValuePairsOptions) Property() string

type DomainTagValueTreeOptions

type DomainTagValueTreeOptions struct {
	TagValueTreeOptions
}

func (*DomainTagValueTreeOptions) Property

func (opts *DomainTagValueTreeOptions) Property() string

type ElasticCacheAccountCreateOptions

type ElasticCacheAccountCreateOptions struct {
	Elasticcache     string `help:"elastic cache instance id"`
	Name             string
	Password         string
	AccountPrivilege string `help:"account privilege" choices:"read|write|repl" default:"read"`
}

type ElasticCacheAclCreateOptions

type ElasticCacheAclCreateOptions struct {
	Elasticcache string `help:"elastic cache instance id"`
	Name         string
	IpList       string `help:"elastic cache acl ip list, split by ','"`
}

type ElasticCacheAclUpdateOptions

type ElasticCacheAclUpdateOptions struct {
	Id     string `help:"elastic cache acl id"`
	IpList string `help:"elastic cache acl ip list, split by ','"`
}

type ElasticCacheAutoRenewOptions

type ElasticCacheAutoRenewOptions struct {
	ElasticCacheIdOptions
	AutoRenew bool `help:"Set elastic cache auto renew or manual renew"`
}

func (*ElasticCacheAutoRenewOptions) Params

type ElasticCacheBackupCreateOptions

type ElasticCacheBackupCreateOptions struct {
	Elasticcache string `help:"elastic cache instance id"`
	Name         string
}

type ElasticCacheCreateOptions

type ElasticCacheCreateOptions struct {
	NAME          string
	Manager       string
	Cloudregion   string
	Zone          string
	VpcId         string
	Network       string   `help:"network id"`
	SecurityGroup string   `help:"elastic cache security group. required by huawei."`
	SecgroupIds   []string `help:"elastic cache security group. required by qcloud."`
	Engine        string   `choices:"redis"`
	EngineVersion string   `choices:"2.8|3.0|3.2|4.0|5.0"`
	PrivateIP     string   `help:"private ip address in specificated network"`
	Password      string   `help:"set auth password"`
	InstanceType  string
	CapacityMB    string   `help:"elastic cache capacity. required by huawei."`
	BillingType   string   `choices:"postpaid|prepaid" default:"postpaid"`
	Month         int      `help:"billing duration (unit:month)"`
	Tags          []string `help:"Tags info,prefix with 'user:', eg: user:project=default" json:"-"`
}

func (*ElasticCacheCreateOptions) Params

type ElasticCacheIdOptions

type ElasticCacheIdOptions struct {
	ID string
}

type ElasticCacheParameterUpdateOptions

type ElasticCacheParameterUpdateOptions struct {
	Id    string `help:"elastic cache parameter id"`
	Value string `help:"elastic cache parameter value"`
}

type ElasticCacheRemoteUpdateOptions

type ElasticCacheRemoteUpdateOptions struct {
	ID string `json:"-"`
	computeapi.ElasticcacheRemoteUpdateInput
}

type ElasticCacheRenewOptions

type ElasticCacheRenewOptions struct {
	ID       string `json:"-"`
	Duration string `help:"valid duration of the elastic cache, e.g. 1H, 1D, 1W, 1M, 1Y, ADMIN ONLY option"`
}

type EmptyOption

type EmptyOption struct{}

type EnabledStatusCreateOptions

type EnabledStatusCreateOptions struct {
	BaseCreateOptions
	Status  string
	Enabled *bool `help:"turn on enabled flag"`
}

type EventPurgeSplitableOptions

type EventPurgeSplitableOptions struct {
	Service string `help:"service" choices:"compute|identity|image|log|cloudevent" default:"compute"`
	Tables  []string
}

func (*EventPurgeSplitableOptions) Params

type EventSplitableOptions

type EventSplitableOptions struct {
	ID      string `choices:"splitable|splitable-export"`
	Service string `help:"service" choices:"compute|identity|image|log|cloudevent" default:"compute"`
	Table   string `help:"when id is splitable-export table must be input"`
}

func (*EventSplitableOptions) GetId

func (self *EventSplitableOptions) GetId() string

func (*EventSplitableOptions) Params

func (self *EventSplitableOptions) Params() (jsonutils.JSONObject, error)

type ExtraListOptions

type ExtraListOptions struct {
	ExportFile  string `help:"Export to file" metavar:"<EXPORT_FILE_PATH>" json:"-"`
	ExportTexts string `help:"Export field displayname texts" json:"-"`
}

func (ExtraListOptions) GetContextId

func (o ExtraListOptions) GetContextId() string

func (ExtraListOptions) GetExportFile

func (o ExtraListOptions) GetExportFile() string

func (ExtraListOptions) GetExportTexts

func (o ExtraListOptions) GetExportTexts() string

type IParamsOptions

type IParamsOptions interface {
	Params() (*jsonutils.JSONDict, error)
}

type InterVpcNetworkAddVpcOPtions

type InterVpcNetworkAddVpcOPtions struct {
	ID    string `json:"Vpc peering connection ID"`
	VpcId string `json:"Vpc ID"`
}

func (*InterVpcNetworkAddVpcOPtions) GetId

func (opts *InterVpcNetworkAddVpcOPtions) GetId() string

func (*InterVpcNetworkAddVpcOPtions) Params

type InterVpcNetworkCreateOPtions

type InterVpcNetworkCreateOPtions struct {
	EnabledStatusCreateOptions
	ManagerId string
}

func (*InterVpcNetworkCreateOPtions) Params

type InterVpcNetworkIdOPtions

type InterVpcNetworkIdOPtions struct {
	ID string `json:"Vpc peering connection ID"`
}

func (*InterVpcNetworkIdOPtions) GetId

func (opts *InterVpcNetworkIdOPtions) GetId() string

func (*InterVpcNetworkIdOPtions) Params

type InterVpcNetworkListOPtions

type InterVpcNetworkListOPtions struct {
	BaseListOptions
}

func (*InterVpcNetworkListOPtions) Params

type InterVpcNetworkRemoveVpcOPtions

type InterVpcNetworkRemoveVpcOPtions struct {
	ID    string `json:"Vpc peering connection ID"`
	VpcId string `json:"Vpc ID"`
}

func (*InterVpcNetworkRemoveVpcOPtions) GetId

func (*InterVpcNetworkRemoveVpcOPtions) Params

type InterVpcNetworkRouteIdptions

type InterVpcNetworkRouteIdptions struct {
	ID string
}

func (*InterVpcNetworkRouteIdptions) GetId

func (opts *InterVpcNetworkRouteIdptions) GetId() string

func (*InterVpcNetworkRouteIdptions) Params

type InterVpcNetworkRouteListOptions

type InterVpcNetworkRouteListOptions struct {
	BaseListOptions
	InterVpcNetworkId string
	Cidr              string
}

func (*InterVpcNetworkRouteListOptions) Params

type MetadataListOptions

type MetadataListOptions struct {
	Resources []string `help:"list of resource e.g server、disk、eip、snapshot, empty will show all metadata"`
	Service   string   `help:"service type"`

	SysMeta   *bool `help:"Show sys metadata only"`
	CloudMeta *bool `help:"Show cloud metadata olny"`
	UserMeta  *bool `help:"Show user metadata olny"`

	Admin *bool `help:"Show all metadata"`

	WithSysMeta   *bool `help:"Show sys metadata"`
	WithCloudMeta *bool `help:"Show cloud metadata"`
	WithUserMeta  *bool `help:"Show user metadata"`

	Key   []string `help:"key"`
	Value []string `help:"value"`

	Limit  *int `help:"limit"`
	Offset *int `help:"offset"`

	KeyOnly *bool `help:"show key only"`
}

type MultiArchListOptions

type MultiArchListOptions struct {
	OsArch string `help:"Filter resource by arch" choices:"i386|x86|x86_32|x86_64|arm|aarch32|aarch64"`
}

func (*MultiArchListOptions) Params

func (o *MultiArchListOptions) Params() (*jsonutils.JSONDict, error)

type NetworkAddressCreateOptions

type NetworkAddressCreateOptions struct {
	ParentType string `help:"object type" choices:"guestnetwork" default:"guestnetwork"`
	ParentId   string `help:"object id"`

	Guest             string `help:"guest name or uuid" json:"guest_id"`
	GuestnetworkIndex int    `help:"guest network interface index"`

	Type   string `help:"address type" choices:"sub_ip" default:"sub_ip"`
	IPAddr string `help:"preferred ip address"`

	Count int `help:"create multiple addresses" json:",omitzero"`
}

func (*NetworkAddressCreateOptions) GetCountParam

func (opts *NetworkAddressCreateOptions) GetCountParam() int

func (*NetworkAddressCreateOptions) Params

type NetworkAddressIdOptions

type NetworkAddressIdOptions struct {
	ID string
}

func (*NetworkAddressIdOptions) GetId

func (opts *NetworkAddressIdOptions) GetId() string

func (*NetworkAddressIdOptions) Params

type NetworkAddressListOptions

type NetworkAddressListOptions struct {
	BaseListOptions

	Type       string
	ParentType string
	ParentId   string
	NetworkId  string
	IpAddr     string

	GuestId []string
}

func (*NetworkAddressListOptions) Params

type NetworkIdOptions

type NetworkIdOptions struct {
	ID string `help:"ID or Name of the network to show"`
}

func (*NetworkIdOptions) GetId

func (opts *NetworkIdOptions) GetId() string

func (*NetworkIdOptions) Params

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

type NetworkListOptions

type NetworkListOptions struct {
	BaseListOptions

	Ip         string   `help:"search networks that contain this IP"`
	ZoneIds    []string `help:"search networks in zones"`
	Wire       string   `help:"search networks belongs to a wire" json:"-"`
	Host       string   `help:"search networks attached to a host"`
	Vpc        string   `help:"search networks belongs to a VPC"`
	Region     string   `help:"search networks belongs to a CloudRegion" json:"cloudregion"`
	City       string   `help:"search networks belongs to a city"`
	Usable     *bool    `help:"search usable networks"`
	ServerType string   `help:"search networks belongs to a ServerType" choices:"baremetal|container|eip|guest|ipmi|pxe"`
	Schedtag   string   `help:"filter networks by schedtag"`

	HostSchedtagId string `help:"filter by host schedtag"`

	IsAutoAlloc *bool `help:"search network with is_auto_alloc"`
	IsClassic   *bool `help:"search classic on-premise network"`

	Status string `help:"filter by network status"`

	GuestIpStart []string `help:"search by guest_ip_start"`
	GuestIpEnd   []string `help:"search by guest_ip_end"`

	BgpType      []string `help:"filter by bgp_type"`
	HostType     string   `help:"filter by host_type"`
	RouteTableId string   `help:"Filter by RouteTable"`
}

func (*NetworkListOptions) GetContextId

func (opts *NetworkListOptions) GetContextId() string

func (*NetworkListOptions) Params

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

type NetworkUpdateOptions

type NetworkUpdateOptions struct {
	BaseUpdateOptions

	StartIp     string `help:"Start ip"`
	EndIp       string `help:"end ip"`
	NetMask     int64  `help:"Netmask"`
	Gateway     string `help:"IP of gateway"`
	Dns         string `help:"IP of DNS server"`
	Domain      string `help:"Domain"`
	Dhcp        string `help:"DHCP server IP"`
	Ntp         string `help:"Ntp server domain names"`
	VlanId      int64  `help:"Vlan ID"`
	ExternalId  string `help:"External ID"`
	AllocPolicy string `help:"Address allocation policy" choices:"none|stepdown|stepup|random"`
	IsAutoAlloc *bool  `help:"Add network into auto-allocation pool" negative:"no_auto_alloc"`
}

func (*NetworkUpdateOptions) Params

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

type PodBaseOptions

type PodBaseOptions struct {
	WebConsoleOptions
	NAME      string `help:"Name of k8s pod to connect"`
	Namespace string `help:"Namespace of this pod"`
	Container string `help:"Container in this pod"`
	Cluster   string `default:"$K8S_CLUSTER|default" help:"Kubernetes cluster name"`
}

func (*PodBaseOptions) Params

func (opt *PodBaseOptions) Params() (*jsonutils.JSONDict, error)

type PodLogOptoins

type PodLogOptoins struct {
	PodBaseOptions
	Since string `help:"Only return logs newer than a relative duration like 5s, 2m or 3h"`
}

func (*PodLogOptoins) Params

func (opt *PodLogOptoins) Params() (*jsonutils.JSONDict, error)

type PodShellOptions

type PodShellOptions struct {
	PodBaseOptions
}

type ProjectStatisticsOptions

type ProjectStatisticsOptions struct {
}

func (ProjectStatisticsOptions) Property

func (o ProjectStatisticsOptions) Property() string

type ProjectTagValuePairsOptions

type ProjectTagValuePairsOptions struct {
	TagValuePairsOptions
}

func (*ProjectTagValuePairsOptions) Property

func (opts *ProjectTagValuePairsOptions) Property() string

type ProjectTagValueTreeOptions

type ProjectTagValueTreeOptions struct {
	TagValueTreeOptions
}

func (*ProjectTagValueTreeOptions) Property

func (opts *ProjectTagValueTreeOptions) Property() string

type ProxySettingCreateOptions

type ProxySettingCreateOptions struct {
	NAME string

	HTTPProxy  string
	HTTPSProxy string
	NoProxy    string
}

type ProxySettingDeleteOptions

type ProxySettingDeleteOptions struct {
	ID string `json:"-"`
}

type ProxySettingGetOptions

type ProxySettingGetOptions struct {
	ID string `json:"-"`
}

type ProxySettingListOptions

type ProxySettingListOptions struct {
	BaseListOptions
}

type ProxySettingPrivateOptions

type ProxySettingPrivateOptions struct {
	ProxySettingGetOptions
}

type ProxySettingPublicOptions

type ProxySettingPublicOptions struct {
	ProxySettingGetOptions
	Scope        string   `json:"scope" help:"share scope" choices:"domain|system"`
	SharedDomain []string `json:"share"`
}

type ProxySettingTestOptions

type ProxySettingTestOptions struct {
	ID string `json:"-"`
}

type ProxySettingUpdateOptions

type ProxySettingUpdateOptions struct {
	ID   string `json:"-"`
	Name string

	HTTPProxy  string
	HTTPSProxy string
	NoProxy    string
}

type ResourceMetadataOptions

type ResourceMetadataOptions struct {
	ID   string   `help:"ID or name of resources" json:"-"`
	TAGS []string `help:"Tags info, eg: hypervisor=aliyun、os_type=Linux、os_version"`
}

func (*ResourceMetadataOptions) GetId

func (opts *ResourceMetadataOptions) GetId() string

func (*ResourceMetadataOptions) Params

type Route

type Route struct {
	Type        string
	Cidr        string
	NextHopType string
	NextHopId   string
}

type RouteTableAddRoutesOptions

type RouteTableAddRoutesOptions struct {
	ID string `json:"-"`

	RoutesOptions
}

func (*RouteTableAddRoutesOptions) GetId

func (opts *RouteTableAddRoutesOptions) GetId() string

func (*RouteTableAddRoutesOptions) Params

type RouteTableAssociationIdOptions

type RouteTableAssociationIdOptions struct {
	ID string `json:"route table routeset ID"`
}

func (*RouteTableAssociationIdOptions) GetId

func (opts *RouteTableAssociationIdOptions) GetId() string

func (*RouteTableAssociationIdOptions) Params

type RouteTableAssociationListOptions

type RouteTableAssociationListOptions struct {
	BaseListOptions
	RouteTableId string
	VpcId        string
}

func (*RouteTableAssociationListOptions) Params

type RouteTableCreateOptions

type RouteTableCreateOptions struct {
	NAME string
	Vpc  string `required:"true"`

	RoutesOptions
}

func (*RouteTableCreateOptions) Params

type RouteTableDelRoutesOptions

type RouteTableDelRoutesOptions struct {
	ID string `json:"-"`

	Cidr []string
}

func (*RouteTableDelRoutesOptions) GetId

func (opts *RouteTableDelRoutesOptions) GetId() string

func (*RouteTableDelRoutesOptions) Params

type RouteTableDeleteOptions

type RouteTableDeleteOptions struct {
	ID string
}

type RouteTableGetOptions

type RouteTableGetOptions struct {
	ID string
}

type RouteTableIdOptions

type RouteTableIdOptions struct {
	ID string
}

func (*RouteTableIdOptions) GetId

func (opts *RouteTableIdOptions) GetId() string

func (*RouteTableIdOptions) Params

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

type RouteTableListOptions

type RouteTableListOptions struct {
	Vpc         string
	Cloudregion string

	BaseListOptions
}

func (*RouteTableListOptions) Params

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

type RouteTablePurgeOptions

type RouteTablePurgeOptions struct {
	ID string
}

type RouteTableRouteSetCreateOptions

type RouteTableRouteSetCreateOptions struct {
	RouteTableId string
	Type         string
	Cidr         string
	NextHopType  string
	NextHopId    string
}

func (*RouteTableRouteSetCreateOptions) Params

type RouteTableRouteSetIdOptions

type RouteTableRouteSetIdOptions struct {
	ID string `json:"route table routeset ID"`
}

func (*RouteTableRouteSetIdOptions) GetId

func (opts *RouteTableRouteSetIdOptions) GetId() string

func (*RouteTableRouteSetIdOptions) Params

type RouteTableRouteSetListOptions

type RouteTableRouteSetListOptions struct {
	BaseListOptions
	RouteTableId string
	VpcId        string
	Type         string
	NextHopType  string
	NextHopId    string
	Cidr         string
}

func (*RouteTableRouteSetListOptions) Params

type RouteTableRouteSetUpdateOptions

type RouteTableRouteSetUpdateOptions struct {
	ID           string `json:"route table routeset ID"`
	RouteTableId string
	Type         string
	Cidr         string
	NextHopType  string
	NextHopId    string
}

func (*RouteTableRouteSetUpdateOptions) GetId

func (*RouteTableRouteSetUpdateOptions) Params

type RouteTableSyncstatusOptions

type RouteTableSyncstatusOptions struct {
	ID string
}

type RouteTableUpdateOptions

type RouteTableUpdateOptions struct {
	ID   string `json:"-"`
	Name string

	RoutesOptions
}

func (*RouteTableUpdateOptions) GetId

func (opts *RouteTableUpdateOptions) GetId() string

func (*RouteTableUpdateOptions) Params

type Routes

type Routes []*Route

type RoutesOptions

type RoutesOptions struct {
	Type        []string
	Cidr        []string
	NextHopType []string
	NextHopId   []string
}

func (*RoutesOptions) Params

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

type SAWSCloudAccountCreateOptions

type SAWSCloudAccountCreateOptions struct {
	SCloudAccountCreateBaseOptions
	SAccessKeyCredentialWithEnvironment

	OptionsBillingReportBucket  string `help:"bucket that stores billing report" json:"-"`
	OptionsBillingBucketAccount string `help:"id of account that can access bucket, blank if this account can access" json:"-"`
	OptionsBillingFilePrefix    string `help:"prefix of billing file name" json:"-"`
	OptionsAssumeRoleName       string `help:"assume role name" json:"-"`
}

func (*SAWSCloudAccountCreateOptions) Params

type SAWSCloudAccountUpdateCredentialOptions

type SAWSCloudAccountUpdateCredentialOptions struct {
	SCloudAccountIdOptions
	SAccessKeyCredential
}

func (*SAWSCloudAccountUpdateCredentialOptions) Params

type SAWSCloudAccountUpdateOptions

type SAWSCloudAccountUpdateOptions struct {
	SCloudAccountUpdateBaseOptions

	OptionsBillingReportBucket        string `help:"update AWS S3 bucket that stores account billing report" json:"-"`
	RemoveOptionsBillingReportBucket  bool   `help:"remove AWS S3 bucket that stores account billing report" json:"-"`
	OptionsBillingBucketAccount       string `help:"update id of account that can access bucket, blank if this account can access" json:"-"`
	RemoveOptionsBillingBucketAccount bool   `help:"remove id of account that can access bucket, blank if this account can access" json:"-"`
	OptionsBillingFilePrefix          string `help:"update prefix of billing file name" json:"-"`
	RemoveOptionsBillingFilePrefix    bool   `help:"remove prefix of billing file name" json:"-"`
	OptionsAssumeRoleName             string `help:"name of assume role" json:"-"`
	RemoveOptionsAssumeRoleName       bool   `help:"remove option of aws_assume_role_name"`
}

func (*SAWSCloudAccountUpdateOptions) Params

type SAccessKeyCredential

type SAccessKeyCredential struct {
	AccessKeyID     string `help:"Access_key_id" positional:"true"`
	AccessKeySecret string `help:"Access_key_secret" positional:"true"`
}

type SAccessKeyCredentialWithEnvironment

type SAccessKeyCredentialWithEnvironment struct {
	SAccessKeyCredential
	Environment string `help:"Cloud environment" choices:"InternationalCloud|ChinaCloud" default:"ChinaCloud"`
}

type SAliyunAccessKeyCredentialWithEnvironment

type SAliyunAccessKeyCredentialWithEnvironment struct {
	SAccessKeyCredential

	Environment string `help:"Cloud environment" choices:"InternationalCloud|FinanceCloud" default:"InternationalCloud"`
}

type SAliyunCloudAccountCreateOptions

type SAliyunCloudAccountCreateOptions struct {
	SCloudAccountCreateBaseOptions
	SAliyunAccessKeyCredentialWithEnvironment

	OptionsBillingReportBucket  string `help:"bucket that stores billing report" json:"-"`
	OptionsBillingBucketAccount string `help:"id of account that can access bucket, blank if this account can access" json:"-"`
	OptionsBillingFilePrefix    string `help:"prefix of billing file name" json:"-"`
}

func (*SAliyunCloudAccountCreateOptions) Params

type SAliyunCloudAccountUpdateCredentialOptions

type SAliyunCloudAccountUpdateCredentialOptions struct {
	SCloudAccountIdOptions
	SAccessKeyCredential
}

func (*SAliyunCloudAccountUpdateCredentialOptions) Params

type SAliyunCloudAccountUpdateOptions

type SAliyunCloudAccountUpdateOptions struct {
	SCloudAccountUpdateBaseOptions

	OptionsBillingReportBucket        string `help:"update Aliyun S3 bucket that stores account billing report" json:"-"`
	RemoveOptionsBillingReportBucket  bool   `help:"remove Aliyun S3 bucket that stores account billing report" json:"-"`
	OptionsBillingBucketAccount       string `help:"update id of account that can access bucket, blank if this account can access" json:"-"`
	RemoveOptionsBillingBucketAccount bool   `help:"remove id of account that can access bucket, blank if this account can access" json:"-"`
	OptionsBillingFilePrefix          string `help:"update prefix of billing file name" json:"-"`
	RemoveOptionsBillingFilePrefix    bool   `help:"remove prefix of billing file name" json:"-"`
}

func (*SAliyunCloudAccountUpdateOptions) Params

type SApsaraCloudAccountCreateOptions

type SApsaraCloudAccountCreateOptions struct {
	SCloudAccountCreateBaseOptions
	Endpoint string
	SAccessKeyCredential
}

func (*SApsaraCloudAccountCreateOptions) Params

type SApsaraCloudAccountUpdateCredentialOptions

type SApsaraCloudAccountUpdateCredentialOptions struct {
	SCloudAccountIdOptions
	SAccessKeyCredential
	OrganizationId int
}

func (*SApsaraCloudAccountUpdateCredentialOptions) Params

type SAzureCloudAccountCreateOptions

type SAzureCloudAccountCreateOptions struct {
	SCloudAccountCreateBaseOptions
	SAzureCredentialWithEnvironment
}

func (*SAzureCloudAccountCreateOptions) Params

type SAzureCloudAccountUpdateCredentialOptions

type SAzureCloudAccountUpdateCredentialOptions struct {
	SCloudAccountIdOptions
	SAzureCredential
}

func (*SAzureCloudAccountUpdateCredentialOptions) Params

type SAzureCloudAccountUpdateOptions

type SAzureCloudAccountUpdateOptions struct {
	SCloudAccountUpdateBaseOptions

	OptionsBalanceKey       string `help:"update cloud balance account key, such as Azure EA key" json:"-"`
	RemoveOptionsBalanceKey bool   `help:"remove cloud blance account key" json:"-"`
}

func (*SAzureCloudAccountUpdateOptions) Params

type SAzureCredential

type SAzureCredential struct {
	ClientID     string `help:"Azure client_id" positional:"true"`
	ClientSecret string `help:"Azure clinet_secret" positional:"true"`
}

type SAzureCredentialWithEnvironment

type SAzureCredentialWithEnvironment struct {
	DirectoryID string `help:"Azure directory_id" positional:"true"`

	SAzureCredential

	Environment string `help:"Cloud environment" choices:"AzureGermanCloud|AzureChinaCloud|AzurePublicCloud" default:"AzureChinaCloud"`
}

type SBingoCloudAccountCreateOptions

type SBingoCloudAccountCreateOptions struct {
	SCloudAccountCreateBaseOptions
	Endpoint string
	SAccessKeyCredential
}

func (*SBingoCloudAccountCreateOptions) Params

type SBingoCloudAccountUpdateCredentialOptions

type SBingoCloudAccountUpdateCredentialOptions struct {
	SCloudAccountIdOptions
	SAccessKeyCredential
}

func (*SBingoCloudAccountUpdateCredentialOptions) Params

type SBingoCloudAccountUpdateOptions

type SBingoCloudAccountUpdateOptions struct {
	SCloudAccountUpdateBaseOptions
}

type SCephCloudAccountCreateOptions

type SCephCloudAccountCreateOptions struct {
	SS3CloudAccountCreateOptions
}

func (*SCephCloudAccountCreateOptions) Params

type SCloudAccountCreateBaseOptions

type SCloudAccountCreateBaseOptions struct {
	Name string `help:"Name of cloud account" positional:"true"`
	// PROVIDER string `help:"Driver for cloud account" choices:"VMware|Aliyun|Azure|Qcloud|OpenStack|Huawei|Aws"`
	Desc  string `help:"Description" token:"desc" json:"description"`
	Brand string `help:"Brand of cloud account" choices:"DStack"`

	AutoCreateProject bool `help:"Enable the account with same name project"`
	EnableAutoSync    bool `help:"Enable automatically synchronize resources of this account"`

	SyncIntervalSeconds int `help:"Interval to synchronize if auto sync is enable" metavar:"SECONDS"`

	Project       string `help:"project for this account"`
	ProjectDomain string `help:"domain for this account"`

	Disabled *bool `help:"create cloud account with disabled status"`

	SkipDuplicateAccountCheck bool `help:"skip check duplicate account"`

	SamlAuth string `help:"Enable or disable saml auth" choices:"true|false"`

	ProxySetting    string `help:"proxy setting id or name" json:"proxy_setting"`
	DryRun          bool   `help:"test create cloudaccount params"`
	ShowSubAccounts bool   `help:"test and show subaccount info"`
	ReadOnly        bool   `help:"Read only account"`
}

type SCloudAccountIdOptions

type SCloudAccountIdOptions struct {
	ID string `help:"ID or Name of cloud account" json:"-"`
}

func (*SCloudAccountIdOptions) GetId

func (opts *SCloudAccountIdOptions) GetId() string

func (*SCloudAccountIdOptions) Params

type SCloudAccountUpdateBaseOptions

type SCloudAccountUpdateBaseOptions struct {
	SCloudAccountIdOptions
	Name string `help:"New name to update"`

	SyncIntervalSeconds *int   `help:"auto synchornize interval in seconds"`
	AutoCreateProject   *bool  `help:"automatically create local project for new remote project" negative:"no_auto_create_project"`
	ProxySetting        string `help:"proxy setting name or id" json:"proxy_setting"`
	SamlAuth            string `help:"Enable or disable saml auth" choices:"true|false"`

	ReadOnly *bool `help:"is account read only" negative:"no_read_only"`

	CleanLakeOfPermissions bool `help:"clean lake of permissions"`

	Desc string `help:"Description" json:"description" token:"desc"`
}

func (*SCloudAccountUpdateBaseOptions) Params

type SCloudpodsCloudAccountCreateOptions

type SCloudpodsCloudAccountCreateOptions struct {
	SCloudAccountCreateBaseOptions
	SAccessKeyCredential
	AuthURL string `help:"Cloudpods auth_url" positional:"true" json:"auth_url"`
}

func (*SCloudpodsCloudAccountCreateOptions) Params

type SCloudpodsCloudAccountUpdateCredentialOptions

type SCloudpodsCloudAccountUpdateCredentialOptions struct {
	SCloudAccountIdOptions
	SAccessKeyCredential
}

func (*SCloudpodsCloudAccountUpdateCredentialOptions) Params

type SCloudpodsCloudAccountUpdateOptions

type SCloudpodsCloudAccountUpdateOptions struct {
	SCloudAccountUpdateBaseOptions
}

func (*SCloudpodsCloudAccountUpdateOptions) Params

type SCtyunCloudAccountCreateOptions

func (*SCtyunCloudAccountCreateOptions) Params

type SCtyunCloudAccountUpdateCredentialOptions

type SCtyunCloudAccountUpdateCredentialOptions struct {
	SCloudAccountIdOptions
	SAccessKeyCredential
}

func (*SCtyunCloudAccountUpdateCredentialOptions) Params

type SCtyunCloudAccountUpdateOptions

type SCtyunCloudAccountUpdateOptions struct {
	SCloudAccountUpdateBaseOptions

	cloudprovider.SCtyunExtraOptions
}

func (*SCtyunCloudAccountUpdateOptions) Params

type SDnsZoneIdOptions

type SDnsZoneIdOptions struct {
	ID string `help:"Dns zone Id or Name"`
}

func (*SDnsZoneIdOptions) GetId

func (opts *SDnsZoneIdOptions) GetId() string

func (*SDnsZoneIdOptions) Params

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

type SDnsZoneListOptions

type SDnsZoneListOptions struct {
	BaseListOptions

	VpcId     string `help:"Filter dns zone by vpc"`
	ZoneType  string `help:"Filter dns zone by zone type" choices:"PublicZone|PrivateZone"`
	WithCache bool   `help:"Whether to bring cache information"`
}

func (*SDnsZoneListOptions) Params

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

type SEcloudCloudAccountCreateOptions

type SEcloudCloudAccountCreateOptions struct {
	SCloudAccountCreateBaseOptions
	SAccessKeyCredentialWithEnvironment
}

func (*SEcloudCloudAccountCreateOptions) Params

type SGoogleCloudAccountCreateOptions

type SGoogleCloudAccountCreateOptions struct {
	SCloudAccountCreateBaseOptions
	GoogleJsonFile string `help:"Google auth json file" positional:"true"`
}

func (*SGoogleCloudAccountCreateOptions) Params

type SGoogleCloudAccountUpdateCredentialOptions

type SGoogleCloudAccountUpdateCredentialOptions struct {
	SCloudAccountIdOptions
	GoogleJsonFile string `help:"Google auth json file" positional:"true"`
}

func (*SGoogleCloudAccountUpdateCredentialOptions) Params

type SGoogleCloudAccountUpdateOptions

type SGoogleCloudAccountUpdateOptions struct {
	SCloudAccountUpdateBaseOptions

	OptionsBillingReportBigqueryTable   string `help:"update Google big query table that stores account billing report" json:"-"`
	OptionsBillingReportBigqueryAccount string `help:"update Google account for big query table" json:"-"`
	OptionsBillingReportBucket          string `help:"update Google S3 bucket that stores account billing report" json:"-"`
	RemoveOptionsBillingReportBucket    bool   `help:"remove Google S3 bucket that stores account billing report" json:"-"`
	OptionsBillingBucketAccount         string `help:"update id of account that can access bucket, blank if this account can access" json:"-"`
	RemoveOptionsBillingBucketAccount   bool   `help:"remove id of account that can access bucket, blank if this account can access" json:"-"`
	OptionsBillingFilePrefix            string `help:"update prefix of billing file name" json:"-"`
	RemoveOptionsBillingFilePrefix      bool   `help:"remove prefix of billing file name" json:"-"`

	OptionsUsageReportBucket       string `help:"update Google S3 bucket that stores account usage report" json:"-"`
	RemoveOptionsUsageReportBucket bool   `help:"remove Google S3 bucket that stores account usage report" json:"-"`
	OptionsUsageFilePrefix         string `help:"update prefix of usage file name" json:"-"`
	RemoveOptionsUsageFilePrefix   bool   `help:"remove prefix of usage file name" json:"-"`
}

func (*SGoogleCloudAccountUpdateOptions) Params

type SHCSAccountCreateOptions

type SHCSAccountCreateOptions struct {
	SCloudAccountCreateBaseOptions
	AuthURL string `help:"Hcs auth_url" positional:"true" json:"auth_url"`
	SAccessKeyCredential
}

func (*SHCSAccountCreateOptions) Params

type SHCSAccountUpdateCredentialOptions

type SHCSAccountUpdateCredentialOptions struct {
	SCloudAccountIdOptions
	SAccessKeyCredential
}

func (*SHCSAccountUpdateCredentialOptions) Params

type SHCSAccountUpdateOptions

type SHCSAccountUpdateOptions struct {
	SCloudAccountUpdateBaseOptions
}

func (*SHCSAccountUpdateOptions) Params

type SHCSOAccountCreateOptions

func (*SHCSOAccountCreateOptions) Params

type SHCSOAccountUpdateCredentialOptions

type SHCSOAccountUpdateCredentialOptions struct {
	SCloudAccountIdOptions
	cloudprovider.SHCSOEndpoints
	SAccessKeyCredential
}

func (*SHCSOAccountUpdateCredentialOptions) Params

type SHCSOAccountUpdateOptions

type SHCSOAccountUpdateOptions struct {
	SCloudAccountUpdateBaseOptions
}

func (*SHCSOAccountUpdateOptions) Params

type SHuaweiCloudAccountCreateOptions

type SHuaweiCloudAccountCreateOptions struct {
	SCloudAccountCreateBaseOptions
	SAccessKeyCredentialWithEnvironment
}

func (*SHuaweiCloudAccountCreateOptions) Params

type SHuaweiCloudAccountUpdateCredentialOptions

type SHuaweiCloudAccountUpdateCredentialOptions struct {
	SCloudAccountIdOptions
	SAccessKeyCredential
}

func (*SHuaweiCloudAccountUpdateCredentialOptions) Params

type SHuaweiCloudAccountUpdateOptions

type SHuaweiCloudAccountUpdateOptions struct {
	SCloudAccountUpdateBaseOptions

	OptionsBillingReportBucket        string `help:"update Huawei S3 bucket that stores account billing report" json:"-"`
	RemoveOptionsBillingReportBucket  bool   `help:"remove Huawei S3 bucket that stores account billing report" json:"-"`
	OptionsBillingBucketAccount       string `help:"update id of account that can access bucket, blank if this account can access" json:"-"`
	RemoveOptionsBillingBucketAccount bool   `help:"remove id of account that can access bucket, blank if this account can access" json:"-"`
	OptionsBillingFilePrefix          string `help:"update prefix of billing file name" json:"-"`
	RemoveOptionsBillingFilePrefix    bool   `help:"remove prefix of billing file name" json:"-"`
}

func (*SHuaweiCloudAccountUpdateOptions) Params

type SInCloudSphereAccountCreateOptions

type SInCloudSphereAccountCreateOptions struct {
	SCloudAccountCreateBaseOptions
	HOST string
	SAccessKeyCredential
}

func (*SInCloudSphereAccountCreateOptions) Params

type SInCloudSphereAccountUpdateCredentialOptions

type SInCloudSphereAccountUpdateCredentialOptions struct {
	SCloudAccountIdOptions
	SAccessKeyCredential
}

func (*SInCloudSphereAccountUpdateCredentialOptions) Params

type SInCloudSphereAccountUpdateOptions

type SInCloudSphereAccountUpdateOptions struct {
	SCloudAccountUpdateBaseOptions
}

type SJDcloudCloudAccountCreateOptions

type SJDcloudCloudAccountCreateOptions struct {
	SCloudAccountCreateBaseOptions
	SAccessKeyCredential
}

func (*SJDcloudCloudAccountCreateOptions) Params

type SJDcloudCloudAccountUpdateCredentialOptions

type SJDcloudCloudAccountUpdateCredentialOptions struct {
	SCloudAccountIdOptions
	SAccessKeyCredential
}

func (*SJDcloudCloudAccountUpdateCredentialOptions) Params

type SJDcloudCloudAccountUpdateOptions

type SJDcloudCloudAccountUpdateOptions struct {
	SCloudAccountUpdateBaseOptions
}

func (*SJDcloudCloudAccountUpdateOptions) Params

type SNutanixCloudAccountCreateOptions

type SNutanixCloudAccountCreateOptions struct {
	SCloudAccountCreateBaseOptions
	SNutanixCredentialWithEnvironment
}

func (*SNutanixCloudAccountCreateOptions) Params

type SNutanixCloudAccountUpdateCredentialOptions

type SNutanixCloudAccountUpdateCredentialOptions struct {
	SCloudAccountIdOptions
	SUserPasswordCredential
}

func (*SNutanixCloudAccountUpdateCredentialOptions) Params

type SNutanixCloudAccountUpdateOptions

type SNutanixCloudAccountUpdateOptions struct {
	SCloudAccountUpdateBaseOptions
}

type SNutanixCredentialWithEnvironment

type SNutanixCredentialWithEnvironment struct {
	SUserPasswordCredential

	Host string `help:"Nutanix host" positional:"true"`
	Port string `help:"Nutanix host port" default:"9440"`
}

type SOpenStackCloudAccountCreateOptions

type SOpenStackCloudAccountCreateOptions struct {
	SCloudAccountCreateBaseOptions
	SOpenStackCredentialWithAuthURL
}

func (*SOpenStackCloudAccountCreateOptions) Params

type SOpenStackCloudAccountUpdateCredentialOptions

type SOpenStackCloudAccountUpdateCredentialOptions struct {
	SCloudAccountIdOptions
	SOpenStackCredential
}

func (*SOpenStackCloudAccountUpdateCredentialOptions) Params

type SOpenStackCloudAccountUpdateOptions

type SOpenStackCloudAccountUpdateOptions struct {
	SCloudAccountUpdateBaseOptions
}

func (*SOpenStackCloudAccountUpdateOptions) Params

type SOpenStackCredential

type SOpenStackCredential struct {
	ProjectName string `help:"OpenStack project_name" positional:"true"`

	SUserPasswordCredential

	DomainName string `help:"OpenStack domain name"`
}

type SOpenStackCredentialWithAuthURL

type SOpenStackCredentialWithAuthURL struct {
	SOpenStackCredential

	AuthURL string `help:"OpenStack auth_url" positional:"true" json:"auth_url"`
}

type SProxmoxAccountCreateOptions

type SProxmoxAccountCreateOptions struct {
	SCloudAccountCreateBaseOptions
	SProxmoxCredentialWithEnvironment
}

func (*SProxmoxAccountCreateOptions) Params

type SProxmoxAccountUpdateCredentialOptions

type SProxmoxAccountUpdateCredentialOptions struct {
	SCloudAccountIdOptions
	SUserPasswordCredential
}

func (*SProxmoxAccountUpdateCredentialOptions) Params

type SProxmoxAccountUpdateOptions

type SProxmoxAccountUpdateOptions struct {
	SCloudAccountUpdateBaseOptions
}

type SProxmoxCredentialWithEnvironment

type SProxmoxCredentialWithEnvironment struct {
	SUserPasswordCredential
	Host string `help:"Proxmox host" positional:"true"`
	Port string `help:"Proxmox host port" default:"8006"`
}

type SQcloudCloudAccountCreateOptions

type SQcloudCloudAccountCreateOptions struct {
	SCloudAccountCreateBaseOptions
	SQcloudCredential
}

func (*SQcloudCloudAccountCreateOptions) Params

type SQcloudCloudAccountUpdateCredentialOptions

type SQcloudCloudAccountUpdateCredentialOptions struct {
	SCloudAccountIdOptions
	SQcloudCredential
}

func (*SQcloudCloudAccountUpdateCredentialOptions) Params

type SQcloudCloudAccountUpdateOptions

type SQcloudCloudAccountUpdateOptions struct {
	SCloudAccountUpdateBaseOptions
}

func (*SQcloudCloudAccountUpdateOptions) Params

type SQcloudCredential

type SQcloudCredential struct {
	AppID     string `help:"Qcloud appid" positional:"true"`
	SecretID  string `help:"Qcloud secret_id" positional:"true"`
	SecretKey string `help:"Qcloud secret_key" positional:"true"`
}

type SRemoteFileAccountCreateOptions

type SRemoteFileAccountCreateOptions struct {
	SCloudAccountCreateBaseOptions
	AuthURL string
}

func (*SRemoteFileAccountCreateOptions) Params

type SS3CloudAccountCreateOptions

type SS3CloudAccountCreateOptions struct {
	SCloudAccountCreateBaseOptions
	SAccessKeyCredential
	Endpoint string `help:"S3 endpoint" required:"true" positional:"true" json:"endpoint"`
}

func (*SS3CloudAccountCreateOptions) Params

type SS3CloudAccountUpdateCredentialOptions

type SS3CloudAccountUpdateCredentialOptions struct {
	SCloudAccountIdOptions
	SAccessKeyCredential
}

func (*SS3CloudAccountUpdateCredentialOptions) Params

type SS3CloudAccountUpdateOptions

type SS3CloudAccountUpdateOptions struct {
	SCloudAccountUpdateBaseOptions
}

func (*SS3CloudAccountUpdateOptions) Params

type SUcloudCloudAccountCreateOptions

type SUcloudCloudAccountCreateOptions struct {
	SCloudAccountCreateBaseOptions
	SAccessKeyCredential
}

func (*SUcloudCloudAccountCreateOptions) Params

type SUcloudCloudAccountUpdateCredentialOptions

type SUcloudCloudAccountUpdateCredentialOptions struct {
	SCloudAccountIdOptions
	SAccessKeyCredential
}

func (*SUcloudCloudAccountUpdateCredentialOptions) Params

type SUcloudCloudAccountUpdateOptions

type SUcloudCloudAccountUpdateOptions struct {
	SCloudAccountUpdateBaseOptions
}

func (*SUcloudCloudAccountUpdateOptions) Params

type SUserPasswordCredential

type SUserPasswordCredential struct {
	Username string `help:"Username" positional:"true"`
	Password string `help:"Password" positional:"true"`
}

type SVMwareCloudAccountCreateOptions

type SVMwareCloudAccountCreateOptions struct {
	SCloudAccountCreateBaseOptions
	SVMwareCredentialWithEnvironment
}

func (*SVMwareCloudAccountCreateOptions) Params

type SVMwareCloudAccountPrepareNetsOptions

type SVMwareCloudAccountPrepareNetsOptions struct {
	SVMwareCredentialWithEnvironment

	Project       string `help:"project for this account"`
	ProjectDomain string `help:"domain for this account"`
	WireLevel     string `help:"wire level for this account" choices:"vcenter|datacenter|cluster" json:"wire_level_for_vmware"`
	Dvs           bool   `help:"whether to enable dvs corresponding wire"`
	NAME          string `help:"name for this account"`
}

func (*SVMwareCloudAccountPrepareNetsOptions) Params

type SVMwareCloudAccountUpdateCredentialOptions

type SVMwareCloudAccountUpdateCredentialOptions struct {
	SCloudAccountIdOptions
	SUserPasswordCredential
}

func (*SVMwareCloudAccountUpdateCredentialOptions) Params

type SVMwareCloudAccountUpdateOptions

type SVMwareCloudAccountUpdateOptions struct {
	SCloudAccountUpdateBaseOptions
}

func (*SVMwareCloudAccountUpdateOptions) Params

type SVMwareCredentialWithEnvironment

type SVMwareCredentialWithEnvironment struct {
	SUserPasswordCredential

	Host string `help:"VMware VCenter/ESXi host" positional:"true"`
	Port string `help:"VMware VCenter/ESXi host port" default:"443"`
}

type SXskyCloudAccountCreateOptions

type SXskyCloudAccountCreateOptions struct {
	SS3CloudAccountCreateOptions
}

func (*SXskyCloudAccountCreateOptions) Params

type SZStackCloudAccountCreateOptions

type SZStackCloudAccountCreateOptions struct {
	SCloudAccountCreateBaseOptions
	SUserPasswordCredential
	AuthURL string `help:"ZStack auth_url" positional:"true" json:"auth_url"`
}

func (*SZStackCloudAccountCreateOptions) Params

type SZStackCloudAccountUpdateCredentialOptions

type SZStackCloudAccountUpdateCredentialOptions struct {
	SCloudAccountIdOptions
	SUserPasswordCredential
}

func (*SZStackCloudAccountUpdateCredentialOptions) Params

type SZStackCloudAccountUpdateOptions

type SZStackCloudAccountUpdateOptions struct {
	SCloudAccountUpdateBaseOptions
}

func (*SZStackCloudAccountUpdateOptions) Params

type SchedtagCreateOptions

type SchedtagCreateOptions struct {
	NAME     string `help:"Name of new schedtag"`
	Strategy string `help:"Policy" choices:"require|exclude|prefer|avoid"`
	Desc     string `help:"Description"`
	Scope    string `help:"Resource scope" choices:"system|domain|project"`
	Type     string `help:"Resource type" choices:"hosts|storages|networks|cloudproviders|cloudregions|zones"`
}

func (SchedtagCreateOptions) Params

type SchedtagListOptions

type SchedtagListOptions struct {
	BaseListOptions
	Type            string `help:"Filter by resource type"`
	CloudproviderId string `help:"Filter by cloudprovider id"`
}

func (SchedtagListOptions) Params

type SchedtagModelListOptions

type SchedtagModelListOptions struct {
	BaseListOptions
	Schedtag string `help:"ID or Name of schedtag"`
}

func (SchedtagModelListOptions) Params

type SchedtagModelPairOptions

type SchedtagModelPairOptions struct {
	SCHEDTAG string `help:"Scheduler tag"`
	OBJECT   string `help:"Object id"`
}

type SchedtagSetOptions

type SchedtagSetOptions struct {
	ID       string   `help:"Id or name of resource"`
	Schedtag []string `help:"Ids of schedtag"`
}

func (SchedtagSetOptions) Params

type SchedtagSetResource

type SchedtagSetResource struct {
	ID        string   `help:"ID or Name of schetag"`
	Resource  []string `help:"Resource id or name"`
	UnbindAll bool     `help:"Unbind all attached resources"`
}

func (SchedtagSetResource) GetId

func (o SchedtagSetResource) GetId() string

func (SchedtagSetResource) Params

type SchedtagSetScopeOptions

type SchedtagSetScopeOptions struct {
	ID      []string `help:"ID or Name of schetag"`
	Project string   `help:"ID or Name of project"`
	Domain  string   `help:"ID or Name of domain"`
	System  bool     `help:"Set to system scope"`
}

func (SchedtagSetScopeOptions) GetIds

func (o SchedtagSetScopeOptions) GetIds() []string

func (SchedtagSetScopeOptions) Params

type SchedtagShowOptions

type SchedtagShowOptions struct {
	ID string `help:"ID or Name of the scheduler tag to show"`
}

func (SchedtagShowOptions) GetId

func (o SchedtagShowOptions) GetId() string

func (SchedtagShowOptions) Params

type SchedtagUpdateOptions

type SchedtagUpdateOptions struct {
	ID            string `help:"ID or Name of schetag"`
	Name          string `help:"New name of schedtag"`
	Strategy      string `help:"Policy" choices:"require|exclude|prefer|avoid"`
	Desc          string `help:"Description"`
	ClearStrategy bool   `help:"Clear default schedule policy"`
}

func (SchedtagUpdateOptions) GetId

func (o SchedtagUpdateOptions) GetId() string

func (SchedtagUpdateOptions) Params

type ScopedResourceListOptions

type ScopedResourceListOptions struct {
	BelongScope string `help:"Filter by resource belong scope" choices:"system|domain|project"`
}

func (*ScopedResourceListOptions) Params

type SecgroupChangeOwnerOptions

type SecgroupChangeOwnerOptions struct {
	SecgroupIdOptions
	apis.ProjectizedResourceInput
}

type SecgroupCreateOptions

type SecgroupCreateOptions struct {
	BaseCreateOptions
	Rules []string `help:"security rule to create"`
}

func (*SecgroupCreateOptions) Params

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

type SecgroupIdOptions

type SecgroupIdOptions struct {
	ID string `help:"ID or Name of security group destination"`
}

func (*SecgroupIdOptions) GetId

func (opts *SecgroupIdOptions) GetId() string

func (*SecgroupIdOptions) Params

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

type SecgroupImportRulesOptions

type SecgroupImportRulesOptions struct {
	SecgroupIdOptions

	RULE []string `help:"rule pattern: rule|priority eg: in:allow any 1"`
}

func (*SecgroupImportRulesOptions) Params

type SecgroupListOptions

type SecgroupListOptions struct {
	BaseListOptions

	Equals       string `help:"Secgroup ID or Name, filter secgroups whose rules equals the specified one"`
	Server       string `help:"Filter secgroups bound to specified server"`
	Ip           string `help:"Filter secgroup by ip"`
	Ports        string `help:"Filter secgroup by ports"`
	Direction    string `help:"Filter secgroup by ports" choices:"all|in|out"`
	DBInstance   string `help:"Filter secgroups bound to specified rds" json:"dbinstance"`
	Cloudregion  string `help:"Filter secgroups by region"`
	Cloudaccount string `help:"Filter secgroups by account"`
	WithCache    bool   `help:"Whether to bring cache information"`
}

func (*SecgroupListOptions) Params

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

type SecgroupMergeOptions

type SecgroupMergeOptions struct {
	SecgroupIdOptions
	SECGROUPS []string `help:"source IDs or Names of secgroup"`
}

func (*SecgroupMergeOptions) Params

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

type SecgroupsAddRuleOptions

type SecgroupsAddRuleOptions struct {
	SecgroupIdOptions
	DIRECTION   string `help:"Direction of rule" choices:"in|out"`
	PROTOCOL    string `help:"Protocol of rule" choices:"any|tcp|udp|icmp"`
	ACTION      string `help:"Actin of rule" choices:"allow|deny"`
	PRIORITY    int    `help:"Priority for rule, range 1 ~ 100"`
	Cidr        string `help:"IP or CIRD for rule"`
	Description string `help:"Desciption for rule"`
	Ports       string `help:"Port for rule"`
}

func (*SecgroupsAddRuleOptions) Params

type SecurityGroupCacheOptions

type SecurityGroupCacheOptions struct {
	SecgroupIdOptions
	VPC     string `help:"ID or Name of vpc"`
	Classic *bool  `help:"Is classic vpc"`
}

func (*SecurityGroupCacheOptions) Params

type SecurityGroupUncacheSecurityGroup

type SecurityGroupUncacheSecurityGroup struct {
	SecgroupIdOptions
	CACHE string `help:"ID of secgroup cache"`
}

func (*SecurityGroupUncacheSecurityGroup) Params

type ServerSkusCreateOptions

type ServerSkusCreateOptions struct {
	Name         string `help:"ServerSku name"`
	CpuCoreCount int    `help:"Cpu Count" required:"true" positional:"true"`
	MemorySizeMB int    `help:"Memory MB" required:"true" positional:"true"`

	OsName               *string `help:"OS name/type" choices:"Linux|Windows|Any" default:"Any"`
	InstanceTypeCategory *string `` /* 154-byte string literal not displayed */

	SysDiskResizable *bool   `help:"system disk is resizable"`
	SysDiskType      *string `help:"system disk type" choices:"local"`
	SysDiskMaxSizeGB *int    `help:"system disk maximal size in gb"`

	AttachedDiskType   *string `help:"attached data disk type"`
	AttachedDiskSizeGB *int    `help:"attached data disk size in GB"`
	AttachedDiskCount  *int    `help:"attached data disk count"`

	MaxDataDiskCount *int `help:"maximal allowed data disk count"`

	NicType     *string `help:"nic type"`
	MaxNicCount *int    `help:"maximal nic count"`

	GPUSpec       *string `help:"GPU spec"`
	GPUCount      *int    `help:"GPU count"`
	GPUAttachable *bool   `help:"Allow attach GPU"`

	ZoneId        string `help:"Zone ID or name"`
	CloudregionId string `help:"Cloudregion ID or name"`
	Provider      string `help:"provider"`
	Brand         string `help:"brand"`
}

func (*ServerSkusCreateOptions) Params

type ServerSkusIdOptions

type ServerSkusIdOptions struct {
	ID string `help:"ID or Name of SKU to show"`
}

func (*ServerSkusIdOptions) GetId

func (opts *ServerSkusIdOptions) GetId() string

func (*ServerSkusIdOptions) Params

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

type ServerSkusListOptions

type ServerSkusListOptions struct {
	BaseListOptions
	Cloudregion    string  `help:"region Id or name"`
	Usable         bool    `help:"Filter usable sku"`
	Zone           string  `help:"zone Id or name"`
	City           *string `help:"city name,eg. BeiJing"`
	Cpu            *int    `help:"Cpu core count" json:"cpu_core_count"`
	Mem            *int    `help:"Memory size in MB" json:"memory_size_mb"`
	Name           string  `help:"Name of Sku"`
	PostpaidStatus string  `help:"Postpaid status" choices:"soldout|available"`
	PrepaidStatus  string  `help:"Prepaid status" choices:"soldout|available"`
	Enabled        *bool   `help:"Filter enabled skus"`
	Distinct       bool    `help:"distinct sku by name"`
}

func (*ServerSkusListOptions) GetId

func (opts *ServerSkusListOptions) GetId() string

func (*ServerSkusListOptions) Params

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

type ServerSkusUpdateOptions

type ServerSkusUpdateOptions struct {
	ServerSkusIdOptions

	PostpaidStatus *string `help:"skus available status for postpaid instance" choices:"available|soldout"`
	PrepaidStatus  *string `help:"skus available status for prepaid instance"  choices:"available|soldout"`
	CpuCoreCount   *int    `help:"Cpu Count"`
	MemorySizeMB   *int    `help:"Memory MB"`

	InstanceTypeCategory *string `` /* 154-byte string literal not displayed */

	SysDiskResizable *bool `help:"system disk is resizable"`
	SysDiskMaxSizeGB *int  `help:"system disk maximal size in gb"`

	AttachedDiskType   *string `help:"attached data disk type"`
	AttachedDiskSizeGB *int    `help:"attached data disk size in GB"`
	AttachedDiskCount  *int    `help:"attached data disk count"`

	MaxDataDiskCount *int `help:"maximal allowed data disk count"`

	NicType     *string `help:"nic type"`
	MaxNicCount *int    `help:"maximal nic count"`

	GPUSpec       *string `help:"GPU spec"`
	GPUCount      *int    `help:"GPU count"`
	GPUAttachable *bool   `help:"Allow attach GPU"`

	Zone   *string `help:"Zone ID or name"`
	Region *string `help:"Region ID or name"`
}

func (*ServerSkusUpdateOptions) Params

type ServiceCertificateCreateOptions

type ServiceCertificateCreateOptions struct {
	NAME string

	Cert   string `required:"true" json:"-" help:"path to certificate file"`
	Pkey   string `required:"true" json:"-" help:"path to private key file"`
	CaCert string `help:"path to ca certificate file" json:"-"`
	CaPkey string `help:"paht to ca private key file" json:"-"`
}

func (*ServiceCertificateCreateOptions) Params

type SharableProjectizedResourceBaseCreateInput

type SharableProjectizedResourceBaseCreateInput struct {
	apis.ProjectizedResourceCreateInput
	apis.SharableResourceBaseCreateInput
}

func (*SharableProjectizedResourceBaseCreateInput) Params

type SharableResourcePublicBaseOptions

type SharableResourcePublicBaseOptions struct {
	Scope          string   `help:"sharing scope" choices:"system|domain|project"`
	SharedProjects []string `help:"Share to projects"`
	SharedDomains  []string `help:"Share to domains"`
}

type SkuSyncOptions

type SkuSyncOptions struct {
	// 云平台名称
	// example: Google
	Provider string `json:"provider,omitempty" help:"cloud provider name"`

	// 区域ID
	CloudregionIds []string `json:"cloudregion_ids" help:"cloud region id list"`
}

func (*SkuSyncOptions) Params

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

type SkuTaskQueryOptions

type SkuTaskQueryOptions struct {
	// 异步任务ID
	TaskIds []string `json:"task_ids" help:"task ids"`
}

func (*SkuTaskQueryOptions) Params

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

type StatusStatisticsOptions

type StatusStatisticsOptions struct {
}

func (StatusStatisticsOptions) Property

func (o StatusStatisticsOptions) Property() string

type SubscriptionCreateOptions

type SubscriptionCreateOptions struct {
	SCloudAccountIdOptions
	NAME              string
	ENROLLMENTACCOUNT string
	OfferType         string `choices:"MS-AZR-0148P|MS-AZR-0017P" default:"MS-AZR-0017P"`
}

func (*SubscriptionCreateOptions) Params

type SwirePublicOptions

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

type SwireupdateOptions

type SwireupdateOptions struct {
	Name string `help:"Name of wire" json:"name"`
	Desc string `metavar:"<DESCRIPTION>" help:"Description" json:"description"`
	Bw   int64  `help:"Bandwidth in mbps" json:"bandwidth"`
	Mtu  int64  `help:"mtu in bytes" json:"mtu"`
}

type TagListOptions

type TagListOptions MetadataListOptions

type TagValuePairsOptions

type TagValuePairsOptions struct {
	KeyOnly bool `help:"show key only"`

	SysMeta bool `help:"show system tags only"`

	CloudMeta bool `help:"show cloud tags only"`

	UserMeta bool `help:"show user tags only"`
}

func (*TagValuePairsOptions) Params

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

func (*TagValuePairsOptions) Property

func (opts *TagValuePairsOptions) Property() string

type TagValueTreeOptions

type TagValueTreeOptions struct {
	Key     []string `help:"the sequence of key to construct the tree"`
	ShowMap bool     `help:"show map only"`
}

func (*TagValueTreeOptions) Params

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

func (*TagValueTreeOptions) Property

func (opts *TagValueTreeOptions) Property() string

type VpcChangeOwnerOptions

type VpcChangeOwnerOptions struct {
	VpcIdOptions
	ProjectDomain string `json:"project_domain" help:"target domain"`
}

func (*VpcChangeOwnerOptions) Params

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

type VpcCreateOptions

type VpcCreateOptions struct {
	REGION             string `help:"ID or name of the region where the VPC is created" json:"cloudregion_id"`
	Id                 string `help:"ID of the new VPC"`
	NAME               string `help:"Name of the VPC" json:"name"`
	CIDR               string `help:"CIDR block"`
	Default            bool   `help:"default VPC for the region" default:"false"`
	Desc               string `help:"Description of the VPC"`
	Manager            string `help:"ID or Name of Cloud provider" json:"manager_id"`
	ExternalAccessMode string `help:"Filter by external access mode" choices:"distgw|eip|eip-distgw" default:""`
	GlobalvpcId        string `help:"Global vpc id, Only for Google Cloud"`
}

func (*VpcCreateOptions) Params

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

type VpcIdOptions

type VpcIdOptions struct {
	ID string `help:"ID or name of the vpc"`
}

func (*VpcIdOptions) GetId

func (opts *VpcIdOptions) GetId() string

func (*VpcIdOptions) Params

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

type VpcListOptions

type VpcListOptions struct {
	BaseListOptions

	Usable                     *bool  `help:"Filter usable vpcs"`
	Region                     string `help:"ID or Name of region" json:"-"`
	Globalvpc                  string `help:"Filter by globalvpc"`
	DnsZoneId                  string `help:"Filter by DnsZone"`
	InterVpcNetworkId          string `help:"Filter by InterVpcNetwork"`
	ExternalAccessMode         string `help:"Filter by external access mode" choices:"distgw|eip|eip-distgw"`
	ZoneId                     string `help:"Filter by zone which has networks"`
	UsableForInterVpcNetworkId string `help:"Filter usable vpcs for inter vpc network"`
}

func (*VpcListOptions) GetContextId

func (opts *VpcListOptions) GetContextId() string

func (*VpcListOptions) Params

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

type VpcPeeringConnectionCreateOptions

type VpcPeeringConnectionCreateOptions struct {
	EnabledStatusCreateOptions
	VpcId     string
	PeerVpcId string
	Bandwidth int
}

func (*VpcPeeringConnectionCreateOptions) Params

type VpcPeeringConnectionIdOptions

type VpcPeeringConnectionIdOptions struct {
	ID string `json:"Vpc peering connection ID"`
}

func (*VpcPeeringConnectionIdOptions) GetId

func (opts *VpcPeeringConnectionIdOptions) GetId() string

func (*VpcPeeringConnectionIdOptions) Params

type VpcPeeringConnectionListOptions

type VpcPeeringConnectionListOptions struct {
	BaseListOptions
}

func (*VpcPeeringConnectionListOptions) Params

type VpcStatusOptions

type VpcStatusOptions struct {
	VpcIdOptions
	STATUS string `help:"Set Vpc status" choices:"available|pending"`
}

func (*VpcStatusOptions) Params

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

type VpcUpdateOptions

type VpcUpdateOptions struct {
	BaseUpdateOptions
	ExternalAccessMode string `help:"Filter by external access mode" choices:"distgw|eip|eip-distgw"`
	Direct             bool   `help:"Can it be connected directly"`
}

func (*VpcUpdateOptions) Params

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

type WebConsoleBaremetalOptions

type WebConsoleBaremetalOptions struct {
	WebConsoleOptions
	ID string `help:"Baremetal host id or name"`
}

func (*WebConsoleBaremetalOptions) Params

type WebConsoleOptions

type WebConsoleOptions struct {
	WebconsoleUrl string `help:"Frontend webconsole url" short-token:"w" default:"$WEBCONSOLE_URL"`
}

type WebConsoleServerOptions

type WebConsoleServerOptions struct {
	WebConsoleOptions
	ID string `help:"Server id or name"`
}

type WebConsoleSshOptions

type WebConsoleSshOptions struct {
	WebConsoleOptions
	IP   string `help:"IP to connect" json:"-"`
	Port int    `help:"Remote server port"`
}

func (*WebConsoleSshOptions) Params

func (opt *WebConsoleSshOptions) Params() (*jsonutils.JSONDict, error)

type WireCreateOptions

type WireCreateOptions struct {
	ZONE string `help:"Zone ID or Name"`
	Vpc  string `help:"VPC ID or Name" default:"default"`
	NAME string `help:"Name of wire"`
	BW   int64  `help:"Bandwidth in mbps"`
	Mtu  int64  `help:"mtu in bytes"`
	Desc string `metavar:"<DESCRIPTION>" help:"Description"`
}

func (*WireCreateOptions) Params

func (wo *WireCreateOptions) Params() (jsonutils.JSONObject, error)

type WireListOptions

type WireListOptions struct {
	BaseListOptions

	Bandwidth *int `help:"List wires by bandwidth"`

	Region   string `help:"List wires in region"`
	Zone     string `help:"list wires in zone" json:"-"`
	Vpc      string `help:"List wires in vpc"`
	Host     string `help:"List wires attached to a host"`
	HostType string `help:"List wires attached to host with HostType"`
}

func (*WireListOptions) GetContextId

func (wo *WireListOptions) GetContextId() string

func (*WireListOptions) Params

func (wo *WireListOptions) Params() (jsonutils.JSONObject, error)

type WireMergeOptions

type WireMergeOptions struct {
	Froms        []string `help:"IDs or names of merge wire from" json:"sources"`
	TARGET       string   `help:"ID or name of merge wire target"`
	MergeNetwork bool     `help:"whether to merge network under wire"`
}

func (*WireMergeOptions) GetId

func (wo *WireMergeOptions) GetId() string

func (*WireMergeOptions) Params

func (wo *WireMergeOptions) Params() (jsonutils.JSONObject, error)

type WireOptions

type WireOptions struct {
	ID string `help:"Id or Name of wire to update"`
}

func (*WireOptions) GetId

func (wo *WireOptions) GetId() string

func (*WireOptions) Params

func (wo *WireOptions) Params() (jsonutils.JSONObject, error)

type WirePublicOptions

type WirePublicOptions struct {
	WireOptions
	SwirePublicOptions
}

func (*WirePublicOptions) Params

func (wo *WirePublicOptions) Params() (jsonutils.JSONObject, error)

type WireUpdateOptions

type WireUpdateOptions struct {
	WireOptions
	SwireupdateOptions
}

func (*WireUpdateOptions) Params

func (wo *WireUpdateOptions) Params() (jsonutils.JSONObject, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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