'Create a secret
Args:
name (string): Name of the secret
data (bytes): Secret data to be stored
labels (dict): A mapping of labels to assign to the secret
Returns (dict): ID of the newly created secret'

@utils.minimum_version('1.25')
def create_secret(self, name, data, labels=None):

    if (not isinstance(data, bytes)):
        data = data.encode('utf-8')
    data = base64.b64encode(data)
    if six.PY3:
        data = data.decode('ascii')
    body = {'Data': data, 'Name': name, 'Labels': labels}
    url = self._url('/secrets/create')
    return self._result(self._post_json(url, data=body), True)
