smooch-api 4.1.0 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -3
- data/docs/Action.md +2 -2
- data/docs/App.md +2 -2
- data/docs/AppApi.md +48 -48
- data/docs/AppSettings.md +2 -2
- data/docs/AppUser.md +6 -6
- data/docs/AppUserApi.md +78 -78
- data/docs/AppUserBusinessSystemsResponse.md +1 -1
- data/docs/AppUserLink.md +2 -2
- data/docs/AppUserPreCreate.md +3 -3
- data/docs/AppUserResponse.md +1 -1
- data/docs/AppUserUpdate.md +2 -2
- data/docs/AttachmentRemove.md +1 -1
- data/docs/AttachmentResponse.md +2 -2
- data/docs/AttachmentsApi.md +16 -16
- data/docs/AuthCodeResponse.md +1 -1
- data/docs/BusinessSystemItem.md +4 -4
- data/docs/ChannelEntityItem.md +3 -3
- data/docs/Client.md +4 -4
- data/docs/ClientInfo.md +8 -8
- data/docs/Conversation.md +2 -2
- data/docs/ConversationApi.md +42 -42
- data/docs/Destination.md +2 -2
- data/docs/DisplaySettings.md +1 -1
- data/docs/GetMessagesResponse.md +1 -1
- data/docs/Integration.md +44 -44
- data/docs/IntegrationApi.md +66 -66
- data/docs/IntegrationCreate.md +36 -36
- data/docs/IntegrationProfileUpdate.md +1 -1
- data/docs/IntegrationUpdate.md +16 -16
- data/docs/LinkRequestResponse.md +1 -1
- data/docs/LinkRequestResponseLinkRequests.md +1 -1
- data/docs/ListAppsResponse.md +1 -1
- data/docs/ListServiceAccountsResponse.md +2 -2
- data/docs/ListTemplatesResponse.md +1 -1
- data/docs/MenuApi.md +14 -14
- data/docs/Message.md +6 -6
- data/docs/MessageItem.md +2 -2
- data/docs/MessageOverride.md +8 -0
- data/docs/MessageOverrideWhatsapp.md +8 -0
- data/docs/MessagePost.md +4 -3
- data/docs/MessageResponse.md +1 -1
- data/docs/SecretKey.md +1 -1
- data/docs/ServiceAccount.md +1 -1
- data/docs/ServiceAccountApi.md +46 -46
- data/docs/ServiceAccountResponse.md +1 -1
- data/docs/Template.md +1 -1
- data/docs/TemplateApi.md +30 -30
- data/docs/TypingActivityTrigger.md +1 -1
- data/docs/Webhook.md +1 -1
- data/docs/WebhookApi.md +30 -30
- data/lib/smooch-api.rb +3 -1
- data/lib/smooch-api/api/app_api.rb +112 -112
- data/lib/smooch-api/api/app_user_api.rb +190 -190
- data/lib/smooch-api/api/attachments_api.rb +34 -34
- data/lib/smooch-api/api/conversation_api.rb +102 -102
- data/lib/smooch-api/api/integration_api.rb +161 -161
- data/lib/smooch-api/api/menu_api.rb +34 -34
- data/lib/smooch-api/api/service_account_api.rb +109 -109
- data/lib/smooch-api/api/template_api.rb +73 -73
- data/lib/smooch-api/api/webhook_api.rb +73 -73
- data/lib/smooch-api/api_client.rb +1 -1
- data/lib/smooch-api/api_error.rb +1 -1
- data/lib/smooch-api/configuration.rb +1 -1
- data/lib/smooch-api/models/action.rb +12 -12
- data/lib/smooch-api/models/app.rb +18 -18
- data/lib/smooch-api/models/app_create.rb +1 -1
- data/lib/smooch-api/models/app_response.rb +1 -1
- data/lib/smooch-api/models/app_settings.rb +12 -12
- data/lib/smooch-api/models/app_update.rb +1 -1
- data/lib/smooch-api/models/app_user.rb +38 -38
- data/lib/smooch-api/models/app_user_business_systems_response.rb +10 -10
- data/lib/smooch-api/models/app_user_channels_response.rb +1 -1
- data/lib/smooch-api/models/app_user_link.rb +12 -12
- data/lib/smooch-api/models/app_user_pre_create.rb +20 -20
- data/lib/smooch-api/models/app_user_response.rb +10 -10
- data/lib/smooch-api/models/app_user_update.rb +12 -12
- data/lib/smooch-api/models/attachment_remove.rb +10 -10
- data/lib/smooch-api/models/attachment_response.rb +18 -18
- data/lib/smooch-api/models/auth_code_response.rb +10 -10
- data/lib/smooch-api/models/business_system_item.rb +22 -22
- data/lib/smooch-api/models/channel_entity_item.rb +17 -17
- data/lib/smooch-api/models/client.rb +22 -22
- data/lib/smooch-api/models/client_info.rb +42 -42
- data/lib/smooch-api/models/confirmation.rb +1 -1
- data/lib/smooch-api/models/conversation.rb +18 -18
- data/lib/smooch-api/models/destination.rb +18 -18
- data/lib/smooch-api/models/display_settings.rb +7 -7
- data/lib/smooch-api/models/get_messages_response.rb +7 -7
- data/lib/smooch-api/models/integration.rb +225 -225
- data/lib/smooch-api/models/integration_create.rb +182 -182
- data/lib/smooch-api/models/integration_profile_update.rb +7 -7
- data/lib/smooch-api/models/integration_response.rb +1 -1
- data/lib/smooch-api/models/integration_update.rb +82 -82
- data/lib/smooch-api/models/jwt_response.rb +1 -1
- data/lib/smooch-api/models/link_request_response.rb +7 -7
- data/lib/smooch-api/models/link_request_response_link_requests.rb +10 -10
- data/lib/smooch-api/models/list_apps_response.rb +7 -7
- data/lib/smooch-api/models/list_integrations_response.rb +1 -1
- data/lib/smooch-api/models/list_secret_keys_response.rb +1 -1
- data/lib/smooch-api/models/list_service_accounts_response.rb +12 -12
- data/lib/smooch-api/models/list_templates_response.rb +7 -7
- data/lib/smooch-api/models/list_webhooks_response.rb +1 -1
- data/lib/smooch-api/models/menu.rb +1 -1
- data/lib/smooch-api/models/menu_item.rb +1 -1
- data/lib/smooch-api/models/menu_response.rb +1 -1
- data/lib/smooch-api/models/message.rb +41 -41
- data/lib/smooch-api/models/message_item.rb +12 -12
- data/lib/smooch-api/models/message_override.rb +188 -0
- data/lib/smooch-api/models/message_override_whatsapp.rb +189 -0
- data/lib/smooch-api/models/message_post.rb +30 -20
- data/lib/smooch-api/models/message_response.rb +7 -7
- data/lib/smooch-api/models/secret_key.rb +10 -10
- data/lib/smooch-api/models/secret_key_create.rb +1 -1
- data/lib/smooch-api/models/secret_key_response.rb +1 -1
- data/lib/smooch-api/models/service_account.rb +10 -10
- data/lib/smooch-api/models/service_account_create.rb +1 -1
- data/lib/smooch-api/models/service_account_response.rb +7 -7
- data/lib/smooch-api/models/service_account_update.rb +1 -1
- data/lib/smooch-api/models/source.rb +1 -1
- data/lib/smooch-api/models/sub_menu_item.rb +1 -1
- data/lib/smooch-api/models/template.rb +10 -10
- data/lib/smooch-api/models/template_create.rb +1 -1
- data/lib/smooch-api/models/template_response.rb +1 -1
- data/lib/smooch-api/models/template_update.rb +1 -1
- data/lib/smooch-api/models/typing_activity_trigger.rb +7 -7
- data/lib/smooch-api/models/webhook.rb +10 -10
- data/lib/smooch-api/models/webhook_create.rb +1 -1
- data/lib/smooch-api/models/webhook_response.rb +1 -1
- data/lib/smooch-api/models/webhook_update.rb +1 -1
- data/lib/smooch-api/version.rb +2 -2
- data/smooch-api.gemspec +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +6 -2
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
|
5
5
|
|
6
|
-
OpenAPI spec version: 4.
|
6
|
+
OpenAPI spec version: 4.2
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -22,29 +22,29 @@ module SmoochApi
|
|
22
22
|
|
23
23
|
#
|
24
24
|
# Remove the specified app’s menu.
|
25
|
-
# @param
|
25
|
+
# @param appId Identifies the app.
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @return [MenuResponse]
|
28
|
-
def delete_menu(
|
29
|
-
data, _status_code, _headers = delete_menu_with_http_info(
|
28
|
+
def delete_menu(appId, opts = {})
|
29
|
+
data, _status_code, _headers = delete_menu_with_http_info(appId, opts)
|
30
30
|
return data
|
31
31
|
end
|
32
32
|
|
33
33
|
#
|
34
34
|
# Remove the specified app’s menu.
|
35
|
-
# @param
|
35
|
+
# @param appId Identifies the app.
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
37
|
# @return [Array<(MenuResponse, Fixnum, Hash)>] MenuResponse data, response status code and response headers
|
38
|
-
def delete_menu_with_http_info(
|
38
|
+
def delete_menu_with_http_info(appId, opts = {})
|
39
39
|
if @api_client.config.debugging
|
40
40
|
@api_client.config.logger.debug "Calling API: MenuApi.delete_menu ..."
|
41
41
|
end
|
42
|
-
# verify the required parameter '
|
43
|
-
if @api_client.config.client_side_validation &&
|
44
|
-
fail ArgumentError, "Missing the required parameter '
|
42
|
+
# verify the required parameter 'appId' is set
|
43
|
+
if @api_client.config.client_side_validation && appId.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'appId' when calling MenuApi.delete_menu"
|
45
45
|
end
|
46
46
|
# resource path
|
47
|
-
local_var_path = "/v1.1/apps/{appId}/menu".sub('{' + 'appId' + '}',
|
47
|
+
local_var_path = "/v1.1/apps/{appId}/menu".sub('{' + 'appId' + '}', appId.to_s)
|
48
48
|
|
49
49
|
# query parameters
|
50
50
|
query_params = {}
|
@@ -77,29 +77,29 @@ module SmoochApi
|
|
77
77
|
|
78
78
|
#
|
79
79
|
# Get the specified app’s menu.
|
80
|
-
# @param
|
80
|
+
# @param appId Identifies the app.
|
81
81
|
# @param [Hash] opts the optional parameters
|
82
82
|
# @return [MenuResponse]
|
83
|
-
def get_menu(
|
84
|
-
data, _status_code, _headers = get_menu_with_http_info(
|
83
|
+
def get_menu(appId, opts = {})
|
84
|
+
data, _status_code, _headers = get_menu_with_http_info(appId, opts)
|
85
85
|
return data
|
86
86
|
end
|
87
87
|
|
88
88
|
#
|
89
89
|
# Get the specified app’s menu.
|
90
|
-
# @param
|
90
|
+
# @param appId Identifies the app.
|
91
91
|
# @param [Hash] opts the optional parameters
|
92
92
|
# @return [Array<(MenuResponse, Fixnum, Hash)>] MenuResponse data, response status code and response headers
|
93
|
-
def get_menu_with_http_info(
|
93
|
+
def get_menu_with_http_info(appId, opts = {})
|
94
94
|
if @api_client.config.debugging
|
95
95
|
@api_client.config.logger.debug "Calling API: MenuApi.get_menu ..."
|
96
96
|
end
|
97
|
-
# verify the required parameter '
|
98
|
-
if @api_client.config.client_side_validation &&
|
99
|
-
fail ArgumentError, "Missing the required parameter '
|
97
|
+
# verify the required parameter 'appId' is set
|
98
|
+
if @api_client.config.client_side_validation && appId.nil?
|
99
|
+
fail ArgumentError, "Missing the required parameter 'appId' when calling MenuApi.get_menu"
|
100
100
|
end
|
101
101
|
# resource path
|
102
|
-
local_var_path = "/v1.1/apps/{appId}/menu".sub('{' + 'appId' + '}',
|
102
|
+
local_var_path = "/v1.1/apps/{appId}/menu".sub('{' + 'appId' + '}', appId.to_s)
|
103
103
|
|
104
104
|
# query parameters
|
105
105
|
query_params = {}
|
@@ -132,35 +132,35 @@ module SmoochApi
|
|
132
132
|
|
133
133
|
#
|
134
134
|
# Configure the specified app’s menu.
|
135
|
-
# @param
|
136
|
-
# @param
|
135
|
+
# @param appId Identifies the app.
|
136
|
+
# @param menuUpdateBody Body for a updateMenu request.
|
137
137
|
# @param [Hash] opts the optional parameters
|
138
138
|
# @return [MenuResponse]
|
139
|
-
def update_menu(
|
140
|
-
data, _status_code, _headers = update_menu_with_http_info(
|
139
|
+
def update_menu(appId, menuUpdateBody, opts = {})
|
140
|
+
data, _status_code, _headers = update_menu_with_http_info(appId, menuUpdateBody, opts)
|
141
141
|
return data
|
142
142
|
end
|
143
143
|
|
144
144
|
#
|
145
145
|
# Configure the specified app’s menu.
|
146
|
-
# @param
|
147
|
-
# @param
|
146
|
+
# @param appId Identifies the app.
|
147
|
+
# @param menuUpdateBody Body for a updateMenu request.
|
148
148
|
# @param [Hash] opts the optional parameters
|
149
149
|
# @return [Array<(MenuResponse, Fixnum, Hash)>] MenuResponse data, response status code and response headers
|
150
|
-
def update_menu_with_http_info(
|
150
|
+
def update_menu_with_http_info(appId, menuUpdateBody, opts = {})
|
151
151
|
if @api_client.config.debugging
|
152
152
|
@api_client.config.logger.debug "Calling API: MenuApi.update_menu ..."
|
153
153
|
end
|
154
|
-
# verify the required parameter '
|
155
|
-
if @api_client.config.client_side_validation &&
|
156
|
-
fail ArgumentError, "Missing the required parameter '
|
154
|
+
# verify the required parameter 'appId' is set
|
155
|
+
if @api_client.config.client_side_validation && appId.nil?
|
156
|
+
fail ArgumentError, "Missing the required parameter 'appId' when calling MenuApi.update_menu"
|
157
157
|
end
|
158
|
-
# verify the required parameter '
|
159
|
-
if @api_client.config.client_side_validation &&
|
160
|
-
fail ArgumentError, "Missing the required parameter '
|
158
|
+
# verify the required parameter 'menuUpdateBody' is set
|
159
|
+
if @api_client.config.client_side_validation && menuUpdateBody.nil?
|
160
|
+
fail ArgumentError, "Missing the required parameter 'menuUpdateBody' when calling MenuApi.update_menu"
|
161
161
|
end
|
162
162
|
# resource path
|
163
|
-
local_var_path = "/v1.1/apps/{appId}/menu".sub('{' + 'appId' + '}',
|
163
|
+
local_var_path = "/v1.1/apps/{appId}/menu".sub('{' + 'appId' + '}', appId.to_s)
|
164
164
|
|
165
165
|
# query parameters
|
166
166
|
query_params = {}
|
@@ -176,7 +176,7 @@ module SmoochApi
|
|
176
176
|
form_params = {}
|
177
177
|
|
178
178
|
# http body (model)
|
179
|
-
post_body = @api_client.object_to_http_body(
|
179
|
+
post_body = @api_client.object_to_http_body(menuUpdateBody)
|
180
180
|
auth_names = ['jwt']
|
181
181
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
182
182
|
:header_params => header_params,
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
|
5
5
|
|
6
|
-
OpenAPI spec version: 4.
|
6
|
+
OpenAPI spec version: 4.2
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -22,35 +22,35 @@ module SmoochApi
|
|
22
22
|
|
23
23
|
#
|
24
24
|
# Create a secret key for the specified service account.
|
25
|
-
# @param
|
26
|
-
# @param
|
25
|
+
# @param serviceAccountId Identifies the service account.
|
26
|
+
# @param secretKeyCreateBody Body for a createSecretKey request.
|
27
27
|
# @param [Hash] opts the optional parameters
|
28
28
|
# @return [SecretKeyResponse]
|
29
|
-
def create_secret_key(
|
30
|
-
data, _status_code, _headers = create_secret_key_with_http_info(
|
29
|
+
def create_secret_key(serviceAccountId, secretKeyCreateBody, opts = {})
|
30
|
+
data, _status_code, _headers = create_secret_key_with_http_info(serviceAccountId, secretKeyCreateBody, opts)
|
31
31
|
return data
|
32
32
|
end
|
33
33
|
|
34
34
|
#
|
35
35
|
# Create a secret key for the specified service account.
|
36
|
-
# @param
|
37
|
-
# @param
|
36
|
+
# @param serviceAccountId Identifies the service account.
|
37
|
+
# @param secretKeyCreateBody Body for a createSecretKey request.
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @return [Array<(SecretKeyResponse, Fixnum, Hash)>] SecretKeyResponse data, response status code and response headers
|
40
|
-
def create_secret_key_with_http_info(
|
40
|
+
def create_secret_key_with_http_info(serviceAccountId, secretKeyCreateBody, opts = {})
|
41
41
|
if @api_client.config.debugging
|
42
42
|
@api_client.config.logger.debug "Calling API: ServiceAccountApi.create_secret_key ..."
|
43
43
|
end
|
44
|
-
# verify the required parameter '
|
45
|
-
if @api_client.config.client_side_validation &&
|
46
|
-
fail ArgumentError, "Missing the required parameter '
|
44
|
+
# verify the required parameter 'serviceAccountId' is set
|
45
|
+
if @api_client.config.client_side_validation && serviceAccountId.nil?
|
46
|
+
fail ArgumentError, "Missing the required parameter 'serviceAccountId' when calling ServiceAccountApi.create_secret_key"
|
47
47
|
end
|
48
|
-
# verify the required parameter '
|
49
|
-
if @api_client.config.client_side_validation &&
|
50
|
-
fail ArgumentError, "Missing the required parameter '
|
48
|
+
# verify the required parameter 'secretKeyCreateBody' is set
|
49
|
+
if @api_client.config.client_side_validation && secretKeyCreateBody.nil?
|
50
|
+
fail ArgumentError, "Missing the required parameter 'secretKeyCreateBody' when calling ServiceAccountApi.create_secret_key"
|
51
51
|
end
|
52
52
|
# resource path
|
53
|
-
local_var_path = "/v1.1/serviceaccounts/{serviceAccountId}/keys".sub('{' + 'serviceAccountId' + '}',
|
53
|
+
local_var_path = "/v1.1/serviceaccounts/{serviceAccountId}/keys".sub('{' + 'serviceAccountId' + '}', serviceAccountId.to_s)
|
54
54
|
|
55
55
|
# query parameters
|
56
56
|
query_params = {}
|
@@ -66,7 +66,7 @@ module SmoochApi
|
|
66
66
|
form_params = {}
|
67
67
|
|
68
68
|
# http body (model)
|
69
|
-
post_body = @api_client.object_to_http_body(
|
69
|
+
post_body = @api_client.object_to_http_body(secretKeyCreateBody)
|
70
70
|
auth_names = ['jwt']
|
71
71
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
72
72
|
:header_params => header_params,
|
@@ -83,26 +83,26 @@ module SmoochApi
|
|
83
83
|
|
84
84
|
#
|
85
85
|
# Create a new service account.
|
86
|
-
# @param
|
86
|
+
# @param serviceAccountCreateBody Body for a createServiceAccount request.
|
87
87
|
# @param [Hash] opts the optional parameters
|
88
88
|
# @return [ServiceAccountResponse]
|
89
|
-
def create_service_account(
|
90
|
-
data, _status_code, _headers = create_service_account_with_http_info(
|
89
|
+
def create_service_account(serviceAccountCreateBody, opts = {})
|
90
|
+
data, _status_code, _headers = create_service_account_with_http_info(serviceAccountCreateBody, opts)
|
91
91
|
return data
|
92
92
|
end
|
93
93
|
|
94
94
|
#
|
95
95
|
# Create a new service account.
|
96
|
-
# @param
|
96
|
+
# @param serviceAccountCreateBody Body for a createServiceAccount request.
|
97
97
|
# @param [Hash] opts the optional parameters
|
98
98
|
# @return [Array<(ServiceAccountResponse, Fixnum, Hash)>] ServiceAccountResponse data, response status code and response headers
|
99
|
-
def create_service_account_with_http_info(
|
99
|
+
def create_service_account_with_http_info(serviceAccountCreateBody, opts = {})
|
100
100
|
if @api_client.config.debugging
|
101
101
|
@api_client.config.logger.debug "Calling API: ServiceAccountApi.create_service_account ..."
|
102
102
|
end
|
103
|
-
# verify the required parameter '
|
104
|
-
if @api_client.config.client_side_validation &&
|
105
|
-
fail ArgumentError, "Missing the required parameter '
|
103
|
+
# verify the required parameter 'serviceAccountCreateBody' is set
|
104
|
+
if @api_client.config.client_side_validation && serviceAccountCreateBody.nil?
|
105
|
+
fail ArgumentError, "Missing the required parameter 'serviceAccountCreateBody' when calling ServiceAccountApi.create_service_account"
|
106
106
|
end
|
107
107
|
# resource path
|
108
108
|
local_var_path = "/v1.1/serviceaccounts"
|
@@ -121,7 +121,7 @@ module SmoochApi
|
|
121
121
|
form_params = {}
|
122
122
|
|
123
123
|
# http body (model)
|
124
|
-
post_body = @api_client.object_to_http_body(
|
124
|
+
post_body = @api_client.object_to_http_body(serviceAccountCreateBody)
|
125
125
|
auth_names = ['jwt']
|
126
126
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
127
127
|
:header_params => header_params,
|
@@ -138,35 +138,35 @@ module SmoochApi
|
|
138
138
|
|
139
139
|
#
|
140
140
|
# Delete the specified service account secret key.
|
141
|
-
# @param
|
142
|
-
# @param
|
141
|
+
# @param serviceAccountId Identifies the service account.
|
142
|
+
# @param keyId Identifies the secret key.
|
143
143
|
# @param [Hash] opts the optional parameters
|
144
144
|
# @return [nil]
|
145
|
-
def delete_secret_key(
|
146
|
-
delete_secret_key_with_http_info(
|
145
|
+
def delete_secret_key(serviceAccountId, keyId, opts = {})
|
146
|
+
delete_secret_key_with_http_info(serviceAccountId, keyId, opts)
|
147
147
|
return nil
|
148
148
|
end
|
149
149
|
|
150
150
|
#
|
151
151
|
# Delete the specified service account secret key.
|
152
|
-
# @param
|
153
|
-
# @param
|
152
|
+
# @param serviceAccountId Identifies the service account.
|
153
|
+
# @param keyId Identifies the secret key.
|
154
154
|
# @param [Hash] opts the optional parameters
|
155
155
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
156
|
-
def delete_secret_key_with_http_info(
|
156
|
+
def delete_secret_key_with_http_info(serviceAccountId, keyId, opts = {})
|
157
157
|
if @api_client.config.debugging
|
158
158
|
@api_client.config.logger.debug "Calling API: ServiceAccountApi.delete_secret_key ..."
|
159
159
|
end
|
160
|
-
# verify the required parameter '
|
161
|
-
if @api_client.config.client_side_validation &&
|
162
|
-
fail ArgumentError, "Missing the required parameter '
|
160
|
+
# verify the required parameter 'serviceAccountId' is set
|
161
|
+
if @api_client.config.client_side_validation && serviceAccountId.nil?
|
162
|
+
fail ArgumentError, "Missing the required parameter 'serviceAccountId' when calling ServiceAccountApi.delete_secret_key"
|
163
163
|
end
|
164
|
-
# verify the required parameter '
|
165
|
-
if @api_client.config.client_side_validation &&
|
166
|
-
fail ArgumentError, "Missing the required parameter '
|
164
|
+
# verify the required parameter 'keyId' is set
|
165
|
+
if @api_client.config.client_side_validation && keyId.nil?
|
166
|
+
fail ArgumentError, "Missing the required parameter 'keyId' when calling ServiceAccountApi.delete_secret_key"
|
167
167
|
end
|
168
168
|
# resource path
|
169
|
-
local_var_path = "/v1.1/serviceaccounts/{serviceAccountId}/keys/{keyId}".sub('{' + 'serviceAccountId' + '}',
|
169
|
+
local_var_path = "/v1.1/serviceaccounts/{serviceAccountId}/keys/{keyId}".sub('{' + 'serviceAccountId' + '}', serviceAccountId.to_s).sub('{' + 'keyId' + '}', keyId.to_s)
|
170
170
|
|
171
171
|
# query parameters
|
172
172
|
query_params = {}
|
@@ -198,29 +198,29 @@ module SmoochApi
|
|
198
198
|
|
199
199
|
#
|
200
200
|
# Delete the specified service account.
|
201
|
-
# @param
|
201
|
+
# @param serviceAccountId Identifies the service account.
|
202
202
|
# @param [Hash] opts the optional parameters
|
203
203
|
# @return [nil]
|
204
|
-
def delete_service_account(
|
205
|
-
delete_service_account_with_http_info(
|
204
|
+
def delete_service_account(serviceAccountId, opts = {})
|
205
|
+
delete_service_account_with_http_info(serviceAccountId, opts)
|
206
206
|
return nil
|
207
207
|
end
|
208
208
|
|
209
209
|
#
|
210
210
|
# Delete the specified service account.
|
211
|
-
# @param
|
211
|
+
# @param serviceAccountId Identifies the service account.
|
212
212
|
# @param [Hash] opts the optional parameters
|
213
213
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
214
|
-
def delete_service_account_with_http_info(
|
214
|
+
def delete_service_account_with_http_info(serviceAccountId, opts = {})
|
215
215
|
if @api_client.config.debugging
|
216
216
|
@api_client.config.logger.debug "Calling API: ServiceAccountApi.delete_service_account ..."
|
217
217
|
end
|
218
|
-
# verify the required parameter '
|
219
|
-
if @api_client.config.client_side_validation &&
|
220
|
-
fail ArgumentError, "Missing the required parameter '
|
218
|
+
# verify the required parameter 'serviceAccountId' is set
|
219
|
+
if @api_client.config.client_side_validation && serviceAccountId.nil?
|
220
|
+
fail ArgumentError, "Missing the required parameter 'serviceAccountId' when calling ServiceAccountApi.delete_service_account"
|
221
221
|
end
|
222
222
|
# resource path
|
223
|
-
local_var_path = "/v1.1/serviceaccounts/{serviceAccountId}".sub('{' + 'serviceAccountId' + '}',
|
223
|
+
local_var_path = "/v1.1/serviceaccounts/{serviceAccountId}".sub('{' + 'serviceAccountId' + '}', serviceAccountId.to_s)
|
224
224
|
|
225
225
|
# query parameters
|
226
226
|
query_params = {}
|
@@ -252,35 +252,35 @@ module SmoochApi
|
|
252
252
|
|
253
253
|
#
|
254
254
|
# Get an account-scoped JWT for the specified service account secret key.
|
255
|
-
# @param
|
256
|
-
# @param
|
255
|
+
# @param serviceAccountId Identifies the service account.
|
256
|
+
# @param keyId Identifies the secret key.
|
257
257
|
# @param [Hash] opts the optional parameters
|
258
258
|
# @return [JwtResponse]
|
259
|
-
def get_jwt(
|
260
|
-
data, _status_code, _headers = get_jwt_with_http_info(
|
259
|
+
def get_jwt(serviceAccountId, keyId, opts = {})
|
260
|
+
data, _status_code, _headers = get_jwt_with_http_info(serviceAccountId, keyId, opts)
|
261
261
|
return data
|
262
262
|
end
|
263
263
|
|
264
264
|
#
|
265
265
|
# Get an account-scoped JWT for the specified service account secret key.
|
266
|
-
# @param
|
267
|
-
# @param
|
266
|
+
# @param serviceAccountId Identifies the service account.
|
267
|
+
# @param keyId Identifies the secret key.
|
268
268
|
# @param [Hash] opts the optional parameters
|
269
269
|
# @return [Array<(JwtResponse, Fixnum, Hash)>] JwtResponse data, response status code and response headers
|
270
|
-
def get_jwt_with_http_info(
|
270
|
+
def get_jwt_with_http_info(serviceAccountId, keyId, opts = {})
|
271
271
|
if @api_client.config.debugging
|
272
272
|
@api_client.config.logger.debug "Calling API: ServiceAccountApi.get_jwt ..."
|
273
273
|
end
|
274
|
-
# verify the required parameter '
|
275
|
-
if @api_client.config.client_side_validation &&
|
276
|
-
fail ArgumentError, "Missing the required parameter '
|
274
|
+
# verify the required parameter 'serviceAccountId' is set
|
275
|
+
if @api_client.config.client_side_validation && serviceAccountId.nil?
|
276
|
+
fail ArgumentError, "Missing the required parameter 'serviceAccountId' when calling ServiceAccountApi.get_jwt"
|
277
277
|
end
|
278
|
-
# verify the required parameter '
|
279
|
-
if @api_client.config.client_side_validation &&
|
280
|
-
fail ArgumentError, "Missing the required parameter '
|
278
|
+
# verify the required parameter 'keyId' is set
|
279
|
+
if @api_client.config.client_side_validation && keyId.nil?
|
280
|
+
fail ArgumentError, "Missing the required parameter 'keyId' when calling ServiceAccountApi.get_jwt"
|
281
281
|
end
|
282
282
|
# resource path
|
283
|
-
local_var_path = "/v1.1/serviceaccounts/{serviceAccountId}/keys/{keyId}/jwt".sub('{' + 'serviceAccountId' + '}',
|
283
|
+
local_var_path = "/v1.1/serviceaccounts/{serviceAccountId}/keys/{keyId}/jwt".sub('{' + 'serviceAccountId' + '}', serviceAccountId.to_s).sub('{' + 'keyId' + '}', keyId.to_s)
|
284
284
|
|
285
285
|
# query parameters
|
286
286
|
query_params = {}
|
@@ -313,35 +313,35 @@ module SmoochApi
|
|
313
313
|
|
314
314
|
#
|
315
315
|
# Get the specified service account secret key.
|
316
|
-
# @param
|
317
|
-
# @param
|
316
|
+
# @param serviceAccountId Identifies the service account.
|
317
|
+
# @param keyId Identifies the secret key.
|
318
318
|
# @param [Hash] opts the optional parameters
|
319
319
|
# @return [SecretKeyResponse]
|
320
|
-
def get_secret_key(
|
321
|
-
data, _status_code, _headers = get_secret_key_with_http_info(
|
320
|
+
def get_secret_key(serviceAccountId, keyId, opts = {})
|
321
|
+
data, _status_code, _headers = get_secret_key_with_http_info(serviceAccountId, keyId, opts)
|
322
322
|
return data
|
323
323
|
end
|
324
324
|
|
325
325
|
#
|
326
326
|
# Get the specified service account secret key.
|
327
|
-
# @param
|
328
|
-
# @param
|
327
|
+
# @param serviceAccountId Identifies the service account.
|
328
|
+
# @param keyId Identifies the secret key.
|
329
329
|
# @param [Hash] opts the optional parameters
|
330
330
|
# @return [Array<(SecretKeyResponse, Fixnum, Hash)>] SecretKeyResponse data, response status code and response headers
|
331
|
-
def get_secret_key_with_http_info(
|
331
|
+
def get_secret_key_with_http_info(serviceAccountId, keyId, opts = {})
|
332
332
|
if @api_client.config.debugging
|
333
333
|
@api_client.config.logger.debug "Calling API: ServiceAccountApi.get_secret_key ..."
|
334
334
|
end
|
335
|
-
# verify the required parameter '
|
336
|
-
if @api_client.config.client_side_validation &&
|
337
|
-
fail ArgumentError, "Missing the required parameter '
|
335
|
+
# verify the required parameter 'serviceAccountId' is set
|
336
|
+
if @api_client.config.client_side_validation && serviceAccountId.nil?
|
337
|
+
fail ArgumentError, "Missing the required parameter 'serviceAccountId' when calling ServiceAccountApi.get_secret_key"
|
338
338
|
end
|
339
|
-
# verify the required parameter '
|
340
|
-
if @api_client.config.client_side_validation &&
|
341
|
-
fail ArgumentError, "Missing the required parameter '
|
339
|
+
# verify the required parameter 'keyId' is set
|
340
|
+
if @api_client.config.client_side_validation && keyId.nil?
|
341
|
+
fail ArgumentError, "Missing the required parameter 'keyId' when calling ServiceAccountApi.get_secret_key"
|
342
342
|
end
|
343
343
|
# resource path
|
344
|
-
local_var_path = "/v1.1/serviceaccounts/{serviceAccountId}/keys/{keyId}".sub('{' + 'serviceAccountId' + '}',
|
344
|
+
local_var_path = "/v1.1/serviceaccounts/{serviceAccountId}/keys/{keyId}".sub('{' + 'serviceAccountId' + '}', serviceAccountId.to_s).sub('{' + 'keyId' + '}', keyId.to_s)
|
345
345
|
|
346
346
|
# query parameters
|
347
347
|
query_params = {}
|
@@ -374,29 +374,29 @@ module SmoochApi
|
|
374
374
|
|
375
375
|
#
|
376
376
|
# Get the specified service account.
|
377
|
-
# @param
|
377
|
+
# @param serviceAccountId Identifies the service account.
|
378
378
|
# @param [Hash] opts the optional parameters
|
379
379
|
# @return [ServiceAccountResponse]
|
380
|
-
def get_service_account(
|
381
|
-
data, _status_code, _headers = get_service_account_with_http_info(
|
380
|
+
def get_service_account(serviceAccountId, opts = {})
|
381
|
+
data, _status_code, _headers = get_service_account_with_http_info(serviceAccountId, opts)
|
382
382
|
return data
|
383
383
|
end
|
384
384
|
|
385
385
|
#
|
386
386
|
# Get the specified service account.
|
387
|
-
# @param
|
387
|
+
# @param serviceAccountId Identifies the service account.
|
388
388
|
# @param [Hash] opts the optional parameters
|
389
389
|
# @return [Array<(ServiceAccountResponse, Fixnum, Hash)>] ServiceAccountResponse data, response status code and response headers
|
390
|
-
def get_service_account_with_http_info(
|
390
|
+
def get_service_account_with_http_info(serviceAccountId, opts = {})
|
391
391
|
if @api_client.config.debugging
|
392
392
|
@api_client.config.logger.debug "Calling API: ServiceAccountApi.get_service_account ..."
|
393
393
|
end
|
394
|
-
# verify the required parameter '
|
395
|
-
if @api_client.config.client_side_validation &&
|
396
|
-
fail ArgumentError, "Missing the required parameter '
|
394
|
+
# verify the required parameter 'serviceAccountId' is set
|
395
|
+
if @api_client.config.client_side_validation && serviceAccountId.nil?
|
396
|
+
fail ArgumentError, "Missing the required parameter 'serviceAccountId' when calling ServiceAccountApi.get_service_account"
|
397
397
|
end
|
398
398
|
# resource path
|
399
|
-
local_var_path = "/v1.1/serviceaccounts/{serviceAccountId}".sub('{' + 'serviceAccountId' + '}',
|
399
|
+
local_var_path = "/v1.1/serviceaccounts/{serviceAccountId}".sub('{' + 'serviceAccountId' + '}', serviceAccountId.to_s)
|
400
400
|
|
401
401
|
# query parameters
|
402
402
|
query_params = {}
|
@@ -429,29 +429,29 @@ module SmoochApi
|
|
429
429
|
|
430
430
|
#
|
431
431
|
# List the secret keys for the specified service account.
|
432
|
-
# @param
|
432
|
+
# @param serviceAccountId Identifies the service account.
|
433
433
|
# @param [Hash] opts the optional parameters
|
434
434
|
# @return [ListSecretKeysResponse]
|
435
|
-
def list_secret_keys(
|
436
|
-
data, _status_code, _headers = list_secret_keys_with_http_info(
|
435
|
+
def list_secret_keys(serviceAccountId, opts = {})
|
436
|
+
data, _status_code, _headers = list_secret_keys_with_http_info(serviceAccountId, opts)
|
437
437
|
return data
|
438
438
|
end
|
439
439
|
|
440
440
|
#
|
441
441
|
# List the secret keys for the specified service account.
|
442
|
-
# @param
|
442
|
+
# @param serviceAccountId Identifies the service account.
|
443
443
|
# @param [Hash] opts the optional parameters
|
444
444
|
# @return [Array<(ListSecretKeysResponse, Fixnum, Hash)>] ListSecretKeysResponse data, response status code and response headers
|
445
|
-
def list_secret_keys_with_http_info(
|
445
|
+
def list_secret_keys_with_http_info(serviceAccountId, opts = {})
|
446
446
|
if @api_client.config.debugging
|
447
447
|
@api_client.config.logger.debug "Calling API: ServiceAccountApi.list_secret_keys ..."
|
448
448
|
end
|
449
|
-
# verify the required parameter '
|
450
|
-
if @api_client.config.client_side_validation &&
|
451
|
-
fail ArgumentError, "Missing the required parameter '
|
449
|
+
# verify the required parameter 'serviceAccountId' is set
|
450
|
+
if @api_client.config.client_side_validation && serviceAccountId.nil?
|
451
|
+
fail ArgumentError, "Missing the required parameter 'serviceAccountId' when calling ServiceAccountApi.list_secret_keys"
|
452
452
|
end
|
453
453
|
# resource path
|
454
|
-
local_var_path = "/v1.1/serviceaccounts/{serviceAccountId}/keys".sub('{' + 'serviceAccountId' + '}',
|
454
|
+
local_var_path = "/v1.1/serviceaccounts/{serviceAccountId}/keys".sub('{' + 'serviceAccountId' + '}', serviceAccountId.to_s)
|
455
455
|
|
456
456
|
# query parameters
|
457
457
|
query_params = {}
|
@@ -539,35 +539,35 @@ module SmoochApi
|
|
539
539
|
|
540
540
|
#
|
541
541
|
# Update the specified service account.
|
542
|
-
# @param
|
543
|
-
# @param
|
542
|
+
# @param serviceAccountId Identifies the service account.
|
543
|
+
# @param serviceAccountUpdateBody Body for an updateServiceAccount request.
|
544
544
|
# @param [Hash] opts the optional parameters
|
545
545
|
# @return [ServiceAccountResponse]
|
546
|
-
def update_service_account(
|
547
|
-
data, _status_code, _headers = update_service_account_with_http_info(
|
546
|
+
def update_service_account(serviceAccountId, serviceAccountUpdateBody, opts = {})
|
547
|
+
data, _status_code, _headers = update_service_account_with_http_info(serviceAccountId, serviceAccountUpdateBody, opts)
|
548
548
|
return data
|
549
549
|
end
|
550
550
|
|
551
551
|
#
|
552
552
|
# Update the specified service account.
|
553
|
-
# @param
|
554
|
-
# @param
|
553
|
+
# @param serviceAccountId Identifies the service account.
|
554
|
+
# @param serviceAccountUpdateBody Body for an updateServiceAccount request.
|
555
555
|
# @param [Hash] opts the optional parameters
|
556
556
|
# @return [Array<(ServiceAccountResponse, Fixnum, Hash)>] ServiceAccountResponse data, response status code and response headers
|
557
|
-
def update_service_account_with_http_info(
|
557
|
+
def update_service_account_with_http_info(serviceAccountId, serviceAccountUpdateBody, opts = {})
|
558
558
|
if @api_client.config.debugging
|
559
559
|
@api_client.config.logger.debug "Calling API: ServiceAccountApi.update_service_account ..."
|
560
560
|
end
|
561
|
-
# verify the required parameter '
|
562
|
-
if @api_client.config.client_side_validation &&
|
563
|
-
fail ArgumentError, "Missing the required parameter '
|
561
|
+
# verify the required parameter 'serviceAccountId' is set
|
562
|
+
if @api_client.config.client_side_validation && serviceAccountId.nil?
|
563
|
+
fail ArgumentError, "Missing the required parameter 'serviceAccountId' when calling ServiceAccountApi.update_service_account"
|
564
564
|
end
|
565
|
-
# verify the required parameter '
|
566
|
-
if @api_client.config.client_side_validation &&
|
567
|
-
fail ArgumentError, "Missing the required parameter '
|
565
|
+
# verify the required parameter 'serviceAccountUpdateBody' is set
|
566
|
+
if @api_client.config.client_side_validation && serviceAccountUpdateBody.nil?
|
567
|
+
fail ArgumentError, "Missing the required parameter 'serviceAccountUpdateBody' when calling ServiceAccountApi.update_service_account"
|
568
568
|
end
|
569
569
|
# resource path
|
570
|
-
local_var_path = "/v1.1/serviceaccounts/{serviceAccountId}".sub('{' + 'serviceAccountId' + '}',
|
570
|
+
local_var_path = "/v1.1/serviceaccounts/{serviceAccountId}".sub('{' + 'serviceAccountId' + '}', serviceAccountId.to_s)
|
571
571
|
|
572
572
|
# query parameters
|
573
573
|
query_params = {}
|
@@ -583,7 +583,7 @@ module SmoochApi
|
|
583
583
|
form_params = {}
|
584
584
|
|
585
585
|
# http body (model)
|
586
|
-
post_body = @api_client.object_to_http_body(
|
586
|
+
post_body = @api_client.object_to_http_body(serviceAccountUpdateBody)
|
587
587
|
auth_names = ['jwt']
|
588
588
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
589
589
|
:header_params => header_params,
|