Skip to content

Commit f268314

Browse files
splunk-srv-dev-platformljiang1
authored andcommitted
Update with code-generated api bindings and models performed 2021-04-21
1 parent 5025eba commit f268314

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+10016
-3667
lines changed

splunk_sdk/action/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# flake8: noqa
44

5-
# Copyright © 2020 Splunk, Inc.
5+
# Copyright © 2021 Splunk, Inc.
66
#
77
# Licensed under the Apache License, Version 2.0 (the "License"): you may
88
# not use this file except in compliance with the License. You may obtain

splunk_sdk/action/v1beta2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# flake8: noqa
44

5-
# Copyright © 2020 Splunk, Inc.
5+
# Copyright © 2021 Splunk, Inc.
66
#
77
# Licensed under the Apache License, Version 2.0 (the "License"): you may
88
# not use this file except in compliance with the License. You may obtain

splunk_sdk/action/v1beta2/gen_action_service_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# coding: utf-8
22

3-
# Copyright © 2020 Splunk, Inc.
3+
# Copyright © 2021 Splunk, Inc.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License"): you may
66
# not use this file except in compliance with the License. You may obtain

splunk_sdk/action/v1beta2/gen_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright © 2020 Splunk, Inc.
1+
# Copyright © 2021 Splunk, Inc.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"): you may
44
# not use this file except in compliance with the License. You may obtain

splunk_sdk/action/v1beta2/openapi.yaml

Lines changed: 43 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
components:
22
parameters:
33
ActionName:
4-
description: The name of the action as one or more identifier strings separated by periods. Each identifier string consists of lowercase letters, digits, and underscores, and cannot start with a digit.
4+
description: The name of the action as one or more identifier strings separated
5+
by periods. Each identifier string consists of lowercase letters, digits,
6+
and underscores, and cannot start with a digit.
57
in: path
68
name: action_name
79
required: true
@@ -67,7 +69,8 @@ components:
6769
ActionImmutable:
6870
properties:
6971
createdAt:
70-
description: The date and time this action template was created (ISO-8601 date/time with zone).
72+
description: The date and time this action template was created (ISO-8601
73+
date/time with zone).
7174
format: date-time
7275
readOnly: true
7376
type: string
@@ -78,11 +81,14 @@ components:
7881
kind:
7982
$ref: '#/components/schemas/ActionKind'
8083
name:
81-
description: The name of the action, as one or more identifier strings separated by periods. Each identifier string consists of lowercase letters, digits, and underscores, and cannot start with a digit.
84+
description: The name of the action, as one or more identifier strings separated
85+
by periods. Each identifier string consists of lowercase letters, digits,
86+
and underscores, and cannot start with a digit.
8287
pattern: ^[_a-z][_a-z0-9]*(?:\.[_a-z][_a-z0-9]*)*$
8388
type: string
8489
updatedAt:
85-
description: The date and time this action template was updated (ISO-8601 date/time with zone).
90+
description: The date and time this action template was updated (ISO-8601
91+
date/time with zone).
8692
format: date-time
8793
readOnly: true
8894
type: string
@@ -145,26 +151,34 @@ components:
145151
type: string
146152
type: array
147153
body:
148-
description: HTML content to send as the body of the email. You can use a template in this field.
154+
description: HTML content to send as the body of the email. You can use
155+
a template in this field.
149156
example: <html><body>Hello, this is my test email.</body></html>
150157
type: string
151158
bodyPlainText:
152-
description: Optional text to send as the text/plain part of the email. If this field is not set for an email action, the Action service converts the value from the body field to text and sends that as the text/plain part when invoking the action. You can use a template in this field.
159+
description: Optional text to send as the text/plain part of the email.
160+
If this field is not set for an email action, the Action service converts
161+
the value from the body field to text and sends that as the text/plain
162+
part when invoking the action. You can use a template in this field.
153163
example: Hello, this is my test email.
154164
type: string
155165
fromName:
156-
description: Optional text providing a human-friendly name for the sender. Must be less than or equal to 81 characters. You can use a template in this field.
166+
description: Optional text providing a human-friendly name for the sender.
167+
Must be less than or equal to 81 characters. You can use a template in
168+
this field.
157169
type: string
158170
members:
159-
description: An array of tenant member names, whose profile email addresses will be included as recipients.
171+
description: An array of tenant member names, whose profile email addresses
172+
will be included as recipients.
160173
items:
161174
type: string
162175
type: array
163176
subject:
164177
description: The subject of the email. You can use a template in this field.
165178
type: string
166179
title:
167-
description: A human-readable title for the action. Must be less than or equal to 128 characters.
180+
description: A human-readable title for the action. Must be less than or
181+
equal to 128 characters.
168182
type: string
169183
type: object
170184
PublicWebhookKey:
@@ -211,7 +225,8 @@ components:
211225
type: string
212226
type: array
213227
members:
214-
description: An array of tenant member names, whose profile email addresses will be included as recipients.
228+
description: An array of tenant member names, whose profile email addresses
229+
will be included as recipients.
215230
items:
216231
type: string
217232
type: array
@@ -225,7 +240,8 @@ components:
225240
readOnly: true
226241
type: string
227242
id:
228-
description: A unique identifier for this trigger event. Generated from a hash of all recursively-sorted event field values.
243+
description: A unique identifier for this trigger event. Generated from
244+
a hash of all recursively-sorted event field values.
229245
readOnly: true
230246
type: string
231247
kind:
@@ -246,7 +262,8 @@ components:
246262
type: string
247263
ttlSeconds:
248264
default: 3600
249-
description: A time to live (TTL), expressed as seconds after createdAt, after which the trigger event will no longer be acted upon.
265+
description: A time to live (TTL), expressed as seconds after createdAt,
266+
after which the trigger event will no longer be acted upon.
250267
format: int32
251268
minimum: 1
252269
type: integer
@@ -266,7 +283,8 @@ components:
266283
WebhookActionMutable:
267284
properties:
268285
title:
269-
description: A human-readable title for the action. Must be less than 128 characters.
286+
description: A human-readable title for the action. Must be less than 128
287+
characters.
270288
type: string
271289
webhookHeaders:
272290
additionalProperties:
@@ -514,14 +532,17 @@ paths:
514532
application/json:
515533
schema:
516534
$ref: '#/components/schemas/TriggerEvent'
517-
description: The action payload, which should include values for any templated fields.
535+
description: The action payload, which should include values for any templated
536+
fields.
518537
required: true
519538
responses:
520539
"201":
521540
description: The trigger event was received successfully.
522541
headers:
523542
Location:
524-
description: The URL of the run status, with the format "{tenant}/action/v1beta2/actions/{action_name}/status/{status_id}". Send a GET request to this URL to check the status, which will be available for 4 days.
543+
description: The URL of the run status, with the format "{tenant}/action/v1beta2/actions/{action_name}/status/{status_id}".
544+
Send a GET request to this URL to check the status, which will be
545+
available for 4 days.
525546
schema:
526547
type: string
527548
"400":
@@ -580,7 +601,8 @@ paths:
580601
schema:
581602
$ref: '#/components/schemas/ServiceError'
582603
description: An error occurred.
583-
summary: Returns the status of an action that was invoked. The status is available for 4 days after the last status change.
604+
summary: Returns the status of an action that was invoked. The status is available
605+
for 4 days after the last status change.
584606
tags:
585607
- Actions
586608
x-authz-scope: action.actions.read
@@ -625,7 +647,8 @@ paths:
625647
schema:
626648
$ref: '#/components/schemas/ServiceError'
627649
description: An error occurred.
628-
summary: Returns the status details of the invoked email action. The status is available for 4 days after the last status change.
650+
summary: Returns the status details of the invoked email action. The status
651+
is available for 4 days after the last status change.
629652
tags:
630653
- Actions
631654
x-authz-scope: action.actions.read
@@ -652,9 +675,10 @@ paths:
652675
schema:
653676
$ref: '#/components/schemas/ServiceError'
654677
description: An error occurred.
655-
summary: Returns an array of one or two webhook keys. The first key is active. The second key, if present, is expired.
678+
summary: Returns an array of one or two webhook keys. The first key is active.
679+
The second key, if present, is expired.
656680
tags:
657681
- Webhook Keys
658682
x-auth-required: false
659683

660-
# Retrieved from scp-openapi commit 75824d71791e0b0bdf66dbcce7dd9dc1e7061407 path: action/v1beta2/openapi.yaml
684+
# Retrieved from scp-openapi commit 3e10ab186559df6d0a5211cf734514cd53d79779 path: action/v1beta2/openapi.yaml

splunk_sdk/action/v2alpha1/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# flake8: noqa
44

5-
# Copyright © 2020 Splunk, Inc.
5+
# Copyright © 2021 Splunk, Inc.
66
#
77
# Licensed under the Apache License, Version 2.0 (the "License"): you may
88
# not use this file except in compliance with the License. You may obtain

splunk_sdk/action/v2alpha1/gen_action_service_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# coding: utf-8
22

3-
# Copyright © 2020 Splunk, Inc.
3+
# Copyright © 2021 Splunk, Inc.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License"): you may
66
# not use this file except in compliance with the License. You may obtain

splunk_sdk/action/v2alpha1/gen_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright © 2020 Splunk, Inc.
1+
# Copyright © 2021 Splunk, Inc.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"): you may
44
# not use this file except in compliance with the License. You may obtain

0 commit comments

Comments
 (0)