Sha256: e01d6c2b361d1555318b9d7ee36fde39a6beb6d4e0ba44f5f5173c3665a81720
Contents?: true
Size: 471 Bytes
Versions: 1
Compression:
Stored size: 471 Bytes
Contents
require "datadog_api_client" api_instance = DatadogAPIClient::V2::RolesAPI.new body = DatadogAPIClient::V2::RoleCreateRequest.new({ data: DatadogAPIClient::V2::RoleCreateData.new({ attributes: DatadogAPIClient::V2::RoleCreateAttributes.new({ name: "developers" }) }) }) # RoleCreateRequest | begin # Create role result = api_instance.create_role(body) p result rescue DatadogAPIClient::V2::APIError => e puts "Error when calling RolesAPI->create_role: #{e}" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datadog_api_client-1.7.0 | examples/generated/v2/roles/CreateRole.rb |