Documentation ¶
Index ¶
- type AppDetailRequest
- type AppDetailResponse
- type AppDetailResult
- type AppsRequest
- func (r AppsRequest) GetRegionId() string
- func (r *AppsRequest) SetAccountType(accountType string)
- func (r *AppsRequest) SetAppName(appName string)
- func (r *AppsRequest) SetClientId(clientId string)
- func (r *AppsRequest) SetEndTime(endTime int)
- func (r *AppsRequest) SetMultiTenant(multiTenant bool)
- func (r *AppsRequest) SetOffset(offset int)
- func (r *AppsRequest) SetPageIndex(pageIndex int)
- func (r *AppsRequest) SetPageSize(pageSize int)
- func (r *AppsRequest) SetPin(pin string)
- func (r *AppsRequest) SetRegionId(regionId string)
- func (r *AppsRequest) SetScope(scope string)
- func (r *AppsRequest) SetStartTime(startTime int)
- func (r *AppsRequest) SetState(state string)
- type AppsResponse
- type AppsResult
- type CreateAppRequest
- func (r CreateAppRequest) GetRegionId() string
- func (r *CreateAppRequest) SetAccessTokenValiditySeconds(accessTokenValiditySeconds int)
- func (r *CreateAppRequest) SetClientName(clientName string)
- func (r *CreateAppRequest) SetClientUri(clientUri string)
- func (r *CreateAppRequest) SetContacts(contacts string)
- func (r *CreateAppRequest) SetExtension(extension string)
- func (r *CreateAppRequest) SetGrantTypes(grantTypes string)
- func (r *CreateAppRequest) SetJwks(jwks string)
- func (r *CreateAppRequest) SetJwksUri(jwksUri string)
- func (r *CreateAppRequest) SetLogoUri(logoUri string)
- func (r *CreateAppRequest) SetMultiTenant(multiTenant bool)
- func (r *CreateAppRequest) SetPolicyUri(policyUri string)
- func (r *CreateAppRequest) SetRedirectUris(redirectUris string)
- func (r *CreateAppRequest) SetRefreshTokenValiditySeconds(refreshTokenValiditySeconds int)
- func (r *CreateAppRequest) SetRegionId(regionId string)
- func (r *CreateAppRequest) SetScope(scope string)
- func (r *CreateAppRequest) SetSecret(secret string)
- func (r *CreateAppRequest) SetTokenEndpointAuthMethod(tokenEndpointAuthMethod string)
- func (r *CreateAppRequest) SetTosUri(tosUri string)
- func (r *CreateAppRequest) SetUserType(userType string)
- type CreateAppResponse
- type CreateAppResult
- type DeleteAppRequest
- type DeleteAppResponse
- type DeleteAppResult
- type GetAppRequest
- type GetAppResponse
- type GetAppResult
- type GetAppsRequest
- type GetAppsResponse
- type GetAppsResult
- type StateRequest
- type StateResponse
- type StateResult
- type UpdateAppRequest
- func (r UpdateAppRequest) GetRegionId() string
- func (r *UpdateAppRequest) SetAccessTokenValiditySeconds(accessTokenValiditySeconds int)
- func (r *UpdateAppRequest) SetClientId(clientId string)
- func (r *UpdateAppRequest) SetClientName(clientName string)
- func (r *UpdateAppRequest) SetClientUri(clientUri string)
- func (r *UpdateAppRequest) SetContacts(contacts string)
- func (r *UpdateAppRequest) SetExtension(extension string)
- func (r *UpdateAppRequest) SetGrantTypes(grantTypes string)
- func (r *UpdateAppRequest) SetJwks(jwks string)
- func (r *UpdateAppRequest) SetJwksUri(jwksUri string)
- func (r *UpdateAppRequest) SetLogoUri(logoUri string)
- func (r *UpdateAppRequest) SetMultiTenant(multiTenant bool)
- func (r *UpdateAppRequest) SetPolicyUri(policyUri string)
- func (r *UpdateAppRequest) SetRedirectUris(redirectUris string)
- func (r *UpdateAppRequest) SetRefreshTokenValiditySeconds(refreshTokenValiditySeconds int)
- func (r *UpdateAppRequest) SetRegionId(regionId string)
- func (r *UpdateAppRequest) SetScope(scope string)
- func (r *UpdateAppRequest) SetSecret(secret string)
- func (r *UpdateAppRequest) SetTokenEndpointAuthMethod(tokenEndpointAuthMethod string)
- func (r *UpdateAppRequest) SetTosUri(tosUri string)
- func (r *UpdateAppRequest) SetUserType(userType string)
- type UpdateAppResponse
- type UpdateAppResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppDetailRequest ¶ added in v1.1.3
type AppDetailRequest struct { core.JDCloudRequest /* */ RegionId string `json:"regionId"` /* */ ClientId string `json:"clientId"` }
func NewAppDetailRequest ¶ added in v1.1.3
func NewAppDetailRequest( regionId string, clientId string, ) *AppDetailRequest
* param regionId: (Required) * param clientId: (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewAppDetailRequestWithAllParams ¶ added in v1.1.3
func NewAppDetailRequestWithAllParams( regionId string, clientId string, ) *AppDetailRequest
* param regionId: (Required) * param clientId: (Required)
func NewAppDetailRequestWithoutParam ¶ added in v1.1.3
func NewAppDetailRequestWithoutParam() *AppDetailRequest
This constructor has better compatible ability when API parameters changed
func (AppDetailRequest) GetRegionId ¶ added in v1.1.3
func (r AppDetailRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*AppDetailRequest) SetClientId ¶ added in v1.1.3
func (r *AppDetailRequest) SetClientId(clientId string)
param clientId: (Required)
func (*AppDetailRequest) SetRegionId ¶ added in v1.1.3
func (r *AppDetailRequest) SetRegionId(regionId string)
param regionId: (Required)
type AppDetailResponse ¶ added in v1.1.3
type AppDetailResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result AppDetailResult `json:"result"` }
type AppDetailResult ¶ added in v1.1.3
type AppDetailResult struct { ClientId string `json:"clientId"` ClientName string `json:"clientName"` TokenEndpointAuthMethod string `json:"tokenEndpointAuthMethod"` GrantTypes string `json:"grantTypes"` ResponseTypes string `json:"responseTypes"` RedirectUris string `json:"redirectUris"` ClientUri string `json:"clientUri"` LogoUri string `json:"logoUri"` TosUri string `json:"tosUri"` PolicyUri string `json:"policyUri"` Scope string `json:"scope"` JwksUri string `json:"jwksUri"` Jwks string `json:"jwks"` Contacts string `json:"contacts"` Extension string `json:"extension"` AccessTokenValiditySeconds int `json:"accessTokenValiditySeconds"` RefreshTokenValiditySeconds int `json:"refreshTokenValiditySeconds"` MultiTenant bool `json:"multiTenant"` SecretUpdateTime int64 `json:"secretUpdateTime"` UpdateTime int64 `json:"updateTime"` CreateTime int64 `json:"createTime"` Account string `json:"account"` UserType string `json:"userType"` State string `json:"state"` }
type AppsRequest ¶ added in v1.1.3
type AppsRequest struct { core.JDCloudRequest /* */ RegionId string `json:"regionId"` /* pin */ Pin string `json:"pin"` /* appName */ AppName string `json:"appName"` /* clientId */ ClientId string `json:"clientId"` /* multiTenant */ MultiTenant bool `json:"multiTenant"` /* state */ State string `json:"state"` /* scope */ Scope string `json:"scope"` /* startTime */ StartTime int `json:"startTime"` /* endTime */ EndTime int `json:"endTime"` /* accountType */ AccountType string `json:"accountType"` /* pageIndex */ PageIndex int `json:"pageIndex"` /* pageSize */ PageSize int `json:"pageSize"` /* offset */ Offset int `json:"offset"` }
func NewAppsRequest ¶ added in v1.1.3
func NewAppsRequest( regionId string, pin string, appName string, clientId string, multiTenant bool, state string, scope string, startTime int, endTime int, accountType string, pageIndex int, pageSize int, offset int, ) *AppsRequest
* param regionId: (Required) * param pin: pin (Required) * param appName: appName (Required) * param clientId: clientId (Required) * param multiTenant: multiTenant (Required) * param state: state (Required) * param scope: scope (Required) * param startTime: startTime (Required) * param endTime: endTime (Required) * param accountType: accountType (Required) * param pageIndex: pageIndex (Required) * param pageSize: pageSize (Required) * param offset: offset (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewAppsRequestWithAllParams ¶ added in v1.1.3
func NewAppsRequestWithAllParams( regionId string, pin string, appName string, clientId string, multiTenant bool, state string, scope string, startTime int, endTime int, accountType string, pageIndex int, pageSize int, offset int, ) *AppsRequest
* param regionId: (Required) * param pin: pin (Required) * param appName: appName (Required) * param clientId: clientId (Required) * param multiTenant: multiTenant (Required) * param state: state (Required) * param scope: scope (Required) * param startTime: startTime (Required) * param endTime: endTime (Required) * param accountType: accountType (Required) * param pageIndex: pageIndex (Required) * param pageSize: pageSize (Required) * param offset: offset (Required)
func NewAppsRequestWithoutParam ¶ added in v1.1.3
func NewAppsRequestWithoutParam() *AppsRequest
This constructor has better compatible ability when API parameters changed
func (AppsRequest) GetRegionId ¶ added in v1.1.3
func (r AppsRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*AppsRequest) SetAccountType ¶ added in v1.1.3
func (r *AppsRequest) SetAccountType(accountType string)
param accountType: accountType(Required)
func (*AppsRequest) SetAppName ¶ added in v1.1.3
func (r *AppsRequest) SetAppName(appName string)
param appName: appName(Required)
func (*AppsRequest) SetClientId ¶ added in v1.1.3
func (r *AppsRequest) SetClientId(clientId string)
param clientId: clientId(Required)
func (*AppsRequest) SetEndTime ¶ added in v1.1.3
func (r *AppsRequest) SetEndTime(endTime int)
param endTime: endTime(Required)
func (*AppsRequest) SetMultiTenant ¶ added in v1.1.3
func (r *AppsRequest) SetMultiTenant(multiTenant bool)
param multiTenant: multiTenant(Required)
func (*AppsRequest) SetOffset ¶ added in v1.1.3
func (r *AppsRequest) SetOffset(offset int)
param offset: offset(Required)
func (*AppsRequest) SetPageIndex ¶ added in v1.1.3
func (r *AppsRequest) SetPageIndex(pageIndex int)
param pageIndex: pageIndex(Required)
func (*AppsRequest) SetPageSize ¶ added in v1.1.3
func (r *AppsRequest) SetPageSize(pageSize int)
param pageSize: pageSize(Required)
func (*AppsRequest) SetPin ¶ added in v1.1.3
func (r *AppsRequest) SetPin(pin string)
param pin: pin(Required)
func (*AppsRequest) SetRegionId ¶ added in v1.1.3
func (r *AppsRequest) SetRegionId(regionId string)
param regionId: (Required)
func (*AppsRequest) SetScope ¶ added in v1.1.3
func (r *AppsRequest) SetScope(scope string)
param scope: scope(Required)
func (*AppsRequest) SetStartTime ¶ added in v1.1.3
func (r *AppsRequest) SetStartTime(startTime int)
param startTime: startTime(Required)
func (*AppsRequest) SetState ¶ added in v1.1.3
func (r *AppsRequest) SetState(state string)
param state: state(Required)
type AppsResponse ¶ added in v1.1.3
type AppsResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result AppsResult `json:"result"` }
type AppsResult ¶ added in v1.1.3
type AppsResult struct { Pagination ias.Pagination `json:"pagination"` Result []ias.AppQueryResultItem `json:"result"` }
type CreateAppRequest ¶
type CreateAppRequest struct { core.JDCloudRequest /* 地域编码,参考OpenAPI公共说明 */ RegionId string `json:"regionId"` /* 应用名 (Optional) */ ClientName *string `json:"clientName"` /* 客户端认证方式<br> - none:不设置客户端密码(不推荐)<br> - client_secret_post:客户端必须设置密码,且该密码需要在OAuth2 Token Endpoint提供于请求的body<br> - client_secret_basic:客户端必须设置密码,且该密码需要在OAuth2 Token Endpoint提供于请求的header<br> 支持以下值:<br> (1)none<br> (2)client_secret_post<br> (3)client_secret_basic (Optional) */ TokenEndpointAuthMethod *string `json:"tokenEndpointAuthMethod"` /* 支持的OAuth类型:<br> - authorization_code:OAuth2授权码模式<br> - implicit:OAuth2隐式授权模式<br> - refresh_token:启用刷新令牌 支持以下值:<br> (1)authorization_code<br> (2)authorization_code,refresh_token<br> (3)authorization_code,implicit<br> (4)authorization_code,implicit,refresh_token<br> (5)implicit<br> 注:如果grantTypes指定了refresh_token,应用将可以使用刷新令牌;如果在创建应用时未指定,则应用不能使用刷新令牌;任何时候应用都可以调用“更新应用”接口更改grantTypes设置 (Optional) */ GrantTypes *string `json:"grantTypes"` /* 回调地址,最多4个,多个url之间用逗号,分隔,每个url长度不超过1000,url不支持#符号 (Optional) */ RedirectUris *string `json:"redirectUris"` /* 应用介绍地址,url不支持#符号 (Optional) */ ClientUri *string `json:"clientUri"` /* 应用logo地址,url不支持#符号 (Optional) */ LogoUri *string `json:"logoUri"` /* 应用服务协议地址,url不支持#符号 (Optional) */ TosUri *string `json:"tosUri"` /* 应用隐私政策地址,url不支持#符号 (Optional) */ PolicyUri *string `json:"policyUri"` /* OAuth scope范围,支持的值为:<br/> (1)openid:用OpenID Connect协议进行身份认证<br/> 指定scope为openid,并在Authorization Endpoint请求该scope,京东云将返回用户的OpenID令牌;如果在创建应用时未指明该值,则应用不能请求OpenID令牌;任何时候应用都可以调用“更新应用”更改该设置 (Optional) */ Scope *string `json:"scope"` /* JWKS地址,url不支持#符号<br/>jwksUri和jwks传一个即可 (Optional) */ JwksUri *string `json:"jwksUri"` /* JWKS (Optional) */ Jwks *string `json:"jwks"` /* 应用联系信息 (Optional) */ Contacts *string `json:"contacts"` /* 应用扩展信息 (Optional) */ Extension *string `json:"extension"` /* 访问令牌有效期,值的范围为 600 秒到 6x3600=21,600 秒,即10分钟-6小时 (Optional) */ AccessTokenValiditySeconds *int `json:"accessTokenValiditySeconds"` /* 刷新令牌有效期,值的范围为 30x24x3600=2,592,000 秒到 365x24x3600=31,536,000 秒,即30天-365天<br/><br/> 注:当 GrantTypes 包含 refresh_token 时,refreshTokenValiditySeconds 为必传参数 (Optional) */ RefreshTokenValiditySeconds *int `json:"refreshTokenValiditySeconds"` /* 是否为多租户应用<br/> "false":该应用仅支持当前创建应用的租户访问,其他京东云租户无法访问<br/> "true":该应用支持其他京东云租户访问,但当前创建应用的租户不能访问 (Optional) */ MultiTenant *bool `json:"multiTenant"` /* 应用的密码,支持8-255位长度的ASCII可打印字符,建议使用足够复杂的密码策略<br/><br/> 注:当TokenEndpointAuthMethod不等于none时,secret为必传参数;反之,当指定了secret时,TokenEndpointAuthMethod不能等于none<br/>京东云将不可逆加密secret,因此您无法再次从京东云查看该密码,但您可以随时通过更新应用重新设置secret (Optional) */ Secret *string `json:"secret"` /* 能访问应用的账号类型,支持以下值:<br/> (1)root:支持主账号访问,子用户无法访问<br/> (2)sub:子用户账号,使用主账号不能访问<br/><br/> 注:multiTenant和userType的组合指定了应用的用户人群,典型的应用场景如:<br/> (1)应用向当前租户下的子用户开放(2)应用向京东云其他租户主账号开放 (Optional) */ UserType *string `json:"userType"` }
func NewCreateAppRequest ¶
func NewCreateAppRequest( regionId string, ) *CreateAppRequest
* param regionId: 地域编码,参考OpenAPI公共说明 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewCreateAppRequestWithAllParams ¶
func NewCreateAppRequestWithAllParams( regionId string, clientName *string, tokenEndpointAuthMethod *string, grantTypes *string, redirectUris *string, clientUri *string, logoUri *string, tosUri *string, policyUri *string, scope *string, jwksUri *string, jwks *string, contacts *string, extension *string, accessTokenValiditySeconds *int, refreshTokenValiditySeconds *int, multiTenant *bool, secret *string, userType *string, ) *CreateAppRequest
* param regionId: 地域编码,参考OpenAPI公共说明 (Required) * param clientName: 应用名 (Optional) * param tokenEndpointAuthMethod: 客户端认证方式<br> - none:不设置客户端密码(不推荐)<br> - client_secret_post:客户端必须设置密码,且该密码需要在OAuth2 Token Endpoint提供于请求的body<br> - client_secret_basic:客户端必须设置密码,且该密码需要在OAuth2 Token Endpoint提供于请求的header<br> 支持以下值:<br> (1)none<br> (2)client_secret_post<br> (3)client_secret_basic (Optional) * param grantTypes: 支持的OAuth类型:<br> - authorization_code:OAuth2授权码模式<br> - implicit:OAuth2隐式授权模式<br> - refresh_token:启用刷新令牌 支持以下值:<br> (1)authorization_code<br> (2)authorization_code,refresh_token<br> (3)authorization_code,implicit<br> (4)authorization_code,implicit,refresh_token<br> (5)implicit<br> 注:如果grantTypes指定了refresh_token,应用将可以使用刷新令牌;如果在创建应用时未指定,则应用不能使用刷新令牌;任何时候应用都可以调用“更新应用”接口更改grantTypes设置 (Optional) * param redirectUris: 回调地址,最多4个,多个url之间用逗号,分隔,每个url长度不超过1000,url不支持#符号 (Optional) * param clientUri: 应用介绍地址,url不支持#符号 (Optional) * param logoUri: 应用logo地址,url不支持#符号 (Optional) * param tosUri: 应用服务协议地址,url不支持#符号 (Optional) * param policyUri: 应用隐私政策地址,url不支持#符号 (Optional) * param scope: OAuth scope范围,支持的值为:<br/> (1)openid:用OpenID Connect协议进行身份认证<br/> 指定scope为openid,并在Authorization Endpoint请求该scope,京东云将返回用户的OpenID令牌;如果在创建应用时未指明该值,则应用不能请求OpenID令牌;任何时候应用都可以调用“更新应用”更改该设置 (Optional) * param jwksUri: JWKS地址,url不支持#符号<br/>jwksUri和jwks传一个即可 (Optional) * param jwks: JWKS (Optional) * param contacts: 应用联系信息 (Optional) * param extension: 应用扩展信息 (Optional) * param accessTokenValiditySeconds: 访问令牌有效期,值的范围为 600 秒到 6x3600=21,600 秒,即10分钟-6小时 (Optional) * param refreshTokenValiditySeconds: 刷新令牌有效期,值的范围为 30x24x3600=2,592,000 秒到 365x24x3600=31,536,000 秒,即30天-365天<br/><br/> 注:当 GrantTypes 包含 refresh_token 时,refreshTokenValiditySeconds 为必传参数 (Optional) * param multiTenant: 是否为多租户应用<br/> "false":该应用仅支持当前创建应用的租户访问,其他京东云租户无法访问<br/> "true":该应用支持其他京东云租户访问,但当前创建应用的租户不能访问 (Optional) * param secret: 应用的密码,支持8-255位长度的ASCII可打印字符,建议使用足够复杂的密码策略<br/><br/> 注:当TokenEndpointAuthMethod不等于none时,secret为必传参数;反之,当指定了secret时,TokenEndpointAuthMethod不能等于none<br/>京东云将不可逆加密secret,因此您无法再次从京东云查看该密码,但您可以随时通过更新应用重新设置secret (Optional) * param userType: 能访问应用的账号类型,支持以下值:<br/> (1)root:支持主账号访问,子用户无法访问<br/> (2)sub:子用户账号,使用主账号不能访问<br/><br/> 注:multiTenant和userType的组合指定了应用的用户人群,典型的应用场景如:<br/> (1)应用向当前租户下的子用户开放(2)应用向京东云其他租户主账号开放 (Optional)
func NewCreateAppRequestWithoutParam ¶
func NewCreateAppRequestWithoutParam() *CreateAppRequest
This constructor has better compatible ability when API parameters changed
func (CreateAppRequest) GetRegionId ¶
func (r CreateAppRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*CreateAppRequest) SetAccessTokenValiditySeconds ¶
func (r *CreateAppRequest) SetAccessTokenValiditySeconds(accessTokenValiditySeconds int)
param accessTokenValiditySeconds: 访问令牌有效期,值的范围为 600 秒到 6x3600=21,600 秒,即10分钟-6小时(Optional)
func (*CreateAppRequest) SetClientName ¶
func (r *CreateAppRequest) SetClientName(clientName string)
param clientName: 应用名(Optional)
func (*CreateAppRequest) SetClientUri ¶
func (r *CreateAppRequest) SetClientUri(clientUri string)
param clientUri: 应用介绍地址,url不支持#符号(Optional)
func (*CreateAppRequest) SetContacts ¶
func (r *CreateAppRequest) SetContacts(contacts string)
param contacts: 应用联系信息(Optional)
func (*CreateAppRequest) SetExtension ¶
func (r *CreateAppRequest) SetExtension(extension string)
param extension: 应用扩展信息(Optional)
func (*CreateAppRequest) SetGrantTypes ¶
func (r *CreateAppRequest) SetGrantTypes(grantTypes string)
param grantTypes: 支持的OAuth类型:<br> - authorization_code:OAuth2授权码模式<br> - implicit:OAuth2隐式授权模式<br> - refresh_token:启用刷新令牌 支持以下值:<br> (1)authorization_code<br> (2)authorization_code,refresh_token<br> (3)authorization_code,implicit<br> (4)authorization_code,implicit,refresh_token<br> (5)implicit<br> 注:如果grantTypes指定了refresh_token,应用将可以使用刷新令牌;如果在创建应用时未指定,则应用不能使用刷新令牌;任何时候应用都可以调用“更新应用”接口更改grantTypes设置(Optional)
func (*CreateAppRequest) SetJwks ¶
func (r *CreateAppRequest) SetJwks(jwks string)
param jwks: JWKS(Optional)
func (*CreateAppRequest) SetJwksUri ¶
func (r *CreateAppRequest) SetJwksUri(jwksUri string)
param jwksUri: JWKS地址,url不支持#符号<br/>jwksUri和jwks传一个即可(Optional)
func (*CreateAppRequest) SetLogoUri ¶
func (r *CreateAppRequest) SetLogoUri(logoUri string)
param logoUri: 应用logo地址,url不支持#符号(Optional)
func (*CreateAppRequest) SetMultiTenant ¶
func (r *CreateAppRequest) SetMultiTenant(multiTenant bool)
param multiTenant: 是否为多租户应用<br/> "false":该应用仅支持当前创建应用的租户访问,其他京东云租户无法访问<br/> "true":该应用支持其他京东云租户访问,但当前创建应用的租户不能访问(Optional)
func (*CreateAppRequest) SetPolicyUri ¶
func (r *CreateAppRequest) SetPolicyUri(policyUri string)
param policyUri: 应用隐私政策地址,url不支持#符号(Optional)
func (*CreateAppRequest) SetRedirectUris ¶
func (r *CreateAppRequest) SetRedirectUris(redirectUris string)
param redirectUris: 回调地址,最多4个,多个url之间用逗号,分隔,每个url长度不超过1000,url不支持#符号(Optional)
func (*CreateAppRequest) SetRefreshTokenValiditySeconds ¶
func (r *CreateAppRequest) SetRefreshTokenValiditySeconds(refreshTokenValiditySeconds int)
param refreshTokenValiditySeconds: 刷新令牌有效期,值的范围为 30x24x3600=2,592,000 秒到 365x24x3600=31,536,000 秒,即30天-365天<br/><br/> 注:当 GrantTypes 包含 refresh_token 时,refreshTokenValiditySeconds 为必传参数(Optional)
func (*CreateAppRequest) SetRegionId ¶
func (r *CreateAppRequest) SetRegionId(regionId string)
param regionId: 地域编码,参考OpenAPI公共说明(Required)
func (*CreateAppRequest) SetScope ¶
func (r *CreateAppRequest) SetScope(scope string)
param scope: OAuth scope范围,支持的值为:<br/> (1)openid:用OpenID Connect协议进行身份认证<br/> 指定scope为openid,并在Authorization Endpoint请求该scope,京东云将返回用户的OpenID令牌;如果在创建应用时未指明该值,则应用不能请求OpenID令牌;任何时候应用都可以调用“更新应用”更改该设置(Optional)
func (*CreateAppRequest) SetSecret ¶
func (r *CreateAppRequest) SetSecret(secret string)
param secret: 应用的密码,支持8-255位长度的ASCII可打印字符,建议使用足够复杂的密码策略<br/><br/> 注:当TokenEndpointAuthMethod不等于none时,secret为必传参数;反之,当指定了secret时,TokenEndpointAuthMethod不能等于none<br/>京东云将不可逆加密secret,因此您无法再次从京东云查看该密码,但您可以随时通过更新应用重新设置secret(Optional)
func (*CreateAppRequest) SetTokenEndpointAuthMethod ¶
func (r *CreateAppRequest) SetTokenEndpointAuthMethod(tokenEndpointAuthMethod string)
param tokenEndpointAuthMethod: 客户端认证方式<br> - none:不设置客户端密码(不推荐)<br> - client_secret_post:客户端必须设置密码,且该密码需要在OAuth2 Token Endpoint提供于请求的body<br> - client_secret_basic:客户端必须设置密码,且该密码需要在OAuth2 Token Endpoint提供于请求的header<br> 支持以下值:<br> (1)none<br> (2)client_secret_post<br> (3)client_secret_basic(Optional)
func (*CreateAppRequest) SetTosUri ¶
func (r *CreateAppRequest) SetTosUri(tosUri string)
param tosUri: 应用服务协议地址,url不支持#符号(Optional)
func (*CreateAppRequest) SetUserType ¶
func (r *CreateAppRequest) SetUserType(userType string)
param userType: 能访问应用的账号类型,支持以下值:<br/> (1)root:支持主账号访问,子用户无法访问<br/> (2)sub:子用户账号,使用主账号不能访问<br/><br/> 注:multiTenant和userType的组合指定了应用的用户人群,典型的应用场景如:<br/> (1)应用向当前租户下的子用户开放(2)应用向京东云其他租户主账号开放(Optional)
type CreateAppResponse ¶
type CreateAppResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result CreateAppResult `json:"result"` }
type CreateAppResult ¶
type CreateAppResult struct { ClientId string `json:"clientId"` ClientName string `json:"clientName"` TokenEndpointAuthMethod string `json:"tokenEndpointAuthMethod"` GrantTypes string `json:"grantTypes"` ResponseTypes string `json:"responseTypes"` RedirectUris string `json:"redirectUris"` ClientUri string `json:"clientUri"` LogoUri string `json:"logoUri"` TosUri string `json:"tosUri"` PolicyUri string `json:"policyUri"` Scope string `json:"scope"` JwksUri string `json:"jwksUri"` Jwks string `json:"jwks"` Contacts string `json:"contacts"` Extension string `json:"extension"` AccessTokenValiditySeconds int `json:"accessTokenValiditySeconds"` RefreshTokenValiditySeconds int `json:"refreshTokenValiditySeconds"` MultiTenant bool `json:"multiTenant"` SecretUpdateTime int64 `json:"secretUpdateTime"` UpdateTime int64 `json:"updateTime"` CreateTime int64 `json:"createTime"` Account string `json:"account"` UserType string `json:"userType"` }
type DeleteAppRequest ¶
type DeleteAppRequest struct { core.JDCloudRequest /* 地域编码,参考OpenAPI公共说明 */ RegionId string `json:"regionId"` /* 应用ID,应用创建时由京东云分配的16位数字ID */ ClientId string `json:"clientId"` }
func NewDeleteAppRequest ¶
func NewDeleteAppRequest( regionId string, clientId string, ) *DeleteAppRequest
* param regionId: 地域编码,参考OpenAPI公共说明 (Required) * param clientId: 应用ID,应用创建时由京东云分配的16位数字ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDeleteAppRequestWithAllParams ¶
func NewDeleteAppRequestWithAllParams( regionId string, clientId string, ) *DeleteAppRequest
* param regionId: 地域编码,参考OpenAPI公共说明 (Required) * param clientId: 应用ID,应用创建时由京东云分配的16位数字ID (Required)
func NewDeleteAppRequestWithoutParam ¶
func NewDeleteAppRequestWithoutParam() *DeleteAppRequest
This constructor has better compatible ability when API parameters changed
func (DeleteAppRequest) GetRegionId ¶
func (r DeleteAppRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DeleteAppRequest) SetClientId ¶
func (r *DeleteAppRequest) SetClientId(clientId string)
param clientId: 应用ID,应用创建时由京东云分配的16位数字ID(Required)
func (*DeleteAppRequest) SetRegionId ¶
func (r *DeleteAppRequest) SetRegionId(regionId string)
param regionId: 地域编码,参考OpenAPI公共说明(Required)
type DeleteAppResponse ¶
type DeleteAppResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DeleteAppResult `json:"result"` }
type DeleteAppResult ¶
type DeleteAppResult struct {
Count int `json:"count"`
}
type GetAppRequest ¶
type GetAppRequest struct { core.JDCloudRequest /* 地域编码,参考OpenAPI公共说明 */ RegionId string `json:"regionId"` /* 应用ID,应用创建时由京东云分配的16位数字ID */ ClientId string `json:"clientId"` }
func NewGetAppRequest ¶
func NewGetAppRequest( regionId string, clientId string, ) *GetAppRequest
* param regionId: 地域编码,参考OpenAPI公共说明 (Required) * param clientId: 应用ID,应用创建时由京东云分配的16位数字ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewGetAppRequestWithAllParams ¶
func NewGetAppRequestWithAllParams( regionId string, clientId string, ) *GetAppRequest
* param regionId: 地域编码,参考OpenAPI公共说明 (Required) * param clientId: 应用ID,应用创建时由京东云分配的16位数字ID (Required)
func NewGetAppRequestWithoutParam ¶
func NewGetAppRequestWithoutParam() *GetAppRequest
This constructor has better compatible ability when API parameters changed
func (GetAppRequest) GetRegionId ¶
func (r GetAppRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*GetAppRequest) SetClientId ¶
func (r *GetAppRequest) SetClientId(clientId string)
param clientId: 应用ID,应用创建时由京东云分配的16位数字ID(Required)
func (*GetAppRequest) SetRegionId ¶
func (r *GetAppRequest) SetRegionId(regionId string)
param regionId: 地域编码,参考OpenAPI公共说明(Required)
type GetAppResponse ¶
type GetAppResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result GetAppResult `json:"result"` }
type GetAppResult ¶
type GetAppResult struct { ClientId string `json:"clientId"` ClientName string `json:"clientName"` TokenEndpointAuthMethod string `json:"tokenEndpointAuthMethod"` GrantTypes string `json:"grantTypes"` ResponseTypes string `json:"responseTypes"` RedirectUris string `json:"redirectUris"` ClientUri string `json:"clientUri"` LogoUri string `json:"logoUri"` TosUri string `json:"tosUri"` PolicyUri string `json:"policyUri"` Scope string `json:"scope"` JwksUri string `json:"jwksUri"` Jwks string `json:"jwks"` Contacts string `json:"contacts"` Extension string `json:"extension"` AccessTokenValiditySeconds int `json:"accessTokenValiditySeconds"` RefreshTokenValiditySeconds int `json:"refreshTokenValiditySeconds"` MultiTenant bool `json:"multiTenant"` SecretUpdateTime int64 `json:"secretUpdateTime"` UpdateTime int64 `json:"updateTime"` CreateTime int64 `json:"createTime"` Account string `json:"account"` UserType string `json:"userType"` }
type GetAppsRequest ¶
type GetAppsRequest struct { core.JDCloudRequest /* 地域编码,参考OpenAPI公共说明 */ RegionId string `json:"regionId"` }
func NewGetAppsRequest ¶
func NewGetAppsRequest( regionId string, ) *GetAppsRequest
* param regionId: 地域编码,参考OpenAPI公共说明 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewGetAppsRequestWithAllParams ¶
func NewGetAppsRequestWithAllParams( regionId string, ) *GetAppsRequest
* param regionId: 地域编码,参考OpenAPI公共说明 (Required)
func NewGetAppsRequestWithoutParam ¶
func NewGetAppsRequestWithoutParam() *GetAppsRequest
This constructor has better compatible ability when API parameters changed
func (GetAppsRequest) GetRegionId ¶
func (r GetAppsRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*GetAppsRequest) SetRegionId ¶
func (r *GetAppsRequest) SetRegionId(regionId string)
param regionId: 地域编码,参考OpenAPI公共说明(Required)
type GetAppsResponse ¶
type GetAppsResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result GetAppsResult `json:"result"` }
type GetAppsResult ¶
type GetAppsResult struct {
Apps []ias.ApplicationRes `json:"apps"`
}
type StateRequest ¶ added in v1.1.3
type StateRequest struct { core.JDCloudRequest /* */ RegionId string `json:"regionId"` }
func NewStateRequest ¶ added in v1.1.3
func NewStateRequest( regionId string, ) *StateRequest
* param regionId: (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewStateRequestWithAllParams ¶ added in v1.1.3
func NewStateRequestWithAllParams( regionId string, ) *StateRequest
* param regionId: (Required)
func NewStateRequestWithoutParam ¶ added in v1.1.3
func NewStateRequestWithoutParam() *StateRequest
This constructor has better compatible ability when API parameters changed
func (StateRequest) GetRegionId ¶ added in v1.1.3
func (r StateRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*StateRequest) SetRegionId ¶ added in v1.1.3
func (r *StateRequest) SetRegionId(regionId string)
param regionId: (Required)
type StateResponse ¶ added in v1.1.3
type StateResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result StateResult `json:"result"` }
type StateResult ¶ added in v1.1.3
type UpdateAppRequest ¶
type UpdateAppRequest struct { core.JDCloudRequest /* 地域编码,参考OpenAPI公共说明 */ RegionId string `json:"regionId"` /* 应用ID,应用创建时由京东云分配的16位数字ID */ ClientId string `json:"clientId"` /* 应用名 (Optional) */ ClientName *string `json:"clientName"` /* 客户端认证方式:<br/> none:不设置客户端密码(不推荐)<br/> client_secret_post:客户端必须设置密码,且该密码需要在OAuth2 Token Endpoint提供于请求的body<br/> client_secret_basic:客户端必须设置密码,且该密码需要在OAuth2 Token Endpoint提供于请求的header<br/><br/> 支持以下值:<br/> (1)none<br/> (2)client_secret_post<br/> (3)client_secret_basic (Optional) */ TokenEndpointAuthMethod *string `json:"tokenEndpointAuthMethod"` /* 支持的OAuth类型:<br/> authorization_code:OAuth2授权码模式<br/> implicit:OAuth2隐式授权模式<br/> refresh_token:启用刷新令牌<br/><br/> 支持以下值:<br/> (1)authorization_code<br/> (2)authorization_code,refresh_token<br/> (3)authorization_code,implicit<br/> (4)authorization_code,implicit,refresh_token<br/> (5)implicit<br/><br/> 注:如果grantTypes指定了refresh_token,应用将可以使用刷新令牌;如果在创建应用时未指定,则应用不能使用刷新令牌;任何时候应用都可以调用“更新应用”接口更改grantTypes设置 (Optional) */ GrantTypes *string `json:"grantTypes"` /* 回调地址,最多4个,多个url之间用逗号,分隔,每个url长度不超过1000,url不支持#符号 (Optional) */ RedirectUris *string `json:"redirectUris"` /* 应用介绍地址,url不支持#符号 (Optional) */ ClientUri *string `json:"clientUri"` /* 应用logo地址,url不支持#符号 (Optional) */ LogoUri *string `json:"logoUri"` /* 应用服务协议地址,url不支持#符号 (Optional) */ TosUri *string `json:"tosUri"` /* 应用隐私政策地址,url不支持#符号 (Optional) */ PolicyUri *string `json:"policyUri"` /* OAuth scope范围,支持的值为:<br/> (1)openid:用OpenID Connect协议进行身份认证<br/> 指定scope为openid,并在Authorization Endpoint请求该scope,京东云将返回用户的OpenID令牌;如果在创建应用时未指明该值,则应用不能请求OpenID令牌;任何时候应用都可以调用“更新应用”更改该设置 (Optional) */ Scope *string `json:"scope"` /* JWKS地址,url不支持#符号<br/> jwksUri和jwks传一个即可 (Optional) */ JwksUri *string `json:"jwksUri"` /* JWKS (Optional) */ Jwks *string `json:"jwks"` /* 应用联系信息 (Optional) */ Contacts *string `json:"contacts"` /* 应用扩展信息 (Optional) */ Extension *string `json:"extension"` /* 访问令牌有效期,值的范围为 600 秒到 6x3600=21,600 秒,即10分钟-6小时 (Optional) */ AccessTokenValiditySeconds *int `json:"accessTokenValiditySeconds"` /* 刷新令牌有效期,值的范围为 30x24x3600=2,592,000 秒到 365x24x3600=31,536,000 秒,即30天-365天<br/><br/> 注:当 GrantTypes 包含 refresh_token 时,refreshTokenValiditySeconds 为必传参数 (Optional) */ RefreshTokenValiditySeconds *int `json:"refreshTokenValiditySeconds"` /* 是否为多租户应用<br/> "false":该应用仅支持当前创建应用的租户访问,其他京东云租户无法访问<br/> "true":该应用支持其他京东云租户访问,但当前创建应用的租户不能访问 (Optional) */ MultiTenant *bool `json:"multiTenant"` /* 应用的密码,支持8-255位长度的ASCII可打印字符,建议使用足够复杂的密码策略<br/><br/> 注:当TokenEndpointAuthMethod不等于none时,secret为必传参数;反之,当指定了secret时,TokenEndpointAuthMethod不能等于none<br/> 京东云将不可逆加密secret,因此您无法再次从京东云查看该密码,但您可以随时通过更新应用重新设置secret (Optional) */ Secret *string `json:"secret"` /* 能访问应用的账号类型,支持以下值:<br/> (1)root:支持主账号访问,子用户无法访问<br/> (2)sub:子用户账号,使用主账号不能访问<br/><br/> 注:multiTenant和userType的组合指定了应用的用户人群,典型的应用场景如:<br/> (1)应用向当前租户下的子用户开放(2)应用向京东云其他租户主账号开放 (Optional) */ UserType *string `json:"userType"` }
func NewUpdateAppRequest ¶
func NewUpdateAppRequest( regionId string, clientId string, ) *UpdateAppRequest
* param regionId: 地域编码,参考OpenAPI公共说明 (Required) * param clientId: 应用ID,应用创建时由京东云分配的16位数字ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewUpdateAppRequestWithAllParams ¶
func NewUpdateAppRequestWithAllParams( regionId string, clientId string, clientName *string, tokenEndpointAuthMethod *string, grantTypes *string, redirectUris *string, clientUri *string, logoUri *string, tosUri *string, policyUri *string, scope *string, jwksUri *string, jwks *string, contacts *string, extension *string, accessTokenValiditySeconds *int, refreshTokenValiditySeconds *int, multiTenant *bool, secret *string, userType *string, ) *UpdateAppRequest
* param regionId: 地域编码,参考OpenAPI公共说明 (Required) * param clientId: 应用ID,应用创建时由京东云分配的16位数字ID (Required) * param clientName: 应用名 (Optional) * param tokenEndpointAuthMethod: 客户端认证方式:<br/> none:不设置客户端密码(不推荐)<br/> client_secret_post:客户端必须设置密码,且该密码需要在OAuth2 Token Endpoint提供于请求的body<br/> client_secret_basic:客户端必须设置密码,且该密码需要在OAuth2 Token Endpoint提供于请求的header<br/><br/> 支持以下值:<br/> (1)none<br/> (2)client_secret_post<br/> (3)client_secret_basic (Optional) * param grantTypes: 支持的OAuth类型:<br/> authorization_code:OAuth2授权码模式<br/> implicit:OAuth2隐式授权模式<br/> refresh_token:启用刷新令牌<br/><br/> 支持以下值:<br/> (1)authorization_code<br/> (2)authorization_code,refresh_token<br/> (3)authorization_code,implicit<br/> (4)authorization_code,implicit,refresh_token<br/> (5)implicit<br/><br/> 注:如果grantTypes指定了refresh_token,应用将可以使用刷新令牌;如果在创建应用时未指定,则应用不能使用刷新令牌;任何时候应用都可以调用“更新应用”接口更改grantTypes设置 (Optional) * param redirectUris: 回调地址,最多4个,多个url之间用逗号,分隔,每个url长度不超过1000,url不支持#符号 (Optional) * param clientUri: 应用介绍地址,url不支持#符号 (Optional) * param logoUri: 应用logo地址,url不支持#符号 (Optional) * param tosUri: 应用服务协议地址,url不支持#符号 (Optional) * param policyUri: 应用隐私政策地址,url不支持#符号 (Optional) * param scope: OAuth scope范围,支持的值为:<br/> (1)openid:用OpenID Connect协议进行身份认证<br/> 指定scope为openid,并在Authorization Endpoint请求该scope,京东云将返回用户的OpenID令牌;如果在创建应用时未指明该值,则应用不能请求OpenID令牌;任何时候应用都可以调用“更新应用”更改该设置 (Optional) * param jwksUri: JWKS地址,url不支持#符号<br/> jwksUri和jwks传一个即可 (Optional) * param jwks: JWKS (Optional) * param contacts: 应用联系信息 (Optional) * param extension: 应用扩展信息 (Optional) * param accessTokenValiditySeconds: 访问令牌有效期,值的范围为 600 秒到 6x3600=21,600 秒,即10分钟-6小时 (Optional) * param refreshTokenValiditySeconds: 刷新令牌有效期,值的范围为 30x24x3600=2,592,000 秒到 365x24x3600=31,536,000 秒,即30天-365天<br/><br/> 注:当 GrantTypes 包含 refresh_token 时,refreshTokenValiditySeconds 为必传参数 (Optional) * param multiTenant: 是否为多租户应用<br/> "false":该应用仅支持当前创建应用的租户访问,其他京东云租户无法访问<br/> "true":该应用支持其他京东云租户访问,但当前创建应用的租户不能访问 (Optional) * param secret: 应用的密码,支持8-255位长度的ASCII可打印字符,建议使用足够复杂的密码策略<br/><br/> 注:当TokenEndpointAuthMethod不等于none时,secret为必传参数;反之,当指定了secret时,TokenEndpointAuthMethod不能等于none<br/> 京东云将不可逆加密secret,因此您无法再次从京东云查看该密码,但您可以随时通过更新应用重新设置secret (Optional) * param userType: 能访问应用的账号类型,支持以下值:<br/> (1)root:支持主账号访问,子用户无法访问<br/> (2)sub:子用户账号,使用主账号不能访问<br/><br/> 注:multiTenant和userType的组合指定了应用的用户人群,典型的应用场景如:<br/> (1)应用向当前租户下的子用户开放(2)应用向京东云其他租户主账号开放 (Optional)
func NewUpdateAppRequestWithoutParam ¶
func NewUpdateAppRequestWithoutParam() *UpdateAppRequest
This constructor has better compatible ability when API parameters changed
func (UpdateAppRequest) GetRegionId ¶
func (r UpdateAppRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*UpdateAppRequest) SetAccessTokenValiditySeconds ¶
func (r *UpdateAppRequest) SetAccessTokenValiditySeconds(accessTokenValiditySeconds int)
param accessTokenValiditySeconds: 访问令牌有效期,值的范围为 600 秒到 6x3600=21,600 秒,即10分钟-6小时(Optional)
func (*UpdateAppRequest) SetClientId ¶
func (r *UpdateAppRequest) SetClientId(clientId string)
param clientId: 应用ID,应用创建时由京东云分配的16位数字ID(Required)
func (*UpdateAppRequest) SetClientName ¶
func (r *UpdateAppRequest) SetClientName(clientName string)
param clientName: 应用名(Optional)
func (*UpdateAppRequest) SetClientUri ¶
func (r *UpdateAppRequest) SetClientUri(clientUri string)
param clientUri: 应用介绍地址,url不支持#符号(Optional)
func (*UpdateAppRequest) SetContacts ¶
func (r *UpdateAppRequest) SetContacts(contacts string)
param contacts: 应用联系信息(Optional)
func (*UpdateAppRequest) SetExtension ¶
func (r *UpdateAppRequest) SetExtension(extension string)
param extension: 应用扩展信息(Optional)
func (*UpdateAppRequest) SetGrantTypes ¶
func (r *UpdateAppRequest) SetGrantTypes(grantTypes string)
param grantTypes: 支持的OAuth类型:<br/> authorization_code:OAuth2授权码模式<br/> implicit:OAuth2隐式授权模式<br/> refresh_token:启用刷新令牌<br/><br/> 支持以下值:<br/> (1)authorization_code<br/> (2)authorization_code,refresh_token<br/> (3)authorization_code,implicit<br/> (4)authorization_code,implicit,refresh_token<br/> (5)implicit<br/><br/> 注:如果grantTypes指定了refresh_token,应用将可以使用刷新令牌;如果在创建应用时未指定,则应用不能使用刷新令牌;任何时候应用都可以调用“更新应用”接口更改grantTypes设置(Optional)
func (*UpdateAppRequest) SetJwks ¶
func (r *UpdateAppRequest) SetJwks(jwks string)
param jwks: JWKS(Optional)
func (*UpdateAppRequest) SetJwksUri ¶
func (r *UpdateAppRequest) SetJwksUri(jwksUri string)
param jwksUri: JWKS地址,url不支持#符号<br/> jwksUri和jwks传一个即可(Optional)
func (*UpdateAppRequest) SetLogoUri ¶
func (r *UpdateAppRequest) SetLogoUri(logoUri string)
param logoUri: 应用logo地址,url不支持#符号(Optional)
func (*UpdateAppRequest) SetMultiTenant ¶
func (r *UpdateAppRequest) SetMultiTenant(multiTenant bool)
param multiTenant: 是否为多租户应用<br/> "false":该应用仅支持当前创建应用的租户访问,其他京东云租户无法访问<br/> "true":该应用支持其他京东云租户访问,但当前创建应用的租户不能访问(Optional)
func (*UpdateAppRequest) SetPolicyUri ¶
func (r *UpdateAppRequest) SetPolicyUri(policyUri string)
param policyUri: 应用隐私政策地址,url不支持#符号(Optional)
func (*UpdateAppRequest) SetRedirectUris ¶
func (r *UpdateAppRequest) SetRedirectUris(redirectUris string)
param redirectUris: 回调地址,最多4个,多个url之间用逗号,分隔,每个url长度不超过1000,url不支持#符号(Optional)
func (*UpdateAppRequest) SetRefreshTokenValiditySeconds ¶
func (r *UpdateAppRequest) SetRefreshTokenValiditySeconds(refreshTokenValiditySeconds int)
param refreshTokenValiditySeconds: 刷新令牌有效期,值的范围为 30x24x3600=2,592,000 秒到 365x24x3600=31,536,000 秒,即30天-365天<br/><br/> 注:当 GrantTypes 包含 refresh_token 时,refreshTokenValiditySeconds 为必传参数(Optional)
func (*UpdateAppRequest) SetRegionId ¶
func (r *UpdateAppRequest) SetRegionId(regionId string)
param regionId: 地域编码,参考OpenAPI公共说明(Required)
func (*UpdateAppRequest) SetScope ¶
func (r *UpdateAppRequest) SetScope(scope string)
param scope: OAuth scope范围,支持的值为:<br/> (1)openid:用OpenID Connect协议进行身份认证<br/> 指定scope为openid,并在Authorization Endpoint请求该scope,京东云将返回用户的OpenID令牌;如果在创建应用时未指明该值,则应用不能请求OpenID令牌;任何时候应用都可以调用“更新应用”更改该设置(Optional)
func (*UpdateAppRequest) SetSecret ¶
func (r *UpdateAppRequest) SetSecret(secret string)
param secret: 应用的密码,支持8-255位长度的ASCII可打印字符,建议使用足够复杂的密码策略<br/><br/> 注:当TokenEndpointAuthMethod不等于none时,secret为必传参数;反之,当指定了secret时,TokenEndpointAuthMethod不能等于none<br/> 京东云将不可逆加密secret,因此您无法再次从京东云查看该密码,但您可以随时通过更新应用重新设置secret(Optional)
func (*UpdateAppRequest) SetTokenEndpointAuthMethod ¶
func (r *UpdateAppRequest) SetTokenEndpointAuthMethod(tokenEndpointAuthMethod string)
param tokenEndpointAuthMethod: 客户端认证方式:<br/> none:不设置客户端密码(不推荐)<br/> client_secret_post:客户端必须设置密码,且该密码需要在OAuth2 Token Endpoint提供于请求的body<br/> client_secret_basic:客户端必须设置密码,且该密码需要在OAuth2 Token Endpoint提供于请求的header<br/><br/> 支持以下值:<br/> (1)none<br/> (2)client_secret_post<br/> (3)client_secret_basic(Optional)
func (*UpdateAppRequest) SetTosUri ¶
func (r *UpdateAppRequest) SetTosUri(tosUri string)
param tosUri: 应用服务协议地址,url不支持#符号(Optional)
func (*UpdateAppRequest) SetUserType ¶
func (r *UpdateAppRequest) SetUserType(userType string)
param userType: 能访问应用的账号类型,支持以下值:<br/> (1)root:支持主账号访问,子用户无法访问<br/> (2)sub:子用户账号,使用主账号不能访问<br/><br/> 注:multiTenant和userType的组合指定了应用的用户人群,典型的应用场景如:<br/> (1)应用向当前租户下的子用户开放(2)应用向京东云其他租户主账号开放(Optional)
type UpdateAppResponse ¶
type UpdateAppResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result UpdateAppResult `json:"result"` }
type UpdateAppResult ¶
type UpdateAppResult struct { ClientId string `json:"clientId"` ClientName string `json:"clientName"` TokenEndpointAuthMethod string `json:"tokenEndpointAuthMethod"` GrantTypes string `json:"grantTypes"` ResponseTypes string `json:"responseTypes"` RedirectUris string `json:"redirectUris"` ClientUri string `json:"clientUri"` LogoUri string `json:"logoUri"` TosUri string `json:"tosUri"` PolicyUri string `json:"policyUri"` Scope string `json:"scope"` JwksUri string `json:"jwksUri"` Jwks string `json:"jwks"` Contacts string `json:"contacts"` Extension string `json:"extension"` AccessTokenValiditySeconds int `json:"accessTokenValiditySeconds"` RefreshTokenValiditySeconds int `json:"refreshTokenValiditySeconds"` MultiTenant bool `json:"multiTenant"` SecretUpdateTime int64 `json:"secretUpdateTime"` UpdateTime int64 `json:"updateTime"` CreateTime int64 `json:"createTime"` Account string `json:"account"` UserType string `json:"userType"` }