// GenerateObservation produces RepositoryObservation object from github.Repository object.
GenerateObservation produces RepositoryObservation object from github.Repository object.
// GenerateObservation produces RepositoryObservation object from github . Repository object .
func GenerateObservation(r github.Repository) v1alpha1.RepositoryObservation {
	o := v1alpha1.RepositoryObservation{
		ID:               ghclient.Int64Value(r.ID),
		NodeID:           ghclient.StringValue(r.NodeID),
		FullName:         ghclient.StringValue(r.FullName),
		Name:             ghclient.StringValue(r.Name),
		URL:              ghclient.StringValue(r.URL),
		ArchiveURL:       ghclient.StringValue(r.ArchiveURL),
		AssigneesURL:     ghclient.StringValue(r.AssigneesURL),
		BlobsURL:         ghclient.StringValue(r.BlobsURL),
		CollaboratorsURL: ghclient.StringValue(r.CollaboratorsURL),
		CommentsURL:      ghclient.StringValue(r.CommentsURL),
		CommitsURL:       ghclient.StringValue(r.CommitsURL),
		CompareURL:       ghclient.StringValue(r.CompareURL),
		ContentsURL:      ghclient.StringValue(r.ContentsURL),
		ContributorsURL:  ghclient.StringValue(r.ContributorsURL),
		DeploymentsURL:   ghclient.StringValue(r.DeploymentsURL),
		DownloadsURL:     ghclient.StringValue(r.DownloadsURL),
		EventsURL:        ghclient.StringValue(r.EventsURL),
		ForksURL:         ghclient.StringValue(r.ForksURL),
		GitCommitsURL:    ghclient.StringValue(r.GitCommitsURL),
		GitRefsURL:       ghclient.StringValue(r.GitRefsURL),
		GitTagsURL:       ghclient.StringValue(r.GitTagsURL),
		HooksURL:         ghclient.StringValue(r.HooksURL),
		IssueCommentURL:  ghclient.StringValue(r.IssueCommentURL),
		IssueEventsURL:   ghclient.StringValue(r.IssueEventsURL),
		IssuesURL:        ghclient.StringValue(r.IssuesURL),
		KeysURL:          ghclient.StringValue(r.KeysURL),
		LabelsURL:        ghclient.StringValue(r.LabelsURL),
		LanguagesURL:     ghclient.StringValue(r.LanguagesURL),
		MergesURL:        ghclient.StringValue(r.MergesURL),
		MilestonesURL:    ghclient.StringValue(r.MilestonesURL),
		NotificationsURL: ghclient.StringValue(r.NotificationsURL),
		PullsURL:         ghclient.StringValue(r.PullsURL),
		ReleasesURL:      ghclient.StringValue(r.ReleasesURL),
		StargazersURL:    ghclient.StringValue(r.StargazersURL),
		StatusesURL:      ghclient.StringValue(r.StatusesURL),
		SubscribersURL:   ghclient.StringValue(r.SubscribersURL),
		SubscriptionURL:  ghclient.StringValue(r.SubscriptionURL),
		TagsURL:          ghclient.StringValue(r.TagsURL),
		TreesURL:         ghclient.StringValue(r.TreesURL),
		TeamsURL:         ghclient.StringValue(r.TeamsURL),
		HTMLURL:          ghclient.StringValue(r.HTMLURL),
		CloneURL:         ghclient.StringValue(r.CloneURL),
		GitURL:           ghclient.StringValue(r.GitURL),
		MirrorURL:        ghclient.StringValue(r.MirrorURL),
		SSHURL:           ghclient.StringValue(r.SSHURL),
		SVNURL:           ghclient.StringValue(r.SVNURL),
		ForksCount:       ghclient.IntValue(r.ForksCount),
		NetworkCount:     ghclient.IntValue(r.NetworkCount),
		OpenIssuesCount:  ghclient.IntValue(r.OpenIssuesCount),
		StargazersCount:  ghclient.IntValue(r.StargazersCount),
		SubscribersCount: ghclient.IntValue(r.SubscribersCount),
		WatchersCount:    ghclient.IntValue(r.WatchersCount),
		CreatedAt:        ghclient.ConvertTimestamp(r.CreatedAt),
		PushedAt:         ghclient.ConvertTimestamp(r.PushedAt),
		UpdatedAt:        ghclient.ConvertTimestamp(r.UpdatedAt),
		Language:         ghclient.StringValue(r.Language),
		Fork:             ghclient.BoolValue(r.Fork),
		Size:             ghclient.IntValue(r.Size),
		Disabled:         ghclient.BoolValue(r.Disabled),
		Topics:           r.Topics,
	}
	if r.Permissions != nil {
		o.Permissions = map[string]bool{}
		for k, v := range *r.Permissions {
			o.Permissions[k] = v
		}
	}
	return o
}
func GenerateObservation ( r github . Repository ) v1alpha1 . RepositoryObservation { o := v1alpha1 . RepositoryObservation { ID : ghclient . Int64Value ( r . ID ) , NodeID : ghclient . StringValue ( r . NodeID ) , FullName : ghclient . StringValue ( r . FullName ) , Name : ghclient . StringValue ( r . Name ) , URL : ghclient . StringValue ( r . URL ) , ArchiveURL : ghclient . StringValue ( r . ArchiveURL ) , AssigneesURL : ghclient . StringValue ( r . AssigneesURL ) , BlobsURL : ghclient . StringValue ( r . BlobsURL ) , CollaboratorsURL : ghclient . StringValue ( r . CollaboratorsURL ) , CommentsURL : ghclient . StringValue ( r . CommentsURL ) , CommitsURL : ghclient . StringValue ( r . CommitsURL ) , CompareURL : ghclient . StringValue ( r . CompareURL ) , ContentsURL : ghclient . StringValue ( r . ContentsURL ) , ContributorsURL : ghclient . StringValue ( r . ContributorsURL ) , DeploymentsURL : ghclient . StringValue ( r . DeploymentsURL ) , DownloadsURL : ghclient . StringValue ( r . DownloadsURL ) , EventsURL : ghclient . StringValue ( r . EventsURL ) , ForksURL : ghclient . StringValue ( r . ForksURL ) , GitCommitsURL : ghclient . StringValue ( r . GitCommitsURL ) , GitRefsURL : ghclient . StringValue ( r . GitRefsURL ) , GitTagsURL : ghclient . StringValue ( r . GitTagsURL ) , HooksURL : ghclient . StringValue ( r . HooksURL ) , IssueCommentURL : ghclient . StringValue ( r . IssueCommentURL ) , IssueEventsURL : ghclient . StringValue ( r . IssueEventsURL ) , IssuesURL : ghclient . StringValue ( r . IssuesURL ) , KeysURL : ghclient . StringValue ( r . KeysURL ) , LabelsURL : ghclient . StringValue ( r . LabelsURL ) , LanguagesURL : ghclient . StringValue ( r . LanguagesURL ) , MergesURL : ghclient . StringValue ( r . MergesURL ) , MilestonesURL : ghclient . StringValue ( r . MilestonesURL ) , NotificationsURL : ghclient . StringValue ( r . NotificationsURL ) , PullsURL : ghclient . StringValue ( r . PullsURL ) , ReleasesURL : ghclient . StringValue ( r . ReleasesURL ) , StargazersURL : ghclient . StringValue ( r . StargazersURL ) , StatusesURL : ghclient . StringValue ( r . StatusesURL ) , SubscribersURL : ghclient . StringValue ( r . SubscribersURL ) , SubscriptionURL : ghclient . StringValue ( r . SubscriptionURL ) , TagsURL : ghclient . StringValue ( r . TagsURL ) , TreesURL : ghclient . StringValue ( r . TreesURL ) , TeamsURL : ghclient . StringValue ( r . TeamsURL ) , HTMLURL : ghclient . StringValue ( r . HTMLURL ) , CloneURL : ghclient . StringValue ( r . CloneURL ) , GitURL : ghclient . StringValue ( r . GitURL ) , MirrorURL : ghclient . StringValue ( r . MirrorURL ) , SSHURL : ghclient . StringValue ( r . SSHURL ) , SVNURL : ghclient . StringValue ( r . SVNURL ) , ForksCount : ghclient . IntValue ( r . ForksCount ) , NetworkCount : ghclient . IntValue ( r . NetworkCount ) , OpenIssuesCount : ghclient . IntValue ( r . OpenIssuesCount ) , StargazersCount : ghclient . IntValue ( r . StargazersCount ) , SubscribersCount : ghclient . IntValue ( r . SubscribersCount ) , WatchersCount : ghclient . IntValue ( r . WatchersCount ) , CreatedAt : ghclient . ConvertTimestamp ( r . CreatedAt ) , PushedAt : ghclient . ConvertTimestamp ( r . PushedAt ) , UpdatedAt : ghclient . ConvertTimestamp ( r . UpdatedAt ) , Language : ghclient . StringValue ( r . Language ) , Fork : ghclient . BoolValue ( r . Fork ) , Size : ghclient . IntValue ( r . Size ) , Disabled : ghclient . BoolValue ( r . Disabled ) , Topics : r . Topics , } if r . Permissions != nil { o . Permissions = map [ string ] bool { } for k , v := range * r . Permissions { o . Permissions [ k ] = v } } return o }
GenerateObservation produces RepositoryObservation object from github.Repository object.
GenerateObservation produces RepositoryObservation object from github . Repository object .