Sha256: 2765c909ff9a6bd2c2389d7096ab89892b45ebd1e6c0a92f43c1877ae0a2b0dc
Contents?: true
Size: 607 Bytes
Versions: 2
Compression:
Stored size: 607 Bytes
Contents
require "datadog_api_client" api_instance = DatadogAPIClient::V2::RolesAPI.new role_id = "role_id_example" # String | The ID of the role. body = DatadogAPIClient::V2::RoleUpdateRequest.new({ data: DatadogAPIClient::V2::RoleUpdateData.new({ attributes: DatadogAPIClient::V2::RoleUpdateAttributes.new, id: "00000000-0000-1111-0000-000000000000", type: DatadogAPIClient::V2::RolesType::ROLES }) }) # RoleUpdateRequest | begin # Update a role result = api_instance.update_role(role_id, body) p result rescue DatadogAPIClient::V2::APIError => e puts "Error when calling RolesAPI->update_role: #{e}" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
datadog_api_client-1.8.0 | examples/generated/v2/roles/UpdateRole.rb |
datadog_api_client-1.7.0 | examples/generated/v2/roles/UpdateRole.rb |