Skip to content

Commit 68b7b97

Browse files
authored
refreshing sdk for intersight version 17227 (#58)
1 parent b863599 commit 68b7b97

File tree

7,994 files changed

+61672
-34709
lines changed

Some content is hidden

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

7,994 files changed

+61672
-34709
lines changed

README.md

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -77,32 +77,39 @@ The Cisco Intersight API is a programmatic interface that uses the REST architec
7777
```python
7878
import intersight
7979
import re
80+
import sys
8081

8182

82-
def get_api_client(api_key_id, api_secret_file, endpoint="https://intersight.com"):
83-
with open(api_secret_file, 'r') as f:
84-
api_key = f.read()
83+
def get_api_client(api_key_id, api_secret_file = None, private_key_string=None, endpoint="https://intersight.com"):
84+
if api_secret_file is None and private_key_string is None:
85+
print("Either api_secret_file or private_key_string is required to create api client")
86+
sys.exit(1)
87+
if api_secret_file is not None and private_key_string is not None:
88+
print("Please provide only one among api_secret_file or private_key_string")
89+
sys.exit(1)
90+
91+
if api_secret_file is not None:
92+
with open(api_secret_file, 'r') as f:
93+
api_key = f.read()
94+
else:
95+
api_key = private_key_string
8596

8697
if re.search('BEGIN RSA PRIVATE KEY', api_key):
8798
# API Key v2 format
8899
signing_algorithm = intersight.signing.ALGORITHM_RSASSA_PKCS1v15
89-
signing_scheme = intersight.signing.SCHEME_RSA_SHA256
90-
hash_algorithm = intersight.signing.HASH_SHA256
91-
100+
92101
elif re.search('BEGIN EC PRIVATE KEY', api_key):
93102
# API Key v3 format
94103
signing_algorithm = intersight.signing.ALGORITHM_ECDSA_MODE_DETERMINISTIC_RFC6979
95-
signing_scheme = intersight.signing.SCHEME_HS2019
96-
hash_algorithm = intersight.signing.HASH_SHA256
97-
104+
98105
configuration = intersight.Configuration(
99106
host=endpoint,
100107
signing_info=intersight.signing.HttpSigningConfiguration(
101108
key_id=api_key_id,
102-
private_key_path=api_secret_file,
103-
signing_scheme=signing_scheme,
109+
private_key_string = api_key,
110+
signing_scheme=intersight.signing.SCHEME_HS2019,
104111
signing_algorithm=signing_algorithm,
105-
hash_algorithm=hash_algorithm,
112+
hash_algorithm=intersight.signing.HASH_SHA256,
106113
signed_headers=[
107114
intersight.signing.HEADER_REQUEST_TARGET,
108115
intersight.signing.HEADER_HOST,
@@ -111,7 +118,6 @@ def get_api_client(api_key_id, api_secret_file, endpoint="https://intersight.com
111118
]
112119
)
113120
)
114-
115121
# if you want to turn off certificate verification
116122
# configuration.verify_ssl = False
117123

intersight/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
66
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. # noqa: E501
77
8-
The version of the OpenAPI document: 1.0.11-17057
8+
The version of the OpenAPI document: 1.0.11-17227
99
1010
Generated by: https://openapi-generator.tech
1111
"""
1212

1313

14-
__version__ = "1.0.11.17057"
14+
__version__ = "1.0.11.17227"
1515

1616
# import ApiClient
1717
from intersight.api_client import ApiClient

intersight/api/aaa_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. # noqa: E501
55
6-
The version of the OpenAPI document: 1.0.11-17057
6+
The version of the OpenAPI document: 1.0.11-17227
77
88
Generated by: https://openapi-generator.tech
99
"""

intersight/api/access_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. # noqa: E501
55
6-
The version of the OpenAPI document: 1.0.11-17057
6+
The version of the OpenAPI document: 1.0.11-17227
77
88
Generated by: https://openapi-generator.tech
99
"""

intersight/api/adapter_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. # noqa: E501
55
6-
The version of the OpenAPI document: 1.0.11-17057
6+
The version of the OpenAPI document: 1.0.11-17227
77
88
Generated by: https://openapi-generator.tech
99
"""

intersight/api/apic_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. # noqa: E501
55
6-
The version of the OpenAPI document: 1.0.11-17057
6+
The version of the OpenAPI document: 1.0.11-17227
77
88
Generated by: https://openapi-generator.tech
99
"""

0 commit comments

Comments
 (0)