tencentcloud-sdk-dasb 3.0.775 → 3.0.777
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20191018/client.rb +24 -0
- data/lib/v20191018/models.rb +64 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cac9d79433ddcc2c5f7a21c8757c6becf3833449
|
4
|
+
data.tar.gz: 4419222a5b094f8b0958615a42384fb8b1d86cf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7e035bd81119c397adb7731fb64735ceed3d45cd9a387c2d19a6058098ceeefd5fb4906af80a2b71ef7ace3dbeab628318ae83f5d31e2594d453f828a570324
|
7
|
+
data.tar.gz: 0450af3e1275cdd4588ac237e7362075e68b6fb49642065584410ceec575658fe9688007f8ea5e0326ca21e518db292188cdc11d81a214cde1900f3f47720f7b
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.777
|
data/lib/v20191018/client.rb
CHANGED
@@ -1037,6 +1037,30 @@ module TencentCloud
|
|
1037
1037
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1038
1038
|
end
|
1039
1039
|
|
1040
|
+
# 设置OAuth认证参数
|
1041
|
+
|
1042
|
+
# @param request: Request instance for ModifyOAuthSetting.
|
1043
|
+
# @type request: :class:`Tencentcloud::dasb::V20191018::ModifyOAuthSettingRequest`
|
1044
|
+
# @rtype: :class:`Tencentcloud::dasb::V20191018::ModifyOAuthSettingResponse`
|
1045
|
+
def ModifyOAuthSetting(request)
|
1046
|
+
body = send_request('ModifyOAuthSetting', request.serialize)
|
1047
|
+
response = JSON.parse(body)
|
1048
|
+
if response['Response'].key?('Error') == false
|
1049
|
+
model = ModifyOAuthSettingResponse.new
|
1050
|
+
model.deserialize(response['Response'])
|
1051
|
+
model
|
1052
|
+
else
|
1053
|
+
code = response['Response']['Error']['Code']
|
1054
|
+
message = response['Response']['Error']['Message']
|
1055
|
+
reqid = response['Response']['RequestId']
|
1056
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1057
|
+
end
|
1058
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1059
|
+
raise e
|
1060
|
+
rescue StandardError => e
|
1061
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1062
|
+
end
|
1063
|
+
|
1040
1064
|
# 资源变配
|
1041
1065
|
|
1042
1066
|
# @param request: Request instance for ModifyResource.
|
data/lib/v20191018/models.rb
CHANGED
@@ -567,8 +567,8 @@ module TencentCloud
|
|
567
567
|
|
568
568
|
attr_accessor :Cmd, :Time, :TimeOffset, :Action, :Sid, :UserName, :Account, :InstanceId, :FromIp, :SessionTime, :SessTime, :ConfirmTime, :UserDepartmentId, :UserDepartmentName, :DeviceDepartmentId, :DeviceDepartmentName, :Size
|
569
569
|
extend Gem::Deprecate
|
570
|
-
deprecate :SessTime, :none, 2024,
|
571
|
-
deprecate :SessTime=, :none, 2024,
|
570
|
+
deprecate :SessTime, :none, 2024, 3
|
571
|
+
deprecate :SessTime=, :none, 2024, 3
|
572
572
|
|
573
573
|
def initialize(cmd=nil, time=nil, timeoffset=nil, action=nil, sid=nil, username=nil, account=nil, instanceid=nil, fromip=nil, sessiontime=nil, sesstime=nil, confirmtime=nil, userdepartmentid=nil, userdepartmentname=nil, devicedepartmentid=nil, devicedepartmentname=nil, size=nil)
|
574
574
|
@Cmd = cmd
|
@@ -3055,6 +3055,66 @@ module TencentCloud
|
|
3055
3055
|
end
|
3056
3056
|
end
|
3057
3057
|
|
3058
|
+
# ModifyOAuthSetting请求参数结构体
|
3059
|
+
class ModifyOAuthSettingRequest < TencentCloud::Common::AbstractModel
|
3060
|
+
# @param Enable: 是否开启OAuth认证,false-不开启,true-开启。
|
3061
|
+
# @type Enable: Boolean
|
3062
|
+
# @param AuthMethod: OAuth认证方式。
|
3063
|
+
# @type AuthMethod: String
|
3064
|
+
# @param ClientId: OAuth认证客户端Id
|
3065
|
+
# @type ClientId: String
|
3066
|
+
# @param ClientSecret: OAuth认证客户端密钥
|
3067
|
+
# @type ClientSecret: String
|
3068
|
+
# @param CodeUrl: 获取OAuth认证授权码URL
|
3069
|
+
# @type CodeUrl: String
|
3070
|
+
# @param TokenUrl: 获取OAuth令牌URL
|
3071
|
+
# @type TokenUrl: String
|
3072
|
+
# @param UserInfoUrl: 获取OAuth用户信息URL
|
3073
|
+
# @type UserInfoUrl: String
|
3074
|
+
# @param Scopes: 使用Okta认证时指定范围。为空时默认使用 openid、profile、email。
|
3075
|
+
# @type Scopes: Array
|
3076
|
+
|
3077
|
+
attr_accessor :Enable, :AuthMethod, :ClientId, :ClientSecret, :CodeUrl, :TokenUrl, :UserInfoUrl, :Scopes
|
3078
|
+
|
3079
|
+
def initialize(enable=nil, authmethod=nil, clientid=nil, clientsecret=nil, codeurl=nil, tokenurl=nil, userinfourl=nil, scopes=nil)
|
3080
|
+
@Enable = enable
|
3081
|
+
@AuthMethod = authmethod
|
3082
|
+
@ClientId = clientid
|
3083
|
+
@ClientSecret = clientsecret
|
3084
|
+
@CodeUrl = codeurl
|
3085
|
+
@TokenUrl = tokenurl
|
3086
|
+
@UserInfoUrl = userinfourl
|
3087
|
+
@Scopes = scopes
|
3088
|
+
end
|
3089
|
+
|
3090
|
+
def deserialize(params)
|
3091
|
+
@Enable = params['Enable']
|
3092
|
+
@AuthMethod = params['AuthMethod']
|
3093
|
+
@ClientId = params['ClientId']
|
3094
|
+
@ClientSecret = params['ClientSecret']
|
3095
|
+
@CodeUrl = params['CodeUrl']
|
3096
|
+
@TokenUrl = params['TokenUrl']
|
3097
|
+
@UserInfoUrl = params['UserInfoUrl']
|
3098
|
+
@Scopes = params['Scopes']
|
3099
|
+
end
|
3100
|
+
end
|
3101
|
+
|
3102
|
+
# ModifyOAuthSetting返回参数结构体
|
3103
|
+
class ModifyOAuthSettingResponse < TencentCloud::Common::AbstractModel
|
3104
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3105
|
+
# @type RequestId: String
|
3106
|
+
|
3107
|
+
attr_accessor :RequestId
|
3108
|
+
|
3109
|
+
def initialize(requestid=nil)
|
3110
|
+
@RequestId = requestid
|
3111
|
+
end
|
3112
|
+
|
3113
|
+
def deserialize(params)
|
3114
|
+
@RequestId = params['RequestId']
|
3115
|
+
end
|
3116
|
+
end
|
3117
|
+
|
3058
3118
|
# ModifyResource请求参数结构体
|
3059
3119
|
class ModifyResourceRequest < TencentCloud::Common::AbstractModel
|
3060
3120
|
# @param ResourceId: 需要开通服务的资源ID
|
@@ -3774,8 +3834,8 @@ module TencentCloud
|
|
3774
3834
|
|
3775
3835
|
attr_accessor :Time, :UserName, :RealName, :InstanceId, :DeviceName, :PublicIp, :PrivateIp, :Cmd, :Action, :Sid, :TimeOffset, :Account, :FromIp, :SessionTime, :SessTime, :ConfirmTime, :UserDepartmentId, :UserDepartmentName, :DeviceDepartmentId, :DeviceDepartmentName, :Size
|
3776
3836
|
extend Gem::Deprecate
|
3777
|
-
deprecate :SessTime, :none, 2024,
|
3778
|
-
deprecate :SessTime=, :none, 2024,
|
3837
|
+
deprecate :SessTime, :none, 2024, 3
|
3838
|
+
deprecate :SessTime=, :none, 2024, 3
|
3779
3839
|
|
3780
3840
|
def initialize(time=nil, username=nil, realname=nil, instanceid=nil, devicename=nil, publicip=nil, privateip=nil, cmd=nil, action=nil, sid=nil, timeoffset=nil, account=nil, fromip=nil, sessiontime=nil, sesstime=nil, confirmtime=nil, userdepartmentid=nil, userdepartmentname=nil, devicedepartmentid=nil, devicedepartmentname=nil, size=nil)
|
3781
3841
|
@Time = time
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-dasb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.777
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|