rubrikinc / rubrik-sdk-for-python

Rubrik SDK for Python
https://build.rubrik.com/sdks/python/
MIT License
29 stars 38 forks source link

update changed api endpoints #287

Open quasd opened 1 year ago

quasd commented 1 year ago

Description

Update moved api endpoints to their new locations

Related Issue

This project only accepts pull requests related to open issues.

https://github.com/rubrikinc/rubrik-sdk-for-python/issues/286

Motivation and Context

The endpoints have changed at some point

How Has This Been Tested?

By running below code the ansible module that uses this library was able to complete without errors.

  - name: Assign volume group SLA to host [Windows]
    rubrikinc.cdm.rubrik_assign_sla:
      username: "{{ rubrik_username }}"
      password: "{{ rubrik_password }}"
      node_ip: "{{ dataprotection_cluster[0] }}"
      object_name: "{{ drive_letters }}"
      sla_name: "{{ dataprotection_sladomain[0] }}"
      object_type: volume_group
      windows_host: "{{ host_backup_fqdn }}"
    delegate_to: 127.0.0.1

Screenshots (if appropriate):

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

Checklist:

Go over all the following points, and put an x in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!