github.com/newrelic/newrelic-client-go@v1.1.0/pkg/users/types.go (about)

     1  // Code generated by tutone: DO NOT EDIT
     2  package users
     3  
     4  // Actor - The `Actor` object contains fields that are scoped to the API user's access level.
     5  type Actor struct {
     6  	// The `User` that is associated with the API key used in this request.
     7  	User User `json:"user,omitempty"`
     8  }
     9  
    10  // User - The `User` object provides general data about the user.
    11  type User struct {
    12  	//
    13  	Email string `json:"email,omitempty"`
    14  	//
    15  	ID int `json:"id,omitempty"`
    16  	//
    17  	Name string `json:"name,omitempty"`
    18  }
    19  
    20  // UserReference - The `UserReference` object provides basic identifying information about the user.
    21  type UserReference struct {
    22  	//
    23  	Email string `json:"email,omitempty"`
    24  	//
    25  	Gravatar string `json:"gravatar,omitempty"`
    26  	//
    27  	ID int `json:"id,omitempty"`
    28  	//
    29  	Name string `json:"name,omitempty"`
    30  }
    31  
    32  type userResponse struct {
    33  	Actor Actor `json:"actor"`
    34  }