GithubHelp home page GithubHelp logo

Comments (3)

arthall avatar arthall commented on August 13, 2024

Hi @nekrkris, thank you for your feedback. I won't be able to address everything that you bring up here because some of your suggestions require changing the API which is larger in scope than a single SDK.

  1. UNKNOWN_ENUM_VALUE is a forward compatibility value to handle the service updating their enum values. That way the SDK does not require an update if the service later adds a value to the enum that the SDK doesn't know about. From the page you linked
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
  1. Yes, having a corresponding get_api_key would simplify checking the lifecycle state. Then you could use a waiter to wait for the key to become active. API changes have a larger scope than a specific SDK and will need to be discussed and coordinated with partner teams.

  2. I don't see a Python SDK specific example. I'll ask around to see if someone has a Python SDK specific example that can be added. If there was one it would be here: https://github.com/oracle/oci-python-sdk/tree/master/examples. The RST file you link to is generated from the code and is a stub for Sphinx. That RST becomes the HTML in the first link you provided. There are more docs on uploading API keys here: https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcredentials.htm#upload_key and https://docs.cloud.oracle.com/iaas/api/#/en/identity/20160918/ApiKey/UploadApiKey

  3. In the docs you linked key_value is defined as having type str. Why do you assume the value should be base64 encoded? Are there docs that indicates base64? If there are, we need to correct them.

from oci-python-sdk.

arthall avatar arthall commented on August 13, 2024

@nekrkris, there is an example now. https://github.com/oracle/oci-python-sdk/blob/master/examples/add_API_key.py. Thank you for your help.

from oci-python-sdk.

arthall avatar arthall commented on August 13, 2024

I'm closing this ticket, since an example has been added and the API changes are beyond the scope of the SDK.

from oci-python-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.