ibm-code-engine-sdk 4.22.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,68 @@
1
+ # coding: utf-8
2
+
3
+ # Copyright 2019, 2020 IBM All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ """
18
+ This module provides common methods for use across all service modules.
19
+ """
20
+
21
+ import platform
22
+ from ibm_code_engine_sdk.version import __version__
23
+
24
+ HEADER_NAME_USER_AGENT = 'User-Agent'
25
+ SDK_NAME = 'code-engine-python-sdk'
26
+
27
+
28
+ def get_system_info():
29
+ """
30
+ Get information about the system to be inserted into the User-Agent header.
31
+ """
32
+ return 'lang={0}; arch={1}; os={2}; python.version={3}'.format(
33
+ 'python', platform.machine(), platform.system(), platform.python_version() # Architecture # OS
34
+ ) # Python version
35
+
36
+
37
+ def get_user_agent():
38
+ """
39
+ Get the value to be sent in the User-Agent header.
40
+ """
41
+ return USER_AGENT
42
+
43
+
44
+ USER_AGENT = '{0}/{1} ({2})'.format(SDK_NAME, __version__, get_system_info())
45
+
46
+
47
+ def get_sdk_headers(service_name, service_version, operation_id):
48
+ # pylint: disable=unused-argument
49
+ """
50
+ Get the request headers to be sent in requests by the SDK.
51
+
52
+ If you plan to gather metrics for your SDK, the User-Agent header value must
53
+ be a string similar to the following:
54
+ code-engine-python-sdk/0.0.1 (lang=python; arch=x86_64; os=Linux; python.version=3.7.4)
55
+
56
+ In the example above, the analytics tool will parse the user-agent header and
57
+ use the following properties:
58
+ "code-engine-python-sdk" - the name of your sdk
59
+ "0.0.1"- the version of your sdk
60
+ "lang=python" - the language of the current sdk
61
+ "arch=x86_64; os=Linux; python.version=3.7.4" - system information
62
+
63
+ Note: It is very important that the sdk name ends with the string `-sdk`,
64
+ as the analytics data collector uses this to gather usage data.
65
+ """
66
+ headers = {}
67
+ headers[HEADER_NAME_USER_AGENT] = get_user_agent()
68
+ return headers
@@ -0,0 +1,212 @@
1
+ # coding: utf-8
2
+
3
+ # (C) Copyright IBM Corp. 2021.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # IBM OpenAPI SDK Code Generator Version: 3.15.0-45841b53-20201019-214802
18
+
19
+ """
20
+ The purpose is to provide an API to get Kubeconfig file for IBM Cloud Code Engine Project
21
+ """
22
+
23
+ from enum import Enum
24
+
25
+ from ibm_cloud_sdk_core import BaseService, DetailedResponse
26
+ from ibm_cloud_sdk_core.authenticators.authenticator import Authenticator
27
+ from ibm_cloud_sdk_core.get_authenticator import get_authenticator_from_environment
28
+
29
+ from .common import get_sdk_headers
30
+
31
+ ##############################################################################
32
+ # Service
33
+ ##############################################################################
34
+
35
+
36
+ class IbmCloudCodeEngineV1(BaseService):
37
+ """The IBM Cloud Code Engine V1 service."""
38
+
39
+ DEFAULT_SERVICE_URL = 'https://ibm-cloud-code-engine.cloud.ibm.com/api/v1'
40
+ DEFAULT_SERVICE_NAME = 'ibm_cloud_code_engine'
41
+
42
+ @classmethod
43
+ def new_instance(
44
+ cls,
45
+ service_name: str = DEFAULT_SERVICE_NAME,
46
+ ) -> 'IbmCloudCodeEngineV1':
47
+ """
48
+ Return a new client for the IBM Cloud Code Engine service using the
49
+ specified parameters and external configuration.
50
+ """
51
+ authenticator = get_authenticator_from_environment(service_name)
52
+ service = cls(authenticator)
53
+ service.configure_service(service_name)
54
+ return service
55
+
56
+ def __init__(
57
+ self,
58
+ authenticator: Authenticator = None,
59
+ ) -> None:
60
+ """
61
+ Construct a new client for the IBM Cloud Code Engine service.
62
+
63
+ :param Authenticator authenticator: The authenticator specifies the authentication mechanism.
64
+ Get up to date information from https://github.com/IBM/python-sdk-core/blob/main/README.md
65
+ about initializing the authenticator of your choice.
66
+ """
67
+ BaseService.__init__(self, service_url=self.DEFAULT_SERVICE_URL, authenticator=authenticator)
68
+
69
+ #########################
70
+ # getKubeconfig
71
+ #########################
72
+
73
+ def list_kubeconfig(self, refresh_token: str, id: str, *, accept: str = None, **kwargs) -> DetailedResponse:
74
+ """
75
+ Deprecated soon: Retrieve KUBECONFIG for a specified project.
76
+
77
+ **Deprecated soon**: This API will be deprecated soon. Use the [GET
78
+ /project/{id}/config](#get-kubeconfig) API instead. Returns the KUBECONFIG file,
79
+ similar to the output of `kubectl config view --minify=true`.
80
+
81
+ :param str refresh_token: The IAM Refresh token associated with the IBM
82
+ Cloud account. To retrieve your IAM token, run `ibmcloud iam oauth-tokens`.
83
+ :param str id: The id of the IBM Cloud Code Engine project. To retrieve
84
+ your project ID, run `ibmcloud ce project get -n <PROJECT_NAME>`.
85
+ :param str accept: (optional) The type of the response: text/plain or
86
+ application/json. A character encoding can be specified by including a
87
+ `charset` parameter. For example, 'text/plain;charset=utf-8'.
88
+ :param dict headers: A `dict` containing the request headers
89
+ :return: A `DetailedResponse` containing the result, headers and HTTP status code.
90
+ :rtype: DetailedResponse with `str` result
91
+ """
92
+
93
+ if refresh_token is None:
94
+ raise ValueError('refresh_token must be provided')
95
+ if id is None:
96
+ raise ValueError('id must be provided')
97
+ headers = {'Refresh-Token': refresh_token, 'Accept': accept}
98
+ sdk_headers = get_sdk_headers(
99
+ service_name=self.DEFAULT_SERVICE_NAME, service_version='V1', operation_id='list_kubeconfig'
100
+ )
101
+ headers.update(sdk_headers)
102
+
103
+ if 'headers' in kwargs:
104
+ headers.update(kwargs.get('headers'))
105
+
106
+ path_param_keys = ['id']
107
+ path_param_values = self.encode_path_vars(id)
108
+ path_param_dict = dict(zip(path_param_keys, path_param_values))
109
+ url = '/namespaces/{id}/config'.format(**path_param_dict)
110
+ request = self.prepare_request(method='GET', url=url, headers=headers)
111
+
112
+ response = self.send(request)
113
+ return response
114
+
115
+ def get_kubeconfig(
116
+ self, x_delegated_refresh_token: str, id: str, *, accept: str = None, **kwargs
117
+ ) -> DetailedResponse:
118
+ """
119
+ Retrieve KUBECONFIG for a specified project.
120
+
121
+ Returns the KUBECONFIG, similar to the output of `kubectl config view
122
+ --minify=true`. There are 2 tokens in the Request Header and a query parameter
123
+ that you must provide.
124
+ These values can be generated as follows: 1. Auth Header Pass the generated IAM
125
+ Token as the Authorization header from the CLI as `token=cat
126
+ $HOME/.bluemix/config.json | jq .IAMToken -r`. Generate the token with the [Create
127
+ an IAM access token for a user or service ID using an API
128
+ key](https://cloud.ibm.com/apidocs/iam-identity-token-api#gettoken-apikey) API.
129
+ 2. X-Delegated-Refresh-Token Header Generate an IAM Delegated Refresh Token for
130
+ Code Engine with the [Create an IAM access token and delegated refresh token for a
131
+ user or service
132
+ ID](https://cloud.ibm.com/apidocs/iam-identity-token-api#gettoken-apikey-delegatedrefreshtoken)
133
+ API. Specify the `receiver_client_ids` value to be `ce` and the
134
+ `delegated_refresh_token_expiry` value to be `3600`.
135
+ 3. Project ID In order to retrieve the Kubeconfig file for a specific Code Engine
136
+ project, use the CLI to extract the ID
137
+ `id=ibmcloud ce project get -n ${CE_PROJECT_NAME} -o jsonpath={.guid}` You must be
138
+ logged into the account where the project was created to retrieve the ID.
139
+
140
+ :param str x_delegated_refresh_token: This IAM Delegated Refresh Token is
141
+ specifically valid for Code Engine. Generate this token with the [Create an
142
+ IAM access token and delegated refresh token for a user or service
143
+ ID](https://cloud.ibm.com/apidocs/iam-identity-token-api#gettoken-apikey-delegatedrefreshtoken)
144
+ API. Specify the `receiver_client_ids` value to be `ce` and the
145
+ `delegated_refresh_token_expiry` value to be `3600`.
146
+ :param str id: The id of the IBM Cloud Code Engine project.
147
+ :param str accept: (optional) The type of the response: text/plain or
148
+ application/json. A character encoding can be specified by including a
149
+ `charset` parameter. For example, 'text/plain;charset=utf-8'.
150
+ :param dict headers: A `dict` containing the request headers
151
+ :return: A `DetailedResponse` containing the result, headers and HTTP status code.
152
+ :rtype: DetailedResponse with `str` result
153
+ """
154
+
155
+ if x_delegated_refresh_token is None:
156
+ raise ValueError('x_delegated_refresh_token must be provided')
157
+ if id is None:
158
+ raise ValueError('id must be provided')
159
+ headers = {'X-Delegated-Refresh-Token': x_delegated_refresh_token, 'Accept': accept}
160
+ sdk_headers = get_sdk_headers(
161
+ service_name=self.DEFAULT_SERVICE_NAME, service_version='V1', operation_id='get_kubeconfig'
162
+ )
163
+ headers.update(sdk_headers)
164
+
165
+ if 'headers' in kwargs:
166
+ headers.update(kwargs.get('headers'))
167
+
168
+ path_param_keys = ['id']
169
+ path_param_values = self.encode_path_vars(id)
170
+ path_param_dict = dict(zip(path_param_keys, path_param_values))
171
+ url = '/project/{id}/config'.format(**path_param_dict)
172
+ request = self.prepare_request(method='GET', url=url, headers=headers)
173
+
174
+ response = self.send(request)
175
+ return response
176
+
177
+
178
+ class ListKubeconfigEnums:
179
+ """
180
+ Enums for list_kubeconfig parameters.
181
+ """
182
+
183
+ class Accept(str, Enum):
184
+ """
185
+ The type of the response: text/plain or application/json. A character encoding can
186
+ be specified by including a `charset` parameter. For example,
187
+ 'text/plain;charset=utf-8'.
188
+ """
189
+
190
+ TEXT_PLAIN = 'text/plain'
191
+ APPLICATION_JSON = 'application/json'
192
+
193
+
194
+ class GetKubeconfigEnums:
195
+ """
196
+ Enums for get_kubeconfig parameters.
197
+ """
198
+
199
+ class Accept(str, Enum):
200
+ """
201
+ The type of the response: text/plain or application/json. A character encoding can
202
+ be specified by including a `charset` parameter. For example,
203
+ 'text/plain;charset=utf-8'.
204
+ """
205
+
206
+ TEXT_PLAIN = 'text/plain'
207
+ APPLICATION_JSON = 'application/json'
208
+
209
+
210
+ ##############################################################################
211
+ # Models
212
+ ##############################################################################
@@ -0,0 +1,21 @@
1
+ # coding: utf-8
2
+
3
+ # (C) Copyright IBM Corp. 2019, 2020.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ """
18
+ Version of ibm_code_engine_sdk
19
+ """
20
+
21
+ __version__ = '4.22.0'
@@ -0,0 +1,132 @@
1
+ Metadata-Version: 2.4
2
+ Name: ibm-code-engine-sdk
3
+ Version: 4.22.0
4
+ Summary: Python SDK for IBM Cloud Code Engine
5
+ Home-page: https://github.com/IBM/code-engine-python-sdk
6
+ Author: IBM
7
+ Author-email: IBM <coligo@de.ibm.com>
8
+ License: Apache 2.0
9
+ Project-URL: Homepage, https://github.com/IBM/code-engine-python-sdk
10
+ Keywords: ibm_code_engine_sdk,ibm-code-engine-sdk,Code Engine,Code-Engine,code engine,code-engine
11
+ Classifier: Programming Language :: Python
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.9
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Development Status :: 5 - Production/Stable
19
+ Classifier: Intended Audience :: Developers
20
+ Classifier: License :: OSI Approved :: Apache Software License
21
+ Classifier: Operating System :: OS Independent
22
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
+ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
24
+ Description-Content-Type: text/markdown
25
+ License-File: LICENSE
26
+ Requires-Dist: requests<3.0.0,>=2.32.4
27
+ Requires-Dist: urllib3<2.7.0,>=2.6.3
28
+ Requires-Dist: python_dateutil<3.0.0,>=2.5.3
29
+ Requires-Dist: ibm_cloud_sdk_core<4.0.0,>=3.16.0
30
+ Provides-Extra: dev
31
+ Requires-Dist: coverage>=4.5.4; extra == "dev"
32
+ Requires-Dist: pylint<4.1.0,>=4.0.2; extra == "dev"
33
+ Requires-Dist: pytest<9.1.0,>=9.0.0; extra == "dev"
34
+ Requires-Dist: pytest-cov<7.1.0,>=7.0.0; extra == "dev"
35
+ Requires-Dist: pytest-rerunfailures>=3.1; extra == "dev"
36
+ Requires-Dist: responses<1.0.0,>=0.12.1; extra == "dev"
37
+ Requires-Dist: black>=26.1.0; extra == "dev"
38
+ Dynamic: author
39
+ Dynamic: home-page
40
+ Dynamic: license-file
41
+
42
+ <!--
43
+ [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
44
+ -->
45
+ # Python SDK for IBM Cloud Code Engine 4.22.0
46
+
47
+ Python client library to interact with the [IBM Cloud Code Engine API](https://cloud.ibm.com/apidocs/codeengine).
48
+
49
+ ## Table of Contents
50
+
51
+ <!--
52
+ The TOC below is generated using the `markdown-toc` node package.
53
+
54
+ https://github.com/jonschlinkert/markdown-toc
55
+
56
+ You should regenerate the TOC after making changes to this file.
57
+
58
+ npx markdown-toc -i README.md
59
+ -->
60
+
61
+ <!-- toc -->
62
+
63
+ - [Overview](#overview)
64
+ - [Prerequisites](#prerequisites)
65
+ - [Installation](#installation)
66
+ - [Using the SDK](#using-the-sdk)
67
+ - [Questions](#questions)
68
+ - [Issues](#issues)
69
+ - [Open source @ IBM](#open-source--ibm)
70
+ - [Contributing](#contributing)
71
+ - [License](#license)
72
+
73
+ <!-- tocstop -->
74
+
75
+ ## Overview
76
+
77
+ The IBM Cloud Code Engine Python SDK allows developers to programmatically interact with the following
78
+ IBM Cloud services:
79
+
80
+ Service Name | Imported Class Name
81
+ --- | ---
82
+ [IBM Cloud Code Engine V2](https://cloud.ibm.com/apidocs/codeengine/codeengine-v4.22.0) | CodeEngineV2
83
+ [IBM Cloud Code Engine V1](https://cloud.ibm.com/apidocs/codeengine/codeengine-v4.22.0) | IbmCloudCodeEngineV1
84
+
85
+ ## Prerequisites
86
+
87
+ [ibm-cloud-onboarding]: https://cloud.ibm.com/registration
88
+
89
+ * An [IBM Cloud][ibm-cloud-onboarding] account.
90
+ * An IAM API key to allow the SDK to access your account. Create one [here](https://cloud.ibm.com/iam/apikeys).
91
+ * Python 3.9 or above.
92
+
93
+ ## Installation
94
+
95
+ To install, use `pip` or `easy_install`:
96
+
97
+ ```bash
98
+ pip install --upgrade "ibm_code_engine_sdk>=4.22.0"
99
+ ```
100
+
101
+ or
102
+
103
+ ```bash
104
+ easy_install --upgrade "ibm_code_engine_sdk>=4.22.0"
105
+ ```
106
+
107
+ ## Using the SDK
108
+ Examples and a demo are available in the [examples](/examples) folder.
109
+
110
+ For general SDK usage information, please see [this link](https://github.com/IBM/ibm-cloud-sdk-common/blob/main/README.md)
111
+
112
+ ## Questions
113
+
114
+ If you are having difficulties using this SDK or have a question about the IBM Cloud services,
115
+ please ask a question
116
+ [Stack Overflow](http://stackoverflow.com/questions/ask?tags=ibm-cloud).
117
+
118
+ ## Issues
119
+ If you encounter an issue with the project, you are welcome to submit a
120
+ [bug report](https://github.com/IBM/code-engine-python-sdk/issues).
121
+ Before that, please search for similar issues. It's possible that someone has already reported the problem.
122
+
123
+ ## Open source @ IBM
124
+ Find more open source projects on the [IBM Github Page](http://ibm.github.io/)
125
+
126
+ ## Contributing
127
+ See [CONTRIBUTING.md](https://github.com/IBM/code-engine-python-sdk/blob/main/CONTRIBUTING.md).
128
+
129
+ ## License
130
+
131
+ This SDK is released under the Apache 2.0 license.
132
+ The license's full text can be found in [LICENSE](https://github.com/IBM/code-engine-python-sdk/blob/main/LICENSE).
@@ -0,0 +1,11 @@
1
+ ibm_code_engine_sdk/__init__.py,sha256=P8JagsQYYHo9cpgXMDbCSHGYAEcyLm7n7VPiFbIp0mE,870
2
+ ibm_code_engine_sdk/code_engine_v2.py,sha256=XpWHPZjNxkvoTK0Lf-3dStxCbB7RYJZ9vBRfyx5Emj8,758657
3
+ ibm_code_engine_sdk/common.py,sha256=vffZL6zBnpF-a33TVK8MGwezEFQNiuNa7NbhShdEgaE,2320
4
+ ibm_code_engine_sdk/ibm_cloud_code_engine_v1.py,sha256=EFHGSs009oTQ7UpAx8HcHIbvsRhlVaOqsuns1RHS4OA,9213
5
+ ibm_code_engine_sdk/version.py,sha256=zB3i1Z5h9L7ddqHULRDLXlvqzzW3M7BMqlqAkTY7kgU,666
6
+ ibm_code_engine_sdk-4.22.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
7
+ ibm_code_engine_sdk-4.22.0.dist-info/METADATA,sha256=9riLHQ8I-BuB7fSDrgF8c2GnOitohW5yKvvs9xwvZmI,4607
8
+ ibm_code_engine_sdk-4.22.0.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
9
+ ibm_code_engine_sdk-4.22.0.dist-info/top_level.txt,sha256=v0hiLNW2dAmYmFfvAGQwCZzuq68ENrG0NSyouh-hffI,20
10
+ ibm_code_engine_sdk-4.22.0.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
11
+ ibm_code_engine_sdk-4.22.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.10.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1 @@
1
+ ibm_code_engine_sdk