Documentation ¶
Index ¶
- Constants
- Variables
- func Bool(v bool) *bool
- func BoolV(p *bool) bool
- func Int(v int) *int
- func IntV(p *int) int
- func ListStructToParams(v interface{}) (*jsonutils.JSONDict, error)
- func SplitTag(tag string) tagutils.TTagSet
- func String(v string) *string
- func StringV(p *string) string
- func StructToParams(v interface{}) (*jsonutils.JSONDict, error)
- type AlarmEventListOptions
- type AnsiblePlaybookCommonOptions
- type AnsiblePlaybookCreateOptions
- type AnsiblePlaybookIdOptions
- type AnsiblePlaybookListOptions
- type AnsiblePlaybookUpdateOptions
- type BaseCreateOptions
- type BaseIdOptions
- type BaseIdsOptions
- type BaseListOptions
- type BasePublicOptions
- type BaseShowOptions
- type BaseUpdateOptions
- type ChangeOwnerOptions
- type ClouaccountChangeOwnerOptions
- type ClouaccountChangeProjectOptions
- type ClouaccountProjectMappingOptions
- type CloudaccountEnableAutoSyncOptions
- type CloudaccountListOptions
- type CloudaccountPublicOptions
- type CloudaccountShareModeOptions
- type CloudaccountSyncOptions
- type CloudaccountSyncSkusOptions
- type CloudaccountUpdateCredentialOptions
- type CloudregionIdOptions
- type CloudregionSkuSyncOptions
- type DBInstanceAccountIdOptions
- type DBInstanceAccountListOptions
- type DBInstanceDatabaseCreateOptions
- type DBInstanceDatabaseIdOptions
- type DBInstanceDatabaseListOptions
- type DBInstanceSkuIdOption
- type DBInstanceSkuListOption
- type DNSCreateOptions
- type DNSGetOptions
- type DNSListOptions
- type DNSRecordOptions
- type DNSUpdateOptions
- type DNSUpdateRecordsOptions
- type DevtoolTemplateBindingOptions
- type DevtoolTemplateCommonOptions
- type DevtoolTemplateCreateOptions
- type DevtoolTemplateCronjobOptions
- type DevtoolTemplateIdOptions
- type DevtoolTemplateListOptions
- type DevtoolTemplateUpdateOptions
- type DnsRecordSetCreateOptions
- type DnsRecordSetIdOptions
- type DnsRecordSetListOptions
- type DnsRecordSetTrafficPolicyOptions
- type DnsRecordSetUpdateOptions
- type DnsTrafficPolicyCreateOptions
- type DnsTrafficPolicyListOptions
- type DnsZoneAddVpcsOptions
- type DnsZoneCacheIdOptions
- type DnsZoneCacheListOptions
- type DnsZoneCacheOptions
- type DnsZoneCapabilitiesOptions
- type DnsZoneCreateOptions
- type DnsZoneRemoveVpcsOptions
- type DnsZoneUncacheOptions
- type DomainStatisticsOptions
- type DomainTagValuePairsOptions
- type DomainTagValueTreeOptions
- type ElasticCacheAccountCreateOptions
- type ElasticCacheAclCreateOptions
- type ElasticCacheAclUpdateOptions
- type ElasticCacheAutoRenewOptions
- type ElasticCacheBackupCreateOptions
- type ElasticCacheCreateOptions
- type ElasticCacheIdOptions
- type ElasticCacheParameterUpdateOptions
- type ElasticCacheRemoteUpdateOptions
- type ElasticCacheRenewOptions
- type EmptyOption
- type EnabledStatusCreateOptions
- type EventPurgeSplitableOptions
- type EventSplitableOptions
- type ExtraListOptions
- type IParamsOptions
- type InterVpcNetworkAddVpcOPtions
- type InterVpcNetworkCreateOPtions
- type InterVpcNetworkIdOPtions
- type InterVpcNetworkListOPtions
- type InterVpcNetworkRemoveVpcOPtions
- type InterVpcNetworkRouteIdptions
- type InterVpcNetworkRouteListOptions
- type MetadataListOptions
- type MultiArchListOptions
- type NetworkAddressCreateOptions
- type NetworkAddressIdOptions
- type NetworkAddressListOptions
- type NetworkIdOptions
- type NetworkListOptions
- type NetworkUpdateOptions
- type PodBaseOptions
- type PodLogOptoins
- type PodShellOptions
- type ProjectStatisticsOptions
- type ProjectTagValuePairsOptions
- type ProjectTagValueTreeOptions
- type ProxySettingCreateOptions
- type ProxySettingDeleteOptions
- type ProxySettingGetOptions
- type ProxySettingListOptions
- type ProxySettingPrivateOptions
- type ProxySettingPublicOptions
- type ProxySettingTestOptions
- type ProxySettingUpdateOptions
- type ResourceMetadataOptions
- type Route
- type RouteTableAddRoutesOptions
- type RouteTableAssociationIdOptions
- type RouteTableAssociationListOptions
- type RouteTableCreateOptions
- type RouteTableDelRoutesOptions
- type RouteTableDeleteOptions
- type RouteTableGetOptions
- type RouteTableIdOptions
- type RouteTableListOptions
- type RouteTablePurgeOptions
- type RouteTableRouteSetCreateOptions
- type RouteTableRouteSetIdOptions
- type RouteTableRouteSetListOptions
- type RouteTableRouteSetUpdateOptions
- type RouteTableSyncstatusOptions
- type RouteTableUpdateOptions
- type Routes
- type RoutesOptions
- type SAWSCloudAccountCreateOptions
- type SAWSCloudAccountUpdateCredentialOptions
- type SAWSCloudAccountUpdateOptions
- type SAccessKeyCredential
- type SAccessKeyCredentialWithEnvironment
- type SAliyunAccessKeyCredentialWithEnvironment
- type SAliyunCloudAccountCreateOptions
- type SAliyunCloudAccountUpdateCredentialOptions
- type SAliyunCloudAccountUpdateOptions
- type SApsaraCloudAccountCreateOptions
- type SApsaraCloudAccountUpdateCredentialOptions
- type SAzureCloudAccountCreateOptions
- type SAzureCloudAccountUpdateCredentialOptions
- type SAzureCloudAccountUpdateOptions
- type SAzureCredential
- type SAzureCredentialWithEnvironment
- type SBingoCloudAccountCreateOptions
- type SBingoCloudAccountUpdateCredentialOptions
- type SBingoCloudAccountUpdateOptions
- type SCephCloudAccountCreateOptions
- type SCloudAccountCreateBaseOptions
- type SCloudAccountIdOptions
- type SCloudAccountUpdateBaseOptions
- type SCloudpodsCloudAccountCreateOptions
- type SCloudpodsCloudAccountUpdateCredentialOptions
- type SCloudpodsCloudAccountUpdateOptions
- type SCtyunCloudAccountCreateOptions
- type SCtyunCloudAccountUpdateCredentialOptions
- type SCtyunCloudAccountUpdateOptions
- type SDnsZoneIdOptions
- type SDnsZoneListOptions
- type SEcloudCloudAccountCreateOptions
- type SGoogleCloudAccountCreateOptions
- type SGoogleCloudAccountUpdateCredentialOptions
- type SGoogleCloudAccountUpdateOptions
- type SHCSAccountCreateOptions
- type SHCSAccountUpdateCredentialOptions
- type SHCSAccountUpdateOptions
- type SHCSOAccountCreateOptions
- type SHCSOAccountUpdateCredentialOptions
- type SHCSOAccountUpdateOptions
- type SHuaweiCloudAccountCreateOptions
- type SHuaweiCloudAccountUpdateCredentialOptions
- type SHuaweiCloudAccountUpdateOptions
- type SInCloudSphereAccountCreateOptions
- type SInCloudSphereAccountUpdateCredentialOptions
- type SInCloudSphereAccountUpdateOptions
- type SJDcloudCloudAccountCreateOptions
- type SJDcloudCloudAccountUpdateCredentialOptions
- type SJDcloudCloudAccountUpdateOptions
- type SNutanixCloudAccountCreateOptions
- type SNutanixCloudAccountUpdateCredentialOptions
- type SNutanixCloudAccountUpdateOptions
- type SNutanixCredentialWithEnvironment
- type SOpenStackCloudAccountCreateOptions
- type SOpenStackCloudAccountUpdateCredentialOptions
- type SOpenStackCloudAccountUpdateOptions
- type SOpenStackCredential
- type SOpenStackCredentialWithAuthURL
- type SProxmoxAccountCreateOptions
- type SProxmoxAccountUpdateCredentialOptions
- type SProxmoxAccountUpdateOptions
- type SProxmoxCredentialWithEnvironment
- type SQcloudCloudAccountCreateOptions
- type SQcloudCloudAccountUpdateCredentialOptions
- type SQcloudCloudAccountUpdateOptions
- type SQcloudCredential
- type SRemoteFileAccountCreateOptions
- type SS3CloudAccountCreateOptions
- type SS3CloudAccountUpdateCredentialOptions
- type SS3CloudAccountUpdateOptions
- type SUcloudCloudAccountCreateOptions
- type SUcloudCloudAccountUpdateCredentialOptions
- type SUcloudCloudAccountUpdateOptions
- type SUserPasswordCredential
- type SVMwareCloudAccountCreateOptions
- type SVMwareCloudAccountPrepareNetsOptions
- type SVMwareCloudAccountUpdateCredentialOptions
- type SVMwareCloudAccountUpdateOptions
- type SVMwareCredentialWithEnvironment
- type SXskyCloudAccountCreateOptions
- type SZStackCloudAccountCreateOptions
- type SZStackCloudAccountUpdateCredentialOptions
- type SZStackCloudAccountUpdateOptions
- type SchedtagCreateOptions
- type SchedtagListOptions
- type SchedtagModelListOptions
- type SchedtagModelPairOptions
- type SchedtagSetOptions
- type SchedtagSetResource
- type SchedtagSetScopeOptions
- type SchedtagShowOptions
- type SchedtagUpdateOptions
- type ScopedResourceListOptions
- type SecgroupChangeOwnerOptions
- type SecgroupCreateOptions
- type SecgroupIdOptions
- type SecgroupImportRulesOptions
- type SecgroupListOptions
- type SecgroupMergeOptions
- type SecgroupsAddRuleOptions
- type SecurityGroupCacheOptions
- type SecurityGroupUncacheSecurityGroup
- type ServerSkusCreateOptions
- type ServerSkusIdOptions
- type ServerSkusListOptions
- type ServerSkusUpdateOptions
- type ServiceCertificateCreateOptions
- type SharableProjectizedResourceBaseCreateInput
- type SharableResourcePublicBaseOptions
- type SkuSyncOptions
- type SkuTaskQueryOptions
- type StatusStatisticsOptions
- type SubscriptionCreateOptions
- type SwirePublicOptions
- type SwireupdateOptions
- type TagListOptions
- type TagValuePairsOptions
- type TagValueTreeOptions
- type VpcChangeOwnerOptions
- type VpcCreateOptions
- type VpcIdOptions
- type VpcListOptions
- type VpcPeeringConnectionCreateOptions
- type VpcPeeringConnectionIdOptions
- type VpcPeeringConnectionListOptions
- type VpcStatusOptions
- type VpcUpdateOptions
- type WebConsoleBaremetalOptions
- type WebConsoleOptions
- type WebConsoleServerOptions
- type WebConsoleSshOptions
- type WireCreateOptions
- type WireListOptions
- type WireMergeOptions
- type WireOptions
- type WirePublicOptions
- type WireUpdateOptions
Constants ¶
const ( ListOrderAsc = "asc" ListOrderDesc = "desc" )
Variables ¶
var BaseListOptionsType = reflect.TypeOf((*BaseListOptions)(nil)).Elem()
Functions ¶
func 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 ¶
BoolV returns the bool value as pointed to by the argument if it's non-nil, return false otherwise
func 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 ¶
IntV returns the integer value as pointed to by the argument if it's non-nil, return 0 otherwise
func ListStructToParams ¶
ListStructToParams converts the struct as pointed to by the argument to JSON dict params, taking into account .BaseListOptions.Params() if it exists
func StructToParams ¶
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 }
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 }
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
type BasePublicOptions ¶
type BasePublicOptions struct { ID string `help:"ID or name of resource" json:"-"` Scope string `help:"sharing scope" choices:"system|domain"` }
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 ¶
func (o ChangeOwnerOptions) Params() (jsonutils.JSONObject, error)
type ClouaccountChangeOwnerOptions ¶
type ClouaccountChangeOwnerOptions struct { SCloudAccountIdOptions ProjectDomain string `json:"project_domain" help:"target domain"` }
func (*ClouaccountChangeOwnerOptions) Params ¶
func (opts *ClouaccountChangeOwnerOptions) Params() (jsonutils.JSONObject, error)
type ClouaccountChangeProjectOptions ¶
type ClouaccountChangeProjectOptions struct { SCloudAccountIdOptions PROJECT string `json:"project" help:"target domain"` }
func (*ClouaccountChangeProjectOptions) Params ¶
func (opts *ClouaccountChangeProjectOptions) Params() (jsonutils.JSONObject, error)
type ClouaccountProjectMappingOptions ¶
type ClouaccountProjectMappingOptions struct { SCloudAccountIdOptions ProjectMappingId string `json:"project_mapping_id" help:"project mapping id"` }
func (*ClouaccountProjectMappingOptions) Params ¶
func (opts *ClouaccountProjectMappingOptions) Params() (jsonutils.JSONObject, error)
type CloudaccountEnableAutoSyncOptions ¶
type CloudaccountEnableAutoSyncOptions struct { SCloudAccountIdOptions SyncIntervalSeconds int `help:"new sync interval in seconds"` }
func (*CloudaccountEnableAutoSyncOptions) Params ¶
func (opts *CloudaccountEnableAutoSyncOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *CloudaccountListOptions) Params() (jsonutils.JSONObject, error)
type CloudaccountPublicOptions ¶
type CloudaccountPublicOptions struct { SCloudAccountIdOptions Scope string `help:"public_sccope" choices:"domain|system" json:"scope"` }
func (*CloudaccountPublicOptions) Params ¶
func (opts *CloudaccountPublicOptions) Params() (jsonutils.JSONObject, error)
type CloudaccountShareModeOptions ¶
type CloudaccountShareModeOptions struct {}
func (*CloudaccountShareModeOptions) Params ¶
func (opts *CloudaccountShareModeOptions) Params() (jsonutils.JSONObject, error)
type CloudaccountSyncOptions ¶
type CloudaccountSyncOptions struct { SCloudAccountIdOptions api.SyncRangeInput }
func (*CloudaccountSyncOptions) Params ¶
func (opts *CloudaccountSyncOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *CloudaccountSyncSkusOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *CloudaccountUpdateCredentialOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *CloudregionSkuSyncOptions) Params() (jsonutils.JSONObject, error)
type DBInstanceAccountIdOptions ¶
type DBInstanceAccountIdOptions struct {
ID string `help:"ID of DBInstanceaccount"`
}
func (*DBInstanceAccountIdOptions) GetId ¶
func (opts *DBInstanceAccountIdOptions) GetId() string
func (*DBInstanceAccountIdOptions) Params ¶
func (opts *DBInstanceAccountIdOptions) Params() (jsonutils.JSONObject, error)
type DBInstanceAccountListOptions ¶
type DBInstanceAccountListOptions struct { BaseListOptions DBInstance string `help:"ID or Name of DBInstance" json:"dbinstance"` }
func (*DBInstanceAccountListOptions) Params ¶
func (opts *DBInstanceAccountListOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *DBInstanceDatabaseCreateOptions) Params() (jsonutils.JSONObject, error)
type DBInstanceDatabaseIdOptions ¶
type DBInstanceDatabaseIdOptions struct {
ID string `help:"ID of DBInstancedatabase"`
}
func (*DBInstanceDatabaseIdOptions) GetId ¶
func (opts *DBInstanceDatabaseIdOptions) GetId() string
func (*DBInstanceDatabaseIdOptions) Params ¶
func (opts *DBInstanceDatabaseIdOptions) Params() (jsonutils.JSONObject, error)
type DBInstanceDatabaseListOptions ¶
type DBInstanceDatabaseListOptions struct { BaseListOptions DBInstance string `help:"ID or Name of DBInstance" json:"dbinstance"` }
func (*DBInstanceDatabaseListOptions) Params ¶
func (opts *DBInstanceDatabaseListOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *DBInstanceSkuListOption) Params() (jsonutils.JSONObject, error)
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 }
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 }
type DNSUpdateRecordsOptions ¶
type DNSUpdateRecordsOptions struct { ID string `help:"ID of dns record to modify" json:"-"` DNSRecordOptions }
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 }
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"` }
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 ¶
func (opts *DnsRecordSetCreateOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *DnsRecordSetListOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts DnsRecordSetTrafficPolicyOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *DnsRecordSetUpdateOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *DnsTrafficPolicyCreateOptions) Params() (jsonutils.JSONObject, error)
type DnsTrafficPolicyListOptions ¶
type DnsTrafficPolicyListOptions struct { BaseListOptions PolicyType string `choices:"Simple|ByCarrier|ByGeoLocation|BySearchEngine|IpRange|Weighted|Failover|MultiValueAnswer|Latency"` }
func (*DnsTrafficPolicyListOptions) Params ¶
func (opts *DnsTrafficPolicyListOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts DnsZoneCacheIdOptions) Params() (jsonutils.JSONObject, error)
type DnsZoneCacheListOptions ¶
type DnsZoneCacheListOptions struct { BaseListOptions DnsZoneId string `help:"Dns Zone Id"` }
func (*DnsZoneCacheListOptions) Params ¶
func (opts *DnsZoneCacheListOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *DnsZoneCapabilitiesOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *DnsZoneRemoveVpcsOptions) Params() (jsonutils.JSONObject, error)
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 ElasticCacheAutoRenewOptions ¶
type ElasticCacheAutoRenewOptions struct { ElasticCacheIdOptions AutoRenew bool `help:"Set elastic cache auto renew or manual renew"` }
func (*ElasticCacheAutoRenewOptions) Params ¶
func (o *ElasticCacheAutoRenewOptions) Params() (jsonutils.JSONObject, error)
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:"-"` }
type ElasticCacheIdOptions ¶
type ElasticCacheIdOptions struct {
ID string
}
type ElasticCacheRemoteUpdateOptions ¶
type ElasticCacheRemoteUpdateOptions struct { ID string `json:"-"` computeapi.ElasticcacheRemoteUpdateInput }
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 ¶
func (self *EventPurgeSplitableOptions) Params() (jsonutils.JSONObject, error)
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 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 ¶
func (opts *InterVpcNetworkAddVpcOPtions) Params() (jsonutils.JSONObject, error)
type InterVpcNetworkCreateOPtions ¶
type InterVpcNetworkCreateOPtions struct { EnabledStatusCreateOptions ManagerId string }
func (*InterVpcNetworkCreateOPtions) Params ¶
func (opts *InterVpcNetworkCreateOPtions) Params() (jsonutils.JSONObject, error)
type InterVpcNetworkIdOPtions ¶
type InterVpcNetworkIdOPtions struct {
ID string `json:"Vpc peering connection ID"`
}
func (*InterVpcNetworkIdOPtions) GetId ¶
func (opts *InterVpcNetworkIdOPtions) GetId() string
func (*InterVpcNetworkIdOPtions) Params ¶
func (opts *InterVpcNetworkIdOPtions) Params() (jsonutils.JSONObject, error)
type InterVpcNetworkListOPtions ¶
type InterVpcNetworkListOPtions struct {
BaseListOptions
}
func (*InterVpcNetworkListOPtions) Params ¶
func (opts *InterVpcNetworkListOPtions) Params() (jsonutils.JSONObject, error)
type InterVpcNetworkRemoveVpcOPtions ¶
type InterVpcNetworkRemoveVpcOPtions struct { ID string `json:"Vpc peering connection ID"` VpcId string `json:"Vpc ID"` }
func (*InterVpcNetworkRemoveVpcOPtions) GetId ¶
func (opts *InterVpcNetworkRemoveVpcOPtions) GetId() string
func (*InterVpcNetworkRemoveVpcOPtions) Params ¶
func (opts *InterVpcNetworkRemoveVpcOPtions) Params() (jsonutils.JSONObject, error)
type InterVpcNetworkRouteIdptions ¶
type InterVpcNetworkRouteIdptions struct {
ID string
}
func (*InterVpcNetworkRouteIdptions) GetId ¶
func (opts *InterVpcNetworkRouteIdptions) GetId() string
func (*InterVpcNetworkRouteIdptions) Params ¶
func (opts *InterVpcNetworkRouteIdptions) Params() (jsonutils.JSONObject, error)
type InterVpcNetworkRouteListOptions ¶
type InterVpcNetworkRouteListOptions struct { BaseListOptions InterVpcNetworkId string Cidr string }
func (*InterVpcNetworkRouteListOptions) Params ¶
func (opts *InterVpcNetworkRouteListOptions) Params() (jsonutils.JSONObject, error)
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"`
}
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 ¶
func (opts *NetworkAddressCreateOptions) Params() (jsonutils.JSONObject, error)
type NetworkAddressIdOptions ¶
type NetworkAddressIdOptions struct {
ID string
}
func (*NetworkAddressIdOptions) GetId ¶
func (opts *NetworkAddressIdOptions) GetId() string
func (*NetworkAddressIdOptions) Params ¶
func (opts *NetworkAddressIdOptions) Params() (jsonutils.JSONObject, error)
type NetworkAddressListOptions ¶
type NetworkAddressListOptions struct { BaseListOptions Type string ParentType string ParentId string NetworkId string IpAddr string GuestId []string }
func (*NetworkAddressListOptions) Params ¶
func (opts *NetworkAddressListOptions) Params() (jsonutils.JSONObject, error)
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"` }
type PodLogOptoins ¶
type PodLogOptoins struct { PodBaseOptions Since string `help:"Only return logs newer than a relative duration like 5s, 2m or 3h"` }
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 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"` }
type ProxySettingTestOptions ¶
type ProxySettingTestOptions struct {
ID string `json:"-"`
}
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 ¶
func (opts *ResourceMetadataOptions) Params() (jsonutils.JSONObject, error)
type RouteTableAddRoutesOptions ¶
type RouteTableAddRoutesOptions struct { ID string `json:"-"` RoutesOptions }
func (*RouteTableAddRoutesOptions) GetId ¶
func (opts *RouteTableAddRoutesOptions) GetId() string
func (*RouteTableAddRoutesOptions) Params ¶
func (opts *RouteTableAddRoutesOptions) Params() (jsonutils.JSONObject, error)
type RouteTableAssociationIdOptions ¶
type RouteTableAssociationIdOptions struct {
ID string `json:"route table routeset ID"`
}
func (*RouteTableAssociationIdOptions) GetId ¶
func (opts *RouteTableAssociationIdOptions) GetId() string
func (*RouteTableAssociationIdOptions) Params ¶
func (opts *RouteTableAssociationIdOptions) Params() (jsonutils.JSONObject, error)
type RouteTableAssociationListOptions ¶
type RouteTableAssociationListOptions struct { BaseListOptions RouteTableId string VpcId string }
func (*RouteTableAssociationListOptions) Params ¶
func (opts *RouteTableAssociationListOptions) Params() (jsonutils.JSONObject, error)
type RouteTableCreateOptions ¶
type RouteTableCreateOptions struct { NAME string Vpc string `required:"true"` RoutesOptions }
func (*RouteTableCreateOptions) Params ¶
func (opts *RouteTableCreateOptions) Params() (jsonutils.JSONObject, error)
type RouteTableDelRoutesOptions ¶
func (*RouteTableDelRoutesOptions) GetId ¶
func (opts *RouteTableDelRoutesOptions) GetId() string
func (*RouteTableDelRoutesOptions) Params ¶
func (opts *RouteTableDelRoutesOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *RouteTableRouteSetCreateOptions) Params() (jsonutils.JSONObject, error)
type RouteTableRouteSetIdOptions ¶
type RouteTableRouteSetIdOptions struct {
ID string `json:"route table routeset ID"`
}
func (*RouteTableRouteSetIdOptions) GetId ¶
func (opts *RouteTableRouteSetIdOptions) GetId() string
func (*RouteTableRouteSetIdOptions) Params ¶
func (opts *RouteTableRouteSetIdOptions) Params() (jsonutils.JSONObject, error)
type RouteTableRouteSetListOptions ¶
type RouteTableRouteSetListOptions struct { BaseListOptions RouteTableId string VpcId string Type string NextHopType string NextHopId string Cidr string }
func (*RouteTableRouteSetListOptions) Params ¶
func (opts *RouteTableRouteSetListOptions) Params() (jsonutils.JSONObject, error)
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 (opts *RouteTableRouteSetUpdateOptions) GetId() string
func (*RouteTableRouteSetUpdateOptions) Params ¶
func (opts *RouteTableRouteSetUpdateOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *RouteTableUpdateOptions) Params() (jsonutils.JSONObject, error)
type RoutesOptions ¶
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 ¶
func (opts *SAWSCloudAccountCreateOptions) Params() (jsonutils.JSONObject, error)
type SAWSCloudAccountUpdateCredentialOptions ¶
type SAWSCloudAccountUpdateCredentialOptions struct { SCloudAccountIdOptions SAccessKeyCredential }
func (*SAWSCloudAccountUpdateCredentialOptions) Params ¶
func (opts *SAWSCloudAccountUpdateCredentialOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *SAWSCloudAccountUpdateOptions) Params() (jsonutils.JSONObject, error)
type SAccessKeyCredential ¶
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 ¶
func (opts *SAliyunCloudAccountCreateOptions) Params() (jsonutils.JSONObject, error)
type SAliyunCloudAccountUpdateCredentialOptions ¶
type SAliyunCloudAccountUpdateCredentialOptions struct { SCloudAccountIdOptions SAccessKeyCredential }
func (*SAliyunCloudAccountUpdateCredentialOptions) Params ¶
func (opts *SAliyunCloudAccountUpdateCredentialOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *SAliyunCloudAccountUpdateOptions) Params() (jsonutils.JSONObject, error)
type SApsaraCloudAccountCreateOptions ¶
type SApsaraCloudAccountCreateOptions struct { SCloudAccountCreateBaseOptions Endpoint string SAccessKeyCredential }
func (*SApsaraCloudAccountCreateOptions) Params ¶
func (opts *SApsaraCloudAccountCreateOptions) Params() (jsonutils.JSONObject, error)
type SApsaraCloudAccountUpdateCredentialOptions ¶
type SApsaraCloudAccountUpdateCredentialOptions struct { SCloudAccountIdOptions SAccessKeyCredential OrganizationId int }
func (*SApsaraCloudAccountUpdateCredentialOptions) Params ¶
func (opts *SApsaraCloudAccountUpdateCredentialOptions) Params() (jsonutils.JSONObject, error)
type SAzureCloudAccountCreateOptions ¶
type SAzureCloudAccountCreateOptions struct { SCloudAccountCreateBaseOptions SAzureCredentialWithEnvironment }
func (*SAzureCloudAccountCreateOptions) Params ¶
func (opts *SAzureCloudAccountCreateOptions) Params() (jsonutils.JSONObject, error)
type SAzureCloudAccountUpdateCredentialOptions ¶
type SAzureCloudAccountUpdateCredentialOptions struct { SCloudAccountIdOptions SAzureCredential }
func (*SAzureCloudAccountUpdateCredentialOptions) Params ¶
func (opts *SAzureCloudAccountUpdateCredentialOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *SAzureCloudAccountUpdateOptions) Params() (jsonutils.JSONObject, error)
type SAzureCredential ¶
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 ¶
func (opts *SBingoCloudAccountCreateOptions) Params() (jsonutils.JSONObject, error)
type SBingoCloudAccountUpdateCredentialOptions ¶
type SBingoCloudAccountUpdateCredentialOptions struct { SCloudAccountIdOptions SAccessKeyCredential }
func (*SBingoCloudAccountUpdateCredentialOptions) Params ¶
func (opts *SBingoCloudAccountUpdateCredentialOptions) Params() (jsonutils.JSONObject, error)
type SBingoCloudAccountUpdateOptions ¶
type SBingoCloudAccountUpdateOptions struct {
SCloudAccountUpdateBaseOptions
}
type SCephCloudAccountCreateOptions ¶
type SCephCloudAccountCreateOptions struct {
SS3CloudAccountCreateOptions
}
func (*SCephCloudAccountCreateOptions) Params ¶
func (opts *SCephCloudAccountCreateOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *SCloudAccountIdOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *SCloudAccountUpdateBaseOptions) Params() (jsonutils.JSONObject, error)
type SCloudpodsCloudAccountCreateOptions ¶
type SCloudpodsCloudAccountCreateOptions struct { SCloudAccountCreateBaseOptions SAccessKeyCredential AuthURL string `help:"Cloudpods auth_url" positional:"true" json:"auth_url"` }
func (*SCloudpodsCloudAccountCreateOptions) Params ¶
func (opts *SCloudpodsCloudAccountCreateOptions) Params() (jsonutils.JSONObject, error)
type SCloudpodsCloudAccountUpdateCredentialOptions ¶
type SCloudpodsCloudAccountUpdateCredentialOptions struct { SCloudAccountIdOptions SAccessKeyCredential }
func (*SCloudpodsCloudAccountUpdateCredentialOptions) Params ¶
func (opts *SCloudpodsCloudAccountUpdateCredentialOptions) Params() (jsonutils.JSONObject, error)
type SCloudpodsCloudAccountUpdateOptions ¶
type SCloudpodsCloudAccountUpdateOptions struct {
SCloudAccountUpdateBaseOptions
}
func (*SCloudpodsCloudAccountUpdateOptions) Params ¶
func (opts *SCloudpodsCloudAccountUpdateOptions) Params() (jsonutils.JSONObject, error)
type SCtyunCloudAccountCreateOptions ¶
type SCtyunCloudAccountCreateOptions struct { SCloudAccountCreateBaseOptions SAccessKeyCredentialWithEnvironment cloudprovider.SCtyunExtraOptions }
func (*SCtyunCloudAccountCreateOptions) Params ¶
func (opts *SCtyunCloudAccountCreateOptions) Params() (jsonutils.JSONObject, error)
type SCtyunCloudAccountUpdateCredentialOptions ¶
type SCtyunCloudAccountUpdateCredentialOptions struct { SCloudAccountIdOptions SAccessKeyCredential }
func (*SCtyunCloudAccountUpdateCredentialOptions) Params ¶
func (opts *SCtyunCloudAccountUpdateCredentialOptions) Params() (jsonutils.JSONObject, error)
type SCtyunCloudAccountUpdateOptions ¶
type SCtyunCloudAccountUpdateOptions struct { SCloudAccountUpdateBaseOptions cloudprovider.SCtyunExtraOptions }
func (*SCtyunCloudAccountUpdateOptions) Params ¶
func (opts *SCtyunCloudAccountUpdateOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *SEcloudCloudAccountCreateOptions) Params() (jsonutils.JSONObject, error)
type SGoogleCloudAccountCreateOptions ¶
type SGoogleCloudAccountCreateOptions struct { SCloudAccountCreateBaseOptions GoogleJsonFile string `help:"Google auth json file" positional:"true"` }
func (*SGoogleCloudAccountCreateOptions) Params ¶
func (opts *SGoogleCloudAccountCreateOptions) Params() (jsonutils.JSONObject, error)
type SGoogleCloudAccountUpdateCredentialOptions ¶
type SGoogleCloudAccountUpdateCredentialOptions struct { SCloudAccountIdOptions GoogleJsonFile string `help:"Google auth json file" positional:"true"` }
func (*SGoogleCloudAccountUpdateCredentialOptions) Params ¶
func (opts *SGoogleCloudAccountUpdateCredentialOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *SGoogleCloudAccountUpdateOptions) Params() (jsonutils.JSONObject, error)
type SHCSAccountCreateOptions ¶
type SHCSAccountCreateOptions struct { SCloudAccountCreateBaseOptions AuthURL string `help:"Hcs auth_url" positional:"true" json:"auth_url"` SAccessKeyCredential }
func (*SHCSAccountCreateOptions) Params ¶
func (opts *SHCSAccountCreateOptions) Params() (jsonutils.JSONObject, error)
type SHCSAccountUpdateCredentialOptions ¶
type SHCSAccountUpdateCredentialOptions struct { SCloudAccountIdOptions SAccessKeyCredential }
func (*SHCSAccountUpdateCredentialOptions) Params ¶
func (opts *SHCSAccountUpdateCredentialOptions) Params() (jsonutils.JSONObject, error)
type SHCSAccountUpdateOptions ¶
type SHCSAccountUpdateOptions struct {
SCloudAccountUpdateBaseOptions
}
func (*SHCSAccountUpdateOptions) Params ¶
func (opts *SHCSAccountUpdateOptions) Params() (jsonutils.JSONObject, error)
type SHCSOAccountCreateOptions ¶
type SHCSOAccountCreateOptions struct { SCloudAccountCreateBaseOptions cloudprovider.SHCSOEndpoints SAccessKeyCredential }
func (*SHCSOAccountCreateOptions) Params ¶
func (opts *SHCSOAccountCreateOptions) Params() (jsonutils.JSONObject, error)
type SHCSOAccountUpdateCredentialOptions ¶
type SHCSOAccountUpdateCredentialOptions struct { SCloudAccountIdOptions cloudprovider.SHCSOEndpoints SAccessKeyCredential }
func (*SHCSOAccountUpdateCredentialOptions) Params ¶
func (opts *SHCSOAccountUpdateCredentialOptions) Params() (jsonutils.JSONObject, error)
type SHCSOAccountUpdateOptions ¶
type SHCSOAccountUpdateOptions struct {
SCloudAccountUpdateBaseOptions
}
func (*SHCSOAccountUpdateOptions) Params ¶
func (opts *SHCSOAccountUpdateOptions) Params() (jsonutils.JSONObject, error)
type SHuaweiCloudAccountCreateOptions ¶
type SHuaweiCloudAccountCreateOptions struct { SCloudAccountCreateBaseOptions SAccessKeyCredentialWithEnvironment }
func (*SHuaweiCloudAccountCreateOptions) Params ¶
func (opts *SHuaweiCloudAccountCreateOptions) Params() (jsonutils.JSONObject, error)
type SHuaweiCloudAccountUpdateCredentialOptions ¶
type SHuaweiCloudAccountUpdateCredentialOptions struct { SCloudAccountIdOptions SAccessKeyCredential }
func (*SHuaweiCloudAccountUpdateCredentialOptions) Params ¶
func (opts *SHuaweiCloudAccountUpdateCredentialOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *SHuaweiCloudAccountUpdateOptions) Params() (jsonutils.JSONObject, error)
type SInCloudSphereAccountCreateOptions ¶
type SInCloudSphereAccountCreateOptions struct { SCloudAccountCreateBaseOptions HOST string SAccessKeyCredential }
func (*SInCloudSphereAccountCreateOptions) Params ¶
func (opts *SInCloudSphereAccountCreateOptions) Params() (jsonutils.JSONObject, error)
type SInCloudSphereAccountUpdateCredentialOptions ¶
type SInCloudSphereAccountUpdateCredentialOptions struct { SCloudAccountIdOptions SAccessKeyCredential }
func (*SInCloudSphereAccountUpdateCredentialOptions) Params ¶
func (opts *SInCloudSphereAccountUpdateCredentialOptions) Params() (jsonutils.JSONObject, error)
type SInCloudSphereAccountUpdateOptions ¶
type SInCloudSphereAccountUpdateOptions struct {
SCloudAccountUpdateBaseOptions
}
type SJDcloudCloudAccountCreateOptions ¶
type SJDcloudCloudAccountCreateOptions struct { SCloudAccountCreateBaseOptions SAccessKeyCredential }
func (*SJDcloudCloudAccountCreateOptions) Params ¶
func (opts *SJDcloudCloudAccountCreateOptions) Params() (jsonutils.JSONObject, error)
type SJDcloudCloudAccountUpdateCredentialOptions ¶
type SJDcloudCloudAccountUpdateCredentialOptions struct { SCloudAccountIdOptions SAccessKeyCredential }
func (*SJDcloudCloudAccountUpdateCredentialOptions) Params ¶
func (opts *SJDcloudCloudAccountUpdateCredentialOptions) Params() (jsonutils.JSONObject, error)
type SJDcloudCloudAccountUpdateOptions ¶
type SJDcloudCloudAccountUpdateOptions struct {
SCloudAccountUpdateBaseOptions
}
func (*SJDcloudCloudAccountUpdateOptions) Params ¶
func (opts *SJDcloudCloudAccountUpdateOptions) Params() (jsonutils.JSONObject, error)
type SNutanixCloudAccountCreateOptions ¶
type SNutanixCloudAccountCreateOptions struct { SCloudAccountCreateBaseOptions SNutanixCredentialWithEnvironment }
func (*SNutanixCloudAccountCreateOptions) Params ¶
func (opts *SNutanixCloudAccountCreateOptions) Params() (jsonutils.JSONObject, error)
type SNutanixCloudAccountUpdateCredentialOptions ¶
type SNutanixCloudAccountUpdateCredentialOptions struct { SCloudAccountIdOptions SUserPasswordCredential }
func (*SNutanixCloudAccountUpdateCredentialOptions) Params ¶
func (opts *SNutanixCloudAccountUpdateCredentialOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *SOpenStackCloudAccountCreateOptions) Params() (jsonutils.JSONObject, error)
type SOpenStackCloudAccountUpdateCredentialOptions ¶
type SOpenStackCloudAccountUpdateCredentialOptions struct { SCloudAccountIdOptions SOpenStackCredential }
func (*SOpenStackCloudAccountUpdateCredentialOptions) Params ¶
func (opts *SOpenStackCloudAccountUpdateCredentialOptions) Params() (jsonutils.JSONObject, error)
type SOpenStackCloudAccountUpdateOptions ¶
type SOpenStackCloudAccountUpdateOptions struct {
SCloudAccountUpdateBaseOptions
}
func (*SOpenStackCloudAccountUpdateOptions) Params ¶
func (opts *SOpenStackCloudAccountUpdateOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *SProxmoxAccountCreateOptions) Params() (jsonutils.JSONObject, error)
type SProxmoxAccountUpdateCredentialOptions ¶
type SProxmoxAccountUpdateCredentialOptions struct { SCloudAccountIdOptions SUserPasswordCredential }
func (*SProxmoxAccountUpdateCredentialOptions) Params ¶
func (opts *SProxmoxAccountUpdateCredentialOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *SQcloudCloudAccountCreateOptions) Params() (jsonutils.JSONObject, error)
type SQcloudCloudAccountUpdateCredentialOptions ¶
type SQcloudCloudAccountUpdateCredentialOptions struct { SCloudAccountIdOptions SQcloudCredential }
func (*SQcloudCloudAccountUpdateCredentialOptions) Params ¶
func (opts *SQcloudCloudAccountUpdateCredentialOptions) Params() (jsonutils.JSONObject, error)
type SQcloudCloudAccountUpdateOptions ¶
type SQcloudCloudAccountUpdateOptions struct {
SCloudAccountUpdateBaseOptions
}
func (*SQcloudCloudAccountUpdateOptions) Params ¶
func (opts *SQcloudCloudAccountUpdateOptions) Params() (jsonutils.JSONObject, error)
type SQcloudCredential ¶
type SRemoteFileAccountCreateOptions ¶
type SRemoteFileAccountCreateOptions struct { SCloudAccountCreateBaseOptions AuthURL string }
func (*SRemoteFileAccountCreateOptions) Params ¶
func (opts *SRemoteFileAccountCreateOptions) Params() (jsonutils.JSONObject, error)
type SS3CloudAccountCreateOptions ¶
type SS3CloudAccountCreateOptions struct { SCloudAccountCreateBaseOptions SAccessKeyCredential Endpoint string `help:"S3 endpoint" required:"true" positional:"true" json:"endpoint"` }
func (*SS3CloudAccountCreateOptions) Params ¶
func (opts *SS3CloudAccountCreateOptions) Params() (jsonutils.JSONObject, error)
type SS3CloudAccountUpdateCredentialOptions ¶
type SS3CloudAccountUpdateCredentialOptions struct { SCloudAccountIdOptions SAccessKeyCredential }
func (*SS3CloudAccountUpdateCredentialOptions) Params ¶
func (opts *SS3CloudAccountUpdateCredentialOptions) Params() (jsonutils.JSONObject, error)
type SS3CloudAccountUpdateOptions ¶
type SS3CloudAccountUpdateOptions struct {
SCloudAccountUpdateBaseOptions
}
func (*SS3CloudAccountUpdateOptions) Params ¶
func (opts *SS3CloudAccountUpdateOptions) Params() (jsonutils.JSONObject, error)
type SUcloudCloudAccountCreateOptions ¶
type SUcloudCloudAccountCreateOptions struct { SCloudAccountCreateBaseOptions SAccessKeyCredential }
func (*SUcloudCloudAccountCreateOptions) Params ¶
func (opts *SUcloudCloudAccountCreateOptions) Params() (jsonutils.JSONObject, error)
type SUcloudCloudAccountUpdateCredentialOptions ¶
type SUcloudCloudAccountUpdateCredentialOptions struct { SCloudAccountIdOptions SAccessKeyCredential }
func (*SUcloudCloudAccountUpdateCredentialOptions) Params ¶
func (opts *SUcloudCloudAccountUpdateCredentialOptions) Params() (jsonutils.JSONObject, error)
type SUcloudCloudAccountUpdateOptions ¶
type SUcloudCloudAccountUpdateOptions struct {
SCloudAccountUpdateBaseOptions
}
func (*SUcloudCloudAccountUpdateOptions) Params ¶
func (opts *SUcloudCloudAccountUpdateOptions) Params() (jsonutils.JSONObject, error)
type SUserPasswordCredential ¶
type SVMwareCloudAccountCreateOptions ¶
type SVMwareCloudAccountCreateOptions struct { SCloudAccountCreateBaseOptions SVMwareCredentialWithEnvironment }
func (*SVMwareCloudAccountCreateOptions) Params ¶
func (opts *SVMwareCloudAccountCreateOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *SVMwareCloudAccountPrepareNetsOptions) Params() (jsonutils.JSONObject, error)
type SVMwareCloudAccountUpdateCredentialOptions ¶
type SVMwareCloudAccountUpdateCredentialOptions struct { SCloudAccountIdOptions SUserPasswordCredential }
func (*SVMwareCloudAccountUpdateCredentialOptions) Params ¶
func (opts *SVMwareCloudAccountUpdateCredentialOptions) Params() (jsonutils.JSONObject, error)
type SVMwareCloudAccountUpdateOptions ¶
type SVMwareCloudAccountUpdateOptions struct {
SCloudAccountUpdateBaseOptions
}
func (*SVMwareCloudAccountUpdateOptions) Params ¶
func (opts *SVMwareCloudAccountUpdateOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *SXskyCloudAccountCreateOptions) Params() (jsonutils.JSONObject, error)
type SZStackCloudAccountCreateOptions ¶
type SZStackCloudAccountCreateOptions struct { SCloudAccountCreateBaseOptions SUserPasswordCredential AuthURL string `help:"ZStack auth_url" positional:"true" json:"auth_url"` }
func (*SZStackCloudAccountCreateOptions) Params ¶
func (opts *SZStackCloudAccountCreateOptions) Params() (jsonutils.JSONObject, error)
type SZStackCloudAccountUpdateCredentialOptions ¶
type SZStackCloudAccountUpdateCredentialOptions struct { SCloudAccountIdOptions SUserPasswordCredential }
func (*SZStackCloudAccountUpdateCredentialOptions) Params ¶
func (opts *SZStackCloudAccountUpdateCredentialOptions) Params() (jsonutils.JSONObject, error)
type SZStackCloudAccountUpdateOptions ¶
type SZStackCloudAccountUpdateOptions struct {
SCloudAccountUpdateBaseOptions
}
func (*SZStackCloudAccountUpdateOptions) Params ¶
func (opts *SZStackCloudAccountUpdateOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (o SchedtagCreateOptions) Params() (jsonutils.JSONObject, error)
type SchedtagListOptions ¶
type SchedtagListOptions struct { BaseListOptions Type string `help:"Filter by resource type"` CloudproviderId string `help:"Filter by cloudprovider id"` }
func (SchedtagListOptions) Params ¶
func (o SchedtagListOptions) Params() (jsonutils.JSONObject, error)
type SchedtagModelListOptions ¶
type SchedtagModelListOptions struct { BaseListOptions Schedtag string `help:"ID or Name of schedtag"` }
type SchedtagSetOptions ¶
type SchedtagSetOptions struct { ID string `help:"Id or name of resource"` Schedtag []string `help:"Ids of schedtag"` }
func (SchedtagSetOptions) Params ¶
func (o SchedtagSetOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (o SchedtagSetResource) Params() (jsonutils.JSONObject, error)
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 ¶
func (o SchedtagSetScopeOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (o SchedtagShowOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (o SchedtagUpdateOptions) Params() (jsonutils.JSONObject, error)
type ScopedResourceListOptions ¶
type ScopedResourceListOptions struct {
BelongScope string `help:"Filter by resource belong scope" choices:"system|domain|project"`
}
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 ¶
func (opts *SecgroupImportRulesOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *SecgroupsAddRuleOptions) Params() (jsonutils.JSONObject, error)
type SecurityGroupCacheOptions ¶
type SecurityGroupCacheOptions struct { SecgroupIdOptions VPC string `help:"ID or Name of vpc"` Classic *bool `help:"Is classic vpc"` }
func (*SecurityGroupCacheOptions) Params ¶
func (opts *SecurityGroupCacheOptions) Params() (jsonutils.JSONObject, error)
type SecurityGroupUncacheSecurityGroup ¶
type SecurityGroupUncacheSecurityGroup struct { SecgroupIdOptions CACHE string `help:"ID of secgroup cache"` }
func (*SecurityGroupUncacheSecurityGroup) Params ¶
func (opts *SecurityGroupUncacheSecurityGroup) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *ServerSkusCreateOptions) Params() (jsonutils.JSONObject, error)
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 ¶
func (opts *ServerSkusUpdateOptions) Params() (jsonutils.JSONObject, error)
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:"-"` }
type SharableProjectizedResourceBaseCreateInput ¶
type SharableProjectizedResourceBaseCreateInput struct { apis.ProjectizedResourceCreateInput apis.SharableResourceBaseCreateInput }
type SharableResourcePublicBaseOptions ¶
type SharableResourcePublicBaseOptions struct { Scope string `help:"sharing scope" choices:"system|domain|project"` }
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 ¶
func (opts *SubscriptionCreateOptions) Params() (jsonutils.JSONObject, error)
type SwirePublicOptions ¶
type SwirePublicOptions struct { Scope string `help:"sharing scope" choices:"system|domain"` }
type SwireupdateOptions ¶
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 ¶
func (opts *VpcPeeringConnectionCreateOptions) Params() (jsonutils.JSONObject, error)
type VpcPeeringConnectionIdOptions ¶
type VpcPeeringConnectionIdOptions struct {
ID string `json:"Vpc peering connection ID"`
}
func (*VpcPeeringConnectionIdOptions) GetId ¶
func (opts *VpcPeeringConnectionIdOptions) GetId() string
func (*VpcPeeringConnectionIdOptions) Params ¶
func (opts *VpcPeeringConnectionIdOptions) Params() (jsonutils.JSONObject, error)
type VpcPeeringConnectionListOptions ¶
type VpcPeeringConnectionListOptions struct {
BaseListOptions
}
func (*VpcPeeringConnectionListOptions) Params ¶
func (opts *VpcPeeringConnectionListOptions) Params() (jsonutils.JSONObject, error)
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"` }
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"` }
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)
Source Files ¶
- alarmevents.go
- ansibleplaybooks.go
- base.go
- baseprojects.go
- cloudaccounts.go
- dbinstance_account.go
- dbinstance_database.go
- dbinstance_skus.go
- devtooltemplate.go
- dns_trafficpolicy.go
- dnsrecords.go
- dnszone.go
- dnszone_recordsets.go
- dnszonecache.go
- doc.go
- elasticcache.go
- empty.go
- inter_vpc_network.go
- inter_vpc_network_routeset.go
- logs.go
- metadata.go
- network.go
- networkaddress.go
- proxysettings.go
- routetable_association.go
- routetable_routeset.go
- routetables.go
- schedtags.go
- secgroup.go
- serverskus.go
- servicecertificates.go
- skus.go
- vpc.go
- vpc_peering_connection.go
- webconsole.go
- wire.go