From b0d92eb7982da5776cab1d6bbb2b5d69207e81bd Mon Sep 17 00:00:00 2001 From: Banhidy Krisztian Date: Mon, 6 Jan 2025 14:03:21 +0300 Subject: [PATCH 01/21] Adding manage_ghes endpoints introduced in 3.15 --- github/enterprise_manage_ghes.go | 163 + github/enterprise_manage_ghes_config.go | 516 + github/enterprise_manage_ghes_config_test.go | 711 + github/enterprise_manage_ghes_maintenance.go | 94 + ...enterprise_manage_ghes_maintenance_test.go | 129 + github/enterprise_manage_ghes_ssh.go | 99 + github/enterprise_manage_ghes_ssh_test.go | 134 + github/enterprise_manage_ghes_test.go | 213 + github/github-accessors.go | 1934 ++- github/github-accessors_test.go | 14023 +++++++++------- 10 files changed, 11844 insertions(+), 6172 deletions(-) create mode 100644 github/enterprise_manage_ghes.go create mode 100644 github/enterprise_manage_ghes_config.go create mode 100644 github/enterprise_manage_ghes_config_test.go create mode 100644 github/enterprise_manage_ghes_maintenance.go create mode 100644 github/enterprise_manage_ghes_maintenance_test.go create mode 100644 github/enterprise_manage_ghes_ssh.go create mode 100644 github/enterprise_manage_ghes_ssh_test.go create mode 100644 github/enterprise_manage_ghes_test.go diff --git a/github/enterprise_manage_ghes.go b/github/enterprise_manage_ghes.go new file mode 100644 index 00000000000..bc41ed9ed5e --- /dev/null +++ b/github/enterprise_manage_ghes.go @@ -0,0 +1,163 @@ +// Copyright 2013 The go-github AUTHORS. All rights reserved. +// +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package github + +import ( + "context" +) + +// NodeQueryOptions specifies the optional parameters to the EnterpriseService +// Node management APIS. +type NodeQueryOptions struct { + // UUID filters issues based on the node UUID. + UUID string `url:"uuid,omitempty"` + + // ClusterRoles filters The cluster roles from the cluster configuration file. + ClusterRoles string `url:"cluster_roles,omitempty"` +} + +// ClusterStatus represents a response from the GetClusterStatus and GetReplicationStatus method. +type ClusterStatus struct { + Status *string `json:"status"` + Nodes []*ClusterStatusNodes `json:"nodes"` +} + +// ClusterStatusNodes represents the status of a cluster node. +type ClusterStatusNodes struct { + Hostname *string `json:"hostname"` + Status *string `json:"status"` + Services []*ClusterStatusNodesServices `json:"services,omitempty"` +} + +// ClusterStatusNodesServices represents the status of a service running on a cluster node. +type ClusterStatusNodesServices struct { + Status *string `json:"status"` + Name *string `json:"name"` + Details *string `json:"details"` +} + +// SystemRequirements represents a response from the GetCheckSystemRequirements method. +type SystemRequirements struct { + Status *string `json:"status"` + Nodes []*SystemRequirementsNodes `json:"nodes"` +} + +// SystemRequirementsNodes represents the status of a system node. +type SystemRequirementsNodes struct { + Hostname *string `json:"hostname"` + Status *string `json:"status"` + RolesStatus []*SystemRequirementsNodesRolesStatus `json:"roles_status"` +} + +// SystemRequirementsNodesRolesStatus represents the status of a role on a system node. +type SystemRequirementsNodesRolesStatus struct { + Status *string `json:"status"` + Role *string `json:"role"` +} + +// NodeReleaseVersions represents a response from the GetReplicationStatus method. +type NodeReleaseVersions struct { + Hostname *string `json:"hostname"` + Version *ReleaseVersions `json:"version"` +} + +// ReleaseVersions holds the release version information of the node. +type ReleaseVersions struct { + Version *string `json:"version"` + Platform *string `json:"platform"` + BuildID *string `json:"build_id"` + BuildDate *string `json:"build_date"` +} + +// CheckSystemRequirements checks if GHES system nodes meet the system requirements. +// +// GitHub API docs: https://docs.github.com/enterprise-server@3.15/rest/enterprise-admin/manage-ghes#get-the-system-requirement-check-results-for-configured-cluster-nodes +// +//meta:operation GET /manage/v1/checks/system-requirements +func (s *EnterpriseService) CheckSystemRequirements(ctx context.Context) (*SystemRequirements, *Response, error) { + u := "manage/v1/checks/system-requirements" + req, err := s.client.NewRequest("GET", u, nil) + if err != nil { + return nil, nil, err + } + + systemRequirements := new(SystemRequirements) + resp, err := s.client.Do(ctx, req, systemRequirements) + if err != nil { + return nil, resp, err + } + + return systemRequirements, resp, nil +} + +// ClusterStatus gets the status of all services running on each cluster node. +// +// GitHub API docs: https://docs.github.com/enterprise-server@3.15/rest/enterprise-admin/manage-ghes#get-the-status-of-services-running-on-all-cluster-nodes +// +//meta:operation GET /manage/v1/cluster/status +func (s *EnterpriseService) ClusterStatus(ctx context.Context) (*ClusterStatus, *Response, error) { + u := "manage/v1/cluster/status" + req, err := s.client.NewRequest("GET", u, nil) + if err != nil { + return nil, nil, err + } + + clusterStatus := new(ClusterStatus) + resp, err := s.client.Do(ctx, req, clusterStatus) + if err != nil { + return nil, resp, err + } + + return clusterStatus, resp, nil +} + +// ReplicationStatus gets the status of all services running on each replica node. +// +// GitHub API docs: https://docs.github.com/enterprise-server@3.15/rest/enterprise-admin/manage-ghes#get-the-status-of-services-running-on-all-replica-nodes +// +//meta:operation GET /manage/v1/replication/status +func (s *EnterpriseService) ReplicationStatus(ctx context.Context, opts *NodeQueryOptions) (*ClusterStatus, *Response, error) { + u, err := addOptions("manage/v1/replication/status", opts) + if err != nil { + return nil, nil, err + } + req, err := s.client.NewRequest("GET", u, nil) + if err != nil { + return nil, nil, err + } + + replicationStatus := new(ClusterStatus) + resp, err := s.client.Do(ctx, req, replicationStatus) + if err != nil { + return nil, resp, err + } + + return replicationStatus, resp, nil +} + +// Versions gets the versions information deployed to each node. +// +// GitHub API docs: https://docs.github.com/enterprise-server@3.15/rest/enterprise-admin/manage-ghes#get-all-ghes-release-versions-for-all-nodes +// +//meta:operation GET /manage/v1/version +func (s *EnterpriseService) Versions(ctx context.Context, opts *NodeQueryOptions) ([]*NodeReleaseVersions, *Response, error) { + u, err := addOptions("manage/v1/version", opts) + if err != nil { + return nil, nil, err + } + req, err := s.client.NewRequest("GET", u, nil) + if err != nil { + return nil, nil, err + } + + var releaseVersions []*NodeReleaseVersions + resp, err := s.client.Do(ctx, req, &releaseVersions) + if err != nil { + return nil, resp, err + } + + return releaseVersions, resp, nil +} diff --git a/github/enterprise_manage_ghes_config.go b/github/enterprise_manage_ghes_config.go new file mode 100644 index 00000000000..1df8e4ca6aa --- /dev/null +++ b/github/enterprise_manage_ghes_config.go @@ -0,0 +1,516 @@ +// Copyright 2013 The go-github AUTHORS. All rights reserved. +// +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package github + +import ( + "context" + "errors" +) + +// ConfigApplyOptions is a struct to hold the options for the ConfigApply API and the response. +type ConfigApplyOptions struct { + // RunID is the ID of the run to get the status of. If empty a random one will be generated. + RunID string `json:"run_id,omitempty"` +} + +// ConfigApplyStatus is a struct to hold the response from the ConfigApply API. +type ConfigApplyStatus struct { + Running *bool `json:"running"` + Successful *bool `json:"successful"` + Nodes []*ConfigApplyStatusNodes `json:"nodes"` +} + +// ConfigApplyStatusNodes is a struct to hold the response from the ConfigApply API. +type ConfigApplyStatusNodes struct { + Hostname *string `json:"hostname"` + Running *bool `json:"running"` + Successful *bool `json:"successful"` + RunID *string `json:"run_id"` +} + +// ConfigApplyEventsOptions is used to enable pagination. +type ConfigApplyEventsOptions struct { + LastRequestID string `url:"last_request_id,omitempty"` +} + +// ConfigApplyEvents is a struct to hold the response from the ConfigApplyEvents API. +type ConfigApplyEvents struct { + Nodes []*ConfigApplyEventsNodes `json:"nodes"` +} + +// ConfigApplyEventsNodes is a struct to hold the response from the ConfigApplyEvents API. +type ConfigApplyEventsNodes struct { + Node *string `json:"node"` + LastRequestID *string `json:"last_request_id"` + Events []*ConfigApplyEventsNodeEvents `json:"events"` +} + +// ConfigApplyEventsNodeEvents is a struct to hold the response from the ConfigApplyEvents API. +type ConfigApplyEventsNodeEvents struct { + Timestamp *Timestamp `json:"timestamp"` + SeverityText *string `json:"severity_text"` + Body *string `json:"body"` + EventName *string `json:"event_name"` + Topology *string `json:"topology"` + Hostname *string `json:"hostname"` + ConfigRunID *string `json:"config_run_id"` + TraceID *string `json:"trace_id"` + SpanID *string `json:"span_id"` + SpanParentID *int `json:"span_parent_id"` + SpanDepth *int `json:"span_depth"` +} + +// InitialConfigOptions is a struct to hold the options for the InitialConfig API. +type InitialConfigOptions struct { + License string `url:"license"` + Password string `url:"password"` +} + +// LicenseStatus is a struct to hold the response from the License API. +type LicenseStatus struct { + AdvancedSecurityEnabled *bool `json:"advancedSecurityEnabled"` + AdvancedSecuritySeats *int `json:"advancedSecuritySeats"` + ClusterSupport *bool `json:"clusterSupport"` + Company *string `json:"company"` + CroquetSupport *bool `json:"croquetSupport"` + CustomTerms *bool `json:"customTerms"` + Evaluation *bool `json:"evaluation"` + ExpireAt *Timestamp `json:"expireAt"` + InsightsEnabled *bool `json:"insightsEnabled"` + InsightsExpireAt *Timestamp `json:"insightsExpireAt"` + LearningLabEvaluationExpires *Timestamp `json:"learningLabEvaluationExpires"` + LearningLabSeats *int `json:"learningLabSeats"` + Perpetual *bool `json:"perpetual"` + ReferenceNumber *string `json:"referenceNumber"` + Seats *int `json:"seats"` + SSHAllowed *bool `json:"sshAllowed"` + SupportKey *string `json:"supportKey"` + UnlimitedSeating *bool `json:"unlimitedSeating"` +} + +// UploadLicenseOptions is a struct to hold the options for the UploadLicense API. +type UploadLicenseOptions struct { + License string `url:"license"` +} + +// LicenseCheck is a struct to hold the response from the LicenseStatus API. +type LicenseCheck struct { + Status *string `json:"status"` +} + +// ConfigSettings is a struct to hold the response from the Settings API. +// There are many fields that link to other structs. +type ConfigSettings struct { + PrivateMode *bool `json:"private_mode,omitempty"` + PublicPages *bool `json:"public_pages,omitempty"` + SubdomainIsolation *bool `json:"subdomain_isolation,omitempty"` + SignupEnabled *bool `json:"signup_enabled,omitempty"` + GitHubHostname *string `json:"github_hostname,omitempty"` + IdenticonsHost *string `json:"identicons_host,omitempty"` + HTTPProxy *string `json:"http_proxy,omitempty"` + AuthMode *string `json:"auth_mode,omitempty"` + ExpireSessions *bool `json:"expire_sessions,omitempty"` + AdminPassword *string `json:"admin_password,omitempty"` + ConfigurationID *int `json:"configuration_id,omitempty"` + ConfigurationRunCount *int `json:"configuration_run_count,omitempty"` + Avatar *Avatar `json:"avatar,omitempty"` + Customer *Customer `json:"customer,omitempty"` + License *LicenseSettings `json:"license,omitempty"` + GitHubSSL *GitHubSSL `json:"github_ssl,omitempty"` + LDAP *LDAP `json:"ldap,omitempty"` + CAS *CAS `json:"cas,omitempty"` + SAML *SAML `json:"saml,omitempty"` + GitHubOAuth *GitHubOAuth `json:"github_oauth"` + SMTP *SMTP `json:"smtp,omitempty"` + NTP *NTP `json:"ntp,omitempty"` + Timezone *string `json:"timezone,omitempty"` + SNMP *SNMP `json:"snmp,omitempty"` + Syslog *Syslog `json:"syslog,omitempty"` + Assets *string `json:"assets,omitempty"` + Pages *PagesSettings `json:"pages,omitempty"` + Collectd *Collectd `json:"collectd,omitempty"` + Mapping *Mapping `json:"mapping,omitempty"` + LoadBalancer *string `json:"load_balancer,omitempty"` +} + +// Avatar is a struct to hold the response from the Settings API. +type Avatar struct { + Enabled *bool `json:"enabled,omitempty"` + URI *string `json:"uri,omitempty"` +} + +// Customer is a struct to hold the response from the Settings API. +type Customer struct { + Name *string `json:"name,omitempty"` + Email *string `json:"email,omitempty"` + UUID *string `json:"uuid,omitempty"` + SecretKeyData *string `json:"secret,omitempty"` + PublicKeyData *string `json:"public_key_data,omitempty"` +} + +// LicenseSettings is a struct to hold the response from the Settings API. +type LicenseSettings struct { + Seats *int `json:"seats,omitempty"` + Evaluation *bool `json:"evaluation,omitempty"` + Perpetual *bool `json:"perpetual,omitempty"` + UnlimitedSeating *bool `json:"unlimited_seating,omitempty"` + SupportKey *string `json:"support_key,omitempty"` + SSHAllowed *bool `json:"ssh_allowed,omitempty"` + ClusterSupport *bool `json:"cluster_support,omitempty"` + ExpireAt *Timestamp `json:"expire_at,omitempty"` +} + +// GitHubSSL is a struct to hold the response from the Settings API. +type GitHubSSL struct { + Enabled *bool `json:"enabled,omitempty"` + Cert *string `json:"cert,omitempty"` + Key *string `json:"key,omitempty"` +} + +// LDAP is a struct to hold the response from the Settings API. +type LDAP struct { + Host *string `json:"host,omitempty"` + Port *int `json:"port,omitempty"` + Base []string `json:"base,omitempty"` + UID *string `json:"uid,omitempty"` + BindDN *string `json:"bind_dn,omitempty"` + Password *string `json:"password,omitempty"` + Method *string `json:"method,omitempty"` + SearchStrategy *string `json:"search_strategy,omitempty"` + UserGroups []string `json:"user_groups,omitempty"` + AdminGroup *string `json:"admin_group,omitempty"` + VirtualAttributeEnabled *bool `json:"virtual_attribute_enabled,omitempty"` + RecursiveGroupSearch *bool `json:"recursive_group_search,omitempty"` + PosixSupport *bool `json:"posix_support,omitempty"` + UserSyncEmails *bool `json:"user_sync_emails,omitempty"` + UserSyncKeys *bool `json:"user_sync_keys,omitempty"` + UserSyncInterval *int `json:"user_sync_interval,omitempty"` + TeamSyncInterval *int `json:"team_sync_interval,omitempty"` + SyncEnabled *bool `json:"sync_enabled,omitempty"` + Reconciliation *Reconciliation `json:"reconciliation,omitempty"` + Profile *Profile `json:"profile,omitempty"` +} + +// Reconciliation is part of the LDAP struct. +type Reconciliation struct { + User *string `json:"user,omitempty"` + Org *string `json:"org,omitempty"` +} + +// Profile is part of the LDAP struct. +type Profile struct { + UID *string `json:"uid,omitempty"` + Name *string `json:"name,omitempty"` + Mail *string `json:"mail,omitempty"` + Key *string `json:"key,omitempty"` +} + +// CAS is a struct to hold the response from the Settings API. +type CAS struct { + URL *string `json:"url,omitempty"` +} + +// SAML is a struct to hold the response from the Settings API. +type SAML struct { + SSOURL *string `json:"sso_url,omitempty"` + Certificate *string `json:"certificate,omitempty"` + CertificatePath *string `json:"certificate_path,omitempty"` + Issuer *string `json:"issuer,omitempty"` + IDPInitiatedSSO *bool `json:"idp_initiated_sso,omitempty"` + DisableAdminDemote *bool `json:"disable_admin_demote,omitempty"` +} + +// GitHubOAuth is a struct to hold the response from the Settings API. +type GitHubOAuth struct { + ClientID *string `json:"client_id,omitempty"` + ClientSecret *string `json:"client_secret,omitempty"` + OrganizationName *string `json:"organization_name,omitempty"` + OrganizationTeam *string `json:"organization_team,omitempty"` +} + +// SMTP is a struct to hold the response from the Settings API. +type SMTP struct { + Enabled *bool `json:"enabled,omitempty"` + Address *string `json:"address,omitempty"` + Authentication *string `json:"authentication,omitempty"` + Port *string `json:"port,omitempty"` + Domain *string `json:"domain,omitempty"` + Username *string `json:"username,omitempty"` + UserName *string `json:"user_name,omitempty"` + EnableStarttlsAuto *bool `json:"enable_starttls_auto,omitempty"` + Password *string `json:"password,omitempty"` + DiscardToNoreplyAddress *bool `json:"discard-to-noreply-address,omitempty"` + SupportAddress *string `json:"support_address,omitempty"` + SupportAddressType *string `json:"support_address_type,omitempty"` + NoreplyAddress *string `json:"noreply_address,omitempty"` +} + +// NTP is a struct to hold the response from the Settings API. +type NTP struct { + PrimaryServer *string `json:"primary_server,omitempty"` + SecondaryServer *string `json:"secondary_server,omitempty"` +} + +// SNMP is a struct to hold the response from the Settings API. +type SNMP struct { + Enabled *bool `json:"enabled,omitempty"` + Community *string `json:"community,omitempty"` +} + +// Syslog is a struct to hold the response from the Settings API. +type Syslog struct { + Enabled *bool `json:"enabled,omitempty"` + Server *string `json:"server,omitempty"` + ProtocolName *string `json:"protocol_name,omitempty"` +} + +// PagesSettings is a struct to hold the response from the Settings API. +type PagesSettings struct { + Enabled *bool `json:"enabled,omitempty"` +} + +// Collectd is a struct to hold the response from the Settings API. +type Collectd struct { + Enabled *bool `json:"enabled,omitempty"` + Server *string `json:"server,omitempty"` + Port *int `json:"port,omitempty"` + Encryption *string `json:"encryption,omitempty"` + Username *string `json:"username,omitempty"` + Password *string `json:"password,omitempty"` +} + +// Mapping is a struct to hold the response from the Settings API. +type Mapping struct { + Enabled *bool `json:"enabled,omitempty"` + Tileserver *string `json:"tileserver,omitempty"` + Basemap *string `json:"basemap,omitempty"` + Token *string `json:"token,omitempty"` +} + +// NodeMetadataStatus is a struct to hold the response from the NodeMetadata API. +type NodeMetadataStatus struct { + Topology *string `json:"topology"` + Nodes []*NodeDetails `json:"nodes"` +} + +// NodeDetails is a struct to hold the response from the NodeMetadata API. +type NodeDetails struct { + Hostname *string `json:"hostname"` + UUID *string `json:"uuid"` + ClusterRoles []string `json:"cluster_roles"` +} + +// ConfigApplyEvents gets events from the command ghe-config-apply +// +// GitHub API docs: https://docs.github.com/enterprise-server@3.15/rest/enterprise-admin/manage-ghes#list-events-from-ghe-config-apply +// +//meta:operation GET /manage/v1/config/apply/events +func (s *EnterpriseService) ConfigApplyEvents(ctx context.Context, opts *ConfigApplyEventsOptions) (*ConfigApplyEvents, *Response, error) { + u, err := addOptions("manage/v1/config/apply/events", opts) + if err != nil { + return nil, nil, err + } + req, err := s.client.NewRequest("GET", u, nil) + if err != nil { + return nil, nil, err + } + + configApplyEvents := new(ConfigApplyEvents) + resp, err := s.client.Do(ctx, req, configApplyEvents) + if err != nil { + return nil, resp, err + } + + return configApplyEvents, resp, nil +} + +// InitialConfig initializes the GitHub Enterprise instance with a license and password. +// After initializing the instance, you need to run an apply to apply the configuration. +// +// GitHub API docs: https://docs.github.com/enterprise-server@3.15/rest/enterprise-admin/manage-ghes#initialize-instance-configuration-with-license-and-password +// +//meta:operation POST /manage/v1/config/init +func (s *EnterpriseService) InitialConfig(ctx context.Context, license string, password string) (*Response, error) { + u := "manage/v1/config/init" + + opts := &InitialConfigOptions{ + License: license, + Password: password, + } + + req, err := s.client.NewRequest("POST", u, opts) + if err != nil { + return nil, err + } + + return s.client.Do(ctx, req, nil) +} + +// License gets the current license information for the GitHub Enterprise instance. +// +// GitHub API docs: https://docs.github.com/enterprise-server@3.15/rest/enterprise-admin/manage-ghes#get-the-enterprise-license-information +// +//meta:operation GET /manage/v1/config/license +func (s *EnterpriseService) License(ctx context.Context) ([]*LicenseStatus, *Response, error) { + u := "manage/v1/config/license" + req, err := s.client.NewRequest("GET", u, nil) + if err != nil { + return nil, nil, err + } + + var licenseStatus []*LicenseStatus + resp, err := s.client.Do(ctx, req, &licenseStatus) + if err != nil { + return nil, resp, err + } + + return licenseStatus, resp, nil +} + +// UploadLicense uploads a new license to the GitHub Enterprise instance. +// +// GitHub API docs: https://docs.github.com/enterprise-server@3.15/rest/enterprise-admin/manage-ghes#upload-an-enterprise-license +// +//meta:operation PUT /manage/v1/config/license +func (s *EnterpriseService) UploadLicense(ctx context.Context, license string) (*Response, error) { + u := "manage/v1/config/license" + opts := &UploadLicenseOptions{ + License: license, + } + req, err := s.client.NewRequest("PUT", u, opts) + if err != nil { + return nil, err + } + + return s.client.Do(ctx, req, nil) +} + +// LicenseStatus gets the current license status for the GitHub Enterprise instance. +// +// GitHub API docs: https://docs.github.com/enterprise-server@3.15/rest/enterprise-admin/manage-ghes#check-a-license +// +//meta:operation GET /manage/v1/config/license/check +func (s *EnterpriseService) LicenseStatus(ctx context.Context) ([]*LicenseCheck, *Response, error) { + u := "manage/v1/config/license/check" + req, err := s.client.NewRequest("GET", u, nil) + if err != nil { + return nil, nil, err + } + + var licenseStatus []*LicenseCheck + resp, err := s.client.Do(ctx, req, &licenseStatus) + if err != nil { + return nil, resp, err + } + + return licenseStatus, resp, nil +} + +// NodeMetadata gets the metadata for all nodes in the GitHub Enterprise instance. +// This is required for clustered setups. +// +// GitHub API docs: https://docs.github.com/enterprise-server@3.15/rest/enterprise-admin/manage-ghes#get-ghes-node-metadata-for-all-nodes +// +//meta:operation GET /manage/v1/config/nodes +func (s *EnterpriseService) NodeMetadata(ctx context.Context, opts *NodeQueryOptions) (*NodeMetadataStatus, *Response, error) { + u, err := addOptions("manage/v1/config/nodes", opts) + if err != nil { + return nil, nil, err + } + req, err := s.client.NewRequest("GET", u, nil) + if err != nil { + return nil, nil, err + } + + configNodes := new(NodeMetadataStatus) + resp, err := s.client.Do(ctx, req, configNodes) + if err != nil { + return nil, resp, err + } + + return configNodes, resp, nil +} + +// Settings gets the current configuration settings for the GitHub Enterprise instance. +// +// GitHub API docs: https://docs.github.com/enterprise-server@3.15/rest/enterprise-admin/manage-ghes#get-the-ghes-settings +// +//meta:operation GET /manage/v1/config/settings +func (s *EnterpriseService) Settings(ctx context.Context) (*ConfigSettings, *Response, error) { + u := "manage/v1/config/settings" + req, err := s.client.NewRequest("GET", u, nil) + if err != nil { + return nil, nil, err + } + + configSettings := new(ConfigSettings) + resp, err := s.client.Do(ctx, req, configSettings) + if err != nil { + return nil, resp, err + } + + return configSettings, resp, nil +} + +// UpdateSettings updates the configuration settings for the GitHub Enterprise instance. +// +// GitHub API docs: https://docs.github.com/enterprise-server@3.15/rest/enterprise-admin/manage-ghes#set-settings +// +//meta:operation PUT /manage/v1/config/settings +func (s *EnterpriseService) UpdateSettings(ctx context.Context, opts *ConfigSettings) (*Response, error) { + u := "manage/v1/config/settings" + + if opts == nil { + return nil, errors.New("opts should not be nil") + } + req, err := s.client.NewRequest("PUT", u, opts) + if err != nil { + return nil, err + } + + return s.client.Do(ctx, req, nil) +} + +// ConfigApply triggers a configuration apply run on the GitHub Enterprise instance. +// +// GitHub API docs: https://docs.github.com/enterprise-server@3.15/rest/enterprise-admin/manage-ghes#trigger-a-ghe-config-apply-run +// +//meta:operation POST /manage/v1/config/apply +func (s *EnterpriseService) ConfigApply(ctx context.Context, opts *ConfigApplyOptions) (*ConfigApplyOptions, *Response, error) { + u := "manage/v1/config/apply" + req, err := s.client.NewRequest("POST", u, opts) + if err != nil { + return nil, nil, err + } + + configApplyStatus := new(ConfigApplyOptions) + resp, err := s.client.Do(ctx, req, configApplyStatus) + if err != nil { + return nil, resp, err + } + return configApplyStatus, resp, nil +} + +// ConfigApplyStatus gets the status of a ghe-config-apply run on the GitHub Enterprise instance. +// You can request lat one or specific id one. +// +// GitHub API docs: https://docs.github.com/enterprise-server@3.15/rest/enterprise-admin/manage-ghes#get-the-status-of-a-ghe-config-apply-run +// +//meta:operation GET /manage/v1/config/apply +func (s *EnterpriseService) ConfigApplyStatus(ctx context.Context, opts *ConfigApplyOptions) (*ConfigApplyStatus, *Response, error) { + u := "manage/v1/config/apply" + req, err := s.client.NewRequest("GET", u, opts) + if err != nil { + return nil, nil, err + } + + configApplyRun := new(ConfigApplyStatus) + resp, err := s.client.Do(ctx, req, configApplyRun) + if err != nil { + return nil, resp, err + } + return configApplyRun, resp, nil +} diff --git a/github/enterprise_manage_ghes_config_test.go b/github/enterprise_manage_ghes_config_test.go new file mode 100644 index 00000000000..7cf441d9943 --- /dev/null +++ b/github/enterprise_manage_ghes_config_test.go @@ -0,0 +1,711 @@ +// Copyright 2013 The go-github AUTHORS. All rights reserved. +// +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package github + +import ( + "context" + "encoding/json" + "fmt" + "net/http" + "testing" + "time" + + "github.com/google/go-cmp/cmp" +) + +func TestEnterpriseService_Settings(t *testing.T) { + t.Parallel() + client, mux, _ := setup(t) + + mux.HandleFunc("/manage/v1/config/settings", func(w http.ResponseWriter, r *http.Request) { + testMethod(t, r, "GET") + fmt.Fprint(w, `{ + "private_mode": false, + "public_pages": false, + "subdomain_isolation": true, + "signup_enabled": false, + "github_hostname": "ghe.local", + "identicons_host": "dotcom", + "http_proxy": null, + "auth_mode": "default", + "expire_sessions": false, + "admin_password": null, + "configuration_id": 1401777404, + "configuration_run_count": 4, + "avatar": { + "enabled": false, + "uri": "" + }, + "customer": { + "name": "GitHub", + "email": "stannis", + "uuid": "af6cac80-e4e1-012e-d822-1231380e52e9", + "secret_key_data": "-", + "public_key_data": "-" + }, + "license": { + "seats": 0, + "evaluation": false, + "perpetual": false, + "unlimited_seating": true, + "support_key": "ssh-rsa AAAAB3N....", + "ssh_allowed": true, + "cluster_support": false, + "expire_at": "2018-01-01T00:00:00-00:00" + }, + "github_ssl": { + "enabled": false, + "cert": null, + "key": null + }, + "ldap": { + "host": null, + "port": 0, + "base": [], + "uid": null, + "bind_dn": null, + "password": null, + "method": "Plain", + "search_strategy": "detect", + "user_groups": [], + "admin_group": null, + "virtual_attribute_enabled": false, + "recursive_group_search": false, + "posix_support": true, + "user_sync_emails": false, + "user_sync_keys": false, + "user_sync_interval": 4, + "team_sync_interval": 4, + "sync_enabled": false, + "reconciliation": { + "user": null, + "org": null + }, + "profile": { + "uid": "uid", + "name": null, + "mail": null, + "key": null + } + }, + "cas": { + "url": null + }, + "saml": { + "sso_url": null, + "certificate": null, + "certificate_path": null, + "issuer": null, + "idp_initiated_sso": false, + "disable_admin_demote": false + }, + "github_oauth": { + "client_id": "12313412", + "client_secret": "kj123131132", + "organization_name": "Homestar Runners", + "organization_team": "homestarrunners/characters" + }, + "smtp": { + "enabled": true, + "address": "smtp.example.com", + "authentication": "plain", + "port": "1234", + "domain": "blah", + "username": "foo", + "user_name": "mr_foo", + "enable_starttls_auto": true, + "password": "bar", + "discard-to-noreply-address": true, + "support_address": "enterprise@github.com", + "support_address_type": "email", + "noreply_address": "noreply@github.com" + }, + "ntp": { + "primary_server": "0.pool.ntp.org", + "secondary_server": "1.pool.ntp.org" + }, + "timezone": null, + "snmp": { + "enabled": false, + "community": "" + }, + "syslog": { + "enabled": false, + "server": null, + "protocol_name": "udp" + }, + "assets": null, + "pages": { + "enabled": true + }, + "collectd": { + "enabled": false, + "server": null, + "port": 0, + "encryption": null, + "username": null, + "password": null + }, + "mapping": { + "enabled": true, + "tileserver": null, + "basemap": "company.map-qsz2zrvs", + "token": null + }, + "load_balancer": null + }`) + }) + + ctx := context.Background() + configSettings, _, err := client.Enterprise.Settings(ctx) + if err != nil { + t.Errorf("Enterprise.Settings returned error: %v", err) + } + + want := &ConfigSettings{ + PrivateMode: Ptr(false), + PublicPages: Ptr(false), + SubdomainIsolation: Ptr(true), + SignupEnabled: Ptr(false), + GitHubHostname: Ptr("ghe.local"), + IdenticonsHost: Ptr("dotcom"), + HTTPProxy: nil, + AuthMode: Ptr("default"), + ExpireSessions: Ptr(false), + AdminPassword: nil, + ConfigurationID: Ptr(1401777404), + ConfigurationRunCount: Ptr(4), + Avatar: &Avatar{ + Enabled: Ptr(false), + URI: Ptr(""), + }, + Customer: &Customer{ + Name: Ptr("GitHub"), + Email: Ptr("stannis"), + UUID: Ptr("af6cac80-e4e1-012e-d822-1231380e52e9"), + SecretKeyData: nil, + PublicKeyData: Ptr("-"), + }, + License: &LicenseSettings{ + Seats: Ptr(0), + Evaluation: Ptr(false), + Perpetual: Ptr(false), + UnlimitedSeating: Ptr(true), + SupportKey: Ptr("ssh-rsa AAAAB3N...."), + SSHAllowed: Ptr(true), + ClusterSupport: Ptr(false), + ExpireAt: &Timestamp{time.Date(2018, time.January, 1, 0, 0, 0, 0, time.UTC)}, + }, + GitHubSSL: &GitHubSSL{ + Enabled: Ptr(false), + Cert: nil, + Key: nil, + }, + LDAP: &LDAP{ + Host: nil, + Port: Ptr(0), + Base: []string{}, + UID: nil, + BindDN: nil, + Password: nil, + Method: Ptr("Plain"), + SearchStrategy: Ptr("detect"), + UserGroups: []string{}, + AdminGroup: nil, + VirtualAttributeEnabled: Ptr(false), + RecursiveGroupSearch: Ptr(false), + PosixSupport: Ptr(true), + UserSyncEmails: Ptr(false), + UserSyncKeys: Ptr(false), + UserSyncInterval: Ptr(4), + TeamSyncInterval: Ptr(4), + SyncEnabled: Ptr(false), + Reconciliation: &Reconciliation{ + User: nil, + Org: nil, + }, + Profile: &Profile{ + UID: Ptr("uid"), + Name: nil, + Mail: nil, + Key: nil, + }, + }, + CAS: &CAS{ + URL: nil, + }, + SAML: &SAML{ + SSOURL: nil, + Certificate: nil, + CertificatePath: nil, + Issuer: nil, + IDPInitiatedSSO: Ptr(false), + DisableAdminDemote: Ptr(false), + }, + GitHubOAuth: &GitHubOAuth{ + ClientID: Ptr("12313412"), + ClientSecret: Ptr("kj123131132"), + OrganizationName: Ptr("Homestar Runners"), + OrganizationTeam: Ptr("homestarrunners/characters"), + }, + SMTP: &SMTP{ + Enabled: Ptr(true), + Address: Ptr("smtp.example.com"), + Authentication: Ptr("plain"), + Port: Ptr("1234"), + Domain: Ptr("blah"), + Username: Ptr("foo"), + UserName: Ptr("mr_foo"), + Password: Ptr("bar"), + DiscardToNoreplyAddress: Ptr(true), + SupportAddress: Ptr("enterprise@github.com"), + SupportAddressType: Ptr("email"), + NoreplyAddress: Ptr("noreply@github.com"), + EnableStarttlsAuto: Ptr(true), + }, + NTP: &NTP{ + PrimaryServer: Ptr("0.pool.ntp.org"), + SecondaryServer: Ptr("1.pool.ntp.org"), + }, + Timezone: nil, + SNMP: &SNMP{ + Enabled: Ptr(false), + Community: Ptr(""), + }, + Syslog: &Syslog{ + Enabled: Ptr(false), + Server: nil, + ProtocolName: Ptr("udp"), + }, + Assets: nil, + Pages: &PagesSettings{ + Enabled: Ptr(true), + }, + Collectd: &Collectd{ + Enabled: Ptr(false), + Server: nil, + Port: Ptr(0), + Encryption: nil, + Username: nil, + Password: nil, + }, + Mapping: &Mapping{ + Enabled: Ptr(true), + Tileserver: nil, + Basemap: Ptr("company.map-qsz2zrvs"), + Token: nil, + }, + LoadBalancer: nil, + } + if diff := cmp.Diff(want, configSettings); diff != "" { + t.Errorf("diff mismatch (-want +got):\n%v", diff) + } + + const methodName = "Settings" + testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) { + got, resp, err := client.Enterprise.Settings(ctx) + if got != nil { + t.Errorf("testNewRequestAndDoFailure %v = %#v, want nil", methodName, got) + } + return resp, err + }) +} + +func TestEnterpriseService_NodeMetadata(t *testing.T) { + t.Parallel() + client, mux, _ := setup(t) + + mux.HandleFunc("/manage/v1/config/nodes", func(w http.ResponseWriter, r *http.Request) { + testMethod(t, r, "GET") + testFormValues(t, r, values{ + "uuid": "1234-1234", + "cluster_roles": "primary", + }) + fmt.Fprint(w, `{ + "topology": "Cluster", + "nodes": [{ + "hostname": "data1", + "uuid": "1b6cf518-f97c-11ed-8544-061d81f7eedb", + "cluster_roles": [ + "ConsulServer" + ] + }] + }`) + }) + + opt := &NodeQueryOptions{ + UUID: "1234-1234", ClusterRoles: "primary", + } + ctx := context.Background() + configNodes, _, err := client.Enterprise.NodeMetadata(ctx, opt) + if err != nil { + t.Errorf("Enterprise.NodeMetadata returned error: %v", err) + } + + want := &NodeMetadataStatus{ + Topology: Ptr("Cluster"), + Nodes: []*NodeDetails{{ + Hostname: Ptr("data1"), + UUID: Ptr("1b6cf518-f97c-11ed-8544-061d81f7eedb"), + ClusterRoles: []string{ + "ConsulServer", + }, + }}, + } + if !cmp.Equal(configNodes, want) { + t.Errorf("Enterprise.NodeMetadata returned %+v, want %+v", configNodes, want) + } + + const methodName = "NodeMetadata" + testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) { + got, resp, err := client.Enterprise.NodeMetadata(ctx, opt) + if got != nil { + t.Errorf("testNewRequestAndDoFailure %v = %#v, want nil", methodName, got) + } + return resp, err + }) +} + +func TestEnterpriseService_LicenseStatus(t *testing.T) { + t.Parallel() + client, mux, _ := setup(t) + + mux.HandleFunc("/manage/v1/config/license/check", func(w http.ResponseWriter, r *http.Request) { + testMethod(t, r, "GET") + fmt.Fprint(w, `[{ + "status": "valid" + }]`) + }) + + ctx := context.Background() + licenseCheck, _, err := client.Enterprise.LicenseStatus(ctx) + if err != nil { + t.Errorf("Enterprise.LicenseStatus returned error: %v", err) + } + + want := []*LicenseCheck{{ + Status: Ptr("valid"), + }} + if !cmp.Equal(licenseCheck, want) { + t.Errorf("Enterprise.LicenseStatus returned %+v, want %+v", licenseCheck, want) + } + + const methodName = "LicenseStatus" + testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) { + got, resp, err := client.Enterprise.LicenseStatus(ctx) + if got != nil { + t.Errorf("testNewRequestAndDoFailure %v = %#v, want nil", methodName, got) + } + return resp, err + }) +} + +func TestEnterpriseService_License(t *testing.T) { + t.Parallel() + client, mux, _ := setup(t) + + mux.HandleFunc("/manage/v1/config/license", func(w http.ResponseWriter, r *http.Request) { + testMethod(t, r, "GET") + fmt.Fprint(w, `[{ + "advancedSecurityEnabled": true, + "advancedSecuritySeats": 0, + "clusterSupport": false, + "company": "GitHub", + "croquetSupport": true, + "customTerms": true, + "evaluation": false, + "expireAt": "2018-01-01T00:00:00Z", + "insightsEnabled": true, + "insightsExpireAt": "2018-01-01T00:00:00Z", + "learningLabEvaluationExpires": "2018-01-01T00:00:00Z", + "learningLabSeats": 100, + "perpetual": false, + "referenceNumber": "32a145", + "seats": 0, + "sshAllowed": true, + "supportKey": "", + "unlimitedSeating": true + }]`) + }) + + ctx := context.Background() + license, _, err := client.Enterprise.License(ctx) + if err != nil { + t.Errorf("Enterprise.License returned error: %v", err) + } + + want := []*LicenseStatus{{ + AdvancedSecurityEnabled: Ptr(true), + AdvancedSecuritySeats: Ptr(0), + ClusterSupport: Ptr(false), + Company: Ptr("GitHub"), + CroquetSupport: Ptr(true), + CustomTerms: Ptr(true), + Evaluation: Ptr(false), + ExpireAt: &Timestamp{time.Date(2018, time.January, 1, 0, 0, 0, 0, time.UTC)}, + InsightsEnabled: Ptr(true), + InsightsExpireAt: &Timestamp{time.Date(2018, time.January, 1, 0, 0, 0, 0, time.UTC)}, + LearningLabEvaluationExpires: &Timestamp{time.Date(2018, time.January, 1, 0, 0, 0, 0, time.UTC)}, + LearningLabSeats: Ptr(100), + Perpetual: Ptr(false), + ReferenceNumber: Ptr("32a145"), + Seats: Ptr(0), + SSHAllowed: Ptr(true), + SupportKey: Ptr(""), + UnlimitedSeating: Ptr(true), + }} + if diff := cmp.Diff(want, license); diff != "" { + t.Errorf("diff mismatch (-want +got):\n%v", diff) + } + const methodName = "License" + testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) { + got, resp, err := client.Enterprise.License(ctx) + if got != nil { + t.Errorf("testNewRequestAndDoFailure %v = %#v, want nil", methodName, got) + } + return resp, err + }) +} + +func TestEnterpriseService_ConfigApplyEvents(t *testing.T) { + t.Parallel() + client, mux, _ := setup(t) + + mux.HandleFunc("/manage/v1/config/apply/events", func(w http.ResponseWriter, r *http.Request) { + testMethod(t, r, "GET") + fmt.Fprint(w, `{ + "nodes": [{ + "node": "ghes-01.lan", + "last_request_id": "387cd628c06d606700e79be368e5e574:0cde553750689c76:0000000000000000", + "events": [{ + "timestamp": "2018-01-01T00:00:00+00:00", + "severity_text": "INFO", + "body": "Validating services", + "event_name": "Enterprise::ConfigApply::PhaseValidation#config_phase_validation", + "topology": "multinode", + "hostname": "ghes-01.lan", + "config_run_id": "d34db33f", + "trace_id": "387cd628c06d606700e79be368e5e574", + "span_id": "0cde553750689c76", + "span_parent_id": 0, + "span_depth": 0 + }] + }] + }`) + }) + + input := &ConfigApplyEventsOptions{ + LastRequestID: "387cd628c06d606700e79be368e5e574:0cde553750689", + } + + ctx := context.Background() + configEvents, _, err := client.Enterprise.ConfigApplyEvents(ctx, input) + if err != nil { + t.Errorf("Enterprise.ConfigApplyEvents returned error: %v", err) + } + + want := &ConfigApplyEvents{ + Nodes: []*ConfigApplyEventsNodes{{ + Node: Ptr("ghes-01.lan"), + LastRequestID: Ptr("387cd628c06d606700e79be368e5e574:0cde553750689c76:0000000000000000"), + Events: []*ConfigApplyEventsNodeEvents{{ + Timestamp: &Timestamp{time.Date(2018, time.January, 1, 0, 0, 0, 0, time.UTC)}, + SeverityText: Ptr("INFO"), + Body: Ptr("Validating services"), + EventName: Ptr("Enterprise::ConfigApply::PhaseValidation#config_phase_validation"), + Topology: Ptr("multinode"), + Hostname: Ptr("ghes-01.lan"), + ConfigRunID: Ptr("d34db33f"), + TraceID: Ptr("387cd628c06d606700e79be368e5e574"), + SpanID: Ptr("0cde553750689c76"), + SpanParentID: Ptr(0), + SpanDepth: Ptr(0), + }}, + }}, + } + if diff := cmp.Diff(want, configEvents); diff != "" { + t.Errorf("diff mismatch (-want +got):\n%v", diff) + } + if !cmp.Equal(configEvents, want) { + t.Errorf("Enterprise.ConfigApplyEvents returned %+v, want %+v", configEvents, want) + } + + const methodName = "ConfigApplyEvents" + testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) { + got, resp, err := client.Enterprise.ConfigApplyEvents(ctx, input) + if got != nil { + t.Errorf("testNewRequestAndDoFailure %v = %#v, want nil", methodName, got) + } + return resp, err + }) +} + +func TestEnterpriseService_UpdateSettings(t *testing.T) { + t.Parallel() + client, mux, _ := setup(t) + + mux.HandleFunc("/manage/v1/config/settings", func(w http.ResponseWriter, r *http.Request) { + testMethod(t, r, "PUT") + + w.WriteHeader(http.StatusNoContent) + }) + + input := &ConfigSettings{ + PrivateMode: Ptr(false), + } + + ctx := context.Background() + if _, err := client.Enterprise.UpdateSettings(ctx, input); err != nil { + t.Errorf("Enterprise.UpdateSettings returned error: %v", err) + } + + const methodName = "UpdateSettings" + testBadOptions(t, methodName, func() (err error) { + _, err = client.Enterprise.UpdateSettings(ctx, nil) + return err + }) + + testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) { + return client.Enterprise.UpdateSettings(ctx, input) + }) +} + +func TestEnterpriseService_UploadLicense(t *testing.T) { + t.Parallel() + client, mux, _ := setup(t) + + mux.HandleFunc("/manage/v1/config/license", func(w http.ResponseWriter, r *http.Request) { + testMethod(t, r, "PUT") + + w.WriteHeader(http.StatusNoContent) + }) + + ctx := context.Background() + if _, err := client.Enterprise.UploadLicense(ctx, "abc"); err != nil { + t.Errorf("Enterprise.UploadLicense returned error: %v", err) + } + + const methodName = "UploadLicense" + testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) { + return client.Enterprise.UploadLicense(ctx, "") + }) +} + +func TestEnterpriseService_InitialConfig(t *testing.T) { + t.Parallel() + client, mux, _ := setup(t) + + input := &InitialConfigOptions{ + License: "1234-1234", + Password: "password", + } + + mux.HandleFunc("/manage/v1/config/init", func(w http.ResponseWriter, r *http.Request) { + v := new(InitialConfigOptions) + assertNilError(t, json.NewDecoder(r.Body).Decode(v)) + + testMethod(t, r, "POST") + if diff := cmp.Diff(v, input); diff != "" { + t.Errorf("diff mismatch (-want +got):\n%v", diff) + } + }) + + ctx := context.Background() + if _, err := client.Enterprise.InitialConfig(ctx, "1234-1234", "password"); err != nil { + t.Errorf("Enterprise.InitialConfig returned error: %v", err) + } + + const methodName = "InitialConfig" + testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) { + return client.Enterprise.InitialConfig(ctx, "", "") + }) +} + +func TestEnterpriseService_ConfigApply(t *testing.T) { + t.Parallel() + client, mux, _ := setup(t) + + mux.HandleFunc("/manage/v1/config/apply", func(w http.ResponseWriter, r *http.Request) { + testMethod(t, r, "POST") + got := new(ConfigApplyOptions) + assertNilError(t, json.NewDecoder(r.Body).Decode(got)) + + want := &ConfigApplyOptions{ + RunID: "1234", + } + if diff := cmp.Diff(want, got); diff != "" { + t.Errorf("diff mismatch (-want +got):\n%v", diff) + } + fmt.Fprint(w, `{ "run_id": "1234" }`) + }) + + input := &ConfigApplyOptions{ + RunID: "1234", + } + + ctx := context.Background() + configApply, _, err := client.Enterprise.ConfigApply(ctx, input) + if err != nil { + t.Errorf("Enterprise.ConfigApply returned error: %v", err) + } + want := &ConfigApplyOptions{ + RunID: "1234", + } + if !cmp.Equal(configApply, want) { + t.Errorf("Enterprise.ConfigApply returned %+v, want %+v", configApply, want) + } +} + +func TestEnterpriseService_ConfigApplyStatus(t *testing.T) { + t.Parallel() + client, mux, _ := setup(t) + + mux.HandleFunc("/manage/v1/config/apply", func(w http.ResponseWriter, r *http.Request) { + testMethod(t, r, "GET") + got := new(ConfigApplyOptions) + assertNilError(t, json.NewDecoder(r.Body).Decode(got)) + + want := &ConfigApplyOptions{ + RunID: "1234", + } + if diff := cmp.Diff(want, got); diff != "" { + t.Errorf("diff mismatch (-want +got):\n%v", diff) + } + fmt.Fprint(w, `{ + "running": true, + "successful": false, + "nodes": [ + { + "run_id": "d34db33f", + "hostname": "ghes-01.lan", + "running": true, + "successful": false + } + ] + }`) + }) + input := &ConfigApplyOptions{ + RunID: "1234", + } + ctx := context.Background() + configApplyStatus, _, err := client.Enterprise.ConfigApplyStatus(ctx, input) + if err != nil { + t.Errorf("Enterprise.ConfigApplyStatus returned error: %v", err) + } + want := &ConfigApplyStatus{ + Running: Ptr(true), + Successful: Ptr(false), + Nodes: []*ConfigApplyStatusNodes{{ + RunID: Ptr("d34db33f"), + Hostname: Ptr("ghes-01.lan"), + Running: Ptr(true), + Successful: Ptr(false), + }}, + } + if !cmp.Equal(configApplyStatus, want) { + t.Errorf("Enterprise.ConfigApplyStatus returned %+v, want %+v", configApplyStatus, want) + } +} diff --git a/github/enterprise_manage_ghes_maintenance.go b/github/enterprise_manage_ghes_maintenance.go new file mode 100644 index 00000000000..0fc384dda9c --- /dev/null +++ b/github/enterprise_manage_ghes_maintenance.go @@ -0,0 +1,94 @@ +// Copyright 2013 The go-github AUTHORS. All rights reserved. +// +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package github + +import ( + "context" +) + +// MaintenanceOperationStatus represents the message to be displayed when the instance gets a maintenance operation request. +type MaintenanceOperationStatus struct { + Hostname *string `json:"hostname"` + UUID *string `json:"uuid"` + Message *string `json:"message"` +} + +// MaintenanceStatus represents the status of maintenance mode for all nodes. +type MaintenanceStatus struct { + Hostname *string `json:"hostname"` + UUID *string `json:"uuid"` + Status *string `json:"status"` + ScheduledTime *Timestamp `json:"scheduled_time"` + ConnectionServices []*ConnectionServices `json:"connection_services"` + CanUnsetMaintenance *bool `json:"can_unset_maintenance"` + IPExceptionList []*string `json:"ip_exception_list"` + MaintenanceModeMessage *string `json:"maintenance_mode_message"` +} + +// ConnectionServices represents the connection services for the maintenance status. +type ConnectionServices struct { + Name *string `json:"name"` + Number *int `json:"number"` +} + +// MaintenanceOptions represents the options for setting the maintenance mode for the instance. +// When can be a string, so we cant use a Timestamp type. +type MaintenanceOptions struct { + Enabled *bool `json:"enabled,omitempty"` + UUID *string `json:"uuid,omitempty"` + When *string `json:"when,omitempty"` + IPExceptionList []*string `json:"ip_exception_list,omitempty"` + MaintenanceModeMessage *string `json:"maintenance_mode_message,omitempty"` +} + +// GetMaintenanceStatus gets the status of maintenance mode for all nodes. +// +// GitHub API docs: https://docs.github.com/enterprise-server@3.15/rest/enterprise-admin/manage-ghes#get-the-status-of-maintenance-mode +// +//meta:operation GET /manage/v1/maintenance +func (s *EnterpriseService) GetMaintenanceStatus(ctx context.Context, opts *NodeQueryOptions) ([]*MaintenanceStatus, *Response, error) { + u, err := addOptions("manage/v1/maintenance", opts) + if err != nil { + return nil, nil, err + } + req, err := s.client.NewRequest("GET", u, nil) + if err != nil { + return nil, nil, err + } + + var status []*MaintenanceStatus + resp, err := s.client.Do(ctx, req, &status) + if err != nil { + return nil, resp, err + } + + return status, resp, nil +} + +// CreateMaintenance sets the maintenance mode for the instance. +// With the enable parameter we can control to put instance into maintenance mode or not. With False we can disable the maintenance mode. +// +// GitHub API docs: https://docs.github.com/enterprise-server@3.15/rest/enterprise-admin/manage-ghes#set-the-status-of-maintenance-mode +// +//meta:operation POST /manage/v1/maintenance +func (s *EnterpriseService) CreateMaintenance(ctx context.Context, enable bool, opts *MaintenanceOptions) ([]*MaintenanceOperationStatus, *Response, error) { + u := "manage/v1/maintenance" + + opts.Enabled = &enable + + req, err := s.client.NewRequest("POST", u, opts) + if err != nil { + return nil, nil, err + } + + var i []*MaintenanceOperationStatus + resp, err := s.client.Do(ctx, req, &i) + if err != nil { + return nil, resp, err + } + + return i, resp, nil +} diff --git a/github/enterprise_manage_ghes_maintenance_test.go b/github/enterprise_manage_ghes_maintenance_test.go new file mode 100644 index 00000000000..61ff70eabd2 --- /dev/null +++ b/github/enterprise_manage_ghes_maintenance_test.go @@ -0,0 +1,129 @@ +// Copyright 2013 The go-github AUTHORS. All rights reserved. +// +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package github + +import ( + "context" + "encoding/json" + "fmt" + "net/http" + "testing" + "time" + + "github.com/google/go-cmp/cmp" +) + +func TestEnterpriseService_GetMaintenanceStatus(t *testing.T) { + t.Parallel() + client, mux, _ := setup(t) + + mux.HandleFunc("/manage/v1/maintenance", func(w http.ResponseWriter, r *http.Request) { + testMethod(t, r, "GET") + testFormValues(t, r, values{ + "uuid": "1234-1234", + "cluster_roles": "primary", + }) + fmt.Fprint(w, `[{ + "hostname": "primary", + "uuid": "1b6cf518-f97c-11ed-8544-061d81f7eedb", + "status": "scheduled", + "scheduled_time": "2018-01-01T00:00:00+00:00", + "connection_services": [ + { + "name": "git operations", + "number": 15 + } + ], + "can_unset_maintenance": true, + "ip_exception_list": [ + "1.1.1.1" + ], + "maintenance_mode_message": "Scheduled maintenance for upgrading." + }]`) + }) + + opt := &NodeQueryOptions{ + UUID: "1234-1234", ClusterRoles: "primary", + } + ctx := context.Background() + maintenanceStatus, _, err := client.Enterprise.GetMaintenanceStatus(ctx, opt) + if err != nil { + t.Errorf("Enterprise.GetMaintenanceStatus returned error: %v", err) + } + + want := []*MaintenanceStatus{{ + Hostname: Ptr("primary"), + UUID: Ptr("1b6cf518-f97c-11ed-8544-061d81f7eedb"), + Status: Ptr("scheduled"), + ScheduledTime: &Timestamp{time.Date(2018, time.January, 1, 0, 0, 0, 0, time.UTC)}, + ConnectionServices: []*ConnectionServices{{ + Name: Ptr("git operations"), + Number: Ptr(15), + }}, + CanUnsetMaintenance: Ptr(true), + IPExceptionList: []*string{Ptr("1.1.1.1")}, + MaintenanceModeMessage: Ptr("Scheduled maintenance for upgrading."), + }} + if !cmp.Equal(maintenanceStatus, want) { + t.Errorf("Enterprise.GetMaintenanceStatus returned %+v, want %+v", maintenanceStatus, want) + } + + const methodName = "GetMaintenanceStatus" + testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) { + got, resp, err := client.Enterprise.GetMaintenanceStatus(ctx, opt) + if got != nil { + t.Errorf("testNewRequestAndDoFailure %v = %#v, want nil", methodName, got) + } + return resp, err + }) +} + +func TestEnterpriseService_CreateMaintenance(t *testing.T) { + t.Parallel() + client, mux, _ := setup(t) + + input := &MaintenanceOptions{ + Enabled: Ptr(true), + UUID: Ptr("1234-1234"), + When: Ptr("now"), + IPExceptionList: []*string{ + Ptr("1.1.1.1"), + }, + MaintenanceModeMessage: Ptr("Scheduled maintenance for upgrading."), + } + + mux.HandleFunc("/manage/v1/maintenance", func(w http.ResponseWriter, r *http.Request) { + v := new(MaintenanceOptions) + assertNilError(t, json.NewDecoder(r.Body).Decode(v)) + + testMethod(t, r, "POST") + if !cmp.Equal(v, input) { + t.Errorf("Request body = %+v, want %+v", v, input) + } + + fmt.Fprint(w, `[ { "hostname": "primary", "uuid": "1b6cf518-f97c-11ed-8544-061d81f7eedb", "message": "Scheduled maintenance for upgrading." } ]`) + }) + + ctx := context.Background() + maintenanceStatus, _, err := client.Enterprise.CreateMaintenance(ctx, true, input) + if err != nil { + t.Errorf("Enterprise.CreateMaintenance returned error: %v", err) + } + + want := []*MaintenanceOperationStatus{{Hostname: Ptr("primary"), UUID: Ptr("1b6cf518-f97c-11ed-8544-061d81f7eedb"), Message: Ptr("Scheduled maintenance for upgrading.")}} + if diff := cmp.Diff(want, maintenanceStatus); diff != "" { + t.Errorf("diff mismatch (-want +got):\n%v", diff) + } + + const methodName = "CreateMaintenance" + testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) { + got, resp, err := client.Enterprise.CreateMaintenance(ctx, true, input) + if got != nil { + t.Errorf("testNewRequestAndDoFailure %v = %#v, want nil", methodName, got) + } + return resp, err + }) +} diff --git a/github/enterprise_manage_ghes_ssh.go b/github/enterprise_manage_ghes_ssh.go new file mode 100644 index 00000000000..ac4821cca69 --- /dev/null +++ b/github/enterprise_manage_ghes_ssh.go @@ -0,0 +1,99 @@ +// Copyright 2013 The go-github AUTHORS. All rights reserved. +// +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package github + +import ( + "context" +) + +// SSHKeyStatus represents the status of a SSH key operation. +type SSHKeyStatus struct { + Hostname *string `json:"hostname"` + UUID *string `json:"uuid"` + Message *string `json:"message"` + Modified *bool `json:"modified,omitempty"` +} + +// SSHKeyOptions specifies the optional parameters to the SSH create and delete functions. +type SSHKeyOptions struct { + // Key is the SSH key to add to the instance. + Key string `json:"key,omitempty"` +} + +// ClusterSSHKeys represents the SSH keys configured for the instance. +type ClusterSSHKeys struct { + Key *string `json:"key"` + Fingerprint *string `json:"fingerprint"` +} + +// DeleteSSHKey deletes the SSH key from the instance. +// +// GitHub API docs: https://docs.github.com/enterprise-server@3.15/rest/enterprise-admin/manage-ghes#delete-a-ssh-key +// +//meta:operation DELETE /manage/v1/access/ssh +func (s *EnterpriseService) DeleteSSHKey(ctx context.Context, key string) ([]*SSHKeyStatus, *Response, error) { + u := "manage/v1/access/ssh" + opts := &SSHKeyOptions{ + Key: key, + } + req, err := s.client.NewRequest("DELETE", u, opts) + if err != nil { + return nil, nil, err + } + + var sshStatus []*SSHKeyStatus + resp, err := s.client.Do(ctx, req, &sshStatus) + if err != nil { + return nil, resp, err + } + + return sshStatus, resp, nil +} + +// GetSSHKey gets the SSH keys configured for the instance. +// +// GitHub API docs: https://docs.github.com/enterprise-server@3.15/rest/enterprise-admin/manage-ghes#get-the-configured-ssh-keys +// +//meta:operation GET /manage/v1/access/ssh +func (s *EnterpriseService) GetSSHKey(ctx context.Context) ([]*ClusterSSHKeys, *Response, error) { + u := "manage/v1/access/ssh" + req, err := s.client.NewRequest("GET", u, nil) + if err != nil { + return nil, nil, err + } + + var sshKeys []*ClusterSSHKeys + resp, err := s.client.Do(ctx, req, &sshKeys) + if err != nil { + return nil, resp, err + } + + return sshKeys, resp, nil +} + +// CreateSSHKey adds a new SSH key to the instance. +// +// GitHub API docs: https://docs.github.com/enterprise-server@3.15/rest/enterprise-admin/manage-ghes#set-a-new-ssh-key +// +//meta:operation POST /manage/v1/access/ssh +func (s *EnterpriseService) CreateSSHKey(ctx context.Context, key string) ([]*SSHKeyStatus, *Response, error) { + u := "manage/v1/access/ssh" + opts := &SSHKeyOptions{ + Key: key, + } + req, err := s.client.NewRequest("POST", u, opts) + if err != nil { + return nil, nil, err + } + + var sshKeyResponse []*SSHKeyStatus + resp, err := s.client.Do(ctx, req, &sshKeyResponse) + if err != nil { + return nil, resp, err + } + + return sshKeyResponse, resp, nil +} diff --git a/github/enterprise_manage_ghes_ssh_test.go b/github/enterprise_manage_ghes_ssh_test.go new file mode 100644 index 00000000000..d8cf45c530a --- /dev/null +++ b/github/enterprise_manage_ghes_ssh_test.go @@ -0,0 +1,134 @@ +// Copyright 2013 The go-github AUTHORS. All rights reserved. +// +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package github + +import ( + "context" + "encoding/json" + "fmt" + "net/http" + "testing" + + "github.com/google/go-cmp/cmp" +) + +func TestEnterpriseService_GetSSHKey(t *testing.T) { + t.Parallel() + client, mux, _ := setup(t) + + mux.HandleFunc("/manage/v1/access/ssh", func(w http.ResponseWriter, r *http.Request) { + testMethod(t, r, "GET") + fmt.Fprint(w, `[{ + "key": "ssh-rsa 1234", + "fingerprint": "bd" + }]`) + }) + + ctx := context.Background() + accessSSH, _, err := client.Enterprise.GetSSHKey(ctx) + if err != nil { + t.Errorf("Enterprise.GetSSHKey returned error: %v", err) + } + + want := []*ClusterSSHKeys{{ + Key: Ptr("ssh-rsa 1234"), + Fingerprint: Ptr("bd"), + }} + if !cmp.Equal(accessSSH, want) { + t.Errorf("Enterprise.GetSSHKey returned %+v, want %+v", accessSSH, want) + } + + const methodName = "GetSSHKey" + testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) { + got, resp, err := client.Enterprise.GetSSHKey(ctx) + if got != nil { + t.Errorf("testNewRequestAndDoFailure %v = %#v, want nil", methodName, got) + } + return resp, err + }) +} + +func TestEnterpriseService_DeleteSSHKey(t *testing.T) { + t.Parallel() + client, mux, _ := setup(t) + + input := &SSHKeyOptions{ + Key: "ssh-rsa 1234", + } + + mux.HandleFunc("/manage/v1/access/ssh", func(w http.ResponseWriter, r *http.Request) { + v := new(SSHKeyOptions) + assertNilError(t, json.NewDecoder(r.Body).Decode(v)) + + testMethod(t, r, "DELETE") + if !cmp.Equal(v, input) { + t.Errorf("Request body = %+v, want %+v", v, input) + } + + fmt.Fprint(w, `[ { "hostname": "primary", "uuid": "1b6cf518-f97c-11ed-8544-061d81f7eedb", "message": "SSH key removed successfully" } ]`) + }) + + ctx := context.Background() + sshStatus, _, err := client.Enterprise.DeleteSSHKey(ctx, "ssh-rsa 1234") + if err != nil { + t.Errorf("Enterprise.DeleteSSHKey returned error: %v", err) + } + + want := []*SSHKeyStatus{{Hostname: Ptr("primary"), UUID: Ptr("1b6cf518-f97c-11ed-8544-061d81f7eedb"), Message: Ptr("SSH key removed successfully")}} + if diff := cmp.Diff(want, sshStatus); diff != "" { + t.Errorf("diff mismatch (-want +got):\n%v", diff) + } + + const methodName = "DeleteSSHKey" + testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) { + got, resp, err := client.Enterprise.DeleteSSHKey(ctx, "ssh-rsa 1234") + if got != nil { + t.Errorf("testNewRequestAndDoFailure %v = %#v, want nil", methodName, got) + } + return resp, err + }) +} + +func TestEnterpriseService_CreateSSHKey(t *testing.T) { + t.Parallel() + client, mux, _ := setup(t) + + input := &SSHKeyOptions{ + Key: "ssh-rsa 1234", + } + + mux.HandleFunc("/manage/v1/access/ssh", func(w http.ResponseWriter, r *http.Request) { + v := new(SSHKeyOptions) + assertNilError(t, json.NewDecoder(r.Body).Decode(v)) + + testMethod(t, r, "POST") + if !cmp.Equal(v, input) { + t.Errorf("Request body = %+v, want %+v", v, input) + } + + fmt.Fprint(w, `[ { "hostname": "primary", "uuid": "1b6cf518-f97c-11ed-8544-061d81f7eedb", "message": "SSH key added successfully", "modified": true } ]`) + }) + + ctx := context.Background() + sshStatus, _, err := client.Enterprise.CreateSSHKey(ctx, "ssh-rsa 1234") + if err != nil { + t.Errorf("Enterprise.CreateSSHKey returned error: %v", err) + } + + want := []*SSHKeyStatus{{Hostname: Ptr("primary"), UUID: Ptr("1b6cf518-f97c-11ed-8544-061d81f7eedb"), Message: Ptr("SSH key added successfully"), Modified: Ptr(true)}} + if diff := cmp.Diff(want, sshStatus); diff != "" { + t.Errorf("diff mismatch (-want +got):\n%v", diff) + } + + const methodName = "CreateSSHKey" + testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) { + got, resp, err := client.Enterprise.CreateSSHKey(ctx, "ssh-rsa 1234") + if got != nil { + t.Errorf("testNewRequestAndDoFailure %v = %#v, want nil", methodName, got) + } + return resp, err + }) +} diff --git a/github/enterprise_manage_ghes_test.go b/github/enterprise_manage_ghes_test.go new file mode 100644 index 00000000000..632ab7cdfa5 --- /dev/null +++ b/github/enterprise_manage_ghes_test.go @@ -0,0 +1,213 @@ +// Copyright 2013 The go-github AUTHORS. All rights reserved. +// +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package github + +import ( + "context" + "fmt" + "net/http" + "testing" + + "github.com/google/go-cmp/cmp" +) + +func TestEnterpriseService_CheckSystemRequirements(t *testing.T) { + t.Parallel() + client, mux, _ := setup(t) + + mux.HandleFunc("/manage/v1/checks/system-requirements", func(w http.ResponseWriter, r *http.Request) { + testMethod(t, r, "GET") + fmt.Fprint(w, `{ + "status": "OK", + "nodes": [{ + "hostname": "primary", + "status": "OK", + "roles_status": [{ + "status": "OK", + "role": "ConsulServer" + } + ]} + ]}`) + }) + + ctx := context.Background() + systemRequirements, _, err := client.Enterprise.CheckSystemRequirements(ctx) + if err != nil { + t.Errorf("Enterprise.CheckSystemRequirements returned error: %v", err) + } + + want := &SystemRequirements{ + Status: Ptr("OK"), + Nodes: []*SystemRequirementsNodes{{ + Hostname: Ptr("primary"), + Status: Ptr("OK"), + RolesStatus: []*SystemRequirementsNodesRolesStatus{{ + Status: Ptr("OK"), + Role: Ptr("ConsulServer"), + }}, + }}, + } + if !cmp.Equal(systemRequirements, want) { + t.Errorf("Enterprise.CheckSystemRequirements returned %+v, want %+v", systemRequirements, want) + } + + const methodName = "CheckSystemRequirements" + testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) { + got, resp, err := client.Enterprise.CheckSystemRequirements(ctx) + if got != nil { + t.Errorf("testNewRequestAndDoFailure %v = %#v, want nil", methodName, got) + } + return resp, err + }) +} + +func TestEnterpriseService_ClusterStatus(t *testing.T) { + t.Parallel() + client, mux, _ := setup(t) + + mux.HandleFunc("/manage/v1/cluster/status", func(w http.ResponseWriter, r *http.Request) { + testMethod(t, r, "GET") + fmt.Fprint(w, `{ + "status": "OK", + "nodes": [{ + "hostname": "primary", + "status": "OK", + "services": [] + }] + }`) + }) + + ctx := context.Background() + clusterStatus, _, err := client.Enterprise.ClusterStatus(ctx) + if err != nil { + t.Errorf("Enterprise.ClusterStatus returned error: %v", err) + } + + want := &ClusterStatus{ + Status: Ptr("OK"), + Nodes: []*ClusterStatusNodes{{ + Hostname: Ptr("primary"), + Status: Ptr("OK"), + Services: []*ClusterStatusNodesServices{}, + }}, + } + if !cmp.Equal(clusterStatus, want) { + t.Errorf("Enterprise.ClusterStatus returned %+v, want %+v", clusterStatus, want) + } + + const methodName = "ClusterStatus" + testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) { + got, resp, err := client.Enterprise.ClusterStatus(ctx) + if got != nil { + t.Errorf("testNewRequestAndDoFailure %v = %#v, want nil", methodName, got) + } + return resp, err + }) +} + +func TestEnterpriseService_ReplicationStatus(t *testing.T) { + t.Parallel() + client, mux, _ := setup(t) + + mux.HandleFunc("/manage/v1/replication/status", func(w http.ResponseWriter, r *http.Request) { + testMethod(t, r, "GET") + testFormValues(t, r, values{ + "uuid": "1234-1234", + "cluster_roles": "primary", + }) + fmt.Fprint(w, `{ + "status": "OK", + "nodes": [{ + "hostname": "primary", + "status": "OK", + "services": [] + }] + }`) + }) + + opt := &NodeQueryOptions{ + UUID: "1234-1234", ClusterRoles: "primary", + } + ctx := context.Background() + replicationStatus, _, err := client.Enterprise.ReplicationStatus(ctx, opt) + if err != nil { + t.Errorf("Enterprise.ReplicationStatus returned error: %v", err) + } + + want := &ClusterStatus{ + Status: Ptr("OK"), + Nodes: []*ClusterStatusNodes{{ + Hostname: Ptr("primary"), + Status: Ptr("OK"), + Services: []*ClusterStatusNodesServices{}, + }}, + } + if !cmp.Equal(replicationStatus, want) { + t.Errorf("Enterprise.ReplicationStatus returned %+v, want %+v", replicationStatus, want) + } + + const methodName = "ReplicationStatus" + testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) { + got, resp, err := client.Enterprise.ReplicationStatus(ctx, opt) + if got != nil { + t.Errorf("testNewRequestAndDoFailure %v = %#v, want nil", methodName, got) + } + return resp, err + }) +} + +func TestEnterpriseService_Versions(t *testing.T) { + t.Parallel() + client, mux, _ := setup(t) + + mux.HandleFunc("/manage/v1/version", func(w http.ResponseWriter, r *http.Request) { + testMethod(t, r, "GET") + testFormValues(t, r, values{ + "uuid": "1234-1234", + "cluster_roles": "primary", + }) + fmt.Fprint(w, `[{ + "hostname": "primary", + "version": { + "version": "3.9.0", + "platform": "azure", + "build_id": "fc542058b5", + "build_date": "2023-05-02" + } + }]`) + }) + + opt := &NodeQueryOptions{ + UUID: "1234-1234", ClusterRoles: "primary", + } + ctx := context.Background() + releaseVersions, _, err := client.Enterprise.Versions(ctx, opt) + if err != nil { + t.Errorf("Enterprise.Versions returned error: %v", err) + } + + want := []*NodeReleaseVersions{{ + Hostname: Ptr("primary"), + Version: &ReleaseVersions{ + Version: Ptr("3.9.0"), + Platform: Ptr("azure"), + BuildID: Ptr("fc542058b5"), + BuildDate: Ptr("2023-05-02"), + }, + }} + if !cmp.Equal(releaseVersions, want) { + t.Errorf("Enterprise.Versions returned %+v, want %+v", releaseVersions, want) + } + + const methodName = "Versions" + testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) { + got, resp, err := client.Enterprise.Versions(ctx, opt) + if got != nil { + t.Errorf("testNewRequestAndDoFailure %v = %#v, want nil", methodName, got) + } + return resp, err + }) +} diff --git a/github/github-accessors.go b/github/github-accessors.go index ec7ac4f7b20..ead6581600a 100644 --- a/github/github-accessors.go +++ b/github/github-accessors.go @@ -1510,6 +1510,22 @@ func (a *AutoTriggerCheck) GetSetting() bool { return *a.Setting } +// GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. +func (a *Avatar) GetEnabled() bool { + if a == nil || a.Enabled == nil { + return false + } + return *a.Enabled +} + +// GetURI returns the URI field if it's non-nil, zero value otherwise. +func (a *Avatar) GetURI() string { + if a == nil || a.URI == nil { + return "" + } + return *a.URI +} + // GetContent returns the Content field if it's non-nil, zero value otherwise. func (b *Blob) GetContent() string { if b == nil || b.Content == nil { @@ -1950,6 +1966,14 @@ func (b *BypassActor) GetBypassMode() string { return *b.BypassMode } +// GetURL returns the URL field if it's non-nil, zero value otherwise. +func (c *CAS) GetURL() string { + if c == nil || c.URL == nil { + return "" + } + return *c.URL +} + // GetApp returns the App field. func (c *CheckRun) GetApp() *App { if c == nil { @@ -2462,6 +2486,70 @@ func (c *CheckSuitePreferenceResults) GetRepository() *Repository { return c.Repository } +// GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. +func (c *ClusterSSHKeys) GetFingerprint() string { + if c == nil || c.Fingerprint == nil { + return "" + } + return *c.Fingerprint +} + +// GetKey returns the Key field if it's non-nil, zero value otherwise. +func (c *ClusterSSHKeys) GetKey() string { + if c == nil || c.Key == nil { + return "" + } + return *c.Key +} + +// GetStatus returns the Status field if it's non-nil, zero value otherwise. +func (c *ClusterStatus) GetStatus() string { + if c == nil || c.Status == nil { + return "" + } + return *c.Status +} + +// GetHostname returns the Hostname field if it's non-nil, zero value otherwise. +func (c *ClusterStatusNodes) GetHostname() string { + if c == nil || c.Hostname == nil { + return "" + } + return *c.Hostname +} + +// GetStatus returns the Status field if it's non-nil, zero value otherwise. +func (c *ClusterStatusNodes) GetStatus() string { + if c == nil || c.Status == nil { + return "" + } + return *c.Status +} + +// GetDetails returns the Details field if it's non-nil, zero value otherwise. +func (c *ClusterStatusNodesServices) GetDetails() string { + if c == nil || c.Details == nil { + return "" + } + return *c.Details +} + +// GetName returns the Name field if it's non-nil, zero value otherwise. +func (c *ClusterStatusNodesServices) GetName() string { + if c == nil || c.Name == nil { + return "" + } + return *c.Name +} + +// GetStatus returns the Status field if it's non-nil, zero value otherwise. +func (c *ClusterStatusNodesServices) GetStatus() string { + if c == nil || c.Status == nil { + return "" + } + return *c.Status +} + // GetBody returns the Body field if it's non-nil, zero value otherwise. func (c *CodeOfConduct) GetBody() string { if c == nil || c.Body == nil { @@ -3294,6 +3382,54 @@ func (c *CollaboratorInvitation) GetURL() string { return *c.URL } +// GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. +func (c *Collectd) GetEnabled() bool { + if c == nil || c.Enabled == nil { + return false + } + return *c.Enabled +} + +// GetEncryption returns the Encryption field if it's non-nil, zero value otherwise. +func (c *Collectd) GetEncryption() string { + if c == nil || c.Encryption == nil { + return "" + } + return *c.Encryption +} + +// GetPassword returns the Password field if it's non-nil, zero value otherwise. +func (c *Collectd) GetPassword() string { + if c == nil || c.Password == nil { + return "" + } + return *c.Password +} + +// GetPort returns the Port field if it's non-nil, zero value otherwise. +func (c *Collectd) GetPort() int { + if c == nil || c.Port == nil { + return 0 + } + return *c.Port +} + +// GetServer returns the Server field if it's non-nil, zero value otherwise. +func (c *Collectd) GetServer() string { + if c == nil || c.Server == nil { + return "" + } + return *c.Server +} + +// GetUsername returns the Username field if it's non-nil, zero value otherwise. +func (c *Collectd) GetUsername() string { + if c == nil || c.Username == nil { + return "" + } + return *c.Username +} + // GetCommitURL returns the CommitURL field if it's non-nil, zero value otherwise. func (c *CombinedStatus) GetCommitURL() string { if c == nil || c.CommitURL == nil { @@ -4038,234 +4174,642 @@ func (c *CommunityHealthMetrics) GetUpdatedAt() Timestamp { return *c.UpdatedAt } -// GetID returns the ID field if it's non-nil, zero value otherwise. -func (c *ContentReference) GetID() int64 { - if c == nil || c.ID == nil { - return 0 +// GetBody returns the Body field if it's non-nil, zero value otherwise. +func (c *ConfigApplyEventsNodeEvents) GetBody() string { + if c == nil || c.Body == nil { + return "" } - return *c.ID + return *c.Body } -// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. -func (c *ContentReference) GetNodeID() string { - if c == nil || c.NodeID == nil { +// GetConfigRunID returns the ConfigRunID field if it's non-nil, zero value otherwise. +func (c *ConfigApplyEventsNodeEvents) GetConfigRunID() string { + if c == nil || c.ConfigRunID == nil { return "" } - return *c.NodeID + return *c.ConfigRunID } -// GetReference returns the Reference field if it's non-nil, zero value otherwise. -func (c *ContentReference) GetReference() string { - if c == nil || c.Reference == nil { +// GetEventName returns the EventName field if it's non-nil, zero value otherwise. +func (c *ConfigApplyEventsNodeEvents) GetEventName() string { + if c == nil || c.EventName == nil { return "" } - return *c.Reference + return *c.EventName } -// GetAction returns the Action field if it's non-nil, zero value otherwise. -func (c *ContentReferenceEvent) GetAction() string { - if c == nil || c.Action == nil { +// GetHostname returns the Hostname field if it's non-nil, zero value otherwise. +func (c *ConfigApplyEventsNodeEvents) GetHostname() string { + if c == nil || c.Hostname == nil { return "" } - return *c.Action + return *c.Hostname } -// GetContentReference returns the ContentReference field. -func (c *ContentReferenceEvent) GetContentReference() *ContentReference { - if c == nil { - return nil +// GetSeverityText returns the SeverityText field if it's non-nil, zero value otherwise. +func (c *ConfigApplyEventsNodeEvents) GetSeverityText() string { + if c == nil || c.SeverityText == nil { + return "" } - return c.ContentReference + return *c.SeverityText } -// GetInstallation returns the Installation field. -func (c *ContentReferenceEvent) GetInstallation() *Installation { - if c == nil { - return nil +// GetSpanDepth returns the SpanDepth field if it's non-nil, zero value otherwise. +func (c *ConfigApplyEventsNodeEvents) GetSpanDepth() int { + if c == nil || c.SpanDepth == nil { + return 0 } - return c.Installation + return *c.SpanDepth } -// GetRepo returns the Repo field. -func (c *ContentReferenceEvent) GetRepo() *Repository { - if c == nil { - return nil +// GetSpanID returns the SpanID field if it's non-nil, zero value otherwise. +func (c *ConfigApplyEventsNodeEvents) GetSpanID() string { + if c == nil || c.SpanID == nil { + return "" } - return c.Repo + return *c.SpanID } -// GetSender returns the Sender field. -func (c *ContentReferenceEvent) GetSender() *User { - if c == nil { - return nil +// GetSpanParentID returns the SpanParentID field if it's non-nil, zero value otherwise. +func (c *ConfigApplyEventsNodeEvents) GetSpanParentID() int { + if c == nil || c.SpanParentID == nil { + return 0 } - return c.Sender + return *c.SpanParentID } -// GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. -func (c *Contributor) GetAvatarURL() string { - if c == nil || c.AvatarURL == nil { - return "" +// GetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise. +func (c *ConfigApplyEventsNodeEvents) GetTimestamp() Timestamp { + if c == nil || c.Timestamp == nil { + return Timestamp{} } - return *c.AvatarURL + return *c.Timestamp } -// GetContributions returns the Contributions field if it's non-nil, zero value otherwise. -func (c *Contributor) GetContributions() int { - if c == nil || c.Contributions == nil { - return 0 +// GetTopology returns the Topology field if it's non-nil, zero value otherwise. +func (c *ConfigApplyEventsNodeEvents) GetTopology() string { + if c == nil || c.Topology == nil { + return "" } - return *c.Contributions + return *c.Topology } -// GetEmail returns the Email field if it's non-nil, zero value otherwise. -func (c *Contributor) GetEmail() string { - if c == nil || c.Email == nil { +// GetTraceID returns the TraceID field if it's non-nil, zero value otherwise. +func (c *ConfigApplyEventsNodeEvents) GetTraceID() string { + if c == nil || c.TraceID == nil { return "" } - return *c.Email + return *c.TraceID } -// GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. -func (c *Contributor) GetEventsURL() string { - if c == nil || c.EventsURL == nil { +// GetLastRequestID returns the LastRequestID field if it's non-nil, zero value otherwise. +func (c *ConfigApplyEventsNodes) GetLastRequestID() string { + if c == nil || c.LastRequestID == nil { return "" } - return *c.EventsURL + return *c.LastRequestID } -// GetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise. -func (c *Contributor) GetFollowersURL() string { - if c == nil || c.FollowersURL == nil { +// GetNode returns the Node field if it's non-nil, zero value otherwise. +func (c *ConfigApplyEventsNodes) GetNode() string { + if c == nil || c.Node == nil { return "" } - return *c.FollowersURL + return *c.Node } -// GetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise. -func (c *Contributor) GetFollowingURL() string { - if c == nil || c.FollowingURL == nil { - return "" +// GetRunning returns the Running field if it's non-nil, zero value otherwise. +func (c *ConfigApplyStatus) GetRunning() bool { + if c == nil || c.Running == nil { + return false } - return *c.FollowingURL + return *c.Running } -// GetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise. -func (c *Contributor) GetGistsURL() string { - if c == nil || c.GistsURL == nil { - return "" +// GetSuccessful returns the Successful field if it's non-nil, zero value otherwise. +func (c *ConfigApplyStatus) GetSuccessful() bool { + if c == nil || c.Successful == nil { + return false } - return *c.GistsURL + return *c.Successful } -// GetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise. -func (c *Contributor) GetGravatarID() string { - if c == nil || c.GravatarID == nil { +// GetHostname returns the Hostname field if it's non-nil, zero value otherwise. +func (c *ConfigApplyStatusNodes) GetHostname() string { + if c == nil || c.Hostname == nil { return "" } - return *c.GravatarID + return *c.Hostname } -// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. -func (c *Contributor) GetHTMLURL() string { - if c == nil || c.HTMLURL == nil { +// GetRunID returns the RunID field if it's non-nil, zero value otherwise. +func (c *ConfigApplyStatusNodes) GetRunID() string { + if c == nil || c.RunID == nil { return "" } - return *c.HTMLURL + return *c.RunID } -// GetID returns the ID field if it's non-nil, zero value otherwise. -func (c *Contributor) GetID() int64 { - if c == nil || c.ID == nil { - return 0 +// GetRunning returns the Running field if it's non-nil, zero value otherwise. +func (c *ConfigApplyStatusNodes) GetRunning() bool { + if c == nil || c.Running == nil { + return false } - return *c.ID + return *c.Running } -// GetLogin returns the Login field if it's non-nil, zero value otherwise. -func (c *Contributor) GetLogin() string { - if c == nil || c.Login == nil { - return "" +// GetSuccessful returns the Successful field if it's non-nil, zero value otherwise. +func (c *ConfigApplyStatusNodes) GetSuccessful() bool { + if c == nil || c.Successful == nil { + return false } - return *c.Login + return *c.Successful } -// GetName returns the Name field if it's non-nil, zero value otherwise. -func (c *Contributor) GetName() string { - if c == nil || c.Name == nil { +// GetAdminPassword returns the AdminPassword field if it's non-nil, zero value otherwise. +func (c *ConfigSettings) GetAdminPassword() string { + if c == nil || c.AdminPassword == nil { return "" } - return *c.Name + return *c.AdminPassword } -// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. -func (c *Contributor) GetNodeID() string { - if c == nil || c.NodeID == nil { +// GetAssets returns the Assets field if it's non-nil, zero value otherwise. +func (c *ConfigSettings) GetAssets() string { + if c == nil || c.Assets == nil { return "" } - return *c.NodeID + return *c.Assets } -// GetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise. -func (c *Contributor) GetOrganizationsURL() string { - if c == nil || c.OrganizationsURL == nil { +// GetAuthMode returns the AuthMode field if it's non-nil, zero value otherwise. +func (c *ConfigSettings) GetAuthMode() string { + if c == nil || c.AuthMode == nil { return "" } - return *c.OrganizationsURL + return *c.AuthMode } -// GetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise. -func (c *Contributor) GetReceivedEventsURL() string { - if c == nil || c.ReceivedEventsURL == nil { - return "" +// GetAvatar returns the Avatar field. +func (c *ConfigSettings) GetAvatar() *Avatar { + if c == nil { + return nil } - return *c.ReceivedEventsURL + return c.Avatar } -// GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. -func (c *Contributor) GetReposURL() string { - if c == nil || c.ReposURL == nil { - return "" +// GetCAS returns the CAS field. +func (c *ConfigSettings) GetCAS() *CAS { + if c == nil { + return nil } - return *c.ReposURL + return c.CAS } -// GetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise. -func (c *Contributor) GetSiteAdmin() bool { - if c == nil || c.SiteAdmin == nil { - return false +// GetCollectd returns the Collectd field. +func (c *ConfigSettings) GetCollectd() *Collectd { + if c == nil { + return nil } - return *c.SiteAdmin + return c.Collectd } -// GetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise. -func (c *Contributor) GetStarredURL() string { - if c == nil || c.StarredURL == nil { - return "" +// GetConfigurationID returns the ConfigurationID field if it's non-nil, zero value otherwise. +func (c *ConfigSettings) GetConfigurationID() int { + if c == nil || c.ConfigurationID == nil { + return 0 } - return *c.StarredURL + return *c.ConfigurationID } -// GetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise. -func (c *Contributor) GetSubscriptionsURL() string { - if c == nil || c.SubscriptionsURL == nil { - return "" +// GetConfigurationRunCount returns the ConfigurationRunCount field if it's non-nil, zero value otherwise. +func (c *ConfigSettings) GetConfigurationRunCount() int { + if c == nil || c.ConfigurationRunCount == nil { + return 0 } - return *c.SubscriptionsURL + return *c.ConfigurationRunCount } -// GetType returns the Type field if it's non-nil, zero value otherwise. -func (c *Contributor) GetType() string { - if c == nil || c.Type == nil { - return "" +// GetCustomer returns the Customer field. +func (c *ConfigSettings) GetCustomer() *Customer { + if c == nil { + return nil } - return *c.Type + return c.Customer } -// GetURL returns the URL field if it's non-nil, zero value otherwise. -func (c *Contributor) GetURL() string { - if c == nil || c.URL == nil { - return "" +// GetExpireSessions returns the ExpireSessions field if it's non-nil, zero value otherwise. +func (c *ConfigSettings) GetExpireSessions() bool { + if c == nil || c.ExpireSessions == nil { + return false + } + return *c.ExpireSessions +} + +// GetGitHubHostname returns the GitHubHostname field if it's non-nil, zero value otherwise. +func (c *ConfigSettings) GetGitHubHostname() string { + if c == nil || c.GitHubHostname == nil { + return "" + } + return *c.GitHubHostname +} + +// GetGitHubOAuth returns the GitHubOAuth field. +func (c *ConfigSettings) GetGitHubOAuth() *GitHubOAuth { + if c == nil { + return nil + } + return c.GitHubOAuth +} + +// GetGitHubSSL returns the GitHubSSL field. +func (c *ConfigSettings) GetGitHubSSL() *GitHubSSL { + if c == nil { + return nil + } + return c.GitHubSSL +} + +// GetHTTPProxy returns the HTTPProxy field if it's non-nil, zero value otherwise. +func (c *ConfigSettings) GetHTTPProxy() string { + if c == nil || c.HTTPProxy == nil { + return "" + } + return *c.HTTPProxy +} + +// GetIdenticonsHost returns the IdenticonsHost field if it's non-nil, zero value otherwise. +func (c *ConfigSettings) GetIdenticonsHost() string { + if c == nil || c.IdenticonsHost == nil { + return "" + } + return *c.IdenticonsHost +} + +// GetLDAP returns the LDAP field. +func (c *ConfigSettings) GetLDAP() *LDAP { + if c == nil { + return nil + } + return c.LDAP +} + +// GetLicense returns the License field. +func (c *ConfigSettings) GetLicense() *LicenseSettings { + if c == nil { + return nil + } + return c.License +} + +// GetLoadBalancer returns the LoadBalancer field if it's non-nil, zero value otherwise. +func (c *ConfigSettings) GetLoadBalancer() string { + if c == nil || c.LoadBalancer == nil { + return "" + } + return *c.LoadBalancer +} + +// GetMapping returns the Mapping field. +func (c *ConfigSettings) GetMapping() *Mapping { + if c == nil { + return nil + } + return c.Mapping +} + +// GetNTP returns the NTP field. +func (c *ConfigSettings) GetNTP() *NTP { + if c == nil { + return nil + } + return c.NTP +} + +// GetPages returns the Pages field. +func (c *ConfigSettings) GetPages() *PagesSettings { + if c == nil { + return nil + } + return c.Pages +} + +// GetPrivateMode returns the PrivateMode field if it's non-nil, zero value otherwise. +func (c *ConfigSettings) GetPrivateMode() bool { + if c == nil || c.PrivateMode == nil { + return false + } + return *c.PrivateMode +} + +// GetPublicPages returns the PublicPages field if it's non-nil, zero value otherwise. +func (c *ConfigSettings) GetPublicPages() bool { + if c == nil || c.PublicPages == nil { + return false + } + return *c.PublicPages +} + +// GetSAML returns the SAML field. +func (c *ConfigSettings) GetSAML() *SAML { + if c == nil { + return nil + } + return c.SAML +} + +// GetSignupEnabled returns the SignupEnabled field if it's non-nil, zero value otherwise. +func (c *ConfigSettings) GetSignupEnabled() bool { + if c == nil || c.SignupEnabled == nil { + return false + } + return *c.SignupEnabled +} + +// GetSMTP returns the SMTP field. +func (c *ConfigSettings) GetSMTP() *SMTP { + if c == nil { + return nil + } + return c.SMTP +} + +// GetSNMP returns the SNMP field. +func (c *ConfigSettings) GetSNMP() *SNMP { + if c == nil { + return nil + } + return c.SNMP +} + +// GetSubdomainIsolation returns the SubdomainIsolation field if it's non-nil, zero value otherwise. +func (c *ConfigSettings) GetSubdomainIsolation() bool { + if c == nil || c.SubdomainIsolation == nil { + return false + } + return *c.SubdomainIsolation +} + +// GetSyslog returns the Syslog field. +func (c *ConfigSettings) GetSyslog() *Syslog { + if c == nil { + return nil + } + return c.Syslog +} + +// GetTimezone returns the Timezone field if it's non-nil, zero value otherwise. +func (c *ConfigSettings) GetTimezone() string { + if c == nil || c.Timezone == nil { + return "" + } + return *c.Timezone +} + +// GetName returns the Name field if it's non-nil, zero value otherwise. +func (c *ConnectionServices) GetName() string { + if c == nil || c.Name == nil { + return "" + } + return *c.Name +} + +// GetNumber returns the Number field if it's non-nil, zero value otherwise. +func (c *ConnectionServices) GetNumber() int { + if c == nil || c.Number == nil { + return 0 + } + return *c.Number +} + +// GetID returns the ID field if it's non-nil, zero value otherwise. +func (c *ContentReference) GetID() int64 { + if c == nil || c.ID == nil { + return 0 + } + return *c.ID +} + +// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. +func (c *ContentReference) GetNodeID() string { + if c == nil || c.NodeID == nil { + return "" + } + return *c.NodeID +} + +// GetReference returns the Reference field if it's non-nil, zero value otherwise. +func (c *ContentReference) GetReference() string { + if c == nil || c.Reference == nil { + return "" + } + return *c.Reference +} + +// GetAction returns the Action field if it's non-nil, zero value otherwise. +func (c *ContentReferenceEvent) GetAction() string { + if c == nil || c.Action == nil { + return "" + } + return *c.Action +} + +// GetContentReference returns the ContentReference field. +func (c *ContentReferenceEvent) GetContentReference() *ContentReference { + if c == nil { + return nil + } + return c.ContentReference +} + +// GetInstallation returns the Installation field. +func (c *ContentReferenceEvent) GetInstallation() *Installation { + if c == nil { + return nil + } + return c.Installation +} + +// GetRepo returns the Repo field. +func (c *ContentReferenceEvent) GetRepo() *Repository { + if c == nil { + return nil + } + return c.Repo +} + +// GetSender returns the Sender field. +func (c *ContentReferenceEvent) GetSender() *User { + if c == nil { + return nil + } + return c.Sender +} + +// GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. +func (c *Contributor) GetAvatarURL() string { + if c == nil || c.AvatarURL == nil { + return "" + } + return *c.AvatarURL +} + +// GetContributions returns the Contributions field if it's non-nil, zero value otherwise. +func (c *Contributor) GetContributions() int { + if c == nil || c.Contributions == nil { + return 0 + } + return *c.Contributions +} + +// GetEmail returns the Email field if it's non-nil, zero value otherwise. +func (c *Contributor) GetEmail() string { + if c == nil || c.Email == nil { + return "" + } + return *c.Email +} + +// GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. +func (c *Contributor) GetEventsURL() string { + if c == nil || c.EventsURL == nil { + return "" + } + return *c.EventsURL +} + +// GetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise. +func (c *Contributor) GetFollowersURL() string { + if c == nil || c.FollowersURL == nil { + return "" + } + return *c.FollowersURL +} + +// GetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise. +func (c *Contributor) GetFollowingURL() string { + if c == nil || c.FollowingURL == nil { + return "" + } + return *c.FollowingURL +} + +// GetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise. +func (c *Contributor) GetGistsURL() string { + if c == nil || c.GistsURL == nil { + return "" + } + return *c.GistsURL +} + +// GetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise. +func (c *Contributor) GetGravatarID() string { + if c == nil || c.GravatarID == nil { + return "" + } + return *c.GravatarID +} + +// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. +func (c *Contributor) GetHTMLURL() string { + if c == nil || c.HTMLURL == nil { + return "" + } + return *c.HTMLURL +} + +// GetID returns the ID field if it's non-nil, zero value otherwise. +func (c *Contributor) GetID() int64 { + if c == nil || c.ID == nil { + return 0 + } + return *c.ID +} + +// GetLogin returns the Login field if it's non-nil, zero value otherwise. +func (c *Contributor) GetLogin() string { + if c == nil || c.Login == nil { + return "" + } + return *c.Login +} + +// GetName returns the Name field if it's non-nil, zero value otherwise. +func (c *Contributor) GetName() string { + if c == nil || c.Name == nil { + return "" + } + return *c.Name +} + +// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. +func (c *Contributor) GetNodeID() string { + if c == nil || c.NodeID == nil { + return "" + } + return *c.NodeID +} + +// GetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise. +func (c *Contributor) GetOrganizationsURL() string { + if c == nil || c.OrganizationsURL == nil { + return "" + } + return *c.OrganizationsURL +} + +// GetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise. +func (c *Contributor) GetReceivedEventsURL() string { + if c == nil || c.ReceivedEventsURL == nil { + return "" + } + return *c.ReceivedEventsURL +} + +// GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. +func (c *Contributor) GetReposURL() string { + if c == nil || c.ReposURL == nil { + return "" + } + return *c.ReposURL +} + +// GetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise. +func (c *Contributor) GetSiteAdmin() bool { + if c == nil || c.SiteAdmin == nil { + return false + } + return *c.SiteAdmin +} + +// GetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise. +func (c *Contributor) GetStarredURL() string { + if c == nil || c.StarredURL == nil { + return "" + } + return *c.StarredURL +} + +// GetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise. +func (c *Contributor) GetSubscriptionsURL() string { + if c == nil || c.SubscriptionsURL == nil { + return "" + } + return *c.SubscriptionsURL +} + +// GetType returns the Type field if it's non-nil, zero value otherwise. +func (c *Contributor) GetType() string { + if c == nil || c.Type == nil { + return "" + } + return *c.Type +} + +// GetURL returns the URL field if it's non-nil, zero value otherwise. +func (c *Contributor) GetURL() string { + if c == nil || c.URL == nil { + return "" } return *c.URL } @@ -5070,6 +5614,46 @@ func (c *CustomDeploymentProtectionRuleRequest) GetIntegrationID() int64 { return *c.IntegrationID } +// GetEmail returns the Email field if it's non-nil, zero value otherwise. +func (c *Customer) GetEmail() string { + if c == nil || c.Email == nil { + return "" + } + return *c.Email +} + +// GetName returns the Name field if it's non-nil, zero value otherwise. +func (c *Customer) GetName() string { + if c == nil || c.Name == nil { + return "" + } + return *c.Name +} + +// GetPublicKeyData returns the PublicKeyData field if it's non-nil, zero value otherwise. +func (c *Customer) GetPublicKeyData() string { + if c == nil || c.PublicKeyData == nil { + return "" + } + return *c.PublicKeyData +} + +// GetSecretKeyData returns the SecretKeyData field if it's non-nil, zero value otherwise. +func (c *Customer) GetSecretKeyData() string { + if c == nil || c.SecretKeyData == nil { + return "" + } + return *c.SecretKeyData +} + +// GetUUID returns the UUID field if it's non-nil, zero value otherwise. +func (c *Customer) GetUUID() string { + if c == nil || c.UUID == nil { + return "" + } + return *c.UUID +} + // GetBaseRole returns the BaseRole field if it's non-nil, zero value otherwise. func (c *CustomOrgRoles) GetBaseRole() string { if c == nil || c.BaseRole == nil { @@ -8390,6 +8974,62 @@ func (g *GitHubAppAuthorizationEvent) GetSender() *User { return g.Sender } +// GetClientID returns the ClientID field if it's non-nil, zero value otherwise. +func (g *GitHubOAuth) GetClientID() string { + if g == nil || g.ClientID == nil { + return "" + } + return *g.ClientID +} + +// GetClientSecret returns the ClientSecret field if it's non-nil, zero value otherwise. +func (g *GitHubOAuth) GetClientSecret() string { + if g == nil || g.ClientSecret == nil { + return "" + } + return *g.ClientSecret +} + +// GetOrganizationName returns the OrganizationName field if it's non-nil, zero value otherwise. +func (g *GitHubOAuth) GetOrganizationName() string { + if g == nil || g.OrganizationName == nil { + return "" + } + return *g.OrganizationName +} + +// GetOrganizationTeam returns the OrganizationTeam field if it's non-nil, zero value otherwise. +func (g *GitHubOAuth) GetOrganizationTeam() string { + if g == nil || g.OrganizationTeam == nil { + return "" + } + return *g.OrganizationTeam +} + +// GetCert returns the Cert field if it's non-nil, zero value otherwise. +func (g *GitHubSSL) GetCert() string { + if g == nil || g.Cert == nil { + return "" + } + return *g.Cert +} + +// GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. +func (g *GitHubSSL) GetEnabled() bool { + if g == nil || g.Enabled == nil { + return false + } + return *g.Enabled +} + +// GetKey returns the Key field if it's non-nil, zero value otherwise. +func (g *GitHubSSL) GetKey() string { + if g == nil || g.Key == nil { + return "" + } + return *g.Key +} + // GetName returns the Name field if it's non-nil, zero value otherwise. func (g *Gitignore) GetName() string { if g == nil || g.Name == nil { @@ -11443,103 +12083,247 @@ func (l *LabelResult) GetColor() string { if l == nil || l.Color == nil { return "" } - return *l.Color + return *l.Color +} + +// GetDefault returns the Default field if it's non-nil, zero value otherwise. +func (l *LabelResult) GetDefault() bool { + if l == nil || l.Default == nil { + return false + } + return *l.Default +} + +// GetDescription returns the Description field if it's non-nil, zero value otherwise. +func (l *LabelResult) GetDescription() string { + if l == nil || l.Description == nil { + return "" + } + return *l.Description +} + +// GetID returns the ID field if it's non-nil, zero value otherwise. +func (l *LabelResult) GetID() int64 { + if l == nil || l.ID == nil { + return 0 + } + return *l.ID +} + +// GetName returns the Name field if it's non-nil, zero value otherwise. +func (l *LabelResult) GetName() string { + if l == nil || l.Name == nil { + return "" + } + return *l.Name +} + +// GetScore returns the Score field. +func (l *LabelResult) GetScore() *float64 { + if l == nil { + return nil + } + return l.Score +} + +// GetURL returns the URL field if it's non-nil, zero value otherwise. +func (l *LabelResult) GetURL() string { + if l == nil || l.URL == nil { + return "" + } + return *l.URL +} + +// GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. +func (l *LabelsSearchResult) GetIncompleteResults() bool { + if l == nil || l.IncompleteResults == nil { + return false + } + return *l.IncompleteResults +} + +// GetTotal returns the Total field if it's non-nil, zero value otherwise. +func (l *LabelsSearchResult) GetTotal() int { + if l == nil || l.Total == nil { + return 0 + } + return *l.Total +} + +// GetOID returns the OID field if it's non-nil, zero value otherwise. +func (l *LargeFile) GetOID() string { + if l == nil || l.OID == nil { + return "" + } + return *l.OID +} + +// GetPath returns the Path field if it's non-nil, zero value otherwise. +func (l *LargeFile) GetPath() string { + if l == nil || l.Path == nil { + return "" + } + return *l.Path +} + +// GetRefName returns the RefName field if it's non-nil, zero value otherwise. +func (l *LargeFile) GetRefName() string { + if l == nil || l.RefName == nil { + return "" + } + return *l.RefName +} + +// GetSize returns the Size field if it's non-nil, zero value otherwise. +func (l *LargeFile) GetSize() int { + if l == nil || l.Size == nil { + return 0 + } + return *l.Size +} + +// GetAdminGroup returns the AdminGroup field if it's non-nil, zero value otherwise. +func (l *LDAP) GetAdminGroup() string { + if l == nil || l.AdminGroup == nil { + return "" + } + return *l.AdminGroup +} + +// GetBindDN returns the BindDN field if it's non-nil, zero value otherwise. +func (l *LDAP) GetBindDN() string { + if l == nil || l.BindDN == nil { + return "" + } + return *l.BindDN +} + +// GetHost returns the Host field if it's non-nil, zero value otherwise. +func (l *LDAP) GetHost() string { + if l == nil || l.Host == nil { + return "" + } + return *l.Host } -// GetDefault returns the Default field if it's non-nil, zero value otherwise. -func (l *LabelResult) GetDefault() bool { - if l == nil || l.Default == nil { - return false +// GetMethod returns the Method field if it's non-nil, zero value otherwise. +func (l *LDAP) GetMethod() string { + if l == nil || l.Method == nil { + return "" } - return *l.Default + return *l.Method } -// GetDescription returns the Description field if it's non-nil, zero value otherwise. -func (l *LabelResult) GetDescription() string { - if l == nil || l.Description == nil { +// GetPassword returns the Password field if it's non-nil, zero value otherwise. +func (l *LDAP) GetPassword() string { + if l == nil || l.Password == nil { return "" } - return *l.Description + return *l.Password } -// GetID returns the ID field if it's non-nil, zero value otherwise. -func (l *LabelResult) GetID() int64 { - if l == nil || l.ID == nil { +// GetPort returns the Port field if it's non-nil, zero value otherwise. +func (l *LDAP) GetPort() int { + if l == nil || l.Port == nil { return 0 } - return *l.ID + return *l.Port } -// GetName returns the Name field if it's non-nil, zero value otherwise. -func (l *LabelResult) GetName() string { - if l == nil || l.Name == nil { - return "" +// GetPosixSupport returns the PosixSupport field if it's non-nil, zero value otherwise. +func (l *LDAP) GetPosixSupport() bool { + if l == nil || l.PosixSupport == nil { + return false } - return *l.Name + return *l.PosixSupport } -// GetScore returns the Score field. -func (l *LabelResult) GetScore() *float64 { +// GetProfile returns the Profile field. +func (l *LDAP) GetProfile() *Profile { if l == nil { return nil } - return l.Score + return l.Profile } -// GetURL returns the URL field if it's non-nil, zero value otherwise. -func (l *LabelResult) GetURL() string { - if l == nil || l.URL == nil { +// GetReconciliation returns the Reconciliation field. +func (l *LDAP) GetReconciliation() *Reconciliation { + if l == nil { + return nil + } + return l.Reconciliation +} + +// GetRecursiveGroupSearch returns the RecursiveGroupSearch field if it's non-nil, zero value otherwise. +func (l *LDAP) GetRecursiveGroupSearch() bool { + if l == nil || l.RecursiveGroupSearch == nil { + return false + } + return *l.RecursiveGroupSearch +} + +// GetSearchStrategy returns the SearchStrategy field if it's non-nil, zero value otherwise. +func (l *LDAP) GetSearchStrategy() string { + if l == nil || l.SearchStrategy == nil { return "" } - return *l.URL + return *l.SearchStrategy } -// GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. -func (l *LabelsSearchResult) GetIncompleteResults() bool { - if l == nil || l.IncompleteResults == nil { +// GetSyncEnabled returns the SyncEnabled field if it's non-nil, zero value otherwise. +func (l *LDAP) GetSyncEnabled() bool { + if l == nil || l.SyncEnabled == nil { return false } - return *l.IncompleteResults + return *l.SyncEnabled } -// GetTotal returns the Total field if it's non-nil, zero value otherwise. -func (l *LabelsSearchResult) GetTotal() int { - if l == nil || l.Total == nil { +// GetTeamSyncInterval returns the TeamSyncInterval field if it's non-nil, zero value otherwise. +func (l *LDAP) GetTeamSyncInterval() int { + if l == nil || l.TeamSyncInterval == nil { return 0 } - return *l.Total + return *l.TeamSyncInterval } -// GetOID returns the OID field if it's non-nil, zero value otherwise. -func (l *LargeFile) GetOID() string { - if l == nil || l.OID == nil { +// GetUID returns the UID field if it's non-nil, zero value otherwise. +func (l *LDAP) GetUID() string { + if l == nil || l.UID == nil { return "" } - return *l.OID + return *l.UID } -// GetPath returns the Path field if it's non-nil, zero value otherwise. -func (l *LargeFile) GetPath() string { - if l == nil || l.Path == nil { - return "" +// GetUserSyncEmails returns the UserSyncEmails field if it's non-nil, zero value otherwise. +func (l *LDAP) GetUserSyncEmails() bool { + if l == nil || l.UserSyncEmails == nil { + return false } - return *l.Path + return *l.UserSyncEmails } -// GetRefName returns the RefName field if it's non-nil, zero value otherwise. -func (l *LargeFile) GetRefName() string { - if l == nil || l.RefName == nil { - return "" +// GetUserSyncInterval returns the UserSyncInterval field if it's non-nil, zero value otherwise. +func (l *LDAP) GetUserSyncInterval() int { + if l == nil || l.UserSyncInterval == nil { + return 0 } - return *l.RefName + return *l.UserSyncInterval } -// GetSize returns the Size field if it's non-nil, zero value otherwise. -func (l *LargeFile) GetSize() int { - if l == nil || l.Size == nil { - return 0 +// GetUserSyncKeys returns the UserSyncKeys field if it's non-nil, zero value otherwise. +func (l *LDAP) GetUserSyncKeys() bool { + if l == nil || l.UserSyncKeys == nil { + return false } - return *l.Size + return *l.UserSyncKeys +} + +// GetVirtualAttributeEnabled returns the VirtualAttributeEnabled field if it's non-nil, zero value otherwise. +func (l *LDAP) GetVirtualAttributeEnabled() bool { + if l == nil || l.VirtualAttributeEnabled == nil { + return false + } + return *l.VirtualAttributeEnabled } // GetBody returns the Body field if it's non-nil, zero value otherwise. @@ -11638,6 +12422,222 @@ func (l *License) GetURL() string { return *l.URL } +// GetStatus returns the Status field if it's non-nil, zero value otherwise. +func (l *LicenseCheck) GetStatus() string { + if l == nil || l.Status == nil { + return "" + } + return *l.Status +} + +// GetClusterSupport returns the ClusterSupport field if it's non-nil, zero value otherwise. +func (l *LicenseSettings) GetClusterSupport() bool { + if l == nil || l.ClusterSupport == nil { + return false + } + return *l.ClusterSupport +} + +// GetEvaluation returns the Evaluation field if it's non-nil, zero value otherwise. +func (l *LicenseSettings) GetEvaluation() bool { + if l == nil || l.Evaluation == nil { + return false + } + return *l.Evaluation +} + +// GetExpireAt returns the ExpireAt field if it's non-nil, zero value otherwise. +func (l *LicenseSettings) GetExpireAt() Timestamp { + if l == nil || l.ExpireAt == nil { + return Timestamp{} + } + return *l.ExpireAt +} + +// GetPerpetual returns the Perpetual field if it's non-nil, zero value otherwise. +func (l *LicenseSettings) GetPerpetual() bool { + if l == nil || l.Perpetual == nil { + return false + } + return *l.Perpetual +} + +// GetSeats returns the Seats field if it's non-nil, zero value otherwise. +func (l *LicenseSettings) GetSeats() int { + if l == nil || l.Seats == nil { + return 0 + } + return *l.Seats +} + +// GetSSHAllowed returns the SSHAllowed field if it's non-nil, zero value otherwise. +func (l *LicenseSettings) GetSSHAllowed() bool { + if l == nil || l.SSHAllowed == nil { + return false + } + return *l.SSHAllowed +} + +// GetSupportKey returns the SupportKey field if it's non-nil, zero value otherwise. +func (l *LicenseSettings) GetSupportKey() string { + if l == nil || l.SupportKey == nil { + return "" + } + return *l.SupportKey +} + +// GetUnlimitedSeating returns the UnlimitedSeating field if it's non-nil, zero value otherwise. +func (l *LicenseSettings) GetUnlimitedSeating() bool { + if l == nil || l.UnlimitedSeating == nil { + return false + } + return *l.UnlimitedSeating +} + +// GetAdvancedSecurityEnabled returns the AdvancedSecurityEnabled field if it's non-nil, zero value otherwise. +func (l *LicenseStatus) GetAdvancedSecurityEnabled() bool { + if l == nil || l.AdvancedSecurityEnabled == nil { + return false + } + return *l.AdvancedSecurityEnabled +} + +// GetAdvancedSecuritySeats returns the AdvancedSecuritySeats field if it's non-nil, zero value otherwise. +func (l *LicenseStatus) GetAdvancedSecuritySeats() int { + if l == nil || l.AdvancedSecuritySeats == nil { + return 0 + } + return *l.AdvancedSecuritySeats +} + +// GetClusterSupport returns the ClusterSupport field if it's non-nil, zero value otherwise. +func (l *LicenseStatus) GetClusterSupport() bool { + if l == nil || l.ClusterSupport == nil { + return false + } + return *l.ClusterSupport +} + +// GetCompany returns the Company field if it's non-nil, zero value otherwise. +func (l *LicenseStatus) GetCompany() string { + if l == nil || l.Company == nil { + return "" + } + return *l.Company +} + +// GetCroquetSupport returns the CroquetSupport field if it's non-nil, zero value otherwise. +func (l *LicenseStatus) GetCroquetSupport() bool { + if l == nil || l.CroquetSupport == nil { + return false + } + return *l.CroquetSupport +} + +// GetCustomTerms returns the CustomTerms field if it's non-nil, zero value otherwise. +func (l *LicenseStatus) GetCustomTerms() bool { + if l == nil || l.CustomTerms == nil { + return false + } + return *l.CustomTerms +} + +// GetEvaluation returns the Evaluation field if it's non-nil, zero value otherwise. +func (l *LicenseStatus) GetEvaluation() bool { + if l == nil || l.Evaluation == nil { + return false + } + return *l.Evaluation +} + +// GetExpireAt returns the ExpireAt field if it's non-nil, zero value otherwise. +func (l *LicenseStatus) GetExpireAt() Timestamp { + if l == nil || l.ExpireAt == nil { + return Timestamp{} + } + return *l.ExpireAt +} + +// GetInsightsEnabled returns the InsightsEnabled field if it's non-nil, zero value otherwise. +func (l *LicenseStatus) GetInsightsEnabled() bool { + if l == nil || l.InsightsEnabled == nil { + return false + } + return *l.InsightsEnabled +} + +// GetInsightsExpireAt returns the InsightsExpireAt field if it's non-nil, zero value otherwise. +func (l *LicenseStatus) GetInsightsExpireAt() Timestamp { + if l == nil || l.InsightsExpireAt == nil { + return Timestamp{} + } + return *l.InsightsExpireAt +} + +// GetLearningLabEvaluationExpires returns the LearningLabEvaluationExpires field if it's non-nil, zero value otherwise. +func (l *LicenseStatus) GetLearningLabEvaluationExpires() Timestamp { + if l == nil || l.LearningLabEvaluationExpires == nil { + return Timestamp{} + } + return *l.LearningLabEvaluationExpires +} + +// GetLearningLabSeats returns the LearningLabSeats field if it's non-nil, zero value otherwise. +func (l *LicenseStatus) GetLearningLabSeats() int { + if l == nil || l.LearningLabSeats == nil { + return 0 + } + return *l.LearningLabSeats +} + +// GetPerpetual returns the Perpetual field if it's non-nil, zero value otherwise. +func (l *LicenseStatus) GetPerpetual() bool { + if l == nil || l.Perpetual == nil { + return false + } + return *l.Perpetual +} + +// GetReferenceNumber returns the ReferenceNumber field if it's non-nil, zero value otherwise. +func (l *LicenseStatus) GetReferenceNumber() string { + if l == nil || l.ReferenceNumber == nil { + return "" + } + return *l.ReferenceNumber +} + +// GetSeats returns the Seats field if it's non-nil, zero value otherwise. +func (l *LicenseStatus) GetSeats() int { + if l == nil || l.Seats == nil { + return 0 + } + return *l.Seats +} + +// GetSSHAllowed returns the SSHAllowed field if it's non-nil, zero value otherwise. +func (l *LicenseStatus) GetSSHAllowed() bool { + if l == nil || l.SSHAllowed == nil { + return false + } + return *l.SSHAllowed +} + +// GetSupportKey returns the SupportKey field if it's non-nil, zero value otherwise. +func (l *LicenseStatus) GetSupportKey() string { + if l == nil || l.SupportKey == nil { + return "" + } + return *l.SupportKey +} + +// GetUnlimitedSeating returns the UnlimitedSeating field if it's non-nil, zero value otherwise. +func (l *LicenseStatus) GetUnlimitedSeating() bool { + if l == nil || l.UnlimitedSeating == nil { + return false + } + return *l.UnlimitedSeating +} + // GetFrom returns the From field if it's non-nil, zero value otherwise. func (l *LinearHistoryRequirementEnforcementLevelChanges) GetFrom() string { if l == nil || l.From == nil { @@ -11963,23 +12963,159 @@ func (l *Location) GetStartColumn() int { if l == nil || l.StartColumn == nil { return 0 } - return *l.StartColumn + return *l.StartColumn +} + +// GetStartLine returns the StartLine field if it's non-nil, zero value otherwise. +func (l *Location) GetStartLine() int { + if l == nil || l.StartLine == nil { + return 0 + } + return *l.StartLine +} + +// GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. +func (l *LockBranch) GetEnabled() bool { + if l == nil || l.Enabled == nil { + return false + } + return *l.Enabled +} + +// GetHostname returns the Hostname field if it's non-nil, zero value otherwise. +func (m *MaintenanceOperationStatus) GetHostname() string { + if m == nil || m.Hostname == nil { + return "" + } + return *m.Hostname +} + +// GetMessage returns the Message field if it's non-nil, zero value otherwise. +func (m *MaintenanceOperationStatus) GetMessage() string { + if m == nil || m.Message == nil { + return "" + } + return *m.Message +} + +// GetUUID returns the UUID field if it's non-nil, zero value otherwise. +func (m *MaintenanceOperationStatus) GetUUID() string { + if m == nil || m.UUID == nil { + return "" + } + return *m.UUID +} + +// GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. +func (m *MaintenanceOptions) GetEnabled() bool { + if m == nil || m.Enabled == nil { + return false + } + return *m.Enabled +} + +// GetMaintenanceModeMessage returns the MaintenanceModeMessage field if it's non-nil, zero value otherwise. +func (m *MaintenanceOptions) GetMaintenanceModeMessage() string { + if m == nil || m.MaintenanceModeMessage == nil { + return "" + } + return *m.MaintenanceModeMessage +} + +// GetUUID returns the UUID field if it's non-nil, zero value otherwise. +func (m *MaintenanceOptions) GetUUID() string { + if m == nil || m.UUID == nil { + return "" + } + return *m.UUID +} + +// GetWhen returns the When field if it's non-nil, zero value otherwise. +func (m *MaintenanceOptions) GetWhen() string { + if m == nil || m.When == nil { + return "" + } + return *m.When +} + +// GetCanUnsetMaintenance returns the CanUnsetMaintenance field if it's non-nil, zero value otherwise. +func (m *MaintenanceStatus) GetCanUnsetMaintenance() bool { + if m == nil || m.CanUnsetMaintenance == nil { + return false + } + return *m.CanUnsetMaintenance +} + +// GetHostname returns the Hostname field if it's non-nil, zero value otherwise. +func (m *MaintenanceStatus) GetHostname() string { + if m == nil || m.Hostname == nil { + return "" + } + return *m.Hostname +} + +// GetMaintenanceModeMessage returns the MaintenanceModeMessage field if it's non-nil, zero value otherwise. +func (m *MaintenanceStatus) GetMaintenanceModeMessage() string { + if m == nil || m.MaintenanceModeMessage == nil { + return "" + } + return *m.MaintenanceModeMessage +} + +// GetScheduledTime returns the ScheduledTime field if it's non-nil, zero value otherwise. +func (m *MaintenanceStatus) GetScheduledTime() Timestamp { + if m == nil || m.ScheduledTime == nil { + return Timestamp{} + } + return *m.ScheduledTime +} + +// GetStatus returns the Status field if it's non-nil, zero value otherwise. +func (m *MaintenanceStatus) GetStatus() string { + if m == nil || m.Status == nil { + return "" + } + return *m.Status +} + +// GetUUID returns the UUID field if it's non-nil, zero value otherwise. +func (m *MaintenanceStatus) GetUUID() string { + if m == nil || m.UUID == nil { + return "" + } + return *m.UUID } -// GetStartLine returns the StartLine field if it's non-nil, zero value otherwise. -func (l *Location) GetStartLine() int { - if l == nil || l.StartLine == nil { - return 0 +// GetBasemap returns the Basemap field if it's non-nil, zero value otherwise. +func (m *Mapping) GetBasemap() string { + if m == nil || m.Basemap == nil { + return "" } - return *l.StartLine + return *m.Basemap } // GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. -func (l *LockBranch) GetEnabled() bool { - if l == nil || l.Enabled == nil { +func (m *Mapping) GetEnabled() bool { + if m == nil || m.Enabled == nil { return false } - return *l.Enabled + return *m.Enabled +} + +// GetTileserver returns the Tileserver field if it's non-nil, zero value otherwise. +func (m *Mapping) GetTileserver() string { + if m == nil || m.Tileserver == nil { + return "" + } + return *m.Tileserver +} + +// GetToken returns the Token field if it's non-nil, zero value otherwise. +func (m *Mapping) GetToken() string { + if m == nil || m.Token == nil { + return "" + } + return *m.Token } // GetEffectiveDate returns the EffectiveDate field if it's non-nil, zero value otherwise. @@ -13222,6 +14358,46 @@ func (n *NewTeam) GetPrivacy() string { return *n.Privacy } +// GetHostname returns the Hostname field if it's non-nil, zero value otherwise. +func (n *NodeDetails) GetHostname() string { + if n == nil || n.Hostname == nil { + return "" + } + return *n.Hostname +} + +// GetUUID returns the UUID field if it's non-nil, zero value otherwise. +func (n *NodeDetails) GetUUID() string { + if n == nil || n.UUID == nil { + return "" + } + return *n.UUID +} + +// GetTopology returns the Topology field if it's non-nil, zero value otherwise. +func (n *NodeMetadataStatus) GetTopology() string { + if n == nil || n.Topology == nil { + return "" + } + return *n.Topology +} + +// GetHostname returns the Hostname field if it's non-nil, zero value otherwise. +func (n *NodeReleaseVersions) GetHostname() string { + if n == nil || n.Hostname == nil { + return "" + } + return *n.Hostname +} + +// GetVersion returns the Version field. +func (n *NodeReleaseVersions) GetVersion() *ReleaseVersions { + if n == nil { + return nil + } + return n.Version +} + // GetID returns the ID field if it's non-nil, zero value otherwise. func (n *Notification) GetID() string { if n == nil || n.ID == nil { @@ -13318,6 +14494,22 @@ func (n *NotificationSubject) GetURL() string { return *n.URL } +// GetPrimaryServer returns the PrimaryServer field if it's non-nil, zero value otherwise. +func (n *NTP) GetPrimaryServer() string { + if n == nil || n.PrimaryServer == nil { + return "" + } + return *n.PrimaryServer +} + +// GetSecondaryServer returns the SecondaryServer field if it's non-nil, zero value otherwise. +func (n *NTP) GetSecondaryServer() string { + if n == nil || n.SecondaryServer == nil { + return "" + } + return *n.SecondaryServer +} + // GetClientID returns the ClientID field if it's non-nil, zero value otherwise. func (o *OAuthAPP) GetClientID() string { if o == nil || o.ClientID == nil { @@ -15142,6 +16334,14 @@ func (p *PagesHTTPSCertificate) GetState() string { return *p.State } +// GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. +func (p *PagesSettings) GetEnabled() bool { + if p == nil || p.Enabled == nil { + return false + } + return *p.Enabled +} + // GetBranch returns the Branch field if it's non-nil, zero value otherwise. func (p *PagesSource) GetBranch() string { if p == nil || p.Branch == nil { @@ -15734,6 +16934,38 @@ func (p *PRLinks) GetStatuses() *PRLink { return p.Statuses } +// GetKey returns the Key field if it's non-nil, zero value otherwise. +func (p *Profile) GetKey() string { + if p == nil || p.Key == nil { + return "" + } + return *p.Key +} + +// GetMail returns the Mail field if it's non-nil, zero value otherwise. +func (p *Profile) GetMail() string { + if p == nil || p.Mail == nil { + return "" + } + return *p.Mail +} + +// GetName returns the Name field if it's non-nil, zero value otherwise. +func (p *Profile) GetName() string { + if p == nil || p.Name == nil { + return "" + } + return *p.Name +} + +// GetUID returns the UID field if it's non-nil, zero value otherwise. +func (p *Profile) GetUID() string { + if p == nil || p.UID == nil { + return "" + } + return *p.UID +} + // GetFrom returns the From field if it's non-nil, zero value otherwise. func (p *ProjectBody) GetFrom() string { if p == nil || p.From == nil { @@ -18622,6 +19854,22 @@ func (r *Reactions) GetURL() string { return *r.URL } +// GetOrg returns the Org field if it's non-nil, zero value otherwise. +func (r *Reconciliation) GetOrg() string { + if r == nil || r.Org == nil { + return "" + } + return *r.Org +} + +// GetUser returns the User field if it's non-nil, zero value otherwise. +func (r *Reconciliation) GetUser() string { + if r == nil || r.User == nil { + return "" + } + return *r.User +} + // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. func (r *Reference) GetNodeID() string { if r == nil || r.NodeID == nil { @@ -18846,6 +20094,38 @@ func (r *ReleaseEvent) GetSender() *User { return r.Sender } +// GetBuildDate returns the BuildDate field if it's non-nil, zero value otherwise. +func (r *ReleaseVersions) GetBuildDate() string { + if r == nil || r.BuildDate == nil { + return "" + } + return *r.BuildDate +} + +// GetBuildID returns the BuildID field if it's non-nil, zero value otherwise. +func (r *ReleaseVersions) GetBuildID() string { + if r == nil || r.BuildID == nil { + return "" + } + return *r.BuildID +} + +// GetPlatform returns the Platform field if it's non-nil, zero value otherwise. +func (r *ReleaseVersions) GetPlatform() string { + if r == nil || r.Platform == nil { + return "" + } + return *r.Platform +} + +// GetVersion returns the Version field if it's non-nil, zero value otherwise. +func (r *ReleaseVersions) GetVersion() string { + if r == nil || r.Version == nil { + return "" + } + return *r.Version +} + // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. func (r *RemoveToken) GetExpiresAt() Timestamp { if r == nil || r.ExpiresAt == nil { @@ -22246,6 +23526,54 @@ func (r *RunnerLabels) GetType() string { return *r.Type } +// GetCertificate returns the Certificate field if it's non-nil, zero value otherwise. +func (s *SAML) GetCertificate() string { + if s == nil || s.Certificate == nil { + return "" + } + return *s.Certificate +} + +// GetCertificatePath returns the CertificatePath field if it's non-nil, zero value otherwise. +func (s *SAML) GetCertificatePath() string { + if s == nil || s.CertificatePath == nil { + return "" + } + return *s.CertificatePath +} + +// GetDisableAdminDemote returns the DisableAdminDemote field if it's non-nil, zero value otherwise. +func (s *SAML) GetDisableAdminDemote() bool { + if s == nil || s.DisableAdminDemote == nil { + return false + } + return *s.DisableAdminDemote +} + +// GetIDPInitiatedSSO returns the IDPInitiatedSSO field if it's non-nil, zero value otherwise. +func (s *SAML) GetIDPInitiatedSSO() bool { + if s == nil || s.IDPInitiatedSSO == nil { + return false + } + return *s.IDPInitiatedSSO +} + +// GetIssuer returns the Issuer field if it's non-nil, zero value otherwise. +func (s *SAML) GetIssuer() string { + if s == nil || s.Issuer == nil { + return "" + } + return *s.Issuer +} + +// GetSSOURL returns the SSOURL field if it's non-nil, zero value otherwise. +func (s *SAML) GetSSOURL() string { + if s == nil || s.SSOURL == nil { + return "" + } + return *s.SSOURL +} + // GetCheckoutURI returns the CheckoutURI field if it's non-nil, zero value otherwise. func (s *SarifAnalysis) GetCheckoutURI() string { if s == nil || s.CheckoutURI == nil { @@ -23390,6 +24718,126 @@ func (s *SignatureVerification) GetVerified() bool { return *s.Verified } +// GetAddress returns the Address field if it's non-nil, zero value otherwise. +func (s *SMTP) GetAddress() string { + if s == nil || s.Address == nil { + return "" + } + return *s.Address +} + +// GetAuthentication returns the Authentication field if it's non-nil, zero value otherwise. +func (s *SMTP) GetAuthentication() string { + if s == nil || s.Authentication == nil { + return "" + } + return *s.Authentication +} + +// GetDiscardToNoreplyAddress returns the DiscardToNoreplyAddress field if it's non-nil, zero value otherwise. +func (s *SMTP) GetDiscardToNoreplyAddress() bool { + if s == nil || s.DiscardToNoreplyAddress == nil { + return false + } + return *s.DiscardToNoreplyAddress +} + +// GetDomain returns the Domain field if it's non-nil, zero value otherwise. +func (s *SMTP) GetDomain() string { + if s == nil || s.Domain == nil { + return "" + } + return *s.Domain +} + +// GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. +func (s *SMTP) GetEnabled() bool { + if s == nil || s.Enabled == nil { + return false + } + return *s.Enabled +} + +// GetEnableStarttlsAuto returns the EnableStarttlsAuto field if it's non-nil, zero value otherwise. +func (s *SMTP) GetEnableStarttlsAuto() bool { + if s == nil || s.EnableStarttlsAuto == nil { + return false + } + return *s.EnableStarttlsAuto +} + +// GetNoreplyAddress returns the NoreplyAddress field if it's non-nil, zero value otherwise. +func (s *SMTP) GetNoreplyAddress() string { + if s == nil || s.NoreplyAddress == nil { + return "" + } + return *s.NoreplyAddress +} + +// GetPassword returns the Password field if it's non-nil, zero value otherwise. +func (s *SMTP) GetPassword() string { + if s == nil || s.Password == nil { + return "" + } + return *s.Password +} + +// GetPort returns the Port field if it's non-nil, zero value otherwise. +func (s *SMTP) GetPort() string { + if s == nil || s.Port == nil { + return "" + } + return *s.Port +} + +// GetSupportAddress returns the SupportAddress field if it's non-nil, zero value otherwise. +func (s *SMTP) GetSupportAddress() string { + if s == nil || s.SupportAddress == nil { + return "" + } + return *s.SupportAddress +} + +// GetSupportAddressType returns the SupportAddressType field if it's non-nil, zero value otherwise. +func (s *SMTP) GetSupportAddressType() string { + if s == nil || s.SupportAddressType == nil { + return "" + } + return *s.SupportAddressType +} + +// GetUsername returns the Username field if it's non-nil, zero value otherwise. +func (s *SMTP) GetUsername() string { + if s == nil || s.Username == nil { + return "" + } + return *s.Username +} + +// GetUserName returns the UserName field if it's non-nil, zero value otherwise. +func (s *SMTP) GetUserName() string { + if s == nil || s.UserName == nil { + return "" + } + return *s.UserName +} + +// GetCommunity returns the Community field if it's non-nil, zero value otherwise. +func (s *SNMP) GetCommunity() string { + if s == nil || s.Community == nil { + return "" + } + return *s.Community +} + +// GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. +func (s *SNMP) GetEnabled() bool { + if s == nil || s.Enabled == nil { + return false + } + return *s.Enabled +} + // GetActor returns the Actor field. func (s *Source) GetActor() *User { if s == nil { @@ -23566,6 +25014,38 @@ func (s *SponsorshipTier) GetFrom() string { return *s.From } +// GetHostname returns the Hostname field if it's non-nil, zero value otherwise. +func (s *SSHKeyStatus) GetHostname() string { + if s == nil || s.Hostname == nil { + return "" + } + return *s.Hostname +} + +// GetMessage returns the Message field if it's non-nil, zero value otherwise. +func (s *SSHKeyStatus) GetMessage() string { + if s == nil || s.Message == nil { + return "" + } + return *s.Message +} + +// GetModified returns the Modified field if it's non-nil, zero value otherwise. +func (s *SSHKeyStatus) GetModified() bool { + if s == nil || s.Modified == nil { + return false + } + return *s.Modified +} + +// GetUUID returns the UUID field if it's non-nil, zero value otherwise. +func (s *SSHKeyStatus) GetUUID() string { + if s == nil || s.UUID == nil { + return "" + } + return *s.UUID +} + // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. func (s *SSHSigningKey) GetCreatedAt() Timestamp { if s == nil || s.CreatedAt == nil { @@ -23846,6 +25326,70 @@ func (s *Subscription) GetURL() string { return *s.URL } +// GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. +func (s *Syslog) GetEnabled() bool { + if s == nil || s.Enabled == nil { + return false + } + return *s.Enabled +} + +// GetProtocolName returns the ProtocolName field if it's non-nil, zero value otherwise. +func (s *Syslog) GetProtocolName() string { + if s == nil || s.ProtocolName == nil { + return "" + } + return *s.ProtocolName +} + +// GetServer returns the Server field if it's non-nil, zero value otherwise. +func (s *Syslog) GetServer() string { + if s == nil || s.Server == nil { + return "" + } + return *s.Server +} + +// GetStatus returns the Status field if it's non-nil, zero value otherwise. +func (s *SystemRequirements) GetStatus() string { + if s == nil || s.Status == nil { + return "" + } + return *s.Status +} + +// GetHostname returns the Hostname field if it's non-nil, zero value otherwise. +func (s *SystemRequirementsNodes) GetHostname() string { + if s == nil || s.Hostname == nil { + return "" + } + return *s.Hostname +} + +// GetStatus returns the Status field if it's non-nil, zero value otherwise. +func (s *SystemRequirementsNodes) GetStatus() string { + if s == nil || s.Status == nil { + return "" + } + return *s.Status +} + +// GetRole returns the Role field if it's non-nil, zero value otherwise. +func (s *SystemRequirementsNodesRolesStatus) GetRole() string { + if s == nil || s.Role == nil { + return "" + } + return *s.Role +} + +// GetStatus returns the Status field if it's non-nil, zero value otherwise. +func (s *SystemRequirementsNodesRolesStatus) GetStatus() string { + if s == nil || s.Status == nil { + return "" + } + return *s.Status +} + // GetMessage returns the Message field if it's non-nil, zero value otherwise. func (t *Tag) GetMessage() string { if t == nil || t.Message == nil { diff --git a/github/github-accessors_test.go b/github/github-accessors_test.go index dca95aba16e..89729cd59b1 100644 --- a/github/github-accessors_test.go +++ b/github/github-accessors_test.go @@ -1985,6 +1985,28 @@ func TestAutoTriggerCheck_GetSetting(tt *testing.T) { a.GetSetting() } +func TestAvatar_GetEnabled(tt *testing.T) { + tt.Parallel() + var zeroValue bool + a := &Avatar{Enabled: &zeroValue} + a.GetEnabled() + a = &Avatar{} + a.GetEnabled() + a = nil + a.GetEnabled() +} + +func TestAvatar_GetURI(tt *testing.T) { + tt.Parallel() + var zeroValue string + a := &Avatar{URI: &zeroValue} + a.GetURI() + a = &Avatar{} + a.GetURI() + a = nil + a.GetURI() +} + func TestBlob_GetContent(tt *testing.T) { tt.Parallel() var zeroValue string @@ -2548,6 +2570,17 @@ func TestBypassActor_GetBypassMode(tt *testing.T) { b.GetBypassMode() } +func TestCAS_GetURL(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &CAS{URL: &zeroValue} + c.GetURL() + c = &CAS{} + c.GetURL() + c = nil + c.GetURL() +} + func TestCheckRun_GetApp(tt *testing.T) { tt.Parallel() c := &CheckRun{} @@ -3195,6 +3228,94 @@ func TestCheckSuitePreferenceResults_GetRepository(tt *testing.T) { c.GetRepository() } +func TestClusterSSHKeys_GetFingerprint(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ClusterSSHKeys{Fingerprint: &zeroValue} + c.GetFingerprint() + c = &ClusterSSHKeys{} + c.GetFingerprint() + c = nil + c.GetFingerprint() +} + +func TestClusterSSHKeys_GetKey(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ClusterSSHKeys{Key: &zeroValue} + c.GetKey() + c = &ClusterSSHKeys{} + c.GetKey() + c = nil + c.GetKey() +} + +func TestClusterStatus_GetStatus(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ClusterStatus{Status: &zeroValue} + c.GetStatus() + c = &ClusterStatus{} + c.GetStatus() + c = nil + c.GetStatus() +} + +func TestClusterStatusNodes_GetHostname(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ClusterStatusNodes{Hostname: &zeroValue} + c.GetHostname() + c = &ClusterStatusNodes{} + c.GetHostname() + c = nil + c.GetHostname() +} + +func TestClusterStatusNodes_GetStatus(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ClusterStatusNodes{Status: &zeroValue} + c.GetStatus() + c = &ClusterStatusNodes{} + c.GetStatus() + c = nil + c.GetStatus() +} + +func TestClusterStatusNodesServices_GetDetails(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ClusterStatusNodesServices{Details: &zeroValue} + c.GetDetails() + c = &ClusterStatusNodesServices{} + c.GetDetails() + c = nil + c.GetDetails() +} + +func TestClusterStatusNodesServices_GetName(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ClusterStatusNodesServices{Name: &zeroValue} + c.GetName() + c = &ClusterStatusNodesServices{} + c.GetName() + c = nil + c.GetName() +} + +func TestClusterStatusNodesServices_GetStatus(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ClusterStatusNodesServices{Status: &zeroValue} + c.GetStatus() + c = &ClusterStatusNodesServices{} + c.GetStatus() + c = nil + c.GetStatus() +} + func TestCodeOfConduct_GetBody(tt *testing.T) { tt.Parallel() var zeroValue string @@ -4285,6 +4406,72 @@ func TestCollaboratorInvitation_GetURL(tt *testing.T) { c.GetURL() } +func TestCollectd_GetEnabled(tt *testing.T) { + tt.Parallel() + var zeroValue bool + c := &Collectd{Enabled: &zeroValue} + c.GetEnabled() + c = &Collectd{} + c.GetEnabled() + c = nil + c.GetEnabled() +} + +func TestCollectd_GetEncryption(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &Collectd{Encryption: &zeroValue} + c.GetEncryption() + c = &Collectd{} + c.GetEncryption() + c = nil + c.GetEncryption() +} + +func TestCollectd_GetPassword(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &Collectd{Password: &zeroValue} + c.GetPassword() + c = &Collectd{} + c.GetPassword() + c = nil + c.GetPassword() +} + +func TestCollectd_GetPort(tt *testing.T) { + tt.Parallel() + var zeroValue int + c := &Collectd{Port: &zeroValue} + c.GetPort() + c = &Collectd{} + c.GetPort() + c = nil + c.GetPort() +} + +func TestCollectd_GetServer(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &Collectd{Server: &zeroValue} + c.GetServer() + c = &Collectd{} + c.GetServer() + c = nil + c.GetServer() +} + +func TestCollectd_GetUsername(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &Collectd{Username: &zeroValue} + c.GetUsername() + c = &Collectd{} + c.GetUsername() + c = nil + c.GetUsername() +} + func TestCombinedStatus_GetCommitURL(tt *testing.T) { tt.Parallel() var zeroValue string @@ -5230,9800 +5417,10937 @@ func TestCommunityHealthMetrics_GetUpdatedAt(tt *testing.T) { c.GetUpdatedAt() } -func TestContentReference_GetID(tt *testing.T) { +func TestConfigApplyEventsNodeEvents_GetBody(tt *testing.T) { tt.Parallel() - var zeroValue int64 - c := &ContentReference{ID: &zeroValue} - c.GetID() - c = &ContentReference{} - c.GetID() + var zeroValue string + c := &ConfigApplyEventsNodeEvents{Body: &zeroValue} + c.GetBody() + c = &ConfigApplyEventsNodeEvents{} + c.GetBody() c = nil - c.GetID() + c.GetBody() } -func TestContentReference_GetNodeID(tt *testing.T) { +func TestConfigApplyEventsNodeEvents_GetConfigRunID(tt *testing.T) { tt.Parallel() var zeroValue string - c := &ContentReference{NodeID: &zeroValue} - c.GetNodeID() - c = &ContentReference{} - c.GetNodeID() + c := &ConfigApplyEventsNodeEvents{ConfigRunID: &zeroValue} + c.GetConfigRunID() + c = &ConfigApplyEventsNodeEvents{} + c.GetConfigRunID() c = nil - c.GetNodeID() + c.GetConfigRunID() } -func TestContentReference_GetReference(tt *testing.T) { +func TestConfigApplyEventsNodeEvents_GetEventName(tt *testing.T) { tt.Parallel() var zeroValue string - c := &ContentReference{Reference: &zeroValue} - c.GetReference() - c = &ContentReference{} - c.GetReference() + c := &ConfigApplyEventsNodeEvents{EventName: &zeroValue} + c.GetEventName() + c = &ConfigApplyEventsNodeEvents{} + c.GetEventName() c = nil - c.GetReference() + c.GetEventName() } -func TestContentReferenceEvent_GetAction(tt *testing.T) { +func TestConfigApplyEventsNodeEvents_GetHostname(tt *testing.T) { tt.Parallel() var zeroValue string - c := &ContentReferenceEvent{Action: &zeroValue} - c.GetAction() - c = &ContentReferenceEvent{} - c.GetAction() + c := &ConfigApplyEventsNodeEvents{Hostname: &zeroValue} + c.GetHostname() + c = &ConfigApplyEventsNodeEvents{} + c.GetHostname() c = nil - c.GetAction() + c.GetHostname() } -func TestContentReferenceEvent_GetContentReference(tt *testing.T) { +func TestConfigApplyEventsNodeEvents_GetSeverityText(tt *testing.T) { tt.Parallel() - c := &ContentReferenceEvent{} - c.GetContentReference() + var zeroValue string + c := &ConfigApplyEventsNodeEvents{SeverityText: &zeroValue} + c.GetSeverityText() + c = &ConfigApplyEventsNodeEvents{} + c.GetSeverityText() c = nil - c.GetContentReference() + c.GetSeverityText() } -func TestContentReferenceEvent_GetInstallation(tt *testing.T) { +func TestConfigApplyEventsNodeEvents_GetSpanDepth(tt *testing.T) { tt.Parallel() - c := &ContentReferenceEvent{} - c.GetInstallation() + var zeroValue int + c := &ConfigApplyEventsNodeEvents{SpanDepth: &zeroValue} + c.GetSpanDepth() + c = &ConfigApplyEventsNodeEvents{} + c.GetSpanDepth() c = nil - c.GetInstallation() + c.GetSpanDepth() } -func TestContentReferenceEvent_GetRepo(tt *testing.T) { +func TestConfigApplyEventsNodeEvents_GetSpanID(tt *testing.T) { tt.Parallel() - c := &ContentReferenceEvent{} - c.GetRepo() + var zeroValue string + c := &ConfigApplyEventsNodeEvents{SpanID: &zeroValue} + c.GetSpanID() + c = &ConfigApplyEventsNodeEvents{} + c.GetSpanID() c = nil - c.GetRepo() + c.GetSpanID() } -func TestContentReferenceEvent_GetSender(tt *testing.T) { +func TestConfigApplyEventsNodeEvents_GetSpanParentID(tt *testing.T) { tt.Parallel() - c := &ContentReferenceEvent{} - c.GetSender() + var zeroValue int + c := &ConfigApplyEventsNodeEvents{SpanParentID: &zeroValue} + c.GetSpanParentID() + c = &ConfigApplyEventsNodeEvents{} + c.GetSpanParentID() c = nil - c.GetSender() + c.GetSpanParentID() } -func TestContributor_GetAvatarURL(tt *testing.T) { +func TestConfigApplyEventsNodeEvents_GetTimestamp(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &Contributor{AvatarURL: &zeroValue} - c.GetAvatarURL() - c = &Contributor{} - c.GetAvatarURL() + var zeroValue Timestamp + c := &ConfigApplyEventsNodeEvents{Timestamp: &zeroValue} + c.GetTimestamp() + c = &ConfigApplyEventsNodeEvents{} + c.GetTimestamp() c = nil - c.GetAvatarURL() + c.GetTimestamp() } -func TestContributor_GetContributions(tt *testing.T) { +func TestConfigApplyEventsNodeEvents_GetTopology(tt *testing.T) { tt.Parallel() - var zeroValue int - c := &Contributor{Contributions: &zeroValue} - c.GetContributions() - c = &Contributor{} - c.GetContributions() + var zeroValue string + c := &ConfigApplyEventsNodeEvents{Topology: &zeroValue} + c.GetTopology() + c = &ConfigApplyEventsNodeEvents{} + c.GetTopology() c = nil - c.GetContributions() + c.GetTopology() } -func TestContributor_GetEmail(tt *testing.T) { +func TestConfigApplyEventsNodeEvents_GetTraceID(tt *testing.T) { tt.Parallel() var zeroValue string - c := &Contributor{Email: &zeroValue} - c.GetEmail() - c = &Contributor{} - c.GetEmail() + c := &ConfigApplyEventsNodeEvents{TraceID: &zeroValue} + c.GetTraceID() + c = &ConfigApplyEventsNodeEvents{} + c.GetTraceID() c = nil - c.GetEmail() + c.GetTraceID() } -func TestContributor_GetEventsURL(tt *testing.T) { +func TestConfigApplyEventsNodes_GetLastRequestID(tt *testing.T) { tt.Parallel() var zeroValue string - c := &Contributor{EventsURL: &zeroValue} - c.GetEventsURL() - c = &Contributor{} - c.GetEventsURL() + c := &ConfigApplyEventsNodes{LastRequestID: &zeroValue} + c.GetLastRequestID() + c = &ConfigApplyEventsNodes{} + c.GetLastRequestID() c = nil - c.GetEventsURL() + c.GetLastRequestID() } -func TestContributor_GetFollowersURL(tt *testing.T) { +func TestConfigApplyEventsNodes_GetNode(tt *testing.T) { tt.Parallel() var zeroValue string - c := &Contributor{FollowersURL: &zeroValue} - c.GetFollowersURL() - c = &Contributor{} - c.GetFollowersURL() + c := &ConfigApplyEventsNodes{Node: &zeroValue} + c.GetNode() + c = &ConfigApplyEventsNodes{} + c.GetNode() c = nil - c.GetFollowersURL() + c.GetNode() } -func TestContributor_GetFollowingURL(tt *testing.T) { +func TestConfigApplyStatus_GetRunning(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &Contributor{FollowingURL: &zeroValue} - c.GetFollowingURL() - c = &Contributor{} - c.GetFollowingURL() + var zeroValue bool + c := &ConfigApplyStatus{Running: &zeroValue} + c.GetRunning() + c = &ConfigApplyStatus{} + c.GetRunning() c = nil - c.GetFollowingURL() + c.GetRunning() } -func TestContributor_GetGistsURL(tt *testing.T) { +func TestConfigApplyStatus_GetSuccessful(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &Contributor{GistsURL: &zeroValue} - c.GetGistsURL() - c = &Contributor{} - c.GetGistsURL() + var zeroValue bool + c := &ConfigApplyStatus{Successful: &zeroValue} + c.GetSuccessful() + c = &ConfigApplyStatus{} + c.GetSuccessful() c = nil - c.GetGistsURL() + c.GetSuccessful() } -func TestContributor_GetGravatarID(tt *testing.T) { +func TestConfigApplyStatusNodes_GetHostname(tt *testing.T) { tt.Parallel() var zeroValue string - c := &Contributor{GravatarID: &zeroValue} - c.GetGravatarID() - c = &Contributor{} - c.GetGravatarID() + c := &ConfigApplyStatusNodes{Hostname: &zeroValue} + c.GetHostname() + c = &ConfigApplyStatusNodes{} + c.GetHostname() c = nil - c.GetGravatarID() + c.GetHostname() } -func TestContributor_GetHTMLURL(tt *testing.T) { +func TestConfigApplyStatusNodes_GetRunID(tt *testing.T) { tt.Parallel() var zeroValue string - c := &Contributor{HTMLURL: &zeroValue} - c.GetHTMLURL() - c = &Contributor{} - c.GetHTMLURL() + c := &ConfigApplyStatusNodes{RunID: &zeroValue} + c.GetRunID() + c = &ConfigApplyStatusNodes{} + c.GetRunID() c = nil - c.GetHTMLURL() + c.GetRunID() } -func TestContributor_GetID(tt *testing.T) { +func TestConfigApplyStatusNodes_GetRunning(tt *testing.T) { tt.Parallel() - var zeroValue int64 - c := &Contributor{ID: &zeroValue} - c.GetID() - c = &Contributor{} - c.GetID() + var zeroValue bool + c := &ConfigApplyStatusNodes{Running: &zeroValue} + c.GetRunning() + c = &ConfigApplyStatusNodes{} + c.GetRunning() c = nil - c.GetID() + c.GetRunning() } -func TestContributor_GetLogin(tt *testing.T) { +func TestConfigApplyStatusNodes_GetSuccessful(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &Contributor{Login: &zeroValue} - c.GetLogin() - c = &Contributor{} - c.GetLogin() + var zeroValue bool + c := &ConfigApplyStatusNodes{Successful: &zeroValue} + c.GetSuccessful() + c = &ConfigApplyStatusNodes{} + c.GetSuccessful() c = nil - c.GetLogin() + c.GetSuccessful() } -func TestContributor_GetName(tt *testing.T) { +func TestConfigSettings_GetAdminPassword(tt *testing.T) { tt.Parallel() var zeroValue string - c := &Contributor{Name: &zeroValue} - c.GetName() - c = &Contributor{} - c.GetName() + c := &ConfigSettings{AdminPassword: &zeroValue} + c.GetAdminPassword() + c = &ConfigSettings{} + c.GetAdminPassword() c = nil - c.GetName() + c.GetAdminPassword() } -func TestContributor_GetNodeID(tt *testing.T) { +func TestConfigSettings_GetAssets(tt *testing.T) { tt.Parallel() var zeroValue string - c := &Contributor{NodeID: &zeroValue} - c.GetNodeID() - c = &Contributor{} - c.GetNodeID() + c := &ConfigSettings{Assets: &zeroValue} + c.GetAssets() + c = &ConfigSettings{} + c.GetAssets() c = nil - c.GetNodeID() + c.GetAssets() } -func TestContributor_GetOrganizationsURL(tt *testing.T) { +func TestConfigSettings_GetAuthMode(tt *testing.T) { tt.Parallel() var zeroValue string - c := &Contributor{OrganizationsURL: &zeroValue} - c.GetOrganizationsURL() - c = &Contributor{} - c.GetOrganizationsURL() + c := &ConfigSettings{AuthMode: &zeroValue} + c.GetAuthMode() + c = &ConfigSettings{} + c.GetAuthMode() c = nil - c.GetOrganizationsURL() + c.GetAuthMode() } -func TestContributor_GetReceivedEventsURL(tt *testing.T) { +func TestConfigSettings_GetAvatar(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &Contributor{ReceivedEventsURL: &zeroValue} - c.GetReceivedEventsURL() - c = &Contributor{} - c.GetReceivedEventsURL() + c := &ConfigSettings{} + c.GetAvatar() c = nil - c.GetReceivedEventsURL() + c.GetAvatar() } -func TestContributor_GetReposURL(tt *testing.T) { +func TestConfigSettings_GetCAS(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &Contributor{ReposURL: &zeroValue} - c.GetReposURL() - c = &Contributor{} - c.GetReposURL() + c := &ConfigSettings{} + c.GetCAS() c = nil - c.GetReposURL() + c.GetCAS() } -func TestContributor_GetSiteAdmin(tt *testing.T) { +func TestConfigSettings_GetCollectd(tt *testing.T) { tt.Parallel() - var zeroValue bool - c := &Contributor{SiteAdmin: &zeroValue} - c.GetSiteAdmin() - c = &Contributor{} - c.GetSiteAdmin() + c := &ConfigSettings{} + c.GetCollectd() c = nil - c.GetSiteAdmin() + c.GetCollectd() } -func TestContributor_GetStarredURL(tt *testing.T) { +func TestConfigSettings_GetConfigurationID(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &Contributor{StarredURL: &zeroValue} - c.GetStarredURL() - c = &Contributor{} - c.GetStarredURL() + var zeroValue int + c := &ConfigSettings{ConfigurationID: &zeroValue} + c.GetConfigurationID() + c = &ConfigSettings{} + c.GetConfigurationID() c = nil - c.GetStarredURL() + c.GetConfigurationID() } -func TestContributor_GetSubscriptionsURL(tt *testing.T) { +func TestConfigSettings_GetConfigurationRunCount(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &Contributor{SubscriptionsURL: &zeroValue} - c.GetSubscriptionsURL() - c = &Contributor{} - c.GetSubscriptionsURL() + var zeroValue int + c := &ConfigSettings{ConfigurationRunCount: &zeroValue} + c.GetConfigurationRunCount() + c = &ConfigSettings{} + c.GetConfigurationRunCount() c = nil - c.GetSubscriptionsURL() + c.GetConfigurationRunCount() } -func TestContributor_GetType(tt *testing.T) { +func TestConfigSettings_GetCustomer(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &Contributor{Type: &zeroValue} - c.GetType() - c = &Contributor{} - c.GetType() + c := &ConfigSettings{} + c.GetCustomer() c = nil - c.GetType() + c.GetCustomer() } -func TestContributor_GetURL(tt *testing.T) { +func TestConfigSettings_GetExpireSessions(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &Contributor{URL: &zeroValue} - c.GetURL() - c = &Contributor{} - c.GetURL() + var zeroValue bool + c := &ConfigSettings{ExpireSessions: &zeroValue} + c.GetExpireSessions() + c = &ConfigSettings{} + c.GetExpireSessions() c = nil - c.GetURL() + c.GetExpireSessions() } -func TestContributorStats_GetAuthor(tt *testing.T) { +func TestConfigSettings_GetGitHubHostname(tt *testing.T) { tt.Parallel() - c := &ContributorStats{} - c.GetAuthor() + var zeroValue string + c := &ConfigSettings{GitHubHostname: &zeroValue} + c.GetGitHubHostname() + c = &ConfigSettings{} + c.GetGitHubHostname() c = nil - c.GetAuthor() + c.GetGitHubHostname() } -func TestContributorStats_GetTotal(tt *testing.T) { +func TestConfigSettings_GetGitHubOAuth(tt *testing.T) { tt.Parallel() - var zeroValue int - c := &ContributorStats{Total: &zeroValue} - c.GetTotal() - c = &ContributorStats{} - c.GetTotal() + c := &ConfigSettings{} + c.GetGitHubOAuth() c = nil - c.GetTotal() + c.GetGitHubOAuth() } -func TestCopilotDotcomChatModel_GetCustomModelTrainingDate(tt *testing.T) { +func TestConfigSettings_GetGitHubSSL(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &CopilotDotcomChatModel{CustomModelTrainingDate: &zeroValue} - c.GetCustomModelTrainingDate() - c = &CopilotDotcomChatModel{} - c.GetCustomModelTrainingDate() + c := &ConfigSettings{} + c.GetGitHubSSL() c = nil - c.GetCustomModelTrainingDate() + c.GetGitHubSSL() } -func TestCopilotDotcomPullRequestsModel_GetCustomModelTrainingDate(tt *testing.T) { +func TestConfigSettings_GetHTTPProxy(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CopilotDotcomPullRequestsModel{CustomModelTrainingDate: &zeroValue} - c.GetCustomModelTrainingDate() - c = &CopilotDotcomPullRequestsModel{} - c.GetCustomModelTrainingDate() + c := &ConfigSettings{HTTPProxy: &zeroValue} + c.GetHTTPProxy() + c = &ConfigSettings{} + c.GetHTTPProxy() c = nil - c.GetCustomModelTrainingDate() + c.GetHTTPProxy() } -func TestCopilotIDEChatModel_GetCustomModelTrainingDate(tt *testing.T) { +func TestConfigSettings_GetIdenticonsHost(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CopilotIDEChatModel{CustomModelTrainingDate: &zeroValue} - c.GetCustomModelTrainingDate() - c = &CopilotIDEChatModel{} - c.GetCustomModelTrainingDate() + c := &ConfigSettings{IdenticonsHost: &zeroValue} + c.GetIdenticonsHost() + c = &ConfigSettings{} + c.GetIdenticonsHost() c = nil - c.GetCustomModelTrainingDate() + c.GetIdenticonsHost() } -func TestCopilotIDECodeCompletionsModel_GetCustomModelTrainingDate(tt *testing.T) { +func TestConfigSettings_GetLDAP(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &CopilotIDECodeCompletionsModel{CustomModelTrainingDate: &zeroValue} - c.GetCustomModelTrainingDate() - c = &CopilotIDECodeCompletionsModel{} - c.GetCustomModelTrainingDate() + c := &ConfigSettings{} + c.GetLDAP() c = nil - c.GetCustomModelTrainingDate() + c.GetLDAP() } -func TestCopilotMetrics_GetCopilotDotcomChat(tt *testing.T) { +func TestConfigSettings_GetLicense(tt *testing.T) { tt.Parallel() - c := &CopilotMetrics{} - c.GetCopilotDotcomChat() + c := &ConfigSettings{} + c.GetLicense() c = nil - c.GetCopilotDotcomChat() + c.GetLicense() } -func TestCopilotMetrics_GetCopilotDotcomPullRequests(tt *testing.T) { +func TestConfigSettings_GetLoadBalancer(tt *testing.T) { tt.Parallel() - c := &CopilotMetrics{} - c.GetCopilotDotcomPullRequests() + var zeroValue string + c := &ConfigSettings{LoadBalancer: &zeroValue} + c.GetLoadBalancer() + c = &ConfigSettings{} + c.GetLoadBalancer() c = nil - c.GetCopilotDotcomPullRequests() + c.GetLoadBalancer() } -func TestCopilotMetrics_GetCopilotIDEChat(tt *testing.T) { +func TestConfigSettings_GetMapping(tt *testing.T) { tt.Parallel() - c := &CopilotMetrics{} - c.GetCopilotIDEChat() + c := &ConfigSettings{} + c.GetMapping() c = nil - c.GetCopilotIDEChat() + c.GetMapping() } -func TestCopilotMetrics_GetCopilotIDECodeCompletions(tt *testing.T) { +func TestConfigSettings_GetNTP(tt *testing.T) { tt.Parallel() - c := &CopilotMetrics{} - c.GetCopilotIDECodeCompletions() + c := &ConfigSettings{} + c.GetNTP() c = nil - c.GetCopilotIDECodeCompletions() + c.GetNTP() } -func TestCopilotMetrics_GetTotalActiveUsers(tt *testing.T) { +func TestConfigSettings_GetPages(tt *testing.T) { tt.Parallel() - var zeroValue int - c := &CopilotMetrics{TotalActiveUsers: &zeroValue} - c.GetTotalActiveUsers() - c = &CopilotMetrics{} - c.GetTotalActiveUsers() + c := &ConfigSettings{} + c.GetPages() c = nil - c.GetTotalActiveUsers() + c.GetPages() } -func TestCopilotMetrics_GetTotalEngagedUsers(tt *testing.T) { +func TestConfigSettings_GetPrivateMode(tt *testing.T) { tt.Parallel() - var zeroValue int - c := &CopilotMetrics{TotalEngagedUsers: &zeroValue} - c.GetTotalEngagedUsers() - c = &CopilotMetrics{} - c.GetTotalEngagedUsers() + var zeroValue bool + c := &ConfigSettings{PrivateMode: &zeroValue} + c.GetPrivateMode() + c = &ConfigSettings{} + c.GetPrivateMode() c = nil - c.GetTotalEngagedUsers() + c.GetPrivateMode() } -func TestCopilotMetricsListOptions_GetSince(tt *testing.T) { +func TestConfigSettings_GetPublicPages(tt *testing.T) { tt.Parallel() - var zeroValue time.Time - c := &CopilotMetricsListOptions{Since: &zeroValue} - c.GetSince() - c = &CopilotMetricsListOptions{} - c.GetSince() + var zeroValue bool + c := &ConfigSettings{PublicPages: &zeroValue} + c.GetPublicPages() + c = &ConfigSettings{} + c.GetPublicPages() c = nil - c.GetSince() + c.GetPublicPages() } -func TestCopilotMetricsListOptions_GetUntil(tt *testing.T) { +func TestConfigSettings_GetSAML(tt *testing.T) { tt.Parallel() - var zeroValue time.Time - c := &CopilotMetricsListOptions{Until: &zeroValue} - c.GetUntil() - c = &CopilotMetricsListOptions{} - c.GetUntil() + c := &ConfigSettings{} + c.GetSAML() c = nil - c.GetUntil() + c.GetSAML() } -func TestCopilotOrganizationDetails_GetSeatBreakdown(tt *testing.T) { +func TestConfigSettings_GetSignupEnabled(tt *testing.T) { tt.Parallel() - c := &CopilotOrganizationDetails{} - c.GetSeatBreakdown() + var zeroValue bool + c := &ConfigSettings{SignupEnabled: &zeroValue} + c.GetSignupEnabled() + c = &ConfigSettings{} + c.GetSignupEnabled() c = nil - c.GetSeatBreakdown() + c.GetSignupEnabled() } -func TestCopilotSeatDetails_GetAssigningTeam(tt *testing.T) { +func TestConfigSettings_GetSMTP(tt *testing.T) { tt.Parallel() - c := &CopilotSeatDetails{} - c.GetAssigningTeam() + c := &ConfigSettings{} + c.GetSMTP() c = nil - c.GetAssigningTeam() + c.GetSMTP() } -func TestCopilotSeatDetails_GetCreatedAt(tt *testing.T) { +func TestConfigSettings_GetSNMP(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - c := &CopilotSeatDetails{CreatedAt: &zeroValue} - c.GetCreatedAt() - c = &CopilotSeatDetails{} - c.GetCreatedAt() + c := &ConfigSettings{} + c.GetSNMP() c = nil - c.GetCreatedAt() + c.GetSNMP() } -func TestCopilotSeatDetails_GetLastActivityAt(tt *testing.T) { +func TestConfigSettings_GetSubdomainIsolation(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - c := &CopilotSeatDetails{LastActivityAt: &zeroValue} - c.GetLastActivityAt() - c = &CopilotSeatDetails{} - c.GetLastActivityAt() + var zeroValue bool + c := &ConfigSettings{SubdomainIsolation: &zeroValue} + c.GetSubdomainIsolation() + c = &ConfigSettings{} + c.GetSubdomainIsolation() c = nil - c.GetLastActivityAt() + c.GetSubdomainIsolation() } -func TestCopilotSeatDetails_GetLastActivityEditor(tt *testing.T) { +func TestConfigSettings_GetSyslog(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &CopilotSeatDetails{LastActivityEditor: &zeroValue} - c.GetLastActivityEditor() - c = &CopilotSeatDetails{} - c.GetLastActivityEditor() + c := &ConfigSettings{} + c.GetSyslog() c = nil - c.GetLastActivityEditor() + c.GetSyslog() } -func TestCopilotSeatDetails_GetPendingCancellationDate(tt *testing.T) { +func TestConfigSettings_GetTimezone(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CopilotSeatDetails{PendingCancellationDate: &zeroValue} - c.GetPendingCancellationDate() - c = &CopilotSeatDetails{} - c.GetPendingCancellationDate() + c := &ConfigSettings{Timezone: &zeroValue} + c.GetTimezone() + c = &ConfigSettings{} + c.GetTimezone() c = nil - c.GetPendingCancellationDate() + c.GetTimezone() } -func TestCopilotSeatDetails_GetPlanType(tt *testing.T) { +func TestConnectionServices_GetName(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CopilotSeatDetails{PlanType: &zeroValue} - c.GetPlanType() - c = &CopilotSeatDetails{} - c.GetPlanType() + c := &ConnectionServices{Name: &zeroValue} + c.GetName() + c = &ConnectionServices{} + c.GetName() c = nil - c.GetPlanType() + c.GetName() } -func TestCopilotSeatDetails_GetUpdatedAt(tt *testing.T) { +func TestConnectionServices_GetNumber(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - c := &CopilotSeatDetails{UpdatedAt: &zeroValue} - c.GetUpdatedAt() - c = &CopilotSeatDetails{} - c.GetUpdatedAt() + var zeroValue int + c := &ConnectionServices{Number: &zeroValue} + c.GetNumber() + c = &ConnectionServices{} + c.GetNumber() c = nil - c.GetUpdatedAt() + c.GetNumber() } -func TestCreateCheckRunOptions_GetCompletedAt(tt *testing.T) { +func TestContentReference_GetID(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - c := &CreateCheckRunOptions{CompletedAt: &zeroValue} - c.GetCompletedAt() - c = &CreateCheckRunOptions{} - c.GetCompletedAt() + var zeroValue int64 + c := &ContentReference{ID: &zeroValue} + c.GetID() + c = &ContentReference{} + c.GetID() c = nil - c.GetCompletedAt() + c.GetID() } -func TestCreateCheckRunOptions_GetConclusion(tt *testing.T) { +func TestContentReference_GetNodeID(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CreateCheckRunOptions{Conclusion: &zeroValue} - c.GetConclusion() - c = &CreateCheckRunOptions{} - c.GetConclusion() + c := &ContentReference{NodeID: &zeroValue} + c.GetNodeID() + c = &ContentReference{} + c.GetNodeID() c = nil - c.GetConclusion() + c.GetNodeID() } -func TestCreateCheckRunOptions_GetDetailsURL(tt *testing.T) { +func TestContentReference_GetReference(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CreateCheckRunOptions{DetailsURL: &zeroValue} - c.GetDetailsURL() - c = &CreateCheckRunOptions{} - c.GetDetailsURL() + c := &ContentReference{Reference: &zeroValue} + c.GetReference() + c = &ContentReference{} + c.GetReference() c = nil - c.GetDetailsURL() + c.GetReference() } -func TestCreateCheckRunOptions_GetExternalID(tt *testing.T) { +func TestContentReferenceEvent_GetAction(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CreateCheckRunOptions{ExternalID: &zeroValue} - c.GetExternalID() - c = &CreateCheckRunOptions{} - c.GetExternalID() + c := &ContentReferenceEvent{Action: &zeroValue} + c.GetAction() + c = &ContentReferenceEvent{} + c.GetAction() c = nil - c.GetExternalID() + c.GetAction() } -func TestCreateCheckRunOptions_GetOutput(tt *testing.T) { +func TestContentReferenceEvent_GetContentReference(tt *testing.T) { tt.Parallel() - c := &CreateCheckRunOptions{} - c.GetOutput() + c := &ContentReferenceEvent{} + c.GetContentReference() c = nil - c.GetOutput() + c.GetContentReference() } -func TestCreateCheckRunOptions_GetStartedAt(tt *testing.T) { +func TestContentReferenceEvent_GetInstallation(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - c := &CreateCheckRunOptions{StartedAt: &zeroValue} - c.GetStartedAt() - c = &CreateCheckRunOptions{} - c.GetStartedAt() + c := &ContentReferenceEvent{} + c.GetInstallation() c = nil - c.GetStartedAt() + c.GetInstallation() } -func TestCreateCheckRunOptions_GetStatus(tt *testing.T) { +func TestContentReferenceEvent_GetRepo(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &CreateCheckRunOptions{Status: &zeroValue} - c.GetStatus() - c = &CreateCheckRunOptions{} - c.GetStatus() + c := &ContentReferenceEvent{} + c.GetRepo() c = nil - c.GetStatus() + c.GetRepo() } -func TestCreateCheckSuiteOptions_GetHeadBranch(tt *testing.T) { +func TestContentReferenceEvent_GetSender(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &CreateCheckSuiteOptions{HeadBranch: &zeroValue} - c.GetHeadBranch() - c = &CreateCheckSuiteOptions{} - c.GetHeadBranch() + c := &ContentReferenceEvent{} + c.GetSender() c = nil - c.GetHeadBranch() + c.GetSender() } -func TestCreateCodespaceOptions_GetClientIP(tt *testing.T) { +func TestContributor_GetAvatarURL(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CreateCodespaceOptions{ClientIP: &zeroValue} - c.GetClientIP() - c = &CreateCodespaceOptions{} - c.GetClientIP() + c := &Contributor{AvatarURL: &zeroValue} + c.GetAvatarURL() + c = &Contributor{} + c.GetAvatarURL() c = nil - c.GetClientIP() + c.GetAvatarURL() } -func TestCreateCodespaceOptions_GetDevcontainerPath(tt *testing.T) { +func TestContributor_GetContributions(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &CreateCodespaceOptions{DevcontainerPath: &zeroValue} - c.GetDevcontainerPath() - c = &CreateCodespaceOptions{} - c.GetDevcontainerPath() + var zeroValue int + c := &Contributor{Contributions: &zeroValue} + c.GetContributions() + c = &Contributor{} + c.GetContributions() c = nil - c.GetDevcontainerPath() + c.GetContributions() } -func TestCreateCodespaceOptions_GetDisplayName(tt *testing.T) { +func TestContributor_GetEmail(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CreateCodespaceOptions{DisplayName: &zeroValue} - c.GetDisplayName() - c = &CreateCodespaceOptions{} - c.GetDisplayName() + c := &Contributor{Email: &zeroValue} + c.GetEmail() + c = &Contributor{} + c.GetEmail() c = nil - c.GetDisplayName() + c.GetEmail() } -func TestCreateCodespaceOptions_GetGeo(tt *testing.T) { +func TestContributor_GetEventsURL(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CreateCodespaceOptions{Geo: &zeroValue} - c.GetGeo() - c = &CreateCodespaceOptions{} - c.GetGeo() + c := &Contributor{EventsURL: &zeroValue} + c.GetEventsURL() + c = &Contributor{} + c.GetEventsURL() c = nil - c.GetGeo() + c.GetEventsURL() } -func TestCreateCodespaceOptions_GetIdleTimeoutMinutes(tt *testing.T) { +func TestContributor_GetFollowersURL(tt *testing.T) { tt.Parallel() - var zeroValue int - c := &CreateCodespaceOptions{IdleTimeoutMinutes: &zeroValue} - c.GetIdleTimeoutMinutes() - c = &CreateCodespaceOptions{} - c.GetIdleTimeoutMinutes() + var zeroValue string + c := &Contributor{FollowersURL: &zeroValue} + c.GetFollowersURL() + c = &Contributor{} + c.GetFollowersURL() c = nil - c.GetIdleTimeoutMinutes() + c.GetFollowersURL() } -func TestCreateCodespaceOptions_GetMachine(tt *testing.T) { +func TestContributor_GetFollowingURL(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CreateCodespaceOptions{Machine: &zeroValue} - c.GetMachine() - c = &CreateCodespaceOptions{} - c.GetMachine() + c := &Contributor{FollowingURL: &zeroValue} + c.GetFollowingURL() + c = &Contributor{} + c.GetFollowingURL() c = nil - c.GetMachine() + c.GetFollowingURL() } -func TestCreateCodespaceOptions_GetMultiRepoPermissionsOptOut(tt *testing.T) { +func TestContributor_GetGistsURL(tt *testing.T) { tt.Parallel() - var zeroValue bool - c := &CreateCodespaceOptions{MultiRepoPermissionsOptOut: &zeroValue} - c.GetMultiRepoPermissionsOptOut() - c = &CreateCodespaceOptions{} - c.GetMultiRepoPermissionsOptOut() + var zeroValue string + c := &Contributor{GistsURL: &zeroValue} + c.GetGistsURL() + c = &Contributor{} + c.GetGistsURL() c = nil - c.GetMultiRepoPermissionsOptOut() + c.GetGistsURL() } -func TestCreateCodespaceOptions_GetRef(tt *testing.T) { +func TestContributor_GetGravatarID(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CreateCodespaceOptions{Ref: &zeroValue} - c.GetRef() - c = &CreateCodespaceOptions{} - c.GetRef() + c := &Contributor{GravatarID: &zeroValue} + c.GetGravatarID() + c = &Contributor{} + c.GetGravatarID() c = nil - c.GetRef() + c.GetGravatarID() } -func TestCreateCodespaceOptions_GetRetentionPeriodMinutes(tt *testing.T) { +func TestContributor_GetHTMLURL(tt *testing.T) { tt.Parallel() - var zeroValue int - c := &CreateCodespaceOptions{RetentionPeriodMinutes: &zeroValue} - c.GetRetentionPeriodMinutes() - c = &CreateCodespaceOptions{} - c.GetRetentionPeriodMinutes() + var zeroValue string + c := &Contributor{HTMLURL: &zeroValue} + c.GetHTMLURL() + c = &Contributor{} + c.GetHTMLURL() c = nil - c.GetRetentionPeriodMinutes() + c.GetHTMLURL() } -func TestCreateCodespaceOptions_GetWorkingDirectory(tt *testing.T) { +func TestContributor_GetID(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &CreateCodespaceOptions{WorkingDirectory: &zeroValue} - c.GetWorkingDirectory() - c = &CreateCodespaceOptions{} - c.GetWorkingDirectory() + var zeroValue int64 + c := &Contributor{ID: &zeroValue} + c.GetID() + c = &Contributor{} + c.GetID() c = nil - c.GetWorkingDirectory() + c.GetID() } -func TestCreateEnterpriseRunnerGroupRequest_GetAllowsPublicRepositories(tt *testing.T) { +func TestContributor_GetLogin(tt *testing.T) { tt.Parallel() - var zeroValue bool - c := &CreateEnterpriseRunnerGroupRequest{AllowsPublicRepositories: &zeroValue} - c.GetAllowsPublicRepositories() - c = &CreateEnterpriseRunnerGroupRequest{} - c.GetAllowsPublicRepositories() + var zeroValue string + c := &Contributor{Login: &zeroValue} + c.GetLogin() + c = &Contributor{} + c.GetLogin() c = nil - c.GetAllowsPublicRepositories() + c.GetLogin() } -func TestCreateEnterpriseRunnerGroupRequest_GetName(tt *testing.T) { +func TestContributor_GetName(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CreateEnterpriseRunnerGroupRequest{Name: &zeroValue} + c := &Contributor{Name: &zeroValue} c.GetName() - c = &CreateEnterpriseRunnerGroupRequest{} + c = &Contributor{} c.GetName() c = nil c.GetName() } -func TestCreateEnterpriseRunnerGroupRequest_GetRestrictedToWorkflows(tt *testing.T) { +func TestContributor_GetNodeID(tt *testing.T) { tt.Parallel() - var zeroValue bool - c := &CreateEnterpriseRunnerGroupRequest{RestrictedToWorkflows: &zeroValue} - c.GetRestrictedToWorkflows() - c = &CreateEnterpriseRunnerGroupRequest{} - c.GetRestrictedToWorkflows() + var zeroValue string + c := &Contributor{NodeID: &zeroValue} + c.GetNodeID() + c = &Contributor{} + c.GetNodeID() c = nil - c.GetRestrictedToWorkflows() + c.GetNodeID() } -func TestCreateEnterpriseRunnerGroupRequest_GetVisibility(tt *testing.T) { +func TestContributor_GetOrganizationsURL(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CreateEnterpriseRunnerGroupRequest{Visibility: &zeroValue} - c.GetVisibility() - c = &CreateEnterpriseRunnerGroupRequest{} - c.GetVisibility() + c := &Contributor{OrganizationsURL: &zeroValue} + c.GetOrganizationsURL() + c = &Contributor{} + c.GetOrganizationsURL() c = nil - c.GetVisibility() + c.GetOrganizationsURL() } -func TestCreateEvent_GetDescription(tt *testing.T) { +func TestContributor_GetReceivedEventsURL(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CreateEvent{Description: &zeroValue} - c.GetDescription() - c = &CreateEvent{} - c.GetDescription() + c := &Contributor{ReceivedEventsURL: &zeroValue} + c.GetReceivedEventsURL() + c = &Contributor{} + c.GetReceivedEventsURL() c = nil - c.GetDescription() + c.GetReceivedEventsURL() } -func TestCreateEvent_GetInstallation(tt *testing.T) { +func TestContributor_GetReposURL(tt *testing.T) { tt.Parallel() - c := &CreateEvent{} - c.GetInstallation() + var zeroValue string + c := &Contributor{ReposURL: &zeroValue} + c.GetReposURL() + c = &Contributor{} + c.GetReposURL() c = nil - c.GetInstallation() + c.GetReposURL() } -func TestCreateEvent_GetMasterBranch(tt *testing.T) { +func TestContributor_GetSiteAdmin(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &CreateEvent{MasterBranch: &zeroValue} - c.GetMasterBranch() - c = &CreateEvent{} - c.GetMasterBranch() + var zeroValue bool + c := &Contributor{SiteAdmin: &zeroValue} + c.GetSiteAdmin() + c = &Contributor{} + c.GetSiteAdmin() c = nil - c.GetMasterBranch() + c.GetSiteAdmin() } -func TestCreateEvent_GetOrg(tt *testing.T) { +func TestContributor_GetStarredURL(tt *testing.T) { tt.Parallel() - c := &CreateEvent{} - c.GetOrg() + var zeroValue string + c := &Contributor{StarredURL: &zeroValue} + c.GetStarredURL() + c = &Contributor{} + c.GetStarredURL() c = nil - c.GetOrg() + c.GetStarredURL() } -func TestCreateEvent_GetPusherType(tt *testing.T) { +func TestContributor_GetSubscriptionsURL(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CreateEvent{PusherType: &zeroValue} - c.GetPusherType() - c = &CreateEvent{} - c.GetPusherType() + c := &Contributor{SubscriptionsURL: &zeroValue} + c.GetSubscriptionsURL() + c = &Contributor{} + c.GetSubscriptionsURL() c = nil - c.GetPusherType() + c.GetSubscriptionsURL() } -func TestCreateEvent_GetRef(tt *testing.T) { +func TestContributor_GetType(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CreateEvent{Ref: &zeroValue} - c.GetRef() - c = &CreateEvent{} - c.GetRef() + c := &Contributor{Type: &zeroValue} + c.GetType() + c = &Contributor{} + c.GetType() c = nil - c.GetRef() + c.GetType() } -func TestCreateEvent_GetRefType(tt *testing.T) { +func TestContributor_GetURL(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CreateEvent{RefType: &zeroValue} - c.GetRefType() - c = &CreateEvent{} - c.GetRefType() + c := &Contributor{URL: &zeroValue} + c.GetURL() + c = &Contributor{} + c.GetURL() c = nil - c.GetRefType() + c.GetURL() } -func TestCreateEvent_GetRepo(tt *testing.T) { +func TestContributorStats_GetAuthor(tt *testing.T) { tt.Parallel() - c := &CreateEvent{} - c.GetRepo() + c := &ContributorStats{} + c.GetAuthor() c = nil - c.GetRepo() + c.GetAuthor() } -func TestCreateEvent_GetSender(tt *testing.T) { +func TestContributorStats_GetTotal(tt *testing.T) { tt.Parallel() - c := &CreateEvent{} - c.GetSender() + var zeroValue int + c := &ContributorStats{Total: &zeroValue} + c.GetTotal() + c = &ContributorStats{} + c.GetTotal() c = nil - c.GetSender() + c.GetTotal() } -func TestCreateOrgInvitationOptions_GetEmail(tt *testing.T) { +func TestCopilotDotcomChatModel_GetCustomModelTrainingDate(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CreateOrgInvitationOptions{Email: &zeroValue} - c.GetEmail() - c = &CreateOrgInvitationOptions{} - c.GetEmail() + c := &CopilotDotcomChatModel{CustomModelTrainingDate: &zeroValue} + c.GetCustomModelTrainingDate() + c = &CopilotDotcomChatModel{} + c.GetCustomModelTrainingDate() c = nil - c.GetEmail() + c.GetCustomModelTrainingDate() } -func TestCreateOrgInvitationOptions_GetInviteeID(tt *testing.T) { +func TestCopilotDotcomPullRequestsModel_GetCustomModelTrainingDate(tt *testing.T) { tt.Parallel() - var zeroValue int64 - c := &CreateOrgInvitationOptions{InviteeID: &zeroValue} - c.GetInviteeID() - c = &CreateOrgInvitationOptions{} - c.GetInviteeID() + var zeroValue string + c := &CopilotDotcomPullRequestsModel{CustomModelTrainingDate: &zeroValue} + c.GetCustomModelTrainingDate() + c = &CopilotDotcomPullRequestsModel{} + c.GetCustomModelTrainingDate() c = nil - c.GetInviteeID() + c.GetCustomModelTrainingDate() } -func TestCreateOrgInvitationOptions_GetRole(tt *testing.T) { +func TestCopilotIDEChatModel_GetCustomModelTrainingDate(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CreateOrgInvitationOptions{Role: &zeroValue} - c.GetRole() - c = &CreateOrgInvitationOptions{} - c.GetRole() + c := &CopilotIDEChatModel{CustomModelTrainingDate: &zeroValue} + c.GetCustomModelTrainingDate() + c = &CopilotIDEChatModel{} + c.GetCustomModelTrainingDate() c = nil - c.GetRole() + c.GetCustomModelTrainingDate() } -func TestCreateOrUpdateCustomRepoRoleOptions_GetBaseRole(tt *testing.T) { +func TestCopilotIDECodeCompletionsModel_GetCustomModelTrainingDate(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CreateOrUpdateCustomRepoRoleOptions{BaseRole: &zeroValue} - c.GetBaseRole() - c = &CreateOrUpdateCustomRepoRoleOptions{} - c.GetBaseRole() + c := &CopilotIDECodeCompletionsModel{CustomModelTrainingDate: &zeroValue} + c.GetCustomModelTrainingDate() + c = &CopilotIDECodeCompletionsModel{} + c.GetCustomModelTrainingDate() c = nil - c.GetBaseRole() + c.GetCustomModelTrainingDate() } -func TestCreateOrUpdateCustomRepoRoleOptions_GetDescription(tt *testing.T) { +func TestCopilotMetrics_GetCopilotDotcomChat(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &CreateOrUpdateCustomRepoRoleOptions{Description: &zeroValue} - c.GetDescription() - c = &CreateOrUpdateCustomRepoRoleOptions{} - c.GetDescription() + c := &CopilotMetrics{} + c.GetCopilotDotcomChat() c = nil - c.GetDescription() + c.GetCopilotDotcomChat() } -func TestCreateOrUpdateCustomRepoRoleOptions_GetName(tt *testing.T) { +func TestCopilotMetrics_GetCopilotDotcomPullRequests(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &CreateOrUpdateCustomRepoRoleOptions{Name: &zeroValue} - c.GetName() - c = &CreateOrUpdateCustomRepoRoleOptions{} - c.GetName() + c := &CopilotMetrics{} + c.GetCopilotDotcomPullRequests() c = nil - c.GetName() + c.GetCopilotDotcomPullRequests() } -func TestCreateOrUpdateOrgRoleOptions_GetBaseRole(tt *testing.T) { +func TestCopilotMetrics_GetCopilotIDEChat(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &CreateOrUpdateOrgRoleOptions{BaseRole: &zeroValue} - c.GetBaseRole() - c = &CreateOrUpdateOrgRoleOptions{} - c.GetBaseRole() + c := &CopilotMetrics{} + c.GetCopilotIDEChat() c = nil - c.GetBaseRole() + c.GetCopilotIDEChat() } -func TestCreateOrUpdateOrgRoleOptions_GetDescription(tt *testing.T) { +func TestCopilotMetrics_GetCopilotIDECodeCompletions(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &CreateOrUpdateOrgRoleOptions{Description: &zeroValue} - c.GetDescription() - c = &CreateOrUpdateOrgRoleOptions{} - c.GetDescription() + c := &CopilotMetrics{} + c.GetCopilotIDECodeCompletions() c = nil - c.GetDescription() + c.GetCopilotIDECodeCompletions() } -func TestCreateOrUpdateOrgRoleOptions_GetName(tt *testing.T) { +func TestCopilotMetrics_GetTotalActiveUsers(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &CreateOrUpdateOrgRoleOptions{Name: &zeroValue} - c.GetName() - c = &CreateOrUpdateOrgRoleOptions{} - c.GetName() + var zeroValue int + c := &CopilotMetrics{TotalActiveUsers: &zeroValue} + c.GetTotalActiveUsers() + c = &CopilotMetrics{} + c.GetTotalActiveUsers() c = nil - c.GetName() + c.GetTotalActiveUsers() } -func TestCreateProtectedChanges_GetFrom(tt *testing.T) { +func TestCopilotMetrics_GetTotalEngagedUsers(tt *testing.T) { tt.Parallel() - var zeroValue bool - c := &CreateProtectedChanges{From: &zeroValue} - c.GetFrom() - c = &CreateProtectedChanges{} - c.GetFrom() + var zeroValue int + c := &CopilotMetrics{TotalEngagedUsers: &zeroValue} + c.GetTotalEngagedUsers() + c = &CopilotMetrics{} + c.GetTotalEngagedUsers() c = nil - c.GetFrom() + c.GetTotalEngagedUsers() } -func TestCreateRunnerGroupRequest_GetAllowsPublicRepositories(tt *testing.T) { +func TestCopilotMetricsListOptions_GetSince(tt *testing.T) { tt.Parallel() - var zeroValue bool - c := &CreateRunnerGroupRequest{AllowsPublicRepositories: &zeroValue} - c.GetAllowsPublicRepositories() - c = &CreateRunnerGroupRequest{} - c.GetAllowsPublicRepositories() + var zeroValue time.Time + c := &CopilotMetricsListOptions{Since: &zeroValue} + c.GetSince() + c = &CopilotMetricsListOptions{} + c.GetSince() c = nil - c.GetAllowsPublicRepositories() + c.GetSince() } -func TestCreateRunnerGroupRequest_GetName(tt *testing.T) { +func TestCopilotMetricsListOptions_GetUntil(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &CreateRunnerGroupRequest{Name: &zeroValue} - c.GetName() - c = &CreateRunnerGroupRequest{} - c.GetName() + var zeroValue time.Time + c := &CopilotMetricsListOptions{Until: &zeroValue} + c.GetUntil() + c = &CopilotMetricsListOptions{} + c.GetUntil() c = nil - c.GetName() + c.GetUntil() } -func TestCreateRunnerGroupRequest_GetRestrictedToWorkflows(tt *testing.T) { +func TestCopilotOrganizationDetails_GetSeatBreakdown(tt *testing.T) { tt.Parallel() - var zeroValue bool - c := &CreateRunnerGroupRequest{RestrictedToWorkflows: &zeroValue} - c.GetRestrictedToWorkflows() - c = &CreateRunnerGroupRequest{} - c.GetRestrictedToWorkflows() + c := &CopilotOrganizationDetails{} + c.GetSeatBreakdown() c = nil - c.GetRestrictedToWorkflows() + c.GetSeatBreakdown() } -func TestCreateRunnerGroupRequest_GetVisibility(tt *testing.T) { +func TestCopilotSeatDetails_GetAssigningTeam(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &CreateRunnerGroupRequest{Visibility: &zeroValue} - c.GetVisibility() - c = &CreateRunnerGroupRequest{} - c.GetVisibility() + c := &CopilotSeatDetails{} + c.GetAssigningTeam() c = nil - c.GetVisibility() + c.GetAssigningTeam() } -func TestCreateUpdateEnvironment_GetCanAdminsBypass(tt *testing.T) { +func TestCopilotSeatDetails_GetCreatedAt(tt *testing.T) { tt.Parallel() - var zeroValue bool - c := &CreateUpdateEnvironment{CanAdminsBypass: &zeroValue} - c.GetCanAdminsBypass() - c = &CreateUpdateEnvironment{} - c.GetCanAdminsBypass() + var zeroValue Timestamp + c := &CopilotSeatDetails{CreatedAt: &zeroValue} + c.GetCreatedAt() + c = &CopilotSeatDetails{} + c.GetCreatedAt() c = nil - c.GetCanAdminsBypass() + c.GetCreatedAt() } -func TestCreateUpdateEnvironment_GetDeploymentBranchPolicy(tt *testing.T) { +func TestCopilotSeatDetails_GetLastActivityAt(tt *testing.T) { tt.Parallel() - c := &CreateUpdateEnvironment{} - c.GetDeploymentBranchPolicy() + var zeroValue Timestamp + c := &CopilotSeatDetails{LastActivityAt: &zeroValue} + c.GetLastActivityAt() + c = &CopilotSeatDetails{} + c.GetLastActivityAt() c = nil - c.GetDeploymentBranchPolicy() + c.GetLastActivityAt() } -func TestCreateUpdateEnvironment_GetPreventSelfReview(tt *testing.T) { +func TestCopilotSeatDetails_GetLastActivityEditor(tt *testing.T) { tt.Parallel() - var zeroValue bool - c := &CreateUpdateEnvironment{PreventSelfReview: &zeroValue} - c.GetPreventSelfReview() - c = &CreateUpdateEnvironment{} - c.GetPreventSelfReview() + var zeroValue string + c := &CopilotSeatDetails{LastActivityEditor: &zeroValue} + c.GetLastActivityEditor() + c = &CopilotSeatDetails{} + c.GetLastActivityEditor() c = nil - c.GetPreventSelfReview() + c.GetLastActivityEditor() } -func TestCreateUpdateEnvironment_GetWaitTimer(tt *testing.T) { +func TestCopilotSeatDetails_GetPendingCancellationDate(tt *testing.T) { tt.Parallel() - var zeroValue int - c := &CreateUpdateEnvironment{WaitTimer: &zeroValue} - c.GetWaitTimer() - c = &CreateUpdateEnvironment{} - c.GetWaitTimer() + var zeroValue string + c := &CopilotSeatDetails{PendingCancellationDate: &zeroValue} + c.GetPendingCancellationDate() + c = &CopilotSeatDetails{} + c.GetPendingCancellationDate() c = nil - c.GetWaitTimer() + c.GetPendingCancellationDate() } -func TestCreateUpdateRequiredWorkflowOptions_GetRepositoryID(tt *testing.T) { +func TestCopilotSeatDetails_GetPlanType(tt *testing.T) { tt.Parallel() - var zeroValue int64 - c := &CreateUpdateRequiredWorkflowOptions{RepositoryID: &zeroValue} - c.GetRepositoryID() - c = &CreateUpdateRequiredWorkflowOptions{} - c.GetRepositoryID() + var zeroValue string + c := &CopilotSeatDetails{PlanType: &zeroValue} + c.GetPlanType() + c = &CopilotSeatDetails{} + c.GetPlanType() c = nil - c.GetRepositoryID() + c.GetPlanType() } -func TestCreateUpdateRequiredWorkflowOptions_GetScope(tt *testing.T) { +func TestCopilotSeatDetails_GetUpdatedAt(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &CreateUpdateRequiredWorkflowOptions{Scope: &zeroValue} - c.GetScope() - c = &CreateUpdateRequiredWorkflowOptions{} - c.GetScope() + var zeroValue Timestamp + c := &CopilotSeatDetails{UpdatedAt: &zeroValue} + c.GetUpdatedAt() + c = &CopilotSeatDetails{} + c.GetUpdatedAt() c = nil - c.GetScope() + c.GetUpdatedAt() } -func TestCreateUpdateRequiredWorkflowOptions_GetSelectedRepositoryIDs(tt *testing.T) { +func TestCreateCheckRunOptions_GetCompletedAt(tt *testing.T) { tt.Parallel() - c := &CreateUpdateRequiredWorkflowOptions{} - c.GetSelectedRepositoryIDs() + var zeroValue Timestamp + c := &CreateCheckRunOptions{CompletedAt: &zeroValue} + c.GetCompletedAt() + c = &CreateCheckRunOptions{} + c.GetCompletedAt() c = nil - c.GetSelectedRepositoryIDs() + c.GetCompletedAt() } -func TestCreateUpdateRequiredWorkflowOptions_GetWorkflowFilePath(tt *testing.T) { +func TestCreateCheckRunOptions_GetConclusion(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CreateUpdateRequiredWorkflowOptions{WorkflowFilePath: &zeroValue} - c.GetWorkflowFilePath() - c = &CreateUpdateRequiredWorkflowOptions{} - c.GetWorkflowFilePath() + c := &CreateCheckRunOptions{Conclusion: &zeroValue} + c.GetConclusion() + c = &CreateCheckRunOptions{} + c.GetConclusion() c = nil - c.GetWorkflowFilePath() + c.GetConclusion() } -func TestCreateUserRequest_GetEmail(tt *testing.T) { +func TestCreateCheckRunOptions_GetDetailsURL(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CreateUserRequest{Email: &zeroValue} - c.GetEmail() - c = &CreateUserRequest{} - c.GetEmail() + c := &CreateCheckRunOptions{DetailsURL: &zeroValue} + c.GetDetailsURL() + c = &CreateCheckRunOptions{} + c.GetDetailsURL() c = nil - c.GetEmail() + c.GetDetailsURL() } -func TestCreateUserRequest_GetSuspended(tt *testing.T) { +func TestCreateCheckRunOptions_GetExternalID(tt *testing.T) { tt.Parallel() - var zeroValue bool - c := &CreateUserRequest{Suspended: &zeroValue} - c.GetSuspended() - c = &CreateUserRequest{} - c.GetSuspended() + var zeroValue string + c := &CreateCheckRunOptions{ExternalID: &zeroValue} + c.GetExternalID() + c = &CreateCheckRunOptions{} + c.GetExternalID() c = nil - c.GetSuspended() + c.GetExternalID() } -func TestCreationInfo_GetCreated(tt *testing.T) { +func TestCreateCheckRunOptions_GetOutput(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - c := &CreationInfo{Created: &zeroValue} - c.GetCreated() - c = &CreationInfo{} - c.GetCreated() + c := &CreateCheckRunOptions{} + c.GetOutput() c = nil - c.GetCreated() + c.GetOutput() } -func TestCredentialAuthorization_GetAuthorizedCredentialExpiresAt(tt *testing.T) { +func TestCreateCheckRunOptions_GetStartedAt(tt *testing.T) { tt.Parallel() var zeroValue Timestamp - c := &CredentialAuthorization{AuthorizedCredentialExpiresAt: &zeroValue} - c.GetAuthorizedCredentialExpiresAt() - c = &CredentialAuthorization{} - c.GetAuthorizedCredentialExpiresAt() + c := &CreateCheckRunOptions{StartedAt: &zeroValue} + c.GetStartedAt() + c = &CreateCheckRunOptions{} + c.GetStartedAt() c = nil - c.GetAuthorizedCredentialExpiresAt() + c.GetStartedAt() } -func TestCredentialAuthorization_GetAuthorizedCredentialID(tt *testing.T) { +func TestCreateCheckRunOptions_GetStatus(tt *testing.T) { tt.Parallel() - var zeroValue int64 - c := &CredentialAuthorization{AuthorizedCredentialID: &zeroValue} - c.GetAuthorizedCredentialID() - c = &CredentialAuthorization{} - c.GetAuthorizedCredentialID() + var zeroValue string + c := &CreateCheckRunOptions{Status: &zeroValue} + c.GetStatus() + c = &CreateCheckRunOptions{} + c.GetStatus() c = nil - c.GetAuthorizedCredentialID() + c.GetStatus() } -func TestCredentialAuthorization_GetAuthorizedCredentialNote(tt *testing.T) { +func TestCreateCheckSuiteOptions_GetHeadBranch(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CredentialAuthorization{AuthorizedCredentialNote: &zeroValue} - c.GetAuthorizedCredentialNote() - c = &CredentialAuthorization{} - c.GetAuthorizedCredentialNote() + c := &CreateCheckSuiteOptions{HeadBranch: &zeroValue} + c.GetHeadBranch() + c = &CreateCheckSuiteOptions{} + c.GetHeadBranch() c = nil - c.GetAuthorizedCredentialNote() + c.GetHeadBranch() } -func TestCredentialAuthorization_GetAuthorizedCredentialTitle(tt *testing.T) { +func TestCreateCodespaceOptions_GetClientIP(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CredentialAuthorization{AuthorizedCredentialTitle: &zeroValue} - c.GetAuthorizedCredentialTitle() - c = &CredentialAuthorization{} - c.GetAuthorizedCredentialTitle() + c := &CreateCodespaceOptions{ClientIP: &zeroValue} + c.GetClientIP() + c = &CreateCodespaceOptions{} + c.GetClientIP() c = nil - c.GetAuthorizedCredentialTitle() + c.GetClientIP() } -func TestCredentialAuthorization_GetCredentialAccessedAt(tt *testing.T) { +func TestCreateCodespaceOptions_GetDevcontainerPath(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - c := &CredentialAuthorization{CredentialAccessedAt: &zeroValue} - c.GetCredentialAccessedAt() - c = &CredentialAuthorization{} - c.GetCredentialAccessedAt() + var zeroValue string + c := &CreateCodespaceOptions{DevcontainerPath: &zeroValue} + c.GetDevcontainerPath() + c = &CreateCodespaceOptions{} + c.GetDevcontainerPath() c = nil - c.GetCredentialAccessedAt() + c.GetDevcontainerPath() } -func TestCredentialAuthorization_GetCredentialAuthorizedAt(tt *testing.T) { +func TestCreateCodespaceOptions_GetDisplayName(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - c := &CredentialAuthorization{CredentialAuthorizedAt: &zeroValue} - c.GetCredentialAuthorizedAt() - c = &CredentialAuthorization{} - c.GetCredentialAuthorizedAt() + var zeroValue string + c := &CreateCodespaceOptions{DisplayName: &zeroValue} + c.GetDisplayName() + c = &CreateCodespaceOptions{} + c.GetDisplayName() c = nil - c.GetCredentialAuthorizedAt() + c.GetDisplayName() } -func TestCredentialAuthorization_GetCredentialID(tt *testing.T) { +func TestCreateCodespaceOptions_GetGeo(tt *testing.T) { tt.Parallel() - var zeroValue int64 - c := &CredentialAuthorization{CredentialID: &zeroValue} - c.GetCredentialID() - c = &CredentialAuthorization{} - c.GetCredentialID() + var zeroValue string + c := &CreateCodespaceOptions{Geo: &zeroValue} + c.GetGeo() + c = &CreateCodespaceOptions{} + c.GetGeo() c = nil - c.GetCredentialID() + c.GetGeo() } -func TestCredentialAuthorization_GetCredentialType(tt *testing.T) { +func TestCreateCodespaceOptions_GetIdleTimeoutMinutes(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &CredentialAuthorization{CredentialType: &zeroValue} - c.GetCredentialType() - c = &CredentialAuthorization{} - c.GetCredentialType() + var zeroValue int + c := &CreateCodespaceOptions{IdleTimeoutMinutes: &zeroValue} + c.GetIdleTimeoutMinutes() + c = &CreateCodespaceOptions{} + c.GetIdleTimeoutMinutes() c = nil - c.GetCredentialType() + c.GetIdleTimeoutMinutes() } -func TestCredentialAuthorization_GetFingerprint(tt *testing.T) { +func TestCreateCodespaceOptions_GetMachine(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CredentialAuthorization{Fingerprint: &zeroValue} - c.GetFingerprint() - c = &CredentialAuthorization{} - c.GetFingerprint() + c := &CreateCodespaceOptions{Machine: &zeroValue} + c.GetMachine() + c = &CreateCodespaceOptions{} + c.GetMachine() c = nil - c.GetFingerprint() + c.GetMachine() } -func TestCredentialAuthorization_GetLogin(tt *testing.T) { +func TestCreateCodespaceOptions_GetMultiRepoPermissionsOptOut(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &CredentialAuthorization{Login: &zeroValue} - c.GetLogin() - c = &CredentialAuthorization{} - c.GetLogin() + var zeroValue bool + c := &CreateCodespaceOptions{MultiRepoPermissionsOptOut: &zeroValue} + c.GetMultiRepoPermissionsOptOut() + c = &CreateCodespaceOptions{} + c.GetMultiRepoPermissionsOptOut() c = nil - c.GetLogin() + c.GetMultiRepoPermissionsOptOut() } -func TestCredentialAuthorization_GetTokenLastEight(tt *testing.T) { +func TestCreateCodespaceOptions_GetRef(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CredentialAuthorization{TokenLastEight: &zeroValue} - c.GetTokenLastEight() - c = &CredentialAuthorization{} - c.GetTokenLastEight() + c := &CreateCodespaceOptions{Ref: &zeroValue} + c.GetRef() + c = &CreateCodespaceOptions{} + c.GetRef() c = nil - c.GetTokenLastEight() + c.GetRef() } -func TestCredit_GetType(tt *testing.T) { +func TestCreateCodespaceOptions_GetRetentionPeriodMinutes(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &Credit{Type: &zeroValue} - c.GetType() - c = &Credit{} - c.GetType() - c = nil - c.GetType() -} - -func TestCredit_GetUser(tt *testing.T) { - tt.Parallel() - c := &Credit{} - c.GetUser() + var zeroValue int + c := &CreateCodespaceOptions{RetentionPeriodMinutes: &zeroValue} + c.GetRetentionPeriodMinutes() + c = &CreateCodespaceOptions{} + c.GetRetentionPeriodMinutes() c = nil - c.GetUser() + c.GetRetentionPeriodMinutes() } -func TestCustomDeploymentProtectionRule_GetApp(tt *testing.T) { +func TestCreateCodespaceOptions_GetWorkingDirectory(tt *testing.T) { tt.Parallel() - c := &CustomDeploymentProtectionRule{} - c.GetApp() + var zeroValue string + c := &CreateCodespaceOptions{WorkingDirectory: &zeroValue} + c.GetWorkingDirectory() + c = &CreateCodespaceOptions{} + c.GetWorkingDirectory() c = nil - c.GetApp() + c.GetWorkingDirectory() } -func TestCustomDeploymentProtectionRule_GetEnabled(tt *testing.T) { +func TestCreateEnterpriseRunnerGroupRequest_GetAllowsPublicRepositories(tt *testing.T) { tt.Parallel() var zeroValue bool - c := &CustomDeploymentProtectionRule{Enabled: &zeroValue} - c.GetEnabled() - c = &CustomDeploymentProtectionRule{} - c.GetEnabled() + c := &CreateEnterpriseRunnerGroupRequest{AllowsPublicRepositories: &zeroValue} + c.GetAllowsPublicRepositories() + c = &CreateEnterpriseRunnerGroupRequest{} + c.GetAllowsPublicRepositories() c = nil - c.GetEnabled() + c.GetAllowsPublicRepositories() } -func TestCustomDeploymentProtectionRule_GetID(tt *testing.T) { +func TestCreateEnterpriseRunnerGroupRequest_GetName(tt *testing.T) { tt.Parallel() - var zeroValue int64 - c := &CustomDeploymentProtectionRule{ID: &zeroValue} - c.GetID() - c = &CustomDeploymentProtectionRule{} - c.GetID() + var zeroValue string + c := &CreateEnterpriseRunnerGroupRequest{Name: &zeroValue} + c.GetName() + c = &CreateEnterpriseRunnerGroupRequest{} + c.GetName() c = nil - c.GetID() + c.GetName() } -func TestCustomDeploymentProtectionRule_GetNodeID(tt *testing.T) { +func TestCreateEnterpriseRunnerGroupRequest_GetRestrictedToWorkflows(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &CustomDeploymentProtectionRule{NodeID: &zeroValue} - c.GetNodeID() - c = &CustomDeploymentProtectionRule{} - c.GetNodeID() + var zeroValue bool + c := &CreateEnterpriseRunnerGroupRequest{RestrictedToWorkflows: &zeroValue} + c.GetRestrictedToWorkflows() + c = &CreateEnterpriseRunnerGroupRequest{} + c.GetRestrictedToWorkflows() c = nil - c.GetNodeID() + c.GetRestrictedToWorkflows() } -func TestCustomDeploymentProtectionRuleApp_GetID(tt *testing.T) { +func TestCreateEnterpriseRunnerGroupRequest_GetVisibility(tt *testing.T) { tt.Parallel() - var zeroValue int64 - c := &CustomDeploymentProtectionRuleApp{ID: &zeroValue} - c.GetID() - c = &CustomDeploymentProtectionRuleApp{} - c.GetID() + var zeroValue string + c := &CreateEnterpriseRunnerGroupRequest{Visibility: &zeroValue} + c.GetVisibility() + c = &CreateEnterpriseRunnerGroupRequest{} + c.GetVisibility() c = nil - c.GetID() + c.GetVisibility() } -func TestCustomDeploymentProtectionRuleApp_GetIntegrationURL(tt *testing.T) { +func TestCreateEvent_GetDescription(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CustomDeploymentProtectionRuleApp{IntegrationURL: &zeroValue} - c.GetIntegrationURL() - c = &CustomDeploymentProtectionRuleApp{} - c.GetIntegrationURL() + c := &CreateEvent{Description: &zeroValue} + c.GetDescription() + c = &CreateEvent{} + c.GetDescription() c = nil - c.GetIntegrationURL() + c.GetDescription() } -func TestCustomDeploymentProtectionRuleApp_GetNodeID(tt *testing.T) { +func TestCreateEvent_GetInstallation(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &CustomDeploymentProtectionRuleApp{NodeID: &zeroValue} - c.GetNodeID() - c = &CustomDeploymentProtectionRuleApp{} - c.GetNodeID() + c := &CreateEvent{} + c.GetInstallation() c = nil - c.GetNodeID() + c.GetInstallation() } -func TestCustomDeploymentProtectionRuleApp_GetSlug(tt *testing.T) { +func TestCreateEvent_GetMasterBranch(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CustomDeploymentProtectionRuleApp{Slug: &zeroValue} - c.GetSlug() - c = &CustomDeploymentProtectionRuleApp{} - c.GetSlug() + c := &CreateEvent{MasterBranch: &zeroValue} + c.GetMasterBranch() + c = &CreateEvent{} + c.GetMasterBranch() c = nil - c.GetSlug() + c.GetMasterBranch() } -func TestCustomDeploymentProtectionRuleRequest_GetIntegrationID(tt *testing.T) { +func TestCreateEvent_GetOrg(tt *testing.T) { tt.Parallel() - var zeroValue int64 - c := &CustomDeploymentProtectionRuleRequest{IntegrationID: &zeroValue} - c.GetIntegrationID() - c = &CustomDeploymentProtectionRuleRequest{} - c.GetIntegrationID() + c := &CreateEvent{} + c.GetOrg() c = nil - c.GetIntegrationID() + c.GetOrg() } -func TestCustomOrgRoles_GetBaseRole(tt *testing.T) { +func TestCreateEvent_GetPusherType(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CustomOrgRoles{BaseRole: &zeroValue} - c.GetBaseRole() - c = &CustomOrgRoles{} - c.GetBaseRole() + c := &CreateEvent{PusherType: &zeroValue} + c.GetPusherType() + c = &CreateEvent{} + c.GetPusherType() c = nil - c.GetBaseRole() + c.GetPusherType() } -func TestCustomOrgRoles_GetCreatedAt(tt *testing.T) { +func TestCreateEvent_GetRef(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - c := &CustomOrgRoles{CreatedAt: &zeroValue} - c.GetCreatedAt() - c = &CustomOrgRoles{} - c.GetCreatedAt() + var zeroValue string + c := &CreateEvent{Ref: &zeroValue} + c.GetRef() + c = &CreateEvent{} + c.GetRef() c = nil - c.GetCreatedAt() + c.GetRef() } -func TestCustomOrgRoles_GetDescription(tt *testing.T) { +func TestCreateEvent_GetRefType(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CustomOrgRoles{Description: &zeroValue} - c.GetDescription() - c = &CustomOrgRoles{} - c.GetDescription() + c := &CreateEvent{RefType: &zeroValue} + c.GetRefType() + c = &CreateEvent{} + c.GetRefType() c = nil - c.GetDescription() + c.GetRefType() } -func TestCustomOrgRoles_GetID(tt *testing.T) { +func TestCreateEvent_GetRepo(tt *testing.T) { tt.Parallel() - var zeroValue int64 - c := &CustomOrgRoles{ID: &zeroValue} - c.GetID() - c = &CustomOrgRoles{} - c.GetID() + c := &CreateEvent{} + c.GetRepo() c = nil - c.GetID() + c.GetRepo() } -func TestCustomOrgRoles_GetName(tt *testing.T) { +func TestCreateEvent_GetSender(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &CustomOrgRoles{Name: &zeroValue} - c.GetName() - c = &CustomOrgRoles{} - c.GetName() + c := &CreateEvent{} + c.GetSender() c = nil - c.GetName() + c.GetSender() } -func TestCustomOrgRoles_GetOrg(tt *testing.T) { +func TestCreateOrgInvitationOptions_GetEmail(tt *testing.T) { tt.Parallel() - c := &CustomOrgRoles{} - c.GetOrg() + var zeroValue string + c := &CreateOrgInvitationOptions{Email: &zeroValue} + c.GetEmail() + c = &CreateOrgInvitationOptions{} + c.GetEmail() c = nil - c.GetOrg() + c.GetEmail() } -func TestCustomOrgRoles_GetSource(tt *testing.T) { +func TestCreateOrgInvitationOptions_GetInviteeID(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &CustomOrgRoles{Source: &zeroValue} - c.GetSource() - c = &CustomOrgRoles{} - c.GetSource() + var zeroValue int64 + c := &CreateOrgInvitationOptions{InviteeID: &zeroValue} + c.GetInviteeID() + c = &CreateOrgInvitationOptions{} + c.GetInviteeID() c = nil - c.GetSource() + c.GetInviteeID() } -func TestCustomOrgRoles_GetUpdatedAt(tt *testing.T) { +func TestCreateOrgInvitationOptions_GetRole(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - c := &CustomOrgRoles{UpdatedAt: &zeroValue} - c.GetUpdatedAt() - c = &CustomOrgRoles{} - c.GetUpdatedAt() + var zeroValue string + c := &CreateOrgInvitationOptions{Role: &zeroValue} + c.GetRole() + c = &CreateOrgInvitationOptions{} + c.GetRole() c = nil - c.GetUpdatedAt() + c.GetRole() } -func TestCustomProperty_GetDefaultValue(tt *testing.T) { +func TestCreateOrUpdateCustomRepoRoleOptions_GetBaseRole(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CustomProperty{DefaultValue: &zeroValue} - c.GetDefaultValue() - c = &CustomProperty{} - c.GetDefaultValue() + c := &CreateOrUpdateCustomRepoRoleOptions{BaseRole: &zeroValue} + c.GetBaseRole() + c = &CreateOrUpdateCustomRepoRoleOptions{} + c.GetBaseRole() c = nil - c.GetDefaultValue() + c.GetBaseRole() } -func TestCustomProperty_GetDescription(tt *testing.T) { +func TestCreateOrUpdateCustomRepoRoleOptions_GetDescription(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CustomProperty{Description: &zeroValue} + c := &CreateOrUpdateCustomRepoRoleOptions{Description: &zeroValue} c.GetDescription() - c = &CustomProperty{} + c = &CreateOrUpdateCustomRepoRoleOptions{} c.GetDescription() c = nil c.GetDescription() } -func TestCustomProperty_GetPropertyName(tt *testing.T) { +func TestCreateOrUpdateCustomRepoRoleOptions_GetName(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CustomProperty{PropertyName: &zeroValue} - c.GetPropertyName() - c = &CustomProperty{} - c.GetPropertyName() - c = nil - c.GetPropertyName() -} - -func TestCustomProperty_GetRequired(tt *testing.T) { - tt.Parallel() - var zeroValue bool - c := &CustomProperty{Required: &zeroValue} - c.GetRequired() - c = &CustomProperty{} - c.GetRequired() + c := &CreateOrUpdateCustomRepoRoleOptions{Name: &zeroValue} + c.GetName() + c = &CreateOrUpdateCustomRepoRoleOptions{} + c.GetName() c = nil - c.GetRequired() + c.GetName() } -func TestCustomProperty_GetSourceType(tt *testing.T) { +func TestCreateOrUpdateOrgRoleOptions_GetBaseRole(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CustomProperty{SourceType: &zeroValue} - c.GetSourceType() - c = &CustomProperty{} - c.GetSourceType() + c := &CreateOrUpdateOrgRoleOptions{BaseRole: &zeroValue} + c.GetBaseRole() + c = &CreateOrUpdateOrgRoleOptions{} + c.GetBaseRole() c = nil - c.GetSourceType() + c.GetBaseRole() } -func TestCustomProperty_GetValuesEditableBy(tt *testing.T) { +func TestCreateOrUpdateOrgRoleOptions_GetDescription(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CustomProperty{ValuesEditableBy: &zeroValue} - c.GetValuesEditableBy() - c = &CustomProperty{} - c.GetValuesEditableBy() + c := &CreateOrUpdateOrgRoleOptions{Description: &zeroValue} + c.GetDescription() + c = &CreateOrUpdateOrgRoleOptions{} + c.GetDescription() c = nil - c.GetValuesEditableBy() + c.GetDescription() } -func TestCustomPropertyEvent_GetAction(tt *testing.T) { +func TestCreateOrUpdateOrgRoleOptions_GetName(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CustomPropertyEvent{Action: &zeroValue} - c.GetAction() - c = &CustomPropertyEvent{} - c.GetAction() - c = nil - c.GetAction() -} - -func TestCustomPropertyEvent_GetDefinition(tt *testing.T) { - tt.Parallel() - c := &CustomPropertyEvent{} - c.GetDefinition() + c := &CreateOrUpdateOrgRoleOptions{Name: &zeroValue} + c.GetName() + c = &CreateOrUpdateOrgRoleOptions{} + c.GetName() c = nil - c.GetDefinition() + c.GetName() } -func TestCustomPropertyEvent_GetEnterprise(tt *testing.T) { +func TestCreateProtectedChanges_GetFrom(tt *testing.T) { tt.Parallel() - c := &CustomPropertyEvent{} - c.GetEnterprise() + var zeroValue bool + c := &CreateProtectedChanges{From: &zeroValue} + c.GetFrom() + c = &CreateProtectedChanges{} + c.GetFrom() c = nil - c.GetEnterprise() + c.GetFrom() } -func TestCustomPropertyEvent_GetInstallation(tt *testing.T) { +func TestCreateRunnerGroupRequest_GetAllowsPublicRepositories(tt *testing.T) { tt.Parallel() - c := &CustomPropertyEvent{} - c.GetInstallation() + var zeroValue bool + c := &CreateRunnerGroupRequest{AllowsPublicRepositories: &zeroValue} + c.GetAllowsPublicRepositories() + c = &CreateRunnerGroupRequest{} + c.GetAllowsPublicRepositories() c = nil - c.GetInstallation() + c.GetAllowsPublicRepositories() } -func TestCustomPropertyEvent_GetOrg(tt *testing.T) { +func TestCreateRunnerGroupRequest_GetName(tt *testing.T) { tt.Parallel() - c := &CustomPropertyEvent{} - c.GetOrg() + var zeroValue string + c := &CreateRunnerGroupRequest{Name: &zeroValue} + c.GetName() + c = &CreateRunnerGroupRequest{} + c.GetName() c = nil - c.GetOrg() + c.GetName() } -func TestCustomPropertyEvent_GetSender(tt *testing.T) { +func TestCreateRunnerGroupRequest_GetRestrictedToWorkflows(tt *testing.T) { tt.Parallel() - c := &CustomPropertyEvent{} - c.GetSender() + var zeroValue bool + c := &CreateRunnerGroupRequest{RestrictedToWorkflows: &zeroValue} + c.GetRestrictedToWorkflows() + c = &CreateRunnerGroupRequest{} + c.GetRestrictedToWorkflows() c = nil - c.GetSender() + c.GetRestrictedToWorkflows() } -func TestCustomPropertyValuesEvent_GetAction(tt *testing.T) { +func TestCreateRunnerGroupRequest_GetVisibility(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CustomPropertyValuesEvent{Action: &zeroValue} - c.GetAction() - c = &CustomPropertyValuesEvent{} - c.GetAction() + c := &CreateRunnerGroupRequest{Visibility: &zeroValue} + c.GetVisibility() + c = &CreateRunnerGroupRequest{} + c.GetVisibility() c = nil - c.GetAction() + c.GetVisibility() } -func TestCustomPropertyValuesEvent_GetEnterprise(tt *testing.T) { +func TestCreateUpdateEnvironment_GetCanAdminsBypass(tt *testing.T) { tt.Parallel() - c := &CustomPropertyValuesEvent{} - c.GetEnterprise() + var zeroValue bool + c := &CreateUpdateEnvironment{CanAdminsBypass: &zeroValue} + c.GetCanAdminsBypass() + c = &CreateUpdateEnvironment{} + c.GetCanAdminsBypass() c = nil - c.GetEnterprise() + c.GetCanAdminsBypass() } -func TestCustomPropertyValuesEvent_GetInstallation(tt *testing.T) { +func TestCreateUpdateEnvironment_GetDeploymentBranchPolicy(tt *testing.T) { tt.Parallel() - c := &CustomPropertyValuesEvent{} - c.GetInstallation() + c := &CreateUpdateEnvironment{} + c.GetDeploymentBranchPolicy() c = nil - c.GetInstallation() + c.GetDeploymentBranchPolicy() } -func TestCustomPropertyValuesEvent_GetOrg(tt *testing.T) { +func TestCreateUpdateEnvironment_GetPreventSelfReview(tt *testing.T) { tt.Parallel() - c := &CustomPropertyValuesEvent{} - c.GetOrg() + var zeroValue bool + c := &CreateUpdateEnvironment{PreventSelfReview: &zeroValue} + c.GetPreventSelfReview() + c = &CreateUpdateEnvironment{} + c.GetPreventSelfReview() c = nil - c.GetOrg() + c.GetPreventSelfReview() } -func TestCustomPropertyValuesEvent_GetRepo(tt *testing.T) { +func TestCreateUpdateEnvironment_GetWaitTimer(tt *testing.T) { tt.Parallel() - c := &CustomPropertyValuesEvent{} - c.GetRepo() + var zeroValue int + c := &CreateUpdateEnvironment{WaitTimer: &zeroValue} + c.GetWaitTimer() + c = &CreateUpdateEnvironment{} + c.GetWaitTimer() c = nil - c.GetRepo() + c.GetWaitTimer() } -func TestCustomPropertyValuesEvent_GetSender(tt *testing.T) { +func TestCreateUpdateRequiredWorkflowOptions_GetRepositoryID(tt *testing.T) { tt.Parallel() - c := &CustomPropertyValuesEvent{} - c.GetSender() + var zeroValue int64 + c := &CreateUpdateRequiredWorkflowOptions{RepositoryID: &zeroValue} + c.GetRepositoryID() + c = &CreateUpdateRequiredWorkflowOptions{} + c.GetRepositoryID() c = nil - c.GetSender() + c.GetRepositoryID() } -func TestCustomRepoRoles_GetBaseRole(tt *testing.T) { +func TestCreateUpdateRequiredWorkflowOptions_GetScope(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CustomRepoRoles{BaseRole: &zeroValue} - c.GetBaseRole() - c = &CustomRepoRoles{} - c.GetBaseRole() + c := &CreateUpdateRequiredWorkflowOptions{Scope: &zeroValue} + c.GetScope() + c = &CreateUpdateRequiredWorkflowOptions{} + c.GetScope() c = nil - c.GetBaseRole() + c.GetScope() } -func TestCustomRepoRoles_GetCreatedAt(tt *testing.T) { +func TestCreateUpdateRequiredWorkflowOptions_GetSelectedRepositoryIDs(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - c := &CustomRepoRoles{CreatedAt: &zeroValue} - c.GetCreatedAt() - c = &CustomRepoRoles{} - c.GetCreatedAt() + c := &CreateUpdateRequiredWorkflowOptions{} + c.GetSelectedRepositoryIDs() c = nil - c.GetCreatedAt() + c.GetSelectedRepositoryIDs() } -func TestCustomRepoRoles_GetDescription(tt *testing.T) { +func TestCreateUpdateRequiredWorkflowOptions_GetWorkflowFilePath(tt *testing.T) { tt.Parallel() var zeroValue string - c := &CustomRepoRoles{Description: &zeroValue} - c.GetDescription() - c = &CustomRepoRoles{} - c.GetDescription() + c := &CreateUpdateRequiredWorkflowOptions{WorkflowFilePath: &zeroValue} + c.GetWorkflowFilePath() + c = &CreateUpdateRequiredWorkflowOptions{} + c.GetWorkflowFilePath() c = nil - c.GetDescription() + c.GetWorkflowFilePath() } -func TestCustomRepoRoles_GetID(tt *testing.T) { +func TestCreateUserRequest_GetEmail(tt *testing.T) { tt.Parallel() - var zeroValue int64 - c := &CustomRepoRoles{ID: &zeroValue} - c.GetID() - c = &CustomRepoRoles{} - c.GetID() + var zeroValue string + c := &CreateUserRequest{Email: &zeroValue} + c.GetEmail() + c = &CreateUserRequest{} + c.GetEmail() c = nil - c.GetID() + c.GetEmail() } -func TestCustomRepoRoles_GetName(tt *testing.T) { +func TestCreateUserRequest_GetSuspended(tt *testing.T) { tt.Parallel() - var zeroValue string - c := &CustomRepoRoles{Name: &zeroValue} - c.GetName() - c = &CustomRepoRoles{} - c.GetName() + var zeroValue bool + c := &CreateUserRequest{Suspended: &zeroValue} + c.GetSuspended() + c = &CreateUserRequest{} + c.GetSuspended() c = nil - c.GetName() + c.GetSuspended() } -func TestCustomRepoRoles_GetOrg(tt *testing.T) { +func TestCreationInfo_GetCreated(tt *testing.T) { tt.Parallel() - c := &CustomRepoRoles{} - c.GetOrg() + var zeroValue Timestamp + c := &CreationInfo{Created: &zeroValue} + c.GetCreated() + c = &CreationInfo{} + c.GetCreated() c = nil - c.GetOrg() + c.GetCreated() } -func TestCustomRepoRoles_GetUpdatedAt(tt *testing.T) { +func TestCredentialAuthorization_GetAuthorizedCredentialExpiresAt(tt *testing.T) { tt.Parallel() var zeroValue Timestamp - c := &CustomRepoRoles{UpdatedAt: &zeroValue} - c.GetUpdatedAt() - c = &CustomRepoRoles{} - c.GetUpdatedAt() + c := &CredentialAuthorization{AuthorizedCredentialExpiresAt: &zeroValue} + c.GetAuthorizedCredentialExpiresAt() + c = &CredentialAuthorization{} + c.GetAuthorizedCredentialExpiresAt() c = nil - c.GetUpdatedAt() + c.GetAuthorizedCredentialExpiresAt() } -func TestDefaultSetupConfiguration_GetQuerySuite(tt *testing.T) { +func TestCredentialAuthorization_GetAuthorizedCredentialID(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DefaultSetupConfiguration{QuerySuite: &zeroValue} - d.GetQuerySuite() - d = &DefaultSetupConfiguration{} - d.GetQuerySuite() - d = nil - d.GetQuerySuite() + var zeroValue int64 + c := &CredentialAuthorization{AuthorizedCredentialID: &zeroValue} + c.GetAuthorizedCredentialID() + c = &CredentialAuthorization{} + c.GetAuthorizedCredentialID() + c = nil + c.GetAuthorizedCredentialID() } -func TestDefaultSetupConfiguration_GetState(tt *testing.T) { +func TestCredentialAuthorization_GetAuthorizedCredentialNote(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DefaultSetupConfiguration{State: &zeroValue} - d.GetState() - d = &DefaultSetupConfiguration{} - d.GetState() - d = nil - d.GetState() + c := &CredentialAuthorization{AuthorizedCredentialNote: &zeroValue} + c.GetAuthorizedCredentialNote() + c = &CredentialAuthorization{} + c.GetAuthorizedCredentialNote() + c = nil + c.GetAuthorizedCredentialNote() } -func TestDefaultSetupConfiguration_GetUpdatedAt(tt *testing.T) { +func TestCredentialAuthorization_GetAuthorizedCredentialTitle(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - d := &DefaultSetupConfiguration{UpdatedAt: &zeroValue} - d.GetUpdatedAt() - d = &DefaultSetupConfiguration{} - d.GetUpdatedAt() - d = nil - d.GetUpdatedAt() + var zeroValue string + c := &CredentialAuthorization{AuthorizedCredentialTitle: &zeroValue} + c.GetAuthorizedCredentialTitle() + c = &CredentialAuthorization{} + c.GetAuthorizedCredentialTitle() + c = nil + c.GetAuthorizedCredentialTitle() } -func TestDefaultWorkflowPermissionEnterprise_GetCanApprovePullRequestReviews(tt *testing.T) { +func TestCredentialAuthorization_GetCredentialAccessedAt(tt *testing.T) { tt.Parallel() - var zeroValue bool - d := &DefaultWorkflowPermissionEnterprise{CanApprovePullRequestReviews: &zeroValue} - d.GetCanApprovePullRequestReviews() - d = &DefaultWorkflowPermissionEnterprise{} - d.GetCanApprovePullRequestReviews() - d = nil - d.GetCanApprovePullRequestReviews() + var zeroValue Timestamp + c := &CredentialAuthorization{CredentialAccessedAt: &zeroValue} + c.GetCredentialAccessedAt() + c = &CredentialAuthorization{} + c.GetCredentialAccessedAt() + c = nil + c.GetCredentialAccessedAt() } -func TestDefaultWorkflowPermissionEnterprise_GetDefaultWorkflowPermissions(tt *testing.T) { +func TestCredentialAuthorization_GetCredentialAuthorizedAt(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DefaultWorkflowPermissionEnterprise{DefaultWorkflowPermissions: &zeroValue} - d.GetDefaultWorkflowPermissions() - d = &DefaultWorkflowPermissionEnterprise{} - d.GetDefaultWorkflowPermissions() - d = nil - d.GetDefaultWorkflowPermissions() + var zeroValue Timestamp + c := &CredentialAuthorization{CredentialAuthorizedAt: &zeroValue} + c.GetCredentialAuthorizedAt() + c = &CredentialAuthorization{} + c.GetCredentialAuthorizedAt() + c = nil + c.GetCredentialAuthorizedAt() } -func TestDefaultWorkflowPermissionOrganization_GetCanApprovePullRequestReviews(tt *testing.T) { +func TestCredentialAuthorization_GetCredentialID(tt *testing.T) { tt.Parallel() - var zeroValue bool - d := &DefaultWorkflowPermissionOrganization{CanApprovePullRequestReviews: &zeroValue} - d.GetCanApprovePullRequestReviews() - d = &DefaultWorkflowPermissionOrganization{} - d.GetCanApprovePullRequestReviews() - d = nil - d.GetCanApprovePullRequestReviews() + var zeroValue int64 + c := &CredentialAuthorization{CredentialID: &zeroValue} + c.GetCredentialID() + c = &CredentialAuthorization{} + c.GetCredentialID() + c = nil + c.GetCredentialID() } -func TestDefaultWorkflowPermissionOrganization_GetDefaultWorkflowPermissions(tt *testing.T) { +func TestCredentialAuthorization_GetCredentialType(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DefaultWorkflowPermissionOrganization{DefaultWorkflowPermissions: &zeroValue} - d.GetDefaultWorkflowPermissions() - d = &DefaultWorkflowPermissionOrganization{} - d.GetDefaultWorkflowPermissions() - d = nil - d.GetDefaultWorkflowPermissions() + c := &CredentialAuthorization{CredentialType: &zeroValue} + c.GetCredentialType() + c = &CredentialAuthorization{} + c.GetCredentialType() + c = nil + c.GetCredentialType() } -func TestDefaultWorkflowPermissionRepository_GetCanApprovePullRequestReviews(tt *testing.T) { +func TestCredentialAuthorization_GetFingerprint(tt *testing.T) { tt.Parallel() - var zeroValue bool - d := &DefaultWorkflowPermissionRepository{CanApprovePullRequestReviews: &zeroValue} - d.GetCanApprovePullRequestReviews() - d = &DefaultWorkflowPermissionRepository{} - d.GetCanApprovePullRequestReviews() - d = nil - d.GetCanApprovePullRequestReviews() + var zeroValue string + c := &CredentialAuthorization{Fingerprint: &zeroValue} + c.GetFingerprint() + c = &CredentialAuthorization{} + c.GetFingerprint() + c = nil + c.GetFingerprint() } -func TestDefaultWorkflowPermissionRepository_GetDefaultWorkflowPermissions(tt *testing.T) { +func TestCredentialAuthorization_GetLogin(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DefaultWorkflowPermissionRepository{DefaultWorkflowPermissions: &zeroValue} - d.GetDefaultWorkflowPermissions() - d = &DefaultWorkflowPermissionRepository{} - d.GetDefaultWorkflowPermissions() - d = nil - d.GetDefaultWorkflowPermissions() + c := &CredentialAuthorization{Login: &zeroValue} + c.GetLogin() + c = &CredentialAuthorization{} + c.GetLogin() + c = nil + c.GetLogin() } -func TestDeleteAnalysis_GetConfirmDeleteURL(tt *testing.T) { +func TestCredentialAuthorization_GetTokenLastEight(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DeleteAnalysis{ConfirmDeleteURL: &zeroValue} - d.GetConfirmDeleteURL() - d = &DeleteAnalysis{} - d.GetConfirmDeleteURL() - d = nil - d.GetConfirmDeleteURL() + c := &CredentialAuthorization{TokenLastEight: &zeroValue} + c.GetTokenLastEight() + c = &CredentialAuthorization{} + c.GetTokenLastEight() + c = nil + c.GetTokenLastEight() } -func TestDeleteAnalysis_GetNextAnalysisURL(tt *testing.T) { +func TestCredit_GetType(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DeleteAnalysis{NextAnalysisURL: &zeroValue} - d.GetNextAnalysisURL() - d = &DeleteAnalysis{} - d.GetNextAnalysisURL() - d = nil - d.GetNextAnalysisURL() + c := &Credit{Type: &zeroValue} + c.GetType() + c = &Credit{} + c.GetType() + c = nil + c.GetType() } -func TestDeleteEvent_GetInstallation(tt *testing.T) { +func TestCredit_GetUser(tt *testing.T) { tt.Parallel() - d := &DeleteEvent{} - d.GetInstallation() - d = nil - d.GetInstallation() + c := &Credit{} + c.GetUser() + c = nil + c.GetUser() } -func TestDeleteEvent_GetOrg(tt *testing.T) { +func TestCustomDeploymentProtectionRule_GetApp(tt *testing.T) { tt.Parallel() - d := &DeleteEvent{} - d.GetOrg() - d = nil - d.GetOrg() + c := &CustomDeploymentProtectionRule{} + c.GetApp() + c = nil + c.GetApp() } -func TestDeleteEvent_GetPusherType(tt *testing.T) { +func TestCustomDeploymentProtectionRule_GetEnabled(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DeleteEvent{PusherType: &zeroValue} - d.GetPusherType() - d = &DeleteEvent{} - d.GetPusherType() - d = nil - d.GetPusherType() + var zeroValue bool + c := &CustomDeploymentProtectionRule{Enabled: &zeroValue} + c.GetEnabled() + c = &CustomDeploymentProtectionRule{} + c.GetEnabled() + c = nil + c.GetEnabled() } -func TestDeleteEvent_GetRef(tt *testing.T) { +func TestCustomDeploymentProtectionRule_GetID(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DeleteEvent{Ref: &zeroValue} - d.GetRef() - d = &DeleteEvent{} - d.GetRef() - d = nil - d.GetRef() + var zeroValue int64 + c := &CustomDeploymentProtectionRule{ID: &zeroValue} + c.GetID() + c = &CustomDeploymentProtectionRule{} + c.GetID() + c = nil + c.GetID() } -func TestDeleteEvent_GetRefType(tt *testing.T) { +func TestCustomDeploymentProtectionRule_GetNodeID(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DeleteEvent{RefType: &zeroValue} - d.GetRefType() - d = &DeleteEvent{} - d.GetRefType() - d = nil - d.GetRefType() + c := &CustomDeploymentProtectionRule{NodeID: &zeroValue} + c.GetNodeID() + c = &CustomDeploymentProtectionRule{} + c.GetNodeID() + c = nil + c.GetNodeID() } -func TestDeleteEvent_GetRepo(tt *testing.T) { +func TestCustomDeploymentProtectionRuleApp_GetID(tt *testing.T) { tt.Parallel() - d := &DeleteEvent{} - d.GetRepo() - d = nil - d.GetRepo() + var zeroValue int64 + c := &CustomDeploymentProtectionRuleApp{ID: &zeroValue} + c.GetID() + c = &CustomDeploymentProtectionRuleApp{} + c.GetID() + c = nil + c.GetID() } -func TestDeleteEvent_GetSender(tt *testing.T) { +func TestCustomDeploymentProtectionRuleApp_GetIntegrationURL(tt *testing.T) { tt.Parallel() - d := &DeleteEvent{} - d.GetSender() - d = nil - d.GetSender() + var zeroValue string + c := &CustomDeploymentProtectionRuleApp{IntegrationURL: &zeroValue} + c.GetIntegrationURL() + c = &CustomDeploymentProtectionRuleApp{} + c.GetIntegrationURL() + c = nil + c.GetIntegrationURL() } -func TestDependabotAlert_GetAutoDismissedAt(tt *testing.T) { +func TestCustomDeploymentProtectionRuleApp_GetNodeID(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - d := &DependabotAlert{AutoDismissedAt: &zeroValue} - d.GetAutoDismissedAt() - d = &DependabotAlert{} - d.GetAutoDismissedAt() - d = nil - d.GetAutoDismissedAt() + var zeroValue string + c := &CustomDeploymentProtectionRuleApp{NodeID: &zeroValue} + c.GetNodeID() + c = &CustomDeploymentProtectionRuleApp{} + c.GetNodeID() + c = nil + c.GetNodeID() } -func TestDependabotAlert_GetCreatedAt(tt *testing.T) { +func TestCustomDeploymentProtectionRuleApp_GetSlug(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - d := &DependabotAlert{CreatedAt: &zeroValue} - d.GetCreatedAt() - d = &DependabotAlert{} - d.GetCreatedAt() - d = nil - d.GetCreatedAt() + var zeroValue string + c := &CustomDeploymentProtectionRuleApp{Slug: &zeroValue} + c.GetSlug() + c = &CustomDeploymentProtectionRuleApp{} + c.GetSlug() + c = nil + c.GetSlug() } -func TestDependabotAlert_GetDependency(tt *testing.T) { +func TestCustomDeploymentProtectionRuleRequest_GetIntegrationID(tt *testing.T) { tt.Parallel() - d := &DependabotAlert{} - d.GetDependency() - d = nil - d.GetDependency() + var zeroValue int64 + c := &CustomDeploymentProtectionRuleRequest{IntegrationID: &zeroValue} + c.GetIntegrationID() + c = &CustomDeploymentProtectionRuleRequest{} + c.GetIntegrationID() + c = nil + c.GetIntegrationID() } -func TestDependabotAlert_GetDismissedAt(tt *testing.T) { +func TestCustomer_GetEmail(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - d := &DependabotAlert{DismissedAt: &zeroValue} - d.GetDismissedAt() - d = &DependabotAlert{} - d.GetDismissedAt() - d = nil - d.GetDismissedAt() + var zeroValue string + c := &Customer{Email: &zeroValue} + c.GetEmail() + c = &Customer{} + c.GetEmail() + c = nil + c.GetEmail() } -func TestDependabotAlert_GetDismissedBy(tt *testing.T) { +func TestCustomer_GetName(tt *testing.T) { tt.Parallel() - d := &DependabotAlert{} - d.GetDismissedBy() - d = nil - d.GetDismissedBy() + var zeroValue string + c := &Customer{Name: &zeroValue} + c.GetName() + c = &Customer{} + c.GetName() + c = nil + c.GetName() } -func TestDependabotAlert_GetDismissedComment(tt *testing.T) { +func TestCustomer_GetPublicKeyData(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DependabotAlert{DismissedComment: &zeroValue} - d.GetDismissedComment() - d = &DependabotAlert{} - d.GetDismissedComment() - d = nil - d.GetDismissedComment() + c := &Customer{PublicKeyData: &zeroValue} + c.GetPublicKeyData() + c = &Customer{} + c.GetPublicKeyData() + c = nil + c.GetPublicKeyData() } -func TestDependabotAlert_GetDismissedReason(tt *testing.T) { +func TestCustomer_GetSecretKeyData(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DependabotAlert{DismissedReason: &zeroValue} - d.GetDismissedReason() - d = &DependabotAlert{} - d.GetDismissedReason() - d = nil - d.GetDismissedReason() + c := &Customer{SecretKeyData: &zeroValue} + c.GetSecretKeyData() + c = &Customer{} + c.GetSecretKeyData() + c = nil + c.GetSecretKeyData() } -func TestDependabotAlert_GetFixedAt(tt *testing.T) { +func TestCustomer_GetUUID(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - d := &DependabotAlert{FixedAt: &zeroValue} - d.GetFixedAt() - d = &DependabotAlert{} - d.GetFixedAt() - d = nil - d.GetFixedAt() + var zeroValue string + c := &Customer{UUID: &zeroValue} + c.GetUUID() + c = &Customer{} + c.GetUUID() + c = nil + c.GetUUID() } -func TestDependabotAlert_GetHTMLURL(tt *testing.T) { +func TestCustomOrgRoles_GetBaseRole(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DependabotAlert{HTMLURL: &zeroValue} - d.GetHTMLURL() - d = &DependabotAlert{} - d.GetHTMLURL() - d = nil - d.GetHTMLURL() + c := &CustomOrgRoles{BaseRole: &zeroValue} + c.GetBaseRole() + c = &CustomOrgRoles{} + c.GetBaseRole() + c = nil + c.GetBaseRole() } -func TestDependabotAlert_GetNumber(tt *testing.T) { +func TestCustomOrgRoles_GetCreatedAt(tt *testing.T) { tt.Parallel() - var zeroValue int - d := &DependabotAlert{Number: &zeroValue} - d.GetNumber() - d = &DependabotAlert{} - d.GetNumber() - d = nil - d.GetNumber() + var zeroValue Timestamp + c := &CustomOrgRoles{CreatedAt: &zeroValue} + c.GetCreatedAt() + c = &CustomOrgRoles{} + c.GetCreatedAt() + c = nil + c.GetCreatedAt() } -func TestDependabotAlert_GetRepository(tt *testing.T) { +func TestCustomOrgRoles_GetDescription(tt *testing.T) { tt.Parallel() - d := &DependabotAlert{} - d.GetRepository() - d = nil - d.GetRepository() + var zeroValue string + c := &CustomOrgRoles{Description: &zeroValue} + c.GetDescription() + c = &CustomOrgRoles{} + c.GetDescription() + c = nil + c.GetDescription() } -func TestDependabotAlert_GetSecurityAdvisory(tt *testing.T) { +func TestCustomOrgRoles_GetID(tt *testing.T) { tt.Parallel() - d := &DependabotAlert{} - d.GetSecurityAdvisory() - d = nil - d.GetSecurityAdvisory() + var zeroValue int64 + c := &CustomOrgRoles{ID: &zeroValue} + c.GetID() + c = &CustomOrgRoles{} + c.GetID() + c = nil + c.GetID() } -func TestDependabotAlert_GetSecurityVulnerability(tt *testing.T) { +func TestCustomOrgRoles_GetName(tt *testing.T) { tt.Parallel() - d := &DependabotAlert{} - d.GetSecurityVulnerability() - d = nil - d.GetSecurityVulnerability() + var zeroValue string + c := &CustomOrgRoles{Name: &zeroValue} + c.GetName() + c = &CustomOrgRoles{} + c.GetName() + c = nil + c.GetName() } -func TestDependabotAlert_GetState(tt *testing.T) { +func TestCustomOrgRoles_GetOrg(tt *testing.T) { + tt.Parallel() + c := &CustomOrgRoles{} + c.GetOrg() + c = nil + c.GetOrg() +} + +func TestCustomOrgRoles_GetSource(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DependabotAlert{State: &zeroValue} - d.GetState() - d = &DependabotAlert{} - d.GetState() - d = nil - d.GetState() + c := &CustomOrgRoles{Source: &zeroValue} + c.GetSource() + c = &CustomOrgRoles{} + c.GetSource() + c = nil + c.GetSource() } -func TestDependabotAlert_GetUpdatedAt(tt *testing.T) { +func TestCustomOrgRoles_GetUpdatedAt(tt *testing.T) { tt.Parallel() var zeroValue Timestamp - d := &DependabotAlert{UpdatedAt: &zeroValue} - d.GetUpdatedAt() - d = &DependabotAlert{} - d.GetUpdatedAt() - d = nil - d.GetUpdatedAt() + c := &CustomOrgRoles{UpdatedAt: &zeroValue} + c.GetUpdatedAt() + c = &CustomOrgRoles{} + c.GetUpdatedAt() + c = nil + c.GetUpdatedAt() } -func TestDependabotAlert_GetURL(tt *testing.T) { +func TestCustomProperty_GetDefaultValue(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DependabotAlert{URL: &zeroValue} - d.GetURL() - d = &DependabotAlert{} - d.GetURL() - d = nil - d.GetURL() + c := &CustomProperty{DefaultValue: &zeroValue} + c.GetDefaultValue() + c = &CustomProperty{} + c.GetDefaultValue() + c = nil + c.GetDefaultValue() } -func TestDependabotAlertEvent_GetAction(tt *testing.T) { +func TestCustomProperty_GetDescription(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DependabotAlertEvent{Action: &zeroValue} - d.GetAction() - d = &DependabotAlertEvent{} - d.GetAction() - d = nil - d.GetAction() + c := &CustomProperty{Description: &zeroValue} + c.GetDescription() + c = &CustomProperty{} + c.GetDescription() + c = nil + c.GetDescription() } -func TestDependabotAlertEvent_GetAlert(tt *testing.T) { +func TestCustomProperty_GetPropertyName(tt *testing.T) { tt.Parallel() - d := &DependabotAlertEvent{} - d.GetAlert() - d = nil - d.GetAlert() + var zeroValue string + c := &CustomProperty{PropertyName: &zeroValue} + c.GetPropertyName() + c = &CustomProperty{} + c.GetPropertyName() + c = nil + c.GetPropertyName() } -func TestDependabotAlertEvent_GetEnterprise(tt *testing.T) { +func TestCustomProperty_GetRequired(tt *testing.T) { tt.Parallel() - d := &DependabotAlertEvent{} - d.GetEnterprise() - d = nil - d.GetEnterprise() + var zeroValue bool + c := &CustomProperty{Required: &zeroValue} + c.GetRequired() + c = &CustomProperty{} + c.GetRequired() + c = nil + c.GetRequired() } -func TestDependabotAlertEvent_GetInstallation(tt *testing.T) { +func TestCustomProperty_GetSourceType(tt *testing.T) { tt.Parallel() - d := &DependabotAlertEvent{} - d.GetInstallation() - d = nil - d.GetInstallation() + var zeroValue string + c := &CustomProperty{SourceType: &zeroValue} + c.GetSourceType() + c = &CustomProperty{} + c.GetSourceType() + c = nil + c.GetSourceType() } -func TestDependabotAlertEvent_GetOrganization(tt *testing.T) { +func TestCustomProperty_GetValuesEditableBy(tt *testing.T) { tt.Parallel() - d := &DependabotAlertEvent{} - d.GetOrganization() - d = nil - d.GetOrganization() + var zeroValue string + c := &CustomProperty{ValuesEditableBy: &zeroValue} + c.GetValuesEditableBy() + c = &CustomProperty{} + c.GetValuesEditableBy() + c = nil + c.GetValuesEditableBy() } -func TestDependabotAlertEvent_GetRepo(tt *testing.T) { +func TestCustomPropertyEvent_GetAction(tt *testing.T) { tt.Parallel() - d := &DependabotAlertEvent{} - d.GetRepo() - d = nil - d.GetRepo() + var zeroValue string + c := &CustomPropertyEvent{Action: &zeroValue} + c.GetAction() + c = &CustomPropertyEvent{} + c.GetAction() + c = nil + c.GetAction() } -func TestDependabotAlertEvent_GetSender(tt *testing.T) { +func TestCustomPropertyEvent_GetDefinition(tt *testing.T) { tt.Parallel() - d := &DependabotAlertEvent{} - d.GetSender() - d = nil - d.GetSender() + c := &CustomPropertyEvent{} + c.GetDefinition() + c = nil + c.GetDefinition() } -func TestDependabotAlertState_GetDismissedComment(tt *testing.T) { +func TestCustomPropertyEvent_GetEnterprise(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DependabotAlertState{DismissedComment: &zeroValue} - d.GetDismissedComment() - d = &DependabotAlertState{} - d.GetDismissedComment() - d = nil - d.GetDismissedComment() + c := &CustomPropertyEvent{} + c.GetEnterprise() + c = nil + c.GetEnterprise() } -func TestDependabotAlertState_GetDismissedReason(tt *testing.T) { +func TestCustomPropertyEvent_GetInstallation(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DependabotAlertState{DismissedReason: &zeroValue} - d.GetDismissedReason() - d = &DependabotAlertState{} - d.GetDismissedReason() - d = nil - d.GetDismissedReason() + c := &CustomPropertyEvent{} + c.GetInstallation() + c = nil + c.GetInstallation() } -func TestDependabotSecurityAdvisory_GetCVEID(tt *testing.T) { +func TestCustomPropertyEvent_GetOrg(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DependabotSecurityAdvisory{CVEID: &zeroValue} - d.GetCVEID() - d = &DependabotSecurityAdvisory{} - d.GetCVEID() - d = nil - d.GetCVEID() + c := &CustomPropertyEvent{} + c.GetOrg() + c = nil + c.GetOrg() } -func TestDependabotSecurityAdvisory_GetCVSS(tt *testing.T) { +func TestCustomPropertyEvent_GetSender(tt *testing.T) { tt.Parallel() - d := &DependabotSecurityAdvisory{} - d.GetCVSS() - d = nil - d.GetCVSS() + c := &CustomPropertyEvent{} + c.GetSender() + c = nil + c.GetSender() } -func TestDependabotSecurityAdvisory_GetDescription(tt *testing.T) { +func TestCustomPropertyValuesEvent_GetAction(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DependabotSecurityAdvisory{Description: &zeroValue} - d.GetDescription() - d = &DependabotSecurityAdvisory{} - d.GetDescription() - d = nil - d.GetDescription() + c := &CustomPropertyValuesEvent{Action: &zeroValue} + c.GetAction() + c = &CustomPropertyValuesEvent{} + c.GetAction() + c = nil + c.GetAction() } -func TestDependabotSecurityAdvisory_GetGHSAID(tt *testing.T) { +func TestCustomPropertyValuesEvent_GetEnterprise(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DependabotSecurityAdvisory{GHSAID: &zeroValue} - d.GetGHSAID() - d = &DependabotSecurityAdvisory{} - d.GetGHSAID() - d = nil - d.GetGHSAID() + c := &CustomPropertyValuesEvent{} + c.GetEnterprise() + c = nil + c.GetEnterprise() } -func TestDependabotSecurityAdvisory_GetPublishedAt(tt *testing.T) { +func TestCustomPropertyValuesEvent_GetInstallation(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - d := &DependabotSecurityAdvisory{PublishedAt: &zeroValue} - d.GetPublishedAt() - d = &DependabotSecurityAdvisory{} - d.GetPublishedAt() - d = nil - d.GetPublishedAt() + c := &CustomPropertyValuesEvent{} + c.GetInstallation() + c = nil + c.GetInstallation() } -func TestDependabotSecurityAdvisory_GetSeverity(tt *testing.T) { +func TestCustomPropertyValuesEvent_GetOrg(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DependabotSecurityAdvisory{Severity: &zeroValue} - d.GetSeverity() - d = &DependabotSecurityAdvisory{} - d.GetSeverity() - d = nil - d.GetSeverity() + c := &CustomPropertyValuesEvent{} + c.GetOrg() + c = nil + c.GetOrg() } -func TestDependabotSecurityAdvisory_GetSummary(tt *testing.T) { +func TestCustomPropertyValuesEvent_GetRepo(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DependabotSecurityAdvisory{Summary: &zeroValue} - d.GetSummary() - d = &DependabotSecurityAdvisory{} - d.GetSummary() - d = nil - d.GetSummary() + c := &CustomPropertyValuesEvent{} + c.GetRepo() + c = nil + c.GetRepo() } -func TestDependabotSecurityAdvisory_GetUpdatedAt(tt *testing.T) { +func TestCustomPropertyValuesEvent_GetSender(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - d := &DependabotSecurityAdvisory{UpdatedAt: &zeroValue} - d.GetUpdatedAt() - d = &DependabotSecurityAdvisory{} - d.GetUpdatedAt() - d = nil - d.GetUpdatedAt() + c := &CustomPropertyValuesEvent{} + c.GetSender() + c = nil + c.GetSender() } -func TestDependabotSecurityAdvisory_GetWithdrawnAt(tt *testing.T) { +func TestCustomRepoRoles_GetBaseRole(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - d := &DependabotSecurityAdvisory{WithdrawnAt: &zeroValue} - d.GetWithdrawnAt() - d = &DependabotSecurityAdvisory{} - d.GetWithdrawnAt() - d = nil - d.GetWithdrawnAt() + var zeroValue string + c := &CustomRepoRoles{BaseRole: &zeroValue} + c.GetBaseRole() + c = &CustomRepoRoles{} + c.GetBaseRole() + c = nil + c.GetBaseRole() } -func TestDependabotSecurityUpdates_GetStatus(tt *testing.T) { +func TestCustomRepoRoles_GetCreatedAt(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DependabotSecurityUpdates{Status: &zeroValue} - d.GetStatus() - d = &DependabotSecurityUpdates{} - d.GetStatus() - d = nil - d.GetStatus() + var zeroValue Timestamp + c := &CustomRepoRoles{CreatedAt: &zeroValue} + c.GetCreatedAt() + c = &CustomRepoRoles{} + c.GetCreatedAt() + c = nil + c.GetCreatedAt() } -func TestDependency_GetManifestPath(tt *testing.T) { +func TestCustomRepoRoles_GetDescription(tt *testing.T) { tt.Parallel() var zeroValue string - d := &Dependency{ManifestPath: &zeroValue} - d.GetManifestPath() - d = &Dependency{} - d.GetManifestPath() - d = nil - d.GetManifestPath() + c := &CustomRepoRoles{Description: &zeroValue} + c.GetDescription() + c = &CustomRepoRoles{} + c.GetDescription() + c = nil + c.GetDescription() } -func TestDependency_GetPackage(tt *testing.T) { +func TestCustomRepoRoles_GetID(tt *testing.T) { tt.Parallel() - d := &Dependency{} - d.GetPackage() - d = nil - d.GetPackage() + var zeroValue int64 + c := &CustomRepoRoles{ID: &zeroValue} + c.GetID() + c = &CustomRepoRoles{} + c.GetID() + c = nil + c.GetID() } -func TestDependency_GetScope(tt *testing.T) { +func TestCustomRepoRoles_GetName(tt *testing.T) { tt.Parallel() var zeroValue string - d := &Dependency{Scope: &zeroValue} - d.GetScope() - d = &Dependency{} - d.GetScope() - d = nil - d.GetScope() + c := &CustomRepoRoles{Name: &zeroValue} + c.GetName() + c = &CustomRepoRoles{} + c.GetName() + c = nil + c.GetName() } -func TestDependencyGraphAutosubmitActionOptions_GetLabeledRunners(tt *testing.T) { +func TestCustomRepoRoles_GetOrg(tt *testing.T) { tt.Parallel() - var zeroValue bool - d := &DependencyGraphAutosubmitActionOptions{LabeledRunners: &zeroValue} - d.GetLabeledRunners() - d = &DependencyGraphAutosubmitActionOptions{} - d.GetLabeledRunners() - d = nil - d.GetLabeledRunners() -} - -func TestDependencyGraphSnapshot_GetDetector(tt *testing.T) { - tt.Parallel() - d := &DependencyGraphSnapshot{} - d.GetDetector() - d = nil - d.GetDetector() + c := &CustomRepoRoles{} + c.GetOrg() + c = nil + c.GetOrg() } -func TestDependencyGraphSnapshot_GetJob(tt *testing.T) { +func TestCustomRepoRoles_GetUpdatedAt(tt *testing.T) { tt.Parallel() - d := &DependencyGraphSnapshot{} - d.GetJob() - d = nil - d.GetJob() + var zeroValue Timestamp + c := &CustomRepoRoles{UpdatedAt: &zeroValue} + c.GetUpdatedAt() + c = &CustomRepoRoles{} + c.GetUpdatedAt() + c = nil + c.GetUpdatedAt() } -func TestDependencyGraphSnapshot_GetRef(tt *testing.T) { +func TestDefaultSetupConfiguration_GetQuerySuite(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DependencyGraphSnapshot{Ref: &zeroValue} - d.GetRef() - d = &DependencyGraphSnapshot{} - d.GetRef() + d := &DefaultSetupConfiguration{QuerySuite: &zeroValue} + d.GetQuerySuite() + d = &DefaultSetupConfiguration{} + d.GetQuerySuite() d = nil - d.GetRef() + d.GetQuerySuite() } -func TestDependencyGraphSnapshot_GetScanned(tt *testing.T) { +func TestDefaultSetupConfiguration_GetState(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - d := &DependencyGraphSnapshot{Scanned: &zeroValue} - d.GetScanned() - d = &DependencyGraphSnapshot{} - d.GetScanned() + var zeroValue string + d := &DefaultSetupConfiguration{State: &zeroValue} + d.GetState() + d = &DefaultSetupConfiguration{} + d.GetState() d = nil - d.GetScanned() + d.GetState() } -func TestDependencyGraphSnapshot_GetSha(tt *testing.T) { +func TestDefaultSetupConfiguration_GetUpdatedAt(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DependencyGraphSnapshot{Sha: &zeroValue} - d.GetSha() - d = &DependencyGraphSnapshot{} - d.GetSha() + var zeroValue Timestamp + d := &DefaultSetupConfiguration{UpdatedAt: &zeroValue} + d.GetUpdatedAt() + d = &DefaultSetupConfiguration{} + d.GetUpdatedAt() d = nil - d.GetSha() + d.GetUpdatedAt() } -func TestDependencyGraphSnapshotCreationData_GetCreatedAt(tt *testing.T) { +func TestDefaultWorkflowPermissionEnterprise_GetCanApprovePullRequestReviews(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - d := &DependencyGraphSnapshotCreationData{CreatedAt: &zeroValue} - d.GetCreatedAt() - d = &DependencyGraphSnapshotCreationData{} - d.GetCreatedAt() + var zeroValue bool + d := &DefaultWorkflowPermissionEnterprise{CanApprovePullRequestReviews: &zeroValue} + d.GetCanApprovePullRequestReviews() + d = &DefaultWorkflowPermissionEnterprise{} + d.GetCanApprovePullRequestReviews() d = nil - d.GetCreatedAt() + d.GetCanApprovePullRequestReviews() } -func TestDependencyGraphSnapshotCreationData_GetMessage(tt *testing.T) { +func TestDefaultWorkflowPermissionEnterprise_GetDefaultWorkflowPermissions(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DependencyGraphSnapshotCreationData{Message: &zeroValue} - d.GetMessage() - d = &DependencyGraphSnapshotCreationData{} - d.GetMessage() + d := &DefaultWorkflowPermissionEnterprise{DefaultWorkflowPermissions: &zeroValue} + d.GetDefaultWorkflowPermissions() + d = &DefaultWorkflowPermissionEnterprise{} + d.GetDefaultWorkflowPermissions() d = nil - d.GetMessage() + d.GetDefaultWorkflowPermissions() } -func TestDependencyGraphSnapshotCreationData_GetResult(tt *testing.T) { +func TestDefaultWorkflowPermissionOrganization_GetCanApprovePullRequestReviews(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DependencyGraphSnapshotCreationData{Result: &zeroValue} - d.GetResult() - d = &DependencyGraphSnapshotCreationData{} - d.GetResult() + var zeroValue bool + d := &DefaultWorkflowPermissionOrganization{CanApprovePullRequestReviews: &zeroValue} + d.GetCanApprovePullRequestReviews() + d = &DefaultWorkflowPermissionOrganization{} + d.GetCanApprovePullRequestReviews() d = nil - d.GetResult() + d.GetCanApprovePullRequestReviews() } -func TestDependencyGraphSnapshotDetector_GetName(tt *testing.T) { +func TestDefaultWorkflowPermissionOrganization_GetDefaultWorkflowPermissions(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DependencyGraphSnapshotDetector{Name: &zeroValue} - d.GetName() - d = &DependencyGraphSnapshotDetector{} - d.GetName() + d := &DefaultWorkflowPermissionOrganization{DefaultWorkflowPermissions: &zeroValue} + d.GetDefaultWorkflowPermissions() + d = &DefaultWorkflowPermissionOrganization{} + d.GetDefaultWorkflowPermissions() d = nil - d.GetName() + d.GetDefaultWorkflowPermissions() } -func TestDependencyGraphSnapshotDetector_GetURL(tt *testing.T) { +func TestDefaultWorkflowPermissionRepository_GetCanApprovePullRequestReviews(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DependencyGraphSnapshotDetector{URL: &zeroValue} - d.GetURL() - d = &DependencyGraphSnapshotDetector{} - d.GetURL() + var zeroValue bool + d := &DefaultWorkflowPermissionRepository{CanApprovePullRequestReviews: &zeroValue} + d.GetCanApprovePullRequestReviews() + d = &DefaultWorkflowPermissionRepository{} + d.GetCanApprovePullRequestReviews() d = nil - d.GetURL() + d.GetCanApprovePullRequestReviews() } -func TestDependencyGraphSnapshotDetector_GetVersion(tt *testing.T) { +func TestDefaultWorkflowPermissionRepository_GetDefaultWorkflowPermissions(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DependencyGraphSnapshotDetector{Version: &zeroValue} - d.GetVersion() - d = &DependencyGraphSnapshotDetector{} - d.GetVersion() + d := &DefaultWorkflowPermissionRepository{DefaultWorkflowPermissions: &zeroValue} + d.GetDefaultWorkflowPermissions() + d = &DefaultWorkflowPermissionRepository{} + d.GetDefaultWorkflowPermissions() d = nil - d.GetVersion() + d.GetDefaultWorkflowPermissions() } -func TestDependencyGraphSnapshotJob_GetCorrelator(tt *testing.T) { +func TestDeleteAnalysis_GetConfirmDeleteURL(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DependencyGraphSnapshotJob{Correlator: &zeroValue} - d.GetCorrelator() - d = &DependencyGraphSnapshotJob{} - d.GetCorrelator() + d := &DeleteAnalysis{ConfirmDeleteURL: &zeroValue} + d.GetConfirmDeleteURL() + d = &DeleteAnalysis{} + d.GetConfirmDeleteURL() d = nil - d.GetCorrelator() + d.GetConfirmDeleteURL() } -func TestDependencyGraphSnapshotJob_GetHTMLURL(tt *testing.T) { +func TestDeleteAnalysis_GetNextAnalysisURL(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DependencyGraphSnapshotJob{HTMLURL: &zeroValue} - d.GetHTMLURL() - d = &DependencyGraphSnapshotJob{} - d.GetHTMLURL() + d := &DeleteAnalysis{NextAnalysisURL: &zeroValue} + d.GetNextAnalysisURL() + d = &DeleteAnalysis{} + d.GetNextAnalysisURL() d = nil - d.GetHTMLURL() + d.GetNextAnalysisURL() } -func TestDependencyGraphSnapshotJob_GetID(tt *testing.T) { +func TestDeleteEvent_GetInstallation(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DependencyGraphSnapshotJob{ID: &zeroValue} - d.GetID() - d = &DependencyGraphSnapshotJob{} - d.GetID() + d := &DeleteEvent{} + d.GetInstallation() d = nil - d.GetID() + d.GetInstallation() } -func TestDependencyGraphSnapshotManifest_GetFile(tt *testing.T) { +func TestDeleteEvent_GetOrg(tt *testing.T) { tt.Parallel() - d := &DependencyGraphSnapshotManifest{} - d.GetFile() + d := &DeleteEvent{} + d.GetOrg() d = nil - d.GetFile() + d.GetOrg() } -func TestDependencyGraphSnapshotManifest_GetName(tt *testing.T) { +func TestDeleteEvent_GetPusherType(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DependencyGraphSnapshotManifest{Name: &zeroValue} - d.GetName() - d = &DependencyGraphSnapshotManifest{} - d.GetName() + d := &DeleteEvent{PusherType: &zeroValue} + d.GetPusherType() + d = &DeleteEvent{} + d.GetPusherType() d = nil - d.GetName() + d.GetPusherType() } -func TestDependencyGraphSnapshotManifestFile_GetSourceLocation(tt *testing.T) { +func TestDeleteEvent_GetRef(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DependencyGraphSnapshotManifestFile{SourceLocation: &zeroValue} - d.GetSourceLocation() - d = &DependencyGraphSnapshotManifestFile{} - d.GetSourceLocation() + d := &DeleteEvent{Ref: &zeroValue} + d.GetRef() + d = &DeleteEvent{} + d.GetRef() d = nil - d.GetSourceLocation() + d.GetRef() } -func TestDependencyGraphSnapshotResolvedDependency_GetPackageURL(tt *testing.T) { +func TestDeleteEvent_GetRefType(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DependencyGraphSnapshotResolvedDependency{PackageURL: &zeroValue} - d.GetPackageURL() - d = &DependencyGraphSnapshotResolvedDependency{} - d.GetPackageURL() + d := &DeleteEvent{RefType: &zeroValue} + d.GetRefType() + d = &DeleteEvent{} + d.GetRefType() d = nil - d.GetPackageURL() + d.GetRefType() } -func TestDependencyGraphSnapshotResolvedDependency_GetRelationship(tt *testing.T) { +func TestDeleteEvent_GetRepo(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DependencyGraphSnapshotResolvedDependency{Relationship: &zeroValue} - d.GetRelationship() - d = &DependencyGraphSnapshotResolvedDependency{} - d.GetRelationship() + d := &DeleteEvent{} + d.GetRepo() d = nil - d.GetRelationship() + d.GetRepo() } -func TestDependencyGraphSnapshotResolvedDependency_GetScope(tt *testing.T) { +func TestDeleteEvent_GetSender(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DependencyGraphSnapshotResolvedDependency{Scope: &zeroValue} - d.GetScope() - d = &DependencyGraphSnapshotResolvedDependency{} - d.GetScope() + d := &DeleteEvent{} + d.GetSender() d = nil - d.GetScope() + d.GetSender() } -func TestDeployKeyEvent_GetAction(tt *testing.T) { +func TestDependabotAlert_GetAutoDismissedAt(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DeployKeyEvent{Action: &zeroValue} - d.GetAction() - d = &DeployKeyEvent{} - d.GetAction() + var zeroValue Timestamp + d := &DependabotAlert{AutoDismissedAt: &zeroValue} + d.GetAutoDismissedAt() + d = &DependabotAlert{} + d.GetAutoDismissedAt() d = nil - d.GetAction() + d.GetAutoDismissedAt() } -func TestDeployKeyEvent_GetInstallation(tt *testing.T) { - tt.Parallel() - d := &DeployKeyEvent{} - d.GetInstallation() - d = nil - d.GetInstallation() -} - -func TestDeployKeyEvent_GetKey(tt *testing.T) { - tt.Parallel() - d := &DeployKeyEvent{} - d.GetKey() - d = nil - d.GetKey() -} - -func TestDeployKeyEvent_GetOrganization(tt *testing.T) { - tt.Parallel() - d := &DeployKeyEvent{} - d.GetOrganization() - d = nil - d.GetOrganization() -} - -func TestDeployKeyEvent_GetRepo(tt *testing.T) { +func TestDependabotAlert_GetCreatedAt(tt *testing.T) { tt.Parallel() - d := &DeployKeyEvent{} - d.GetRepo() + var zeroValue Timestamp + d := &DependabotAlert{CreatedAt: &zeroValue} + d.GetCreatedAt() + d = &DependabotAlert{} + d.GetCreatedAt() d = nil - d.GetRepo() + d.GetCreatedAt() } -func TestDeployKeyEvent_GetSender(tt *testing.T) { +func TestDependabotAlert_GetDependency(tt *testing.T) { tt.Parallel() - d := &DeployKeyEvent{} - d.GetSender() + d := &DependabotAlert{} + d.GetDependency() d = nil - d.GetSender() + d.GetDependency() } -func TestDeployment_GetCreatedAt(tt *testing.T) { +func TestDependabotAlert_GetDismissedAt(tt *testing.T) { tt.Parallel() var zeroValue Timestamp - d := &Deployment{CreatedAt: &zeroValue} - d.GetCreatedAt() - d = &Deployment{} - d.GetCreatedAt() + d := &DependabotAlert{DismissedAt: &zeroValue} + d.GetDismissedAt() + d = &DependabotAlert{} + d.GetDismissedAt() d = nil - d.GetCreatedAt() + d.GetDismissedAt() } -func TestDeployment_GetCreator(tt *testing.T) { +func TestDependabotAlert_GetDismissedBy(tt *testing.T) { tt.Parallel() - d := &Deployment{} - d.GetCreator() + d := &DependabotAlert{} + d.GetDismissedBy() d = nil - d.GetCreator() + d.GetDismissedBy() } -func TestDeployment_GetDescription(tt *testing.T) { +func TestDependabotAlert_GetDismissedComment(tt *testing.T) { tt.Parallel() var zeroValue string - d := &Deployment{Description: &zeroValue} - d.GetDescription() - d = &Deployment{} - d.GetDescription() + d := &DependabotAlert{DismissedComment: &zeroValue} + d.GetDismissedComment() + d = &DependabotAlert{} + d.GetDismissedComment() d = nil - d.GetDescription() + d.GetDismissedComment() } -func TestDeployment_GetEnvironment(tt *testing.T) { +func TestDependabotAlert_GetDismissedReason(tt *testing.T) { tt.Parallel() var zeroValue string - d := &Deployment{Environment: &zeroValue} - d.GetEnvironment() - d = &Deployment{} - d.GetEnvironment() + d := &DependabotAlert{DismissedReason: &zeroValue} + d.GetDismissedReason() + d = &DependabotAlert{} + d.GetDismissedReason() d = nil - d.GetEnvironment() + d.GetDismissedReason() } -func TestDeployment_GetID(tt *testing.T) { +func TestDependabotAlert_GetFixedAt(tt *testing.T) { tt.Parallel() - var zeroValue int64 - d := &Deployment{ID: &zeroValue} - d.GetID() - d = &Deployment{} - d.GetID() + var zeroValue Timestamp + d := &DependabotAlert{FixedAt: &zeroValue} + d.GetFixedAt() + d = &DependabotAlert{} + d.GetFixedAt() d = nil - d.GetID() + d.GetFixedAt() } -func TestDeployment_GetNodeID(tt *testing.T) { +func TestDependabotAlert_GetHTMLURL(tt *testing.T) { tt.Parallel() var zeroValue string - d := &Deployment{NodeID: &zeroValue} - d.GetNodeID() - d = &Deployment{} - d.GetNodeID() + d := &DependabotAlert{HTMLURL: &zeroValue} + d.GetHTMLURL() + d = &DependabotAlert{} + d.GetHTMLURL() d = nil - d.GetNodeID() + d.GetHTMLURL() } -func TestDeployment_GetRef(tt *testing.T) { +func TestDependabotAlert_GetNumber(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &Deployment{Ref: &zeroValue} - d.GetRef() - d = &Deployment{} - d.GetRef() + var zeroValue int + d := &DependabotAlert{Number: &zeroValue} + d.GetNumber() + d = &DependabotAlert{} + d.GetNumber() d = nil - d.GetRef() + d.GetNumber() } -func TestDeployment_GetRepositoryURL(tt *testing.T) { +func TestDependabotAlert_GetRepository(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &Deployment{RepositoryURL: &zeroValue} - d.GetRepositoryURL() - d = &Deployment{} - d.GetRepositoryURL() + d := &DependabotAlert{} + d.GetRepository() d = nil - d.GetRepositoryURL() + d.GetRepository() } -func TestDeployment_GetSHA(tt *testing.T) { +func TestDependabotAlert_GetSecurityAdvisory(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &Deployment{SHA: &zeroValue} - d.GetSHA() - d = &Deployment{} - d.GetSHA() + d := &DependabotAlert{} + d.GetSecurityAdvisory() d = nil - d.GetSHA() + d.GetSecurityAdvisory() } -func TestDeployment_GetStatusesURL(tt *testing.T) { +func TestDependabotAlert_GetSecurityVulnerability(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &Deployment{StatusesURL: &zeroValue} - d.GetStatusesURL() - d = &Deployment{} - d.GetStatusesURL() + d := &DependabotAlert{} + d.GetSecurityVulnerability() d = nil - d.GetStatusesURL() + d.GetSecurityVulnerability() } -func TestDeployment_GetTask(tt *testing.T) { +func TestDependabotAlert_GetState(tt *testing.T) { tt.Parallel() var zeroValue string - d := &Deployment{Task: &zeroValue} - d.GetTask() - d = &Deployment{} - d.GetTask() + d := &DependabotAlert{State: &zeroValue} + d.GetState() + d = &DependabotAlert{} + d.GetState() d = nil - d.GetTask() + d.GetState() } -func TestDeployment_GetUpdatedAt(tt *testing.T) { +func TestDependabotAlert_GetUpdatedAt(tt *testing.T) { tt.Parallel() var zeroValue Timestamp - d := &Deployment{UpdatedAt: &zeroValue} + d := &DependabotAlert{UpdatedAt: &zeroValue} d.GetUpdatedAt() - d = &Deployment{} + d = &DependabotAlert{} d.GetUpdatedAt() d = nil d.GetUpdatedAt() } -func TestDeployment_GetURL(tt *testing.T) { +func TestDependabotAlert_GetURL(tt *testing.T) { tt.Parallel() var zeroValue string - d := &Deployment{URL: &zeroValue} + d := &DependabotAlert{URL: &zeroValue} d.GetURL() - d = &Deployment{} + d = &DependabotAlert{} d.GetURL() d = nil d.GetURL() } -func TestDeploymentBranchPolicy_GetID(tt *testing.T) { +func TestDependabotAlertEvent_GetAction(tt *testing.T) { tt.Parallel() - var zeroValue int64 - d := &DeploymentBranchPolicy{ID: &zeroValue} - d.GetID() - d = &DeploymentBranchPolicy{} - d.GetID() + var zeroValue string + d := &DependabotAlertEvent{Action: &zeroValue} + d.GetAction() + d = &DependabotAlertEvent{} + d.GetAction() d = nil - d.GetID() + d.GetAction() } -func TestDeploymentBranchPolicy_GetName(tt *testing.T) { +func TestDependabotAlertEvent_GetAlert(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DeploymentBranchPolicy{Name: &zeroValue} - d.GetName() - d = &DeploymentBranchPolicy{} - d.GetName() + d := &DependabotAlertEvent{} + d.GetAlert() d = nil - d.GetName() + d.GetAlert() } -func TestDeploymentBranchPolicy_GetNodeID(tt *testing.T) { +func TestDependabotAlertEvent_GetEnterprise(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DeploymentBranchPolicy{NodeID: &zeroValue} - d.GetNodeID() - d = &DeploymentBranchPolicy{} - d.GetNodeID() + d := &DependabotAlertEvent{} + d.GetEnterprise() d = nil - d.GetNodeID() + d.GetEnterprise() } -func TestDeploymentBranchPolicy_GetType(tt *testing.T) { +func TestDependabotAlertEvent_GetInstallation(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DeploymentBranchPolicy{Type: &zeroValue} - d.GetType() - d = &DeploymentBranchPolicy{} - d.GetType() + d := &DependabotAlertEvent{} + d.GetInstallation() d = nil - d.GetType() + d.GetInstallation() } -func TestDeploymentBranchPolicyRequest_GetName(tt *testing.T) { +func TestDependabotAlertEvent_GetOrganization(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DeploymentBranchPolicyRequest{Name: &zeroValue} - d.GetName() - d = &DeploymentBranchPolicyRequest{} - d.GetName() + d := &DependabotAlertEvent{} + d.GetOrganization() d = nil - d.GetName() + d.GetOrganization() } -func TestDeploymentBranchPolicyRequest_GetType(tt *testing.T) { +func TestDependabotAlertEvent_GetRepo(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DeploymentBranchPolicyRequest{Type: &zeroValue} - d.GetType() - d = &DeploymentBranchPolicyRequest{} - d.GetType() + d := &DependabotAlertEvent{} + d.GetRepo() d = nil - d.GetType() + d.GetRepo() } -func TestDeploymentBranchPolicyResponse_GetTotalCount(tt *testing.T) { +func TestDependabotAlertEvent_GetSender(tt *testing.T) { tt.Parallel() - var zeroValue int - d := &DeploymentBranchPolicyResponse{TotalCount: &zeroValue} - d.GetTotalCount() - d = &DeploymentBranchPolicyResponse{} - d.GetTotalCount() - d = nil - d.GetTotalCount() -} - -func TestDeploymentEvent_GetDeployment(tt *testing.T) { - tt.Parallel() - d := &DeploymentEvent{} - d.GetDeployment() - d = nil - d.GetDeployment() -} - -func TestDeploymentEvent_GetInstallation(tt *testing.T) { - tt.Parallel() - d := &DeploymentEvent{} - d.GetInstallation() + d := &DependabotAlertEvent{} + d.GetSender() d = nil - d.GetInstallation() + d.GetSender() } -func TestDeploymentEvent_GetOrg(tt *testing.T) { +func TestDependabotAlertState_GetDismissedComment(tt *testing.T) { tt.Parallel() - d := &DeploymentEvent{} - d.GetOrg() + var zeroValue string + d := &DependabotAlertState{DismissedComment: &zeroValue} + d.GetDismissedComment() + d = &DependabotAlertState{} + d.GetDismissedComment() d = nil - d.GetOrg() + d.GetDismissedComment() } -func TestDeploymentEvent_GetRepo(tt *testing.T) { +func TestDependabotAlertState_GetDismissedReason(tt *testing.T) { tt.Parallel() - d := &DeploymentEvent{} - d.GetRepo() + var zeroValue string + d := &DependabotAlertState{DismissedReason: &zeroValue} + d.GetDismissedReason() + d = &DependabotAlertState{} + d.GetDismissedReason() d = nil - d.GetRepo() + d.GetDismissedReason() } -func TestDeploymentEvent_GetSender(tt *testing.T) { +func TestDependabotSecurityAdvisory_GetCVEID(tt *testing.T) { tt.Parallel() - d := &DeploymentEvent{} - d.GetSender() + var zeroValue string + d := &DependabotSecurityAdvisory{CVEID: &zeroValue} + d.GetCVEID() + d = &DependabotSecurityAdvisory{} + d.GetCVEID() d = nil - d.GetSender() + d.GetCVEID() } -func TestDeploymentEvent_GetWorkflow(tt *testing.T) { +func TestDependabotSecurityAdvisory_GetCVSS(tt *testing.T) { tt.Parallel() - d := &DeploymentEvent{} - d.GetWorkflow() + d := &DependabotSecurityAdvisory{} + d.GetCVSS() d = nil - d.GetWorkflow() + d.GetCVSS() } -func TestDeploymentEvent_GetWorkflowRun(tt *testing.T) { +func TestDependabotSecurityAdvisory_GetDescription(tt *testing.T) { tt.Parallel() - d := &DeploymentEvent{} - d.GetWorkflowRun() + var zeroValue string + d := &DependabotSecurityAdvisory{Description: &zeroValue} + d.GetDescription() + d = &DependabotSecurityAdvisory{} + d.GetDescription() d = nil - d.GetWorkflowRun() + d.GetDescription() } -func TestDeploymentProtectionRuleEvent_GetAction(tt *testing.T) { +func TestDependabotSecurityAdvisory_GetGHSAID(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DeploymentProtectionRuleEvent{Action: &zeroValue} - d.GetAction() - d = &DeploymentProtectionRuleEvent{} - d.GetAction() + d := &DependabotSecurityAdvisory{GHSAID: &zeroValue} + d.GetGHSAID() + d = &DependabotSecurityAdvisory{} + d.GetGHSAID() d = nil - d.GetAction() + d.GetGHSAID() } -func TestDeploymentProtectionRuleEvent_GetDeployment(tt *testing.T) { +func TestDependabotSecurityAdvisory_GetPublishedAt(tt *testing.T) { tt.Parallel() - d := &DeploymentProtectionRuleEvent{} - d.GetDeployment() + var zeroValue Timestamp + d := &DependabotSecurityAdvisory{PublishedAt: &zeroValue} + d.GetPublishedAt() + d = &DependabotSecurityAdvisory{} + d.GetPublishedAt() d = nil - d.GetDeployment() + d.GetPublishedAt() } -func TestDeploymentProtectionRuleEvent_GetDeploymentCallbackURL(tt *testing.T) { +func TestDependabotSecurityAdvisory_GetSeverity(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DeploymentProtectionRuleEvent{DeploymentCallbackURL: &zeroValue} - d.GetDeploymentCallbackURL() - d = &DeploymentProtectionRuleEvent{} - d.GetDeploymentCallbackURL() + d := &DependabotSecurityAdvisory{Severity: &zeroValue} + d.GetSeverity() + d = &DependabotSecurityAdvisory{} + d.GetSeverity() d = nil - d.GetDeploymentCallbackURL() + d.GetSeverity() } -func TestDeploymentProtectionRuleEvent_GetEnvironment(tt *testing.T) { +func TestDependabotSecurityAdvisory_GetSummary(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DeploymentProtectionRuleEvent{Environment: &zeroValue} - d.GetEnvironment() - d = &DeploymentProtectionRuleEvent{} - d.GetEnvironment() + d := &DependabotSecurityAdvisory{Summary: &zeroValue} + d.GetSummary() + d = &DependabotSecurityAdvisory{} + d.GetSummary() d = nil - d.GetEnvironment() + d.GetSummary() } -func TestDeploymentProtectionRuleEvent_GetEvent(tt *testing.T) { +func TestDependabotSecurityAdvisory_GetUpdatedAt(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DeploymentProtectionRuleEvent{Event: &zeroValue} - d.GetEvent() - d = &DeploymentProtectionRuleEvent{} - d.GetEvent() + var zeroValue Timestamp + d := &DependabotSecurityAdvisory{UpdatedAt: &zeroValue} + d.GetUpdatedAt() + d = &DependabotSecurityAdvisory{} + d.GetUpdatedAt() d = nil - d.GetEvent() + d.GetUpdatedAt() } -func TestDeploymentProtectionRuleEvent_GetInstallation(tt *testing.T) { +func TestDependabotSecurityAdvisory_GetWithdrawnAt(tt *testing.T) { tt.Parallel() - d := &DeploymentProtectionRuleEvent{} - d.GetInstallation() + var zeroValue Timestamp + d := &DependabotSecurityAdvisory{WithdrawnAt: &zeroValue} + d.GetWithdrawnAt() + d = &DependabotSecurityAdvisory{} + d.GetWithdrawnAt() d = nil - d.GetInstallation() + d.GetWithdrawnAt() } -func TestDeploymentProtectionRuleEvent_GetOrganization(tt *testing.T) { +func TestDependabotSecurityUpdates_GetStatus(tt *testing.T) { tt.Parallel() - d := &DeploymentProtectionRuleEvent{} - d.GetOrganization() + var zeroValue string + d := &DependabotSecurityUpdates{Status: &zeroValue} + d.GetStatus() + d = &DependabotSecurityUpdates{} + d.GetStatus() d = nil - d.GetOrganization() + d.GetStatus() } -func TestDeploymentProtectionRuleEvent_GetRepo(tt *testing.T) { +func TestDependency_GetManifestPath(tt *testing.T) { tt.Parallel() - d := &DeploymentProtectionRuleEvent{} - d.GetRepo() + var zeroValue string + d := &Dependency{ManifestPath: &zeroValue} + d.GetManifestPath() + d = &Dependency{} + d.GetManifestPath() d = nil - d.GetRepo() + d.GetManifestPath() } -func TestDeploymentProtectionRuleEvent_GetSender(tt *testing.T) { +func TestDependency_GetPackage(tt *testing.T) { tt.Parallel() - d := &DeploymentProtectionRuleEvent{} - d.GetSender() + d := &Dependency{} + d.GetPackage() d = nil - d.GetSender() + d.GetPackage() } -func TestDeploymentRequest_GetAutoMerge(tt *testing.T) { +func TestDependency_GetScope(tt *testing.T) { tt.Parallel() - var zeroValue bool - d := &DeploymentRequest{AutoMerge: &zeroValue} - d.GetAutoMerge() - d = &DeploymentRequest{} - d.GetAutoMerge() + var zeroValue string + d := &Dependency{Scope: &zeroValue} + d.GetScope() + d = &Dependency{} + d.GetScope() d = nil - d.GetAutoMerge() + d.GetScope() } -func TestDeploymentRequest_GetDescription(tt *testing.T) { +func TestDependencyGraphAutosubmitActionOptions_GetLabeledRunners(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DeploymentRequest{Description: &zeroValue} - d.GetDescription() - d = &DeploymentRequest{} - d.GetDescription() + var zeroValue bool + d := &DependencyGraphAutosubmitActionOptions{LabeledRunners: &zeroValue} + d.GetLabeledRunners() + d = &DependencyGraphAutosubmitActionOptions{} + d.GetLabeledRunners() d = nil - d.GetDescription() + d.GetLabeledRunners() } -func TestDeploymentRequest_GetEnvironment(tt *testing.T) { +func TestDependencyGraphSnapshot_GetDetector(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DeploymentRequest{Environment: &zeroValue} - d.GetEnvironment() - d = &DeploymentRequest{} - d.GetEnvironment() + d := &DependencyGraphSnapshot{} + d.GetDetector() d = nil - d.GetEnvironment() + d.GetDetector() } -func TestDeploymentRequest_GetProductionEnvironment(tt *testing.T) { +func TestDependencyGraphSnapshot_GetJob(tt *testing.T) { tt.Parallel() - var zeroValue bool - d := &DeploymentRequest{ProductionEnvironment: &zeroValue} - d.GetProductionEnvironment() - d = &DeploymentRequest{} - d.GetProductionEnvironment() + d := &DependencyGraphSnapshot{} + d.GetJob() d = nil - d.GetProductionEnvironment() + d.GetJob() } -func TestDeploymentRequest_GetRef(tt *testing.T) { +func TestDependencyGraphSnapshot_GetRef(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DeploymentRequest{Ref: &zeroValue} + d := &DependencyGraphSnapshot{Ref: &zeroValue} d.GetRef() - d = &DeploymentRequest{} + d = &DependencyGraphSnapshot{} d.GetRef() d = nil d.GetRef() } -func TestDeploymentRequest_GetRequiredContexts(tt *testing.T) { +func TestDependencyGraphSnapshot_GetScanned(tt *testing.T) { tt.Parallel() - var zeroValue []string - d := &DeploymentRequest{RequiredContexts: &zeroValue} - d.GetRequiredContexts() - d = &DeploymentRequest{} - d.GetRequiredContexts() + var zeroValue Timestamp + d := &DependencyGraphSnapshot{Scanned: &zeroValue} + d.GetScanned() + d = &DependencyGraphSnapshot{} + d.GetScanned() d = nil - d.GetRequiredContexts() + d.GetScanned() } -func TestDeploymentRequest_GetTask(tt *testing.T) { +func TestDependencyGraphSnapshot_GetSha(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DeploymentRequest{Task: &zeroValue} - d.GetTask() - d = &DeploymentRequest{} - d.GetTask() - d = nil - d.GetTask() -} - -func TestDeploymentRequest_GetTransientEnvironment(tt *testing.T) { - tt.Parallel() - var zeroValue bool - d := &DeploymentRequest{TransientEnvironment: &zeroValue} - d.GetTransientEnvironment() - d = &DeploymentRequest{} - d.GetTransientEnvironment() + d := &DependencyGraphSnapshot{Sha: &zeroValue} + d.GetSha() + d = &DependencyGraphSnapshot{} + d.GetSha() d = nil - d.GetTransientEnvironment() + d.GetSha() } -func TestDeploymentReviewEvent_GetAction(tt *testing.T) { +func TestDependencyGraphSnapshotCreationData_GetCreatedAt(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DeploymentReviewEvent{Action: &zeroValue} - d.GetAction() - d = &DeploymentReviewEvent{} - d.GetAction() + var zeroValue Timestamp + d := &DependencyGraphSnapshotCreationData{CreatedAt: &zeroValue} + d.GetCreatedAt() + d = &DependencyGraphSnapshotCreationData{} + d.GetCreatedAt() d = nil - d.GetAction() + d.GetCreatedAt() } -func TestDeploymentReviewEvent_GetApprover(tt *testing.T) { +func TestDependencyGraphSnapshotCreationData_GetMessage(tt *testing.T) { tt.Parallel() - d := &DeploymentReviewEvent{} - d.GetApprover() + var zeroValue string + d := &DependencyGraphSnapshotCreationData{Message: &zeroValue} + d.GetMessage() + d = &DependencyGraphSnapshotCreationData{} + d.GetMessage() d = nil - d.GetApprover() + d.GetMessage() } -func TestDeploymentReviewEvent_GetComment(tt *testing.T) { +func TestDependencyGraphSnapshotCreationData_GetResult(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DeploymentReviewEvent{Comment: &zeroValue} - d.GetComment() - d = &DeploymentReviewEvent{} - d.GetComment() + d := &DependencyGraphSnapshotCreationData{Result: &zeroValue} + d.GetResult() + d = &DependencyGraphSnapshotCreationData{} + d.GetResult() d = nil - d.GetComment() + d.GetResult() } -func TestDeploymentReviewEvent_GetEnterprise(tt *testing.T) { +func TestDependencyGraphSnapshotDetector_GetName(tt *testing.T) { tt.Parallel() - d := &DeploymentReviewEvent{} - d.GetEnterprise() + var zeroValue string + d := &DependencyGraphSnapshotDetector{Name: &zeroValue} + d.GetName() + d = &DependencyGraphSnapshotDetector{} + d.GetName() d = nil - d.GetEnterprise() + d.GetName() } -func TestDeploymentReviewEvent_GetEnvironment(tt *testing.T) { +func TestDependencyGraphSnapshotDetector_GetURL(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DeploymentReviewEvent{Environment: &zeroValue} - d.GetEnvironment() - d = &DeploymentReviewEvent{} - d.GetEnvironment() + d := &DependencyGraphSnapshotDetector{URL: &zeroValue} + d.GetURL() + d = &DependencyGraphSnapshotDetector{} + d.GetURL() d = nil - d.GetEnvironment() + d.GetURL() } -func TestDeploymentReviewEvent_GetInstallation(tt *testing.T) { +func TestDependencyGraphSnapshotDetector_GetVersion(tt *testing.T) { tt.Parallel() - d := &DeploymentReviewEvent{} - d.GetInstallation() + var zeroValue string + d := &DependencyGraphSnapshotDetector{Version: &zeroValue} + d.GetVersion() + d = &DependencyGraphSnapshotDetector{} + d.GetVersion() d = nil - d.GetInstallation() + d.GetVersion() } -func TestDeploymentReviewEvent_GetOrganization(tt *testing.T) { +func TestDependencyGraphSnapshotJob_GetCorrelator(tt *testing.T) { tt.Parallel() - d := &DeploymentReviewEvent{} - d.GetOrganization() + var zeroValue string + d := &DependencyGraphSnapshotJob{Correlator: &zeroValue} + d.GetCorrelator() + d = &DependencyGraphSnapshotJob{} + d.GetCorrelator() d = nil - d.GetOrganization() + d.GetCorrelator() } -func TestDeploymentReviewEvent_GetRepo(tt *testing.T) { +func TestDependencyGraphSnapshotJob_GetHTMLURL(tt *testing.T) { tt.Parallel() - d := &DeploymentReviewEvent{} - d.GetRepo() + var zeroValue string + d := &DependencyGraphSnapshotJob{HTMLURL: &zeroValue} + d.GetHTMLURL() + d = &DependencyGraphSnapshotJob{} + d.GetHTMLURL() d = nil - d.GetRepo() + d.GetHTMLURL() } -func TestDeploymentReviewEvent_GetRequester(tt *testing.T) { +func TestDependencyGraphSnapshotJob_GetID(tt *testing.T) { tt.Parallel() - d := &DeploymentReviewEvent{} - d.GetRequester() + var zeroValue string + d := &DependencyGraphSnapshotJob{ID: &zeroValue} + d.GetID() + d = &DependencyGraphSnapshotJob{} + d.GetID() d = nil - d.GetRequester() + d.GetID() } -func TestDeploymentReviewEvent_GetSender(tt *testing.T) { +func TestDependencyGraphSnapshotManifest_GetFile(tt *testing.T) { tt.Parallel() - d := &DeploymentReviewEvent{} - d.GetSender() + d := &DependencyGraphSnapshotManifest{} + d.GetFile() d = nil - d.GetSender() + d.GetFile() } -func TestDeploymentReviewEvent_GetSince(tt *testing.T) { +func TestDependencyGraphSnapshotManifest_GetName(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DeploymentReviewEvent{Since: &zeroValue} - d.GetSince() - d = &DeploymentReviewEvent{} - d.GetSince() + d := &DependencyGraphSnapshotManifest{Name: &zeroValue} + d.GetName() + d = &DependencyGraphSnapshotManifest{} + d.GetName() d = nil - d.GetSince() + d.GetName() } -func TestDeploymentReviewEvent_GetWorkflowJobRun(tt *testing.T) { +func TestDependencyGraphSnapshotManifestFile_GetSourceLocation(tt *testing.T) { tt.Parallel() - d := &DeploymentReviewEvent{} - d.GetWorkflowJobRun() + var zeroValue string + d := &DependencyGraphSnapshotManifestFile{SourceLocation: &zeroValue} + d.GetSourceLocation() + d = &DependencyGraphSnapshotManifestFile{} + d.GetSourceLocation() d = nil - d.GetWorkflowJobRun() + d.GetSourceLocation() } -func TestDeploymentReviewEvent_GetWorkflowRun(tt *testing.T) { +func TestDependencyGraphSnapshotResolvedDependency_GetPackageURL(tt *testing.T) { tt.Parallel() - d := &DeploymentReviewEvent{} - d.GetWorkflowRun() + var zeroValue string + d := &DependencyGraphSnapshotResolvedDependency{PackageURL: &zeroValue} + d.GetPackageURL() + d = &DependencyGraphSnapshotResolvedDependency{} + d.GetPackageURL() d = nil - d.GetWorkflowRun() + d.GetPackageURL() } -func TestDeploymentStatus_GetCreatedAt(tt *testing.T) { +func TestDependencyGraphSnapshotResolvedDependency_GetRelationship(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - d := &DeploymentStatus{CreatedAt: &zeroValue} - d.GetCreatedAt() - d = &DeploymentStatus{} - d.GetCreatedAt() + var zeroValue string + d := &DependencyGraphSnapshotResolvedDependency{Relationship: &zeroValue} + d.GetRelationship() + d = &DependencyGraphSnapshotResolvedDependency{} + d.GetRelationship() d = nil - d.GetCreatedAt() + d.GetRelationship() } -func TestDeploymentStatus_GetCreator(tt *testing.T) { +func TestDependencyGraphSnapshotResolvedDependency_GetScope(tt *testing.T) { tt.Parallel() - d := &DeploymentStatus{} - d.GetCreator() + var zeroValue string + d := &DependencyGraphSnapshotResolvedDependency{Scope: &zeroValue} + d.GetScope() + d = &DependencyGraphSnapshotResolvedDependency{} + d.GetScope() d = nil - d.GetCreator() + d.GetScope() } -func TestDeploymentStatus_GetDeploymentURL(tt *testing.T) { +func TestDeployKeyEvent_GetAction(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DeploymentStatus{DeploymentURL: &zeroValue} - d.GetDeploymentURL() - d = &DeploymentStatus{} - d.GetDeploymentURL() + d := &DeployKeyEvent{Action: &zeroValue} + d.GetAction() + d = &DeployKeyEvent{} + d.GetAction() d = nil - d.GetDeploymentURL() + d.GetAction() } -func TestDeploymentStatus_GetDescription(tt *testing.T) { +func TestDeployKeyEvent_GetInstallation(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DeploymentStatus{Description: &zeroValue} - d.GetDescription() - d = &DeploymentStatus{} - d.GetDescription() + d := &DeployKeyEvent{} + d.GetInstallation() d = nil - d.GetDescription() + d.GetInstallation() } -func TestDeploymentStatus_GetEnvironment(tt *testing.T) { +func TestDeployKeyEvent_GetKey(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DeploymentStatus{Environment: &zeroValue} - d.GetEnvironment() - d = &DeploymentStatus{} - d.GetEnvironment() + d := &DeployKeyEvent{} + d.GetKey() d = nil - d.GetEnvironment() + d.GetKey() } -func TestDeploymentStatus_GetEnvironmentURL(tt *testing.T) { +func TestDeployKeyEvent_GetOrganization(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DeploymentStatus{EnvironmentURL: &zeroValue} - d.GetEnvironmentURL() - d = &DeploymentStatus{} - d.GetEnvironmentURL() + d := &DeployKeyEvent{} + d.GetOrganization() d = nil - d.GetEnvironmentURL() + d.GetOrganization() } -func TestDeploymentStatus_GetID(tt *testing.T) { +func TestDeployKeyEvent_GetRepo(tt *testing.T) { tt.Parallel() - var zeroValue int64 - d := &DeploymentStatus{ID: &zeroValue} - d.GetID() - d = &DeploymentStatus{} - d.GetID() + d := &DeployKeyEvent{} + d.GetRepo() d = nil - d.GetID() + d.GetRepo() } -func TestDeploymentStatus_GetLogURL(tt *testing.T) { +func TestDeployKeyEvent_GetSender(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DeploymentStatus{LogURL: &zeroValue} - d.GetLogURL() - d = &DeploymentStatus{} - d.GetLogURL() + d := &DeployKeyEvent{} + d.GetSender() d = nil - d.GetLogURL() + d.GetSender() } -func TestDeploymentStatus_GetNodeID(tt *testing.T) { +func TestDeployment_GetCreatedAt(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DeploymentStatus{NodeID: &zeroValue} - d.GetNodeID() - d = &DeploymentStatus{} - d.GetNodeID() + var zeroValue Timestamp + d := &Deployment{CreatedAt: &zeroValue} + d.GetCreatedAt() + d = &Deployment{} + d.GetCreatedAt() d = nil - d.GetNodeID() + d.GetCreatedAt() } -func TestDeploymentStatus_GetRepositoryURL(tt *testing.T) { +func TestDeployment_GetCreator(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DeploymentStatus{RepositoryURL: &zeroValue} - d.GetRepositoryURL() - d = &DeploymentStatus{} - d.GetRepositoryURL() + d := &Deployment{} + d.GetCreator() d = nil - d.GetRepositoryURL() + d.GetCreator() } -func TestDeploymentStatus_GetState(tt *testing.T) { +func TestDeployment_GetDescription(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DeploymentStatus{State: &zeroValue} - d.GetState() - d = &DeploymentStatus{} - d.GetState() + d := &Deployment{Description: &zeroValue} + d.GetDescription() + d = &Deployment{} + d.GetDescription() d = nil - d.GetState() + d.GetDescription() } -func TestDeploymentStatus_GetTargetURL(tt *testing.T) { +func TestDeployment_GetEnvironment(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DeploymentStatus{TargetURL: &zeroValue} - d.GetTargetURL() - d = &DeploymentStatus{} - d.GetTargetURL() + d := &Deployment{Environment: &zeroValue} + d.GetEnvironment() + d = &Deployment{} + d.GetEnvironment() d = nil - d.GetTargetURL() + d.GetEnvironment() } -func TestDeploymentStatus_GetUpdatedAt(tt *testing.T) { +func TestDeployment_GetID(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - d := &DeploymentStatus{UpdatedAt: &zeroValue} - d.GetUpdatedAt() - d = &DeploymentStatus{} - d.GetUpdatedAt() + var zeroValue int64 + d := &Deployment{ID: &zeroValue} + d.GetID() + d = &Deployment{} + d.GetID() d = nil - d.GetUpdatedAt() + d.GetID() } -func TestDeploymentStatus_GetURL(tt *testing.T) { +func TestDeployment_GetNodeID(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DeploymentStatus{URL: &zeroValue} - d.GetURL() - d = &DeploymentStatus{} - d.GetURL() + d := &Deployment{NodeID: &zeroValue} + d.GetNodeID() + d = &Deployment{} + d.GetNodeID() d = nil - d.GetURL() + d.GetNodeID() } -func TestDeploymentStatusEvent_GetAction(tt *testing.T) { +func TestDeployment_GetRef(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DeploymentStatusEvent{Action: &zeroValue} - d.GetAction() - d = &DeploymentStatusEvent{} - d.GetAction() + d := &Deployment{Ref: &zeroValue} + d.GetRef() + d = &Deployment{} + d.GetRef() d = nil - d.GetAction() + d.GetRef() } -func TestDeploymentStatusEvent_GetDeployment(tt *testing.T) { +func TestDeployment_GetRepositoryURL(tt *testing.T) { tt.Parallel() - d := &DeploymentStatusEvent{} - d.GetDeployment() + var zeroValue string + d := &Deployment{RepositoryURL: &zeroValue} + d.GetRepositoryURL() + d = &Deployment{} + d.GetRepositoryURL() d = nil - d.GetDeployment() + d.GetRepositoryURL() } -func TestDeploymentStatusEvent_GetDeploymentStatus(tt *testing.T) { +func TestDeployment_GetSHA(tt *testing.T) { tt.Parallel() - d := &DeploymentStatusEvent{} - d.GetDeploymentStatus() + var zeroValue string + d := &Deployment{SHA: &zeroValue} + d.GetSHA() + d = &Deployment{} + d.GetSHA() d = nil - d.GetDeploymentStatus() + d.GetSHA() } -func TestDeploymentStatusEvent_GetInstallation(tt *testing.T) { +func TestDeployment_GetStatusesURL(tt *testing.T) { tt.Parallel() - d := &DeploymentStatusEvent{} - d.GetInstallation() + var zeroValue string + d := &Deployment{StatusesURL: &zeroValue} + d.GetStatusesURL() + d = &Deployment{} + d.GetStatusesURL() d = nil - d.GetInstallation() + d.GetStatusesURL() } -func TestDeploymentStatusEvent_GetOrg(tt *testing.T) { +func TestDeployment_GetTask(tt *testing.T) { tt.Parallel() - d := &DeploymentStatusEvent{} - d.GetOrg() + var zeroValue string + d := &Deployment{Task: &zeroValue} + d.GetTask() + d = &Deployment{} + d.GetTask() d = nil - d.GetOrg() + d.GetTask() } -func TestDeploymentStatusEvent_GetRepo(tt *testing.T) { +func TestDeployment_GetUpdatedAt(tt *testing.T) { tt.Parallel() - d := &DeploymentStatusEvent{} - d.GetRepo() + var zeroValue Timestamp + d := &Deployment{UpdatedAt: &zeroValue} + d.GetUpdatedAt() + d = &Deployment{} + d.GetUpdatedAt() d = nil - d.GetRepo() + d.GetUpdatedAt() } -func TestDeploymentStatusEvent_GetSender(tt *testing.T) { +func TestDeployment_GetURL(tt *testing.T) { tt.Parallel() - d := &DeploymentStatusEvent{} - d.GetSender() + var zeroValue string + d := &Deployment{URL: &zeroValue} + d.GetURL() + d = &Deployment{} + d.GetURL() d = nil - d.GetSender() + d.GetURL() } -func TestDeploymentStatusRequest_GetAutoInactive(tt *testing.T) { +func TestDeploymentBranchPolicy_GetID(tt *testing.T) { tt.Parallel() - var zeroValue bool - d := &DeploymentStatusRequest{AutoInactive: &zeroValue} - d.GetAutoInactive() - d = &DeploymentStatusRequest{} - d.GetAutoInactive() + var zeroValue int64 + d := &DeploymentBranchPolicy{ID: &zeroValue} + d.GetID() + d = &DeploymentBranchPolicy{} + d.GetID() d = nil - d.GetAutoInactive() + d.GetID() } -func TestDeploymentStatusRequest_GetDescription(tt *testing.T) { +func TestDeploymentBranchPolicy_GetName(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DeploymentStatusRequest{Description: &zeroValue} - d.GetDescription() - d = &DeploymentStatusRequest{} - d.GetDescription() + d := &DeploymentBranchPolicy{Name: &zeroValue} + d.GetName() + d = &DeploymentBranchPolicy{} + d.GetName() d = nil - d.GetDescription() + d.GetName() } -func TestDeploymentStatusRequest_GetEnvironment(tt *testing.T) { +func TestDeploymentBranchPolicy_GetNodeID(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DeploymentStatusRequest{Environment: &zeroValue} - d.GetEnvironment() - d = &DeploymentStatusRequest{} - d.GetEnvironment() + d := &DeploymentBranchPolicy{NodeID: &zeroValue} + d.GetNodeID() + d = &DeploymentBranchPolicy{} + d.GetNodeID() d = nil - d.GetEnvironment() + d.GetNodeID() } -func TestDeploymentStatusRequest_GetEnvironmentURL(tt *testing.T) { +func TestDeploymentBranchPolicy_GetType(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DeploymentStatusRequest{EnvironmentURL: &zeroValue} - d.GetEnvironmentURL() - d = &DeploymentStatusRequest{} - d.GetEnvironmentURL() + d := &DeploymentBranchPolicy{Type: &zeroValue} + d.GetType() + d = &DeploymentBranchPolicy{} + d.GetType() d = nil - d.GetEnvironmentURL() + d.GetType() } -func TestDeploymentStatusRequest_GetLogURL(tt *testing.T) { +func TestDeploymentBranchPolicyRequest_GetName(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DeploymentStatusRequest{LogURL: &zeroValue} - d.GetLogURL() - d = &DeploymentStatusRequest{} - d.GetLogURL() + d := &DeploymentBranchPolicyRequest{Name: &zeroValue} + d.GetName() + d = &DeploymentBranchPolicyRequest{} + d.GetName() d = nil - d.GetLogURL() + d.GetName() } -func TestDeploymentStatusRequest_GetState(tt *testing.T) { +func TestDeploymentBranchPolicyRequest_GetType(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DeploymentStatusRequest{State: &zeroValue} - d.GetState() - d = &DeploymentStatusRequest{} - d.GetState() + d := &DeploymentBranchPolicyRequest{Type: &zeroValue} + d.GetType() + d = &DeploymentBranchPolicyRequest{} + d.GetType() d = nil - d.GetState() + d.GetType() } -func TestDiscussion_GetActiveLockReason(tt *testing.T) { +func TestDeploymentBranchPolicyResponse_GetTotalCount(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &Discussion{ActiveLockReason: &zeroValue} - d.GetActiveLockReason() - d = &Discussion{} - d.GetActiveLockReason() + var zeroValue int + d := &DeploymentBranchPolicyResponse{TotalCount: &zeroValue} + d.GetTotalCount() + d = &DeploymentBranchPolicyResponse{} + d.GetTotalCount() d = nil - d.GetActiveLockReason() + d.GetTotalCount() } -func TestDiscussion_GetAnswerChosenAt(tt *testing.T) { +func TestDeploymentEvent_GetDeployment(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - d := &Discussion{AnswerChosenAt: &zeroValue} - d.GetAnswerChosenAt() - d = &Discussion{} - d.GetAnswerChosenAt() + d := &DeploymentEvent{} + d.GetDeployment() d = nil - d.GetAnswerChosenAt() + d.GetDeployment() } -func TestDiscussion_GetAnswerChosenBy(tt *testing.T) { +func TestDeploymentEvent_GetInstallation(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &Discussion{AnswerChosenBy: &zeroValue} - d.GetAnswerChosenBy() - d = &Discussion{} - d.GetAnswerChosenBy() - d = nil - d.GetAnswerChosenBy() -} - -func TestDiscussion_GetAnswerHTMLURL(tt *testing.T) { - tt.Parallel() - var zeroValue string - d := &Discussion{AnswerHTMLURL: &zeroValue} - d.GetAnswerHTMLURL() - d = &Discussion{} - d.GetAnswerHTMLURL() + d := &DeploymentEvent{} + d.GetInstallation() d = nil - d.GetAnswerHTMLURL() + d.GetInstallation() } -func TestDiscussion_GetAuthorAssociation(tt *testing.T) { +func TestDeploymentEvent_GetOrg(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &Discussion{AuthorAssociation: &zeroValue} - d.GetAuthorAssociation() - d = &Discussion{} - d.GetAuthorAssociation() + d := &DeploymentEvent{} + d.GetOrg() d = nil - d.GetAuthorAssociation() + d.GetOrg() } -func TestDiscussion_GetBody(tt *testing.T) { +func TestDeploymentEvent_GetRepo(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &Discussion{Body: &zeroValue} - d.GetBody() - d = &Discussion{} - d.GetBody() + d := &DeploymentEvent{} + d.GetRepo() d = nil - d.GetBody() + d.GetRepo() } -func TestDiscussion_GetComments(tt *testing.T) { +func TestDeploymentEvent_GetSender(tt *testing.T) { tt.Parallel() - var zeroValue int - d := &Discussion{Comments: &zeroValue} - d.GetComments() - d = &Discussion{} - d.GetComments() + d := &DeploymentEvent{} + d.GetSender() d = nil - d.GetComments() + d.GetSender() } -func TestDiscussion_GetCreatedAt(tt *testing.T) { +func TestDeploymentEvent_GetWorkflow(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - d := &Discussion{CreatedAt: &zeroValue} - d.GetCreatedAt() - d = &Discussion{} - d.GetCreatedAt() + d := &DeploymentEvent{} + d.GetWorkflow() d = nil - d.GetCreatedAt() + d.GetWorkflow() } -func TestDiscussion_GetDiscussionCategory(tt *testing.T) { +func TestDeploymentEvent_GetWorkflowRun(tt *testing.T) { tt.Parallel() - d := &Discussion{} - d.GetDiscussionCategory() + d := &DeploymentEvent{} + d.GetWorkflowRun() d = nil - d.GetDiscussionCategory() + d.GetWorkflowRun() } -func TestDiscussion_GetHTMLURL(tt *testing.T) { +func TestDeploymentProtectionRuleEvent_GetAction(tt *testing.T) { tt.Parallel() var zeroValue string - d := &Discussion{HTMLURL: &zeroValue} - d.GetHTMLURL() - d = &Discussion{} - d.GetHTMLURL() - d = nil - d.GetHTMLURL() -} - -func TestDiscussion_GetID(tt *testing.T) { - tt.Parallel() - var zeroValue int64 - d := &Discussion{ID: &zeroValue} - d.GetID() - d = &Discussion{} - d.GetID() + d := &DeploymentProtectionRuleEvent{Action: &zeroValue} + d.GetAction() + d = &DeploymentProtectionRuleEvent{} + d.GetAction() d = nil - d.GetID() + d.GetAction() } -func TestDiscussion_GetLocked(tt *testing.T) { +func TestDeploymentProtectionRuleEvent_GetDeployment(tt *testing.T) { tt.Parallel() - var zeroValue bool - d := &Discussion{Locked: &zeroValue} - d.GetLocked() - d = &Discussion{} - d.GetLocked() + d := &DeploymentProtectionRuleEvent{} + d.GetDeployment() d = nil - d.GetLocked() + d.GetDeployment() } -func TestDiscussion_GetNodeID(tt *testing.T) { +func TestDeploymentProtectionRuleEvent_GetDeploymentCallbackURL(tt *testing.T) { tt.Parallel() var zeroValue string - d := &Discussion{NodeID: &zeroValue} - d.GetNodeID() - d = &Discussion{} - d.GetNodeID() + d := &DeploymentProtectionRuleEvent{DeploymentCallbackURL: &zeroValue} + d.GetDeploymentCallbackURL() + d = &DeploymentProtectionRuleEvent{} + d.GetDeploymentCallbackURL() d = nil - d.GetNodeID() + d.GetDeploymentCallbackURL() } -func TestDiscussion_GetNumber(tt *testing.T) { +func TestDeploymentProtectionRuleEvent_GetEnvironment(tt *testing.T) { tt.Parallel() - var zeroValue int - d := &Discussion{Number: &zeroValue} - d.GetNumber() - d = &Discussion{} - d.GetNumber() + var zeroValue string + d := &DeploymentProtectionRuleEvent{Environment: &zeroValue} + d.GetEnvironment() + d = &DeploymentProtectionRuleEvent{} + d.GetEnvironment() d = nil - d.GetNumber() + d.GetEnvironment() } -func TestDiscussion_GetRepositoryURL(tt *testing.T) { +func TestDeploymentProtectionRuleEvent_GetEvent(tt *testing.T) { tt.Parallel() var zeroValue string - d := &Discussion{RepositoryURL: &zeroValue} - d.GetRepositoryURL() - d = &Discussion{} - d.GetRepositoryURL() + d := &DeploymentProtectionRuleEvent{Event: &zeroValue} + d.GetEvent() + d = &DeploymentProtectionRuleEvent{} + d.GetEvent() d = nil - d.GetRepositoryURL() + d.GetEvent() } -func TestDiscussion_GetState(tt *testing.T) { +func TestDeploymentProtectionRuleEvent_GetInstallation(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &Discussion{State: &zeroValue} - d.GetState() - d = &Discussion{} - d.GetState() + d := &DeploymentProtectionRuleEvent{} + d.GetInstallation() d = nil - d.GetState() + d.GetInstallation() } -func TestDiscussion_GetTitle(tt *testing.T) { +func TestDeploymentProtectionRuleEvent_GetOrganization(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &Discussion{Title: &zeroValue} - d.GetTitle() - d = &Discussion{} - d.GetTitle() + d := &DeploymentProtectionRuleEvent{} + d.GetOrganization() d = nil - d.GetTitle() + d.GetOrganization() } -func TestDiscussion_GetUpdatedAt(tt *testing.T) { +func TestDeploymentProtectionRuleEvent_GetRepo(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - d := &Discussion{UpdatedAt: &zeroValue} - d.GetUpdatedAt() - d = &Discussion{} - d.GetUpdatedAt() + d := &DeploymentProtectionRuleEvent{} + d.GetRepo() d = nil - d.GetUpdatedAt() + d.GetRepo() } -func TestDiscussion_GetUser(tt *testing.T) { +func TestDeploymentProtectionRuleEvent_GetSender(tt *testing.T) { tt.Parallel() - d := &Discussion{} - d.GetUser() + d := &DeploymentProtectionRuleEvent{} + d.GetSender() d = nil - d.GetUser() + d.GetSender() } -func TestDiscussionCategory_GetCreatedAt(tt *testing.T) { +func TestDeploymentRequest_GetAutoMerge(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - d := &DiscussionCategory{CreatedAt: &zeroValue} - d.GetCreatedAt() - d = &DiscussionCategory{} - d.GetCreatedAt() + var zeroValue bool + d := &DeploymentRequest{AutoMerge: &zeroValue} + d.GetAutoMerge() + d = &DeploymentRequest{} + d.GetAutoMerge() d = nil - d.GetCreatedAt() + d.GetAutoMerge() } -func TestDiscussionCategory_GetDescription(tt *testing.T) { +func TestDeploymentRequest_GetDescription(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DiscussionCategory{Description: &zeroValue} + d := &DeploymentRequest{Description: &zeroValue} d.GetDescription() - d = &DiscussionCategory{} + d = &DeploymentRequest{} d.GetDescription() d = nil d.GetDescription() } -func TestDiscussionCategory_GetEmoji(tt *testing.T) { +func TestDeploymentRequest_GetEnvironment(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DiscussionCategory{Emoji: &zeroValue} - d.GetEmoji() - d = &DiscussionCategory{} - d.GetEmoji() + d := &DeploymentRequest{Environment: &zeroValue} + d.GetEnvironment() + d = &DeploymentRequest{} + d.GetEnvironment() d = nil - d.GetEmoji() + d.GetEnvironment() } -func TestDiscussionCategory_GetID(tt *testing.T) { +func TestDeploymentRequest_GetProductionEnvironment(tt *testing.T) { tt.Parallel() - var zeroValue int64 - d := &DiscussionCategory{ID: &zeroValue} - d.GetID() - d = &DiscussionCategory{} - d.GetID() + var zeroValue bool + d := &DeploymentRequest{ProductionEnvironment: &zeroValue} + d.GetProductionEnvironment() + d = &DeploymentRequest{} + d.GetProductionEnvironment() d = nil - d.GetID() + d.GetProductionEnvironment() } -func TestDiscussionCategory_GetIsAnswerable(tt *testing.T) { +func TestDeploymentRequest_GetRef(tt *testing.T) { tt.Parallel() - var zeroValue bool - d := &DiscussionCategory{IsAnswerable: &zeroValue} - d.GetIsAnswerable() - d = &DiscussionCategory{} - d.GetIsAnswerable() + var zeroValue string + d := &DeploymentRequest{Ref: &zeroValue} + d.GetRef() + d = &DeploymentRequest{} + d.GetRef() d = nil - d.GetIsAnswerable() + d.GetRef() } -func TestDiscussionCategory_GetName(tt *testing.T) { +func TestDeploymentRequest_GetRequiredContexts(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DiscussionCategory{Name: &zeroValue} - d.GetName() - d = &DiscussionCategory{} - d.GetName() + var zeroValue []string + d := &DeploymentRequest{RequiredContexts: &zeroValue} + d.GetRequiredContexts() + d = &DeploymentRequest{} + d.GetRequiredContexts() d = nil - d.GetName() + d.GetRequiredContexts() } -func TestDiscussionCategory_GetNodeID(tt *testing.T) { +func TestDeploymentRequest_GetTask(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DiscussionCategory{NodeID: &zeroValue} - d.GetNodeID() - d = &DiscussionCategory{} - d.GetNodeID() + d := &DeploymentRequest{Task: &zeroValue} + d.GetTask() + d = &DeploymentRequest{} + d.GetTask() d = nil - d.GetNodeID() + d.GetTask() } -func TestDiscussionCategory_GetRepositoryID(tt *testing.T) { +func TestDeploymentRequest_GetTransientEnvironment(tt *testing.T) { tt.Parallel() - var zeroValue int64 - d := &DiscussionCategory{RepositoryID: &zeroValue} - d.GetRepositoryID() - d = &DiscussionCategory{} - d.GetRepositoryID() + var zeroValue bool + d := &DeploymentRequest{TransientEnvironment: &zeroValue} + d.GetTransientEnvironment() + d = &DeploymentRequest{} + d.GetTransientEnvironment() d = nil - d.GetRepositoryID() + d.GetTransientEnvironment() } -func TestDiscussionCategory_GetSlug(tt *testing.T) { +func TestDeploymentReviewEvent_GetAction(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DiscussionCategory{Slug: &zeroValue} - d.GetSlug() - d = &DiscussionCategory{} - d.GetSlug() + d := &DeploymentReviewEvent{Action: &zeroValue} + d.GetAction() + d = &DeploymentReviewEvent{} + d.GetAction() d = nil - d.GetSlug() + d.GetAction() } -func TestDiscussionCategory_GetUpdatedAt(tt *testing.T) { +func TestDeploymentReviewEvent_GetApprover(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - d := &DiscussionCategory{UpdatedAt: &zeroValue} - d.GetUpdatedAt() - d = &DiscussionCategory{} - d.GetUpdatedAt() + d := &DeploymentReviewEvent{} + d.GetApprover() d = nil - d.GetUpdatedAt() + d.GetApprover() } -func TestDiscussionComment_GetAuthor(tt *testing.T) { +func TestDeploymentReviewEvent_GetComment(tt *testing.T) { tt.Parallel() - d := &DiscussionComment{} - d.GetAuthor() + var zeroValue string + d := &DeploymentReviewEvent{Comment: &zeroValue} + d.GetComment() + d = &DeploymentReviewEvent{} + d.GetComment() d = nil - d.GetAuthor() + d.GetComment() } -func TestDiscussionComment_GetBody(tt *testing.T) { +func TestDeploymentReviewEvent_GetEnterprise(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DiscussionComment{Body: &zeroValue} - d.GetBody() - d = &DiscussionComment{} - d.GetBody() + d := &DeploymentReviewEvent{} + d.GetEnterprise() d = nil - d.GetBody() + d.GetEnterprise() } -func TestDiscussionComment_GetBodyHTML(tt *testing.T) { +func TestDeploymentReviewEvent_GetEnvironment(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DiscussionComment{BodyHTML: &zeroValue} - d.GetBodyHTML() - d = &DiscussionComment{} - d.GetBodyHTML() + d := &DeploymentReviewEvent{Environment: &zeroValue} + d.GetEnvironment() + d = &DeploymentReviewEvent{} + d.GetEnvironment() d = nil - d.GetBodyHTML() + d.GetEnvironment() } -func TestDiscussionComment_GetBodyVersion(tt *testing.T) { +func TestDeploymentReviewEvent_GetInstallation(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DiscussionComment{BodyVersion: &zeroValue} - d.GetBodyVersion() - d = &DiscussionComment{} - d.GetBodyVersion() + d := &DeploymentReviewEvent{} + d.GetInstallation() d = nil - d.GetBodyVersion() + d.GetInstallation() } -func TestDiscussionComment_GetCreatedAt(tt *testing.T) { +func TestDeploymentReviewEvent_GetOrganization(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - d := &DiscussionComment{CreatedAt: &zeroValue} - d.GetCreatedAt() - d = &DiscussionComment{} - d.GetCreatedAt() + d := &DeploymentReviewEvent{} + d.GetOrganization() d = nil - d.GetCreatedAt() + d.GetOrganization() } -func TestDiscussionComment_GetDiscussionURL(tt *testing.T) { +func TestDeploymentReviewEvent_GetRepo(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DiscussionComment{DiscussionURL: &zeroValue} - d.GetDiscussionURL() - d = &DiscussionComment{} - d.GetDiscussionURL() + d := &DeploymentReviewEvent{} + d.GetRepo() d = nil - d.GetDiscussionURL() + d.GetRepo() } -func TestDiscussionComment_GetHTMLURL(tt *testing.T) { +func TestDeploymentReviewEvent_GetRequester(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DiscussionComment{HTMLURL: &zeroValue} - d.GetHTMLURL() - d = &DiscussionComment{} - d.GetHTMLURL() + d := &DeploymentReviewEvent{} + d.GetRequester() d = nil - d.GetHTMLURL() + d.GetRequester() } -func TestDiscussionComment_GetLastEditedAt(tt *testing.T) { +func TestDeploymentReviewEvent_GetSender(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - d := &DiscussionComment{LastEditedAt: &zeroValue} - d.GetLastEditedAt() - d = &DiscussionComment{} - d.GetLastEditedAt() + d := &DeploymentReviewEvent{} + d.GetSender() d = nil - d.GetLastEditedAt() + d.GetSender() } -func TestDiscussionComment_GetNodeID(tt *testing.T) { +func TestDeploymentReviewEvent_GetSince(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DiscussionComment{NodeID: &zeroValue} - d.GetNodeID() - d = &DiscussionComment{} - d.GetNodeID() + d := &DeploymentReviewEvent{Since: &zeroValue} + d.GetSince() + d = &DeploymentReviewEvent{} + d.GetSince() d = nil - d.GetNodeID() + d.GetSince() } -func TestDiscussionComment_GetNumber(tt *testing.T) { +func TestDeploymentReviewEvent_GetWorkflowJobRun(tt *testing.T) { tt.Parallel() - var zeroValue int - d := &DiscussionComment{Number: &zeroValue} - d.GetNumber() - d = &DiscussionComment{} - d.GetNumber() + d := &DeploymentReviewEvent{} + d.GetWorkflowJobRun() d = nil - d.GetNumber() + d.GetWorkflowJobRun() } -func TestDiscussionComment_GetReactions(tt *testing.T) { +func TestDeploymentReviewEvent_GetWorkflowRun(tt *testing.T) { tt.Parallel() - d := &DiscussionComment{} - d.GetReactions() + d := &DeploymentReviewEvent{} + d.GetWorkflowRun() d = nil - d.GetReactions() + d.GetWorkflowRun() } -func TestDiscussionComment_GetUpdatedAt(tt *testing.T) { +func TestDeploymentStatus_GetCreatedAt(tt *testing.T) { tt.Parallel() var zeroValue Timestamp - d := &DiscussionComment{UpdatedAt: &zeroValue} - d.GetUpdatedAt() - d = &DiscussionComment{} - d.GetUpdatedAt() + d := &DeploymentStatus{CreatedAt: &zeroValue} + d.GetCreatedAt() + d = &DeploymentStatus{} + d.GetCreatedAt() d = nil - d.GetUpdatedAt() + d.GetCreatedAt() } -func TestDiscussionComment_GetURL(tt *testing.T) { +func TestDeploymentStatus_GetCreator(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DiscussionComment{URL: &zeroValue} - d.GetURL() - d = &DiscussionComment{} - d.GetURL() + d := &DeploymentStatus{} + d.GetCreator() d = nil - d.GetURL() + d.GetCreator() } -func TestDiscussionCommentEvent_GetAction(tt *testing.T) { +func TestDeploymentStatus_GetDeploymentURL(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DiscussionCommentEvent{Action: &zeroValue} - d.GetAction() - d = &DiscussionCommentEvent{} - d.GetAction() + d := &DeploymentStatus{DeploymentURL: &zeroValue} + d.GetDeploymentURL() + d = &DeploymentStatus{} + d.GetDeploymentURL() d = nil - d.GetAction() + d.GetDeploymentURL() } -func TestDiscussionCommentEvent_GetComment(tt *testing.T) { +func TestDeploymentStatus_GetDescription(tt *testing.T) { tt.Parallel() - d := &DiscussionCommentEvent{} - d.GetComment() + var zeroValue string + d := &DeploymentStatus{Description: &zeroValue} + d.GetDescription() + d = &DeploymentStatus{} + d.GetDescription() d = nil - d.GetComment() + d.GetDescription() } -func TestDiscussionCommentEvent_GetDiscussion(tt *testing.T) { +func TestDeploymentStatus_GetEnvironment(tt *testing.T) { tt.Parallel() - d := &DiscussionCommentEvent{} - d.GetDiscussion() + var zeroValue string + d := &DeploymentStatus{Environment: &zeroValue} + d.GetEnvironment() + d = &DeploymentStatus{} + d.GetEnvironment() d = nil - d.GetDiscussion() + d.GetEnvironment() } -func TestDiscussionCommentEvent_GetInstallation(tt *testing.T) { +func TestDeploymentStatus_GetEnvironmentURL(tt *testing.T) { tt.Parallel() - d := &DiscussionCommentEvent{} - d.GetInstallation() + var zeroValue string + d := &DeploymentStatus{EnvironmentURL: &zeroValue} + d.GetEnvironmentURL() + d = &DeploymentStatus{} + d.GetEnvironmentURL() d = nil - d.GetInstallation() + d.GetEnvironmentURL() } -func TestDiscussionCommentEvent_GetOrg(tt *testing.T) { +func TestDeploymentStatus_GetID(tt *testing.T) { tt.Parallel() - d := &DiscussionCommentEvent{} - d.GetOrg() + var zeroValue int64 + d := &DeploymentStatus{ID: &zeroValue} + d.GetID() + d = &DeploymentStatus{} + d.GetID() d = nil - d.GetOrg() + d.GetID() } -func TestDiscussionCommentEvent_GetRepo(tt *testing.T) { +func TestDeploymentStatus_GetLogURL(tt *testing.T) { tt.Parallel() - d := &DiscussionCommentEvent{} - d.GetRepo() + var zeroValue string + d := &DeploymentStatus{LogURL: &zeroValue} + d.GetLogURL() + d = &DeploymentStatus{} + d.GetLogURL() d = nil - d.GetRepo() + d.GetLogURL() } -func TestDiscussionCommentEvent_GetSender(tt *testing.T) { +func TestDeploymentStatus_GetNodeID(tt *testing.T) { tt.Parallel() - d := &DiscussionCommentEvent{} - d.GetSender() + var zeroValue string + d := &DeploymentStatus{NodeID: &zeroValue} + d.GetNodeID() + d = &DeploymentStatus{} + d.GetNodeID() d = nil - d.GetSender() + d.GetNodeID() } -func TestDiscussionEvent_GetAction(tt *testing.T) { +func TestDeploymentStatus_GetRepositoryURL(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DiscussionEvent{Action: &zeroValue} + d := &DeploymentStatus{RepositoryURL: &zeroValue} + d.GetRepositoryURL() + d = &DeploymentStatus{} + d.GetRepositoryURL() + d = nil + d.GetRepositoryURL() +} + +func TestDeploymentStatus_GetState(tt *testing.T) { + tt.Parallel() + var zeroValue string + d := &DeploymentStatus{State: &zeroValue} + d.GetState() + d = &DeploymentStatus{} + d.GetState() + d = nil + d.GetState() +} + +func TestDeploymentStatus_GetTargetURL(tt *testing.T) { + tt.Parallel() + var zeroValue string + d := &DeploymentStatus{TargetURL: &zeroValue} + d.GetTargetURL() + d = &DeploymentStatus{} + d.GetTargetURL() + d = nil + d.GetTargetURL() +} + +func TestDeploymentStatus_GetUpdatedAt(tt *testing.T) { + tt.Parallel() + var zeroValue Timestamp + d := &DeploymentStatus{UpdatedAt: &zeroValue} + d.GetUpdatedAt() + d = &DeploymentStatus{} + d.GetUpdatedAt() + d = nil + d.GetUpdatedAt() +} + +func TestDeploymentStatus_GetURL(tt *testing.T) { + tt.Parallel() + var zeroValue string + d := &DeploymentStatus{URL: &zeroValue} + d.GetURL() + d = &DeploymentStatus{} + d.GetURL() + d = nil + d.GetURL() +} + +func TestDeploymentStatusEvent_GetAction(tt *testing.T) { + tt.Parallel() + var zeroValue string + d := &DeploymentStatusEvent{Action: &zeroValue} d.GetAction() - d = &DiscussionEvent{} + d = &DeploymentStatusEvent{} d.GetAction() d = nil d.GetAction() } -func TestDiscussionEvent_GetDiscussion(tt *testing.T) { +func TestDeploymentStatusEvent_GetDeployment(tt *testing.T) { tt.Parallel() - d := &DiscussionEvent{} - d.GetDiscussion() + d := &DeploymentStatusEvent{} + d.GetDeployment() d = nil - d.GetDiscussion() + d.GetDeployment() } -func TestDiscussionEvent_GetInstallation(tt *testing.T) { +func TestDeploymentStatusEvent_GetDeploymentStatus(tt *testing.T) { tt.Parallel() - d := &DiscussionEvent{} + d := &DeploymentStatusEvent{} + d.GetDeploymentStatus() + d = nil + d.GetDeploymentStatus() +} + +func TestDeploymentStatusEvent_GetInstallation(tt *testing.T) { + tt.Parallel() + d := &DeploymentStatusEvent{} d.GetInstallation() d = nil d.GetInstallation() } -func TestDiscussionEvent_GetOrg(tt *testing.T) { +func TestDeploymentStatusEvent_GetOrg(tt *testing.T) { tt.Parallel() - d := &DiscussionEvent{} + d := &DeploymentStatusEvent{} d.GetOrg() d = nil d.GetOrg() } -func TestDiscussionEvent_GetRepo(tt *testing.T) { +func TestDeploymentStatusEvent_GetRepo(tt *testing.T) { tt.Parallel() - d := &DiscussionEvent{} + d := &DeploymentStatusEvent{} d.GetRepo() d = nil d.GetRepo() } -func TestDiscussionEvent_GetSender(tt *testing.T) { +func TestDeploymentStatusEvent_GetSender(tt *testing.T) { tt.Parallel() - d := &DiscussionEvent{} + d := &DeploymentStatusEvent{} d.GetSender() d = nil d.GetSender() } -func TestDismissalRestrictionsRequest_GetApps(tt *testing.T) { - tt.Parallel() - var zeroValue []string - d := &DismissalRestrictionsRequest{Apps: &zeroValue} - d.GetApps() - d = &DismissalRestrictionsRequest{} - d.GetApps() - d = nil - d.GetApps() -} - -func TestDismissalRestrictionsRequest_GetTeams(tt *testing.T) { +func TestDeploymentStatusRequest_GetAutoInactive(tt *testing.T) { tt.Parallel() - var zeroValue []string - d := &DismissalRestrictionsRequest{Teams: &zeroValue} - d.GetTeams() - d = &DismissalRestrictionsRequest{} - d.GetTeams() + var zeroValue bool + d := &DeploymentStatusRequest{AutoInactive: &zeroValue} + d.GetAutoInactive() + d = &DeploymentStatusRequest{} + d.GetAutoInactive() d = nil - d.GetTeams() + d.GetAutoInactive() } -func TestDismissalRestrictionsRequest_GetUsers(tt *testing.T) { +func TestDeploymentStatusRequest_GetDescription(tt *testing.T) { tt.Parallel() - var zeroValue []string - d := &DismissalRestrictionsRequest{Users: &zeroValue} - d.GetUsers() - d = &DismissalRestrictionsRequest{} - d.GetUsers() + var zeroValue string + d := &DeploymentStatusRequest{Description: &zeroValue} + d.GetDescription() + d = &DeploymentStatusRequest{} + d.GetDescription() d = nil - d.GetUsers() + d.GetDescription() } -func TestDismissedReview_GetDismissalCommitID(tt *testing.T) { +func TestDeploymentStatusRequest_GetEnvironment(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DismissedReview{DismissalCommitID: &zeroValue} - d.GetDismissalCommitID() - d = &DismissedReview{} - d.GetDismissalCommitID() + d := &DeploymentStatusRequest{Environment: &zeroValue} + d.GetEnvironment() + d = &DeploymentStatusRequest{} + d.GetEnvironment() d = nil - d.GetDismissalCommitID() + d.GetEnvironment() } -func TestDismissedReview_GetDismissalMessage(tt *testing.T) { +func TestDeploymentStatusRequest_GetEnvironmentURL(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DismissedReview{DismissalMessage: &zeroValue} - d.GetDismissalMessage() - d = &DismissedReview{} - d.GetDismissalMessage() + d := &DeploymentStatusRequest{EnvironmentURL: &zeroValue} + d.GetEnvironmentURL() + d = &DeploymentStatusRequest{} + d.GetEnvironmentURL() d = nil - d.GetDismissalMessage() + d.GetEnvironmentURL() } -func TestDismissedReview_GetReviewID(tt *testing.T) { +func TestDeploymentStatusRequest_GetLogURL(tt *testing.T) { tt.Parallel() - var zeroValue int64 - d := &DismissedReview{ReviewID: &zeroValue} - d.GetReviewID() - d = &DismissedReview{} - d.GetReviewID() + var zeroValue string + d := &DeploymentStatusRequest{LogURL: &zeroValue} + d.GetLogURL() + d = &DeploymentStatusRequest{} + d.GetLogURL() d = nil - d.GetReviewID() + d.GetLogURL() } -func TestDismissedReview_GetState(tt *testing.T) { +func TestDeploymentStatusRequest_GetState(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DismissedReview{State: &zeroValue} + d := &DeploymentStatusRequest{State: &zeroValue} d.GetState() - d = &DismissedReview{} + d = &DeploymentStatusRequest{} d.GetState() d = nil d.GetState() } -func TestDismissStaleReviewsOnPushChanges_GetFrom(tt *testing.T) { +func TestDiscussion_GetActiveLockReason(tt *testing.T) { tt.Parallel() - var zeroValue bool - d := &DismissStaleReviewsOnPushChanges{From: &zeroValue} - d.GetFrom() - d = &DismissStaleReviewsOnPushChanges{} - d.GetFrom() + var zeroValue string + d := &Discussion{ActiveLockReason: &zeroValue} + d.GetActiveLockReason() + d = &Discussion{} + d.GetActiveLockReason() d = nil - d.GetFrom() + d.GetActiveLockReason() } -func TestDispatchRequestOptions_GetClientPayload(tt *testing.T) { +func TestDiscussion_GetAnswerChosenAt(tt *testing.T) { tt.Parallel() - var zeroValue json.RawMessage - d := &DispatchRequestOptions{ClientPayload: &zeroValue} - d.GetClientPayload() - d = &DispatchRequestOptions{} - d.GetClientPayload() + var zeroValue Timestamp + d := &Discussion{AnswerChosenAt: &zeroValue} + d.GetAnswerChosenAt() + d = &Discussion{} + d.GetAnswerChosenAt() d = nil - d.GetClientPayload() + d.GetAnswerChosenAt() } -func TestDraftReviewComment_GetBody(tt *testing.T) { +func TestDiscussion_GetAnswerChosenBy(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DraftReviewComment{Body: &zeroValue} - d.GetBody() - d = &DraftReviewComment{} - d.GetBody() + d := &Discussion{AnswerChosenBy: &zeroValue} + d.GetAnswerChosenBy() + d = &Discussion{} + d.GetAnswerChosenBy() d = nil - d.GetBody() + d.GetAnswerChosenBy() } -func TestDraftReviewComment_GetLine(tt *testing.T) { +func TestDiscussion_GetAnswerHTMLURL(tt *testing.T) { tt.Parallel() - var zeroValue int - d := &DraftReviewComment{Line: &zeroValue} - d.GetLine() - d = &DraftReviewComment{} - d.GetLine() + var zeroValue string + d := &Discussion{AnswerHTMLURL: &zeroValue} + d.GetAnswerHTMLURL() + d = &Discussion{} + d.GetAnswerHTMLURL() d = nil - d.GetLine() + d.GetAnswerHTMLURL() } -func TestDraftReviewComment_GetPath(tt *testing.T) { +func TestDiscussion_GetAuthorAssociation(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DraftReviewComment{Path: &zeroValue} - d.GetPath() - d = &DraftReviewComment{} - d.GetPath() + d := &Discussion{AuthorAssociation: &zeroValue} + d.GetAuthorAssociation() + d = &Discussion{} + d.GetAuthorAssociation() d = nil - d.GetPath() + d.GetAuthorAssociation() } -func TestDraftReviewComment_GetPosition(tt *testing.T) { +func TestDiscussion_GetBody(tt *testing.T) { + tt.Parallel() + var zeroValue string + d := &Discussion{Body: &zeroValue} + d.GetBody() + d = &Discussion{} + d.GetBody() + d = nil + d.GetBody() +} + +func TestDiscussion_GetComments(tt *testing.T) { tt.Parallel() var zeroValue int - d := &DraftReviewComment{Position: &zeroValue} - d.GetPosition() - d = &DraftReviewComment{} - d.GetPosition() + d := &Discussion{Comments: &zeroValue} + d.GetComments() + d = &Discussion{} + d.GetComments() d = nil - d.GetPosition() + d.GetComments() } -func TestDraftReviewComment_GetSide(tt *testing.T) { +func TestDiscussion_GetCreatedAt(tt *testing.T) { tt.Parallel() - var zeroValue string - d := &DraftReviewComment{Side: &zeroValue} - d.GetSide() - d = &DraftReviewComment{} - d.GetSide() + var zeroValue Timestamp + d := &Discussion{CreatedAt: &zeroValue} + d.GetCreatedAt() + d = &Discussion{} + d.GetCreatedAt() d = nil - d.GetSide() + d.GetCreatedAt() } -func TestDraftReviewComment_GetStartLine(tt *testing.T) { +func TestDiscussion_GetDiscussionCategory(tt *testing.T) { tt.Parallel() - var zeroValue int - d := &DraftReviewComment{StartLine: &zeroValue} - d.GetStartLine() - d = &DraftReviewComment{} - d.GetStartLine() + d := &Discussion{} + d.GetDiscussionCategory() d = nil - d.GetStartLine() + d.GetDiscussionCategory() } -func TestDraftReviewComment_GetStartSide(tt *testing.T) { +func TestDiscussion_GetHTMLURL(tt *testing.T) { tt.Parallel() var zeroValue string - d := &DraftReviewComment{StartSide: &zeroValue} - d.GetStartSide() - d = &DraftReviewComment{} - d.GetStartSide() + d := &Discussion{HTMLURL: &zeroValue} + d.GetHTMLURL() + d = &Discussion{} + d.GetHTMLURL() d = nil - d.GetStartSide() + d.GetHTMLURL() } -func TestEditBase_GetRef(tt *testing.T) { +func TestDiscussion_GetID(tt *testing.T) { tt.Parallel() - e := &EditBase{} - e.GetRef() - e = nil - e.GetRef() + var zeroValue int64 + d := &Discussion{ID: &zeroValue} + d.GetID() + d = &Discussion{} + d.GetID() + d = nil + d.GetID() } -func TestEditBase_GetSHA(tt *testing.T) { +func TestDiscussion_GetLocked(tt *testing.T) { tt.Parallel() - e := &EditBase{} - e.GetSHA() - e = nil - e.GetSHA() + var zeroValue bool + d := &Discussion{Locked: &zeroValue} + d.GetLocked() + d = &Discussion{} + d.GetLocked() + d = nil + d.GetLocked() } -func TestEditBody_GetFrom(tt *testing.T) { +func TestDiscussion_GetNodeID(tt *testing.T) { tt.Parallel() var zeroValue string - e := &EditBody{From: &zeroValue} - e.GetFrom() - e = &EditBody{} - e.GetFrom() - e = nil - e.GetFrom() + d := &Discussion{NodeID: &zeroValue} + d.GetNodeID() + d = &Discussion{} + d.GetNodeID() + d = nil + d.GetNodeID() } -func TestEditChange_GetBase(tt *testing.T) { +func TestDiscussion_GetNumber(tt *testing.T) { tt.Parallel() - e := &EditChange{} - e.GetBase() - e = nil - e.GetBase() + var zeroValue int + d := &Discussion{Number: &zeroValue} + d.GetNumber() + d = &Discussion{} + d.GetNumber() + d = nil + d.GetNumber() } -func TestEditChange_GetBody(tt *testing.T) { +func TestDiscussion_GetRepositoryURL(tt *testing.T) { tt.Parallel() - e := &EditChange{} - e.GetBody() - e = nil - e.GetBody() + var zeroValue string + d := &Discussion{RepositoryURL: &zeroValue} + d.GetRepositoryURL() + d = &Discussion{} + d.GetRepositoryURL() + d = nil + d.GetRepositoryURL() } -func TestEditChange_GetDefaultBranch(tt *testing.T) { +func TestDiscussion_GetState(tt *testing.T) { tt.Parallel() - e := &EditChange{} - e.GetDefaultBranch() - e = nil - e.GetDefaultBranch() + var zeroValue string + d := &Discussion{State: &zeroValue} + d.GetState() + d = &Discussion{} + d.GetState() + d = nil + d.GetState() } -func TestEditChange_GetOwner(tt *testing.T) { +func TestDiscussion_GetTitle(tt *testing.T) { tt.Parallel() - e := &EditChange{} - e.GetOwner() - e = nil - e.GetOwner() + var zeroValue string + d := &Discussion{Title: &zeroValue} + d.GetTitle() + d = &Discussion{} + d.GetTitle() + d = nil + d.GetTitle() } -func TestEditChange_GetRepo(tt *testing.T) { +func TestDiscussion_GetUpdatedAt(tt *testing.T) { tt.Parallel() - e := &EditChange{} - e.GetRepo() - e = nil - e.GetRepo() + var zeroValue Timestamp + d := &Discussion{UpdatedAt: &zeroValue} + d.GetUpdatedAt() + d = &Discussion{} + d.GetUpdatedAt() + d = nil + d.GetUpdatedAt() } -func TestEditChange_GetTitle(tt *testing.T) { +func TestDiscussion_GetUser(tt *testing.T) { tt.Parallel() - e := &EditChange{} - e.GetTitle() - e = nil - e.GetTitle() + d := &Discussion{} + d.GetUser() + d = nil + d.GetUser() } -func TestEditChange_GetTopics(tt *testing.T) { +func TestDiscussionCategory_GetCreatedAt(tt *testing.T) { tt.Parallel() - e := &EditChange{} - e.GetTopics() - e = nil - e.GetTopics() + var zeroValue Timestamp + d := &DiscussionCategory{CreatedAt: &zeroValue} + d.GetCreatedAt() + d = &DiscussionCategory{} + d.GetCreatedAt() + d = nil + d.GetCreatedAt() } -func TestEditDefaultBranch_GetFrom(tt *testing.T) { +func TestDiscussionCategory_GetDescription(tt *testing.T) { tt.Parallel() var zeroValue string - e := &EditDefaultBranch{From: &zeroValue} - e.GetFrom() - e = &EditDefaultBranch{} - e.GetFrom() - e = nil - e.GetFrom() + d := &DiscussionCategory{Description: &zeroValue} + d.GetDescription() + d = &DiscussionCategory{} + d.GetDescription() + d = nil + d.GetDescription() } -func TestEditOwner_GetOwnerInfo(tt *testing.T) { +func TestDiscussionCategory_GetEmoji(tt *testing.T) { tt.Parallel() - e := &EditOwner{} - e.GetOwnerInfo() - e = nil - e.GetOwnerInfo() + var zeroValue string + d := &DiscussionCategory{Emoji: &zeroValue} + d.GetEmoji() + d = &DiscussionCategory{} + d.GetEmoji() + d = nil + d.GetEmoji() } -func TestEditRef_GetFrom(tt *testing.T) { +func TestDiscussionCategory_GetID(tt *testing.T) { tt.Parallel() - var zeroValue string - e := &EditRef{From: &zeroValue} - e.GetFrom() - e = &EditRef{} - e.GetFrom() - e = nil - e.GetFrom() + var zeroValue int64 + d := &DiscussionCategory{ID: &zeroValue} + d.GetID() + d = &DiscussionCategory{} + d.GetID() + d = nil + d.GetID() } -func TestEditRepo_GetName(tt *testing.T) { +func TestDiscussionCategory_GetIsAnswerable(tt *testing.T) { tt.Parallel() - e := &EditRepo{} - e.GetName() - e = nil - e.GetName() + var zeroValue bool + d := &DiscussionCategory{IsAnswerable: &zeroValue} + d.GetIsAnswerable() + d = &DiscussionCategory{} + d.GetIsAnswerable() + d = nil + d.GetIsAnswerable() } -func TestEditSHA_GetFrom(tt *testing.T) { +func TestDiscussionCategory_GetName(tt *testing.T) { tt.Parallel() var zeroValue string - e := &EditSHA{From: &zeroValue} - e.GetFrom() - e = &EditSHA{} - e.GetFrom() - e = nil - e.GetFrom() + d := &DiscussionCategory{Name: &zeroValue} + d.GetName() + d = &DiscussionCategory{} + d.GetName() + d = nil + d.GetName() } -func TestEditTitle_GetFrom(tt *testing.T) { +func TestDiscussionCategory_GetNodeID(tt *testing.T) { tt.Parallel() var zeroValue string - e := &EditTitle{From: &zeroValue} - e.GetFrom() - e = &EditTitle{} - e.GetFrom() - e = nil - e.GetFrom() + d := &DiscussionCategory{NodeID: &zeroValue} + d.GetNodeID() + d = &DiscussionCategory{} + d.GetNodeID() + d = nil + d.GetNodeID() } -func TestEnterprise_GetAvatarURL(tt *testing.T) { +func TestDiscussionCategory_GetRepositoryID(tt *testing.T) { + tt.Parallel() + var zeroValue int64 + d := &DiscussionCategory{RepositoryID: &zeroValue} + d.GetRepositoryID() + d = &DiscussionCategory{} + d.GetRepositoryID() + d = nil + d.GetRepositoryID() +} + +func TestDiscussionCategory_GetSlug(tt *testing.T) { tt.Parallel() var zeroValue string - e := &Enterprise{AvatarURL: &zeroValue} - e.GetAvatarURL() - e = &Enterprise{} - e.GetAvatarURL() - e = nil - e.GetAvatarURL() + d := &DiscussionCategory{Slug: &zeroValue} + d.GetSlug() + d = &DiscussionCategory{} + d.GetSlug() + d = nil + d.GetSlug() } -func TestEnterprise_GetCreatedAt(tt *testing.T) { +func TestDiscussionCategory_GetUpdatedAt(tt *testing.T) { tt.Parallel() var zeroValue Timestamp - e := &Enterprise{CreatedAt: &zeroValue} - e.GetCreatedAt() - e = &Enterprise{} - e.GetCreatedAt() - e = nil - e.GetCreatedAt() + d := &DiscussionCategory{UpdatedAt: &zeroValue} + d.GetUpdatedAt() + d = &DiscussionCategory{} + d.GetUpdatedAt() + d = nil + d.GetUpdatedAt() } -func TestEnterprise_GetDescription(tt *testing.T) { +func TestDiscussionComment_GetAuthor(tt *testing.T) { tt.Parallel() - var zeroValue string - e := &Enterprise{Description: &zeroValue} - e.GetDescription() - e = &Enterprise{} - e.GetDescription() - e = nil - e.GetDescription() + d := &DiscussionComment{} + d.GetAuthor() + d = nil + d.GetAuthor() } -func TestEnterprise_GetHTMLURL(tt *testing.T) { +func TestDiscussionComment_GetBody(tt *testing.T) { tt.Parallel() var zeroValue string - e := &Enterprise{HTMLURL: &zeroValue} - e.GetHTMLURL() - e = &Enterprise{} - e.GetHTMLURL() - e = nil - e.GetHTMLURL() + d := &DiscussionComment{Body: &zeroValue} + d.GetBody() + d = &DiscussionComment{} + d.GetBody() + d = nil + d.GetBody() } -func TestEnterprise_GetID(tt *testing.T) { +func TestDiscussionComment_GetBodyHTML(tt *testing.T) { tt.Parallel() - var zeroValue int - e := &Enterprise{ID: &zeroValue} - e.GetID() - e = &Enterprise{} - e.GetID() - e = nil - e.GetID() + var zeroValue string + d := &DiscussionComment{BodyHTML: &zeroValue} + d.GetBodyHTML() + d = &DiscussionComment{} + d.GetBodyHTML() + d = nil + d.GetBodyHTML() } -func TestEnterprise_GetName(tt *testing.T) { +func TestDiscussionComment_GetBodyVersion(tt *testing.T) { tt.Parallel() var zeroValue string - e := &Enterprise{Name: &zeroValue} - e.GetName() - e = &Enterprise{} - e.GetName() - e = nil - e.GetName() + d := &DiscussionComment{BodyVersion: &zeroValue} + d.GetBodyVersion() + d = &DiscussionComment{} + d.GetBodyVersion() + d = nil + d.GetBodyVersion() } -func TestEnterprise_GetNodeID(tt *testing.T) { +func TestDiscussionComment_GetCreatedAt(tt *testing.T) { + tt.Parallel() + var zeroValue Timestamp + d := &DiscussionComment{CreatedAt: &zeroValue} + d.GetCreatedAt() + d = &DiscussionComment{} + d.GetCreatedAt() + d = nil + d.GetCreatedAt() +} + +func TestDiscussionComment_GetDiscussionURL(tt *testing.T) { tt.Parallel() var zeroValue string - e := &Enterprise{NodeID: &zeroValue} - e.GetNodeID() - e = &Enterprise{} - e.GetNodeID() - e = nil - e.GetNodeID() + d := &DiscussionComment{DiscussionURL: &zeroValue} + d.GetDiscussionURL() + d = &DiscussionComment{} + d.GetDiscussionURL() + d = nil + d.GetDiscussionURL() } -func TestEnterprise_GetSlug(tt *testing.T) { +func TestDiscussionComment_GetHTMLURL(tt *testing.T) { tt.Parallel() var zeroValue string - e := &Enterprise{Slug: &zeroValue} - e.GetSlug() - e = &Enterprise{} - e.GetSlug() - e = nil - e.GetSlug() + d := &DiscussionComment{HTMLURL: &zeroValue} + d.GetHTMLURL() + d = &DiscussionComment{} + d.GetHTMLURL() + d = nil + d.GetHTMLURL() } -func TestEnterprise_GetUpdatedAt(tt *testing.T) { +func TestDiscussionComment_GetLastEditedAt(tt *testing.T) { tt.Parallel() var zeroValue Timestamp - e := &Enterprise{UpdatedAt: &zeroValue} - e.GetUpdatedAt() - e = &Enterprise{} - e.GetUpdatedAt() - e = nil - e.GetUpdatedAt() + d := &DiscussionComment{LastEditedAt: &zeroValue} + d.GetLastEditedAt() + d = &DiscussionComment{} + d.GetLastEditedAt() + d = nil + d.GetLastEditedAt() } -func TestEnterprise_GetWebsiteURL(tt *testing.T) { +func TestDiscussionComment_GetNodeID(tt *testing.T) { tt.Parallel() var zeroValue string - e := &Enterprise{WebsiteURL: &zeroValue} - e.GetWebsiteURL() - e = &Enterprise{} - e.GetWebsiteURL() - e = nil - e.GetWebsiteURL() + d := &DiscussionComment{NodeID: &zeroValue} + d.GetNodeID() + d = &DiscussionComment{} + d.GetNodeID() + d = nil + d.GetNodeID() } -func TestEnterpriseRunnerGroup_GetAllowsPublicRepositories(tt *testing.T) { +func TestDiscussionComment_GetNumber(tt *testing.T) { tt.Parallel() - var zeroValue bool - e := &EnterpriseRunnerGroup{AllowsPublicRepositories: &zeroValue} - e.GetAllowsPublicRepositories() - e = &EnterpriseRunnerGroup{} - e.GetAllowsPublicRepositories() - e = nil - e.GetAllowsPublicRepositories() + var zeroValue int + d := &DiscussionComment{Number: &zeroValue} + d.GetNumber() + d = &DiscussionComment{} + d.GetNumber() + d = nil + d.GetNumber() } -func TestEnterpriseRunnerGroup_GetDefault(tt *testing.T) { +func TestDiscussionComment_GetReactions(tt *testing.T) { tt.Parallel() - var zeroValue bool - e := &EnterpriseRunnerGroup{Default: &zeroValue} - e.GetDefault() - e = &EnterpriseRunnerGroup{} - e.GetDefault() - e = nil - e.GetDefault() + d := &DiscussionComment{} + d.GetReactions() + d = nil + d.GetReactions() } -func TestEnterpriseRunnerGroup_GetID(tt *testing.T) { +func TestDiscussionComment_GetUpdatedAt(tt *testing.T) { tt.Parallel() - var zeroValue int64 - e := &EnterpriseRunnerGroup{ID: &zeroValue} - e.GetID() - e = &EnterpriseRunnerGroup{} - e.GetID() - e = nil - e.GetID() + var zeroValue Timestamp + d := &DiscussionComment{UpdatedAt: &zeroValue} + d.GetUpdatedAt() + d = &DiscussionComment{} + d.GetUpdatedAt() + d = nil + d.GetUpdatedAt() } -func TestEnterpriseRunnerGroup_GetInherited(tt *testing.T) { +func TestDiscussionComment_GetURL(tt *testing.T) { tt.Parallel() - var zeroValue bool - e := &EnterpriseRunnerGroup{Inherited: &zeroValue} - e.GetInherited() - e = &EnterpriseRunnerGroup{} - e.GetInherited() - e = nil - e.GetInherited() + var zeroValue string + d := &DiscussionComment{URL: &zeroValue} + d.GetURL() + d = &DiscussionComment{} + d.GetURL() + d = nil + d.GetURL() } -func TestEnterpriseRunnerGroup_GetName(tt *testing.T) { +func TestDiscussionCommentEvent_GetAction(tt *testing.T) { tt.Parallel() var zeroValue string - e := &EnterpriseRunnerGroup{Name: &zeroValue} - e.GetName() - e = &EnterpriseRunnerGroup{} - e.GetName() - e = nil - e.GetName() + d := &DiscussionCommentEvent{Action: &zeroValue} + d.GetAction() + d = &DiscussionCommentEvent{} + d.GetAction() + d = nil + d.GetAction() } -func TestEnterpriseRunnerGroup_GetRestrictedToWorkflows(tt *testing.T) { +func TestDiscussionCommentEvent_GetComment(tt *testing.T) { tt.Parallel() - var zeroValue bool - e := &EnterpriseRunnerGroup{RestrictedToWorkflows: &zeroValue} - e.GetRestrictedToWorkflows() - e = &EnterpriseRunnerGroup{} - e.GetRestrictedToWorkflows() - e = nil - e.GetRestrictedToWorkflows() + d := &DiscussionCommentEvent{} + d.GetComment() + d = nil + d.GetComment() } -func TestEnterpriseRunnerGroup_GetRunnersURL(tt *testing.T) { +func TestDiscussionCommentEvent_GetDiscussion(tt *testing.T) { tt.Parallel() - var zeroValue string - e := &EnterpriseRunnerGroup{RunnersURL: &zeroValue} - e.GetRunnersURL() - e = &EnterpriseRunnerGroup{} - e.GetRunnersURL() - e = nil - e.GetRunnersURL() + d := &DiscussionCommentEvent{} + d.GetDiscussion() + d = nil + d.GetDiscussion() } -func TestEnterpriseRunnerGroup_GetSelectedOrganizationsURL(tt *testing.T) { +func TestDiscussionCommentEvent_GetInstallation(tt *testing.T) { tt.Parallel() - var zeroValue string - e := &EnterpriseRunnerGroup{SelectedOrganizationsURL: &zeroValue} - e.GetSelectedOrganizationsURL() - e = &EnterpriseRunnerGroup{} - e.GetSelectedOrganizationsURL() - e = nil - e.GetSelectedOrganizationsURL() + d := &DiscussionCommentEvent{} + d.GetInstallation() + d = nil + d.GetInstallation() } -func TestEnterpriseRunnerGroup_GetVisibility(tt *testing.T) { +func TestDiscussionCommentEvent_GetOrg(tt *testing.T) { tt.Parallel() - var zeroValue string - e := &EnterpriseRunnerGroup{Visibility: &zeroValue} - e.GetVisibility() - e = &EnterpriseRunnerGroup{} - e.GetVisibility() - e = nil - e.GetVisibility() + d := &DiscussionCommentEvent{} + d.GetOrg() + d = nil + d.GetOrg() } -func TestEnterpriseRunnerGroup_GetWorkflowRestrictionsReadOnly(tt *testing.T) { +func TestDiscussionCommentEvent_GetRepo(tt *testing.T) { tt.Parallel() - var zeroValue bool - e := &EnterpriseRunnerGroup{WorkflowRestrictionsReadOnly: &zeroValue} - e.GetWorkflowRestrictionsReadOnly() - e = &EnterpriseRunnerGroup{} - e.GetWorkflowRestrictionsReadOnly() - e = nil - e.GetWorkflowRestrictionsReadOnly() + d := &DiscussionCommentEvent{} + d.GetRepo() + d = nil + d.GetRepo() } -func TestEnterpriseRunnerGroups_GetTotalCount(tt *testing.T) { +func TestDiscussionCommentEvent_GetSender(tt *testing.T) { tt.Parallel() - var zeroValue int - e := &EnterpriseRunnerGroups{TotalCount: &zeroValue} - e.GetTotalCount() - e = &EnterpriseRunnerGroups{} - e.GetTotalCount() - e = nil - e.GetTotalCount() + d := &DiscussionCommentEvent{} + d.GetSender() + d = nil + d.GetSender() } -func TestEnterpriseSecurityAnalysisSettings_GetAdvancedSecurityEnabledForNewRepositories(tt *testing.T) { +func TestDiscussionEvent_GetAction(tt *testing.T) { tt.Parallel() - var zeroValue bool - e := &EnterpriseSecurityAnalysisSettings{AdvancedSecurityEnabledForNewRepositories: &zeroValue} - e.GetAdvancedSecurityEnabledForNewRepositories() - e = &EnterpriseSecurityAnalysisSettings{} - e.GetAdvancedSecurityEnabledForNewRepositories() - e = nil - e.GetAdvancedSecurityEnabledForNewRepositories() + var zeroValue string + d := &DiscussionEvent{Action: &zeroValue} + d.GetAction() + d = &DiscussionEvent{} + d.GetAction() + d = nil + d.GetAction() } -func TestEnterpriseSecurityAnalysisSettings_GetSecretScanningEnabledForNewRepositories(tt *testing.T) { +func TestDiscussionEvent_GetDiscussion(tt *testing.T) { tt.Parallel() - var zeroValue bool - e := &EnterpriseSecurityAnalysisSettings{SecretScanningEnabledForNewRepositories: &zeroValue} - e.GetSecretScanningEnabledForNewRepositories() - e = &EnterpriseSecurityAnalysisSettings{} - e.GetSecretScanningEnabledForNewRepositories() - e = nil - e.GetSecretScanningEnabledForNewRepositories() + d := &DiscussionEvent{} + d.GetDiscussion() + d = nil + d.GetDiscussion() } -func TestEnterpriseSecurityAnalysisSettings_GetSecretScanningPushProtectionCustomLink(tt *testing.T) { +func TestDiscussionEvent_GetInstallation(tt *testing.T) { tt.Parallel() - var zeroValue string - e := &EnterpriseSecurityAnalysisSettings{SecretScanningPushProtectionCustomLink: &zeroValue} - e.GetSecretScanningPushProtectionCustomLink() - e = &EnterpriseSecurityAnalysisSettings{} - e.GetSecretScanningPushProtectionCustomLink() - e = nil - e.GetSecretScanningPushProtectionCustomLink() + d := &DiscussionEvent{} + d.GetInstallation() + d = nil + d.GetInstallation() } -func TestEnterpriseSecurityAnalysisSettings_GetSecretScanningPushProtectionEnabledForNewRepositories(tt *testing.T) { +func TestDiscussionEvent_GetOrg(tt *testing.T) { tt.Parallel() - var zeroValue bool - e := &EnterpriseSecurityAnalysisSettings{SecretScanningPushProtectionEnabledForNewRepositories: &zeroValue} - e.GetSecretScanningPushProtectionEnabledForNewRepositories() - e = &EnterpriseSecurityAnalysisSettings{} - e.GetSecretScanningPushProtectionEnabledForNewRepositories() - e = nil - e.GetSecretScanningPushProtectionEnabledForNewRepositories() + d := &DiscussionEvent{} + d.GetOrg() + d = nil + d.GetOrg() } -func TestEnterpriseSecurityAnalysisSettings_GetSecretScanningValidityChecksEnabled(tt *testing.T) { +func TestDiscussionEvent_GetRepo(tt *testing.T) { tt.Parallel() - var zeroValue bool - e := &EnterpriseSecurityAnalysisSettings{SecretScanningValidityChecksEnabled: &zeroValue} - e.GetSecretScanningValidityChecksEnabled() - e = &EnterpriseSecurityAnalysisSettings{} - e.GetSecretScanningValidityChecksEnabled() - e = nil - e.GetSecretScanningValidityChecksEnabled() + d := &DiscussionEvent{} + d.GetRepo() + d = nil + d.GetRepo() } -func TestEnvironment_GetCanAdminsBypass(tt *testing.T) { +func TestDiscussionEvent_GetSender(tt *testing.T) { tt.Parallel() - var zeroValue bool - e := &Environment{CanAdminsBypass: &zeroValue} - e.GetCanAdminsBypass() - e = &Environment{} - e.GetCanAdminsBypass() - e = nil - e.GetCanAdminsBypass() + d := &DiscussionEvent{} + d.GetSender() + d = nil + d.GetSender() } -func TestEnvironment_GetCreatedAt(tt *testing.T) { +func TestDismissalRestrictionsRequest_GetApps(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - e := &Environment{CreatedAt: &zeroValue} - e.GetCreatedAt() - e = &Environment{} - e.GetCreatedAt() - e = nil - e.GetCreatedAt() + var zeroValue []string + d := &DismissalRestrictionsRequest{Apps: &zeroValue} + d.GetApps() + d = &DismissalRestrictionsRequest{} + d.GetApps() + d = nil + d.GetApps() } -func TestEnvironment_GetDeploymentBranchPolicy(tt *testing.T) { +func TestDismissalRestrictionsRequest_GetTeams(tt *testing.T) { tt.Parallel() - e := &Environment{} - e.GetDeploymentBranchPolicy() - e = nil - e.GetDeploymentBranchPolicy() + var zeroValue []string + d := &DismissalRestrictionsRequest{Teams: &zeroValue} + d.GetTeams() + d = &DismissalRestrictionsRequest{} + d.GetTeams() + d = nil + d.GetTeams() } -func TestEnvironment_GetEnvironmentName(tt *testing.T) { +func TestDismissalRestrictionsRequest_GetUsers(tt *testing.T) { + tt.Parallel() + var zeroValue []string + d := &DismissalRestrictionsRequest{Users: &zeroValue} + d.GetUsers() + d = &DismissalRestrictionsRequest{} + d.GetUsers() + d = nil + d.GetUsers() +} + +func TestDismissedReview_GetDismissalCommitID(tt *testing.T) { tt.Parallel() var zeroValue string - e := &Environment{EnvironmentName: &zeroValue} - e.GetEnvironmentName() - e = &Environment{} - e.GetEnvironmentName() - e = nil - e.GetEnvironmentName() + d := &DismissedReview{DismissalCommitID: &zeroValue} + d.GetDismissalCommitID() + d = &DismissedReview{} + d.GetDismissalCommitID() + d = nil + d.GetDismissalCommitID() } -func TestEnvironment_GetHTMLURL(tt *testing.T) { +func TestDismissedReview_GetDismissalMessage(tt *testing.T) { tt.Parallel() var zeroValue string - e := &Environment{HTMLURL: &zeroValue} - e.GetHTMLURL() - e = &Environment{} - e.GetHTMLURL() - e = nil - e.GetHTMLURL() + d := &DismissedReview{DismissalMessage: &zeroValue} + d.GetDismissalMessage() + d = &DismissedReview{} + d.GetDismissalMessage() + d = nil + d.GetDismissalMessage() } -func TestEnvironment_GetID(tt *testing.T) { +func TestDismissedReview_GetReviewID(tt *testing.T) { tt.Parallel() var zeroValue int64 - e := &Environment{ID: &zeroValue} - e.GetID() - e = &Environment{} - e.GetID() - e = nil - e.GetID() + d := &DismissedReview{ReviewID: &zeroValue} + d.GetReviewID() + d = &DismissedReview{} + d.GetReviewID() + d = nil + d.GetReviewID() } -func TestEnvironment_GetName(tt *testing.T) { +func TestDismissedReview_GetState(tt *testing.T) { tt.Parallel() var zeroValue string - e := &Environment{Name: &zeroValue} - e.GetName() - e = &Environment{} - e.GetName() - e = nil - e.GetName() + d := &DismissedReview{State: &zeroValue} + d.GetState() + d = &DismissedReview{} + d.GetState() + d = nil + d.GetState() } -func TestEnvironment_GetNodeID(tt *testing.T) { +func TestDismissStaleReviewsOnPushChanges_GetFrom(tt *testing.T) { tt.Parallel() - var zeroValue string - e := &Environment{NodeID: &zeroValue} - e.GetNodeID() - e = &Environment{} - e.GetNodeID() - e = nil - e.GetNodeID() + var zeroValue bool + d := &DismissStaleReviewsOnPushChanges{From: &zeroValue} + d.GetFrom() + d = &DismissStaleReviewsOnPushChanges{} + d.GetFrom() + d = nil + d.GetFrom() } -func TestEnvironment_GetOwner(tt *testing.T) { +func TestDispatchRequestOptions_GetClientPayload(tt *testing.T) { tt.Parallel() - var zeroValue string - e := &Environment{Owner: &zeroValue} - e.GetOwner() - e = &Environment{} - e.GetOwner() - e = nil - e.GetOwner() + var zeroValue json.RawMessage + d := &DispatchRequestOptions{ClientPayload: &zeroValue} + d.GetClientPayload() + d = &DispatchRequestOptions{} + d.GetClientPayload() + d = nil + d.GetClientPayload() } -func TestEnvironment_GetRepo(tt *testing.T) { +func TestDraftReviewComment_GetBody(tt *testing.T) { tt.Parallel() var zeroValue string - e := &Environment{Repo: &zeroValue} - e.GetRepo() - e = &Environment{} - e.GetRepo() - e = nil - e.GetRepo() + d := &DraftReviewComment{Body: &zeroValue} + d.GetBody() + d = &DraftReviewComment{} + d.GetBody() + d = nil + d.GetBody() } -func TestEnvironment_GetUpdatedAt(tt *testing.T) { +func TestDraftReviewComment_GetLine(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - e := &Environment{UpdatedAt: &zeroValue} - e.GetUpdatedAt() - e = &Environment{} - e.GetUpdatedAt() - e = nil - e.GetUpdatedAt() + var zeroValue int + d := &DraftReviewComment{Line: &zeroValue} + d.GetLine() + d = &DraftReviewComment{} + d.GetLine() + d = nil + d.GetLine() } -func TestEnvironment_GetURL(tt *testing.T) { +func TestDraftReviewComment_GetPath(tt *testing.T) { tt.Parallel() var zeroValue string - e := &Environment{URL: &zeroValue} - e.GetURL() - e = &Environment{} - e.GetURL() - e = nil - e.GetURL() + d := &DraftReviewComment{Path: &zeroValue} + d.GetPath() + d = &DraftReviewComment{} + d.GetPath() + d = nil + d.GetPath() } -func TestEnvironment_GetWaitTimer(tt *testing.T) { +func TestDraftReviewComment_GetPosition(tt *testing.T) { tt.Parallel() var zeroValue int - e := &Environment{WaitTimer: &zeroValue} - e.GetWaitTimer() - e = &Environment{} - e.GetWaitTimer() - e = nil - e.GetWaitTimer() + d := &DraftReviewComment{Position: &zeroValue} + d.GetPosition() + d = &DraftReviewComment{} + d.GetPosition() + d = nil + d.GetPosition() } -func TestEnvResponse_GetTotalCount(tt *testing.T) { +func TestDraftReviewComment_GetSide(tt *testing.T) { tt.Parallel() - var zeroValue int - e := &EnvResponse{TotalCount: &zeroValue} - e.GetTotalCount() - e = &EnvResponse{} - e.GetTotalCount() - e = nil - e.GetTotalCount() + var zeroValue string + d := &DraftReviewComment{Side: &zeroValue} + d.GetSide() + d = &DraftReviewComment{} + d.GetSide() + d = nil + d.GetSide() } -func TestEnvReviewers_GetID(tt *testing.T) { +func TestDraftReviewComment_GetStartLine(tt *testing.T) { tt.Parallel() - var zeroValue int64 - e := &EnvReviewers{ID: &zeroValue} - e.GetID() - e = &EnvReviewers{} - e.GetID() - e = nil - e.GetID() + var zeroValue int + d := &DraftReviewComment{StartLine: &zeroValue} + d.GetStartLine() + d = &DraftReviewComment{} + d.GetStartLine() + d = nil + d.GetStartLine() } -func TestEnvReviewers_GetType(tt *testing.T) { +func TestDraftReviewComment_GetStartSide(tt *testing.T) { tt.Parallel() var zeroValue string - e := &EnvReviewers{Type: &zeroValue} - e.GetType() - e = &EnvReviewers{} - e.GetType() - e = nil - e.GetType() -} - -func TestErrorBlock_GetCreatedAt(tt *testing.T) { - tt.Parallel() - var zeroValue Timestamp - e := &ErrorBlock{CreatedAt: &zeroValue} - e.GetCreatedAt() - e = &ErrorBlock{} - e.GetCreatedAt() - e = nil - e.GetCreatedAt() + d := &DraftReviewComment{StartSide: &zeroValue} + d.GetStartSide() + d = &DraftReviewComment{} + d.GetStartSide() + d = nil + d.GetStartSide() } -func TestErrorResponse_GetBlock(tt *testing.T) { +func TestEditBase_GetRef(tt *testing.T) { tt.Parallel() - e := &ErrorResponse{} - e.GetBlock() + e := &EditBase{} + e.GetRef() e = nil - e.GetBlock() + e.GetRef() } -func TestEvent_GetActor(tt *testing.T) { +func TestEditBase_GetSHA(tt *testing.T) { tt.Parallel() - e := &Event{} - e.GetActor() + e := &EditBase{} + e.GetSHA() e = nil - e.GetActor() + e.GetSHA() } -func TestEvent_GetCreatedAt(tt *testing.T) { +func TestEditBody_GetFrom(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - e := &Event{CreatedAt: &zeroValue} - e.GetCreatedAt() - e = &Event{} - e.GetCreatedAt() + var zeroValue string + e := &EditBody{From: &zeroValue} + e.GetFrom() + e = &EditBody{} + e.GetFrom() e = nil - e.GetCreatedAt() + e.GetFrom() } -func TestEvent_GetID(tt *testing.T) { +func TestEditChange_GetBase(tt *testing.T) { tt.Parallel() - var zeroValue string - e := &Event{ID: &zeroValue} - e.GetID() - e = &Event{} - e.GetID() + e := &EditChange{} + e.GetBase() e = nil - e.GetID() + e.GetBase() } -func TestEvent_GetOrg(tt *testing.T) { +func TestEditChange_GetBody(tt *testing.T) { tt.Parallel() - e := &Event{} - e.GetOrg() + e := &EditChange{} + e.GetBody() e = nil - e.GetOrg() + e.GetBody() } -func TestEvent_GetPublic(tt *testing.T) { +func TestEditChange_GetDefaultBranch(tt *testing.T) { tt.Parallel() - var zeroValue bool - e := &Event{Public: &zeroValue} - e.GetPublic() - e = &Event{} - e.GetPublic() + e := &EditChange{} + e.GetDefaultBranch() e = nil - e.GetPublic() + e.GetDefaultBranch() } -func TestEvent_GetRawPayload(tt *testing.T) { +func TestEditChange_GetOwner(tt *testing.T) { tt.Parallel() - var zeroValue json.RawMessage - e := &Event{RawPayload: &zeroValue} - e.GetRawPayload() - e = &Event{} - e.GetRawPayload() + e := &EditChange{} + e.GetOwner() e = nil - e.GetRawPayload() + e.GetOwner() } -func TestEvent_GetRepo(tt *testing.T) { +func TestEditChange_GetRepo(tt *testing.T) { tt.Parallel() - e := &Event{} + e := &EditChange{} e.GetRepo() e = nil e.GetRepo() } -func TestEvent_GetType(tt *testing.T) { +func TestEditChange_GetTitle(tt *testing.T) { tt.Parallel() - var zeroValue string - e := &Event{Type: &zeroValue} - e.GetType() - e = &Event{} - e.GetType() + e := &EditChange{} + e.GetTitle() e = nil - e.GetType() + e.GetTitle() } -func TestExternalGroup_GetGroupID(tt *testing.T) { +func TestEditChange_GetTopics(tt *testing.T) { tt.Parallel() - var zeroValue int64 - e := &ExternalGroup{GroupID: &zeroValue} - e.GetGroupID() - e = &ExternalGroup{} - e.GetGroupID() + e := &EditChange{} + e.GetTopics() e = nil - e.GetGroupID() + e.GetTopics() } -func TestExternalGroup_GetGroupName(tt *testing.T) { +func TestEditDefaultBranch_GetFrom(tt *testing.T) { tt.Parallel() var zeroValue string - e := &ExternalGroup{GroupName: &zeroValue} - e.GetGroupName() - e = &ExternalGroup{} - e.GetGroupName() + e := &EditDefaultBranch{From: &zeroValue} + e.GetFrom() + e = &EditDefaultBranch{} + e.GetFrom() e = nil - e.GetGroupName() + e.GetFrom() } -func TestExternalGroup_GetUpdatedAt(tt *testing.T) { +func TestEditOwner_GetOwnerInfo(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - e := &ExternalGroup{UpdatedAt: &zeroValue} - e.GetUpdatedAt() - e = &ExternalGroup{} - e.GetUpdatedAt() + e := &EditOwner{} + e.GetOwnerInfo() e = nil - e.GetUpdatedAt() + e.GetOwnerInfo() } -func TestExternalGroupMember_GetMemberEmail(tt *testing.T) { +func TestEditRef_GetFrom(tt *testing.T) { tt.Parallel() var zeroValue string - e := &ExternalGroupMember{MemberEmail: &zeroValue} - e.GetMemberEmail() - e = &ExternalGroupMember{} - e.GetMemberEmail() + e := &EditRef{From: &zeroValue} + e.GetFrom() + e = &EditRef{} + e.GetFrom() e = nil - e.GetMemberEmail() + e.GetFrom() } -func TestExternalGroupMember_GetMemberID(tt *testing.T) { +func TestEditRepo_GetName(tt *testing.T) { tt.Parallel() - var zeroValue int64 - e := &ExternalGroupMember{MemberID: &zeroValue} - e.GetMemberID() - e = &ExternalGroupMember{} - e.GetMemberID() + e := &EditRepo{} + e.GetName() e = nil - e.GetMemberID() + e.GetName() } -func TestExternalGroupMember_GetMemberLogin(tt *testing.T) { +func TestEditSHA_GetFrom(tt *testing.T) { tt.Parallel() var zeroValue string - e := &ExternalGroupMember{MemberLogin: &zeroValue} - e.GetMemberLogin() - e = &ExternalGroupMember{} - e.GetMemberLogin() + e := &EditSHA{From: &zeroValue} + e.GetFrom() + e = &EditSHA{} + e.GetFrom() e = nil - e.GetMemberLogin() + e.GetFrom() } -func TestExternalGroupMember_GetMemberName(tt *testing.T) { +func TestEditTitle_GetFrom(tt *testing.T) { tt.Parallel() var zeroValue string - e := &ExternalGroupMember{MemberName: &zeroValue} - e.GetMemberName() - e = &ExternalGroupMember{} - e.GetMemberName() + e := &EditTitle{From: &zeroValue} + e.GetFrom() + e = &EditTitle{} + e.GetFrom() e = nil - e.GetMemberName() + e.GetFrom() } -func TestExternalGroupTeam_GetTeamID(tt *testing.T) { +func TestEnterprise_GetAvatarURL(tt *testing.T) { tt.Parallel() - var zeroValue int64 - e := &ExternalGroupTeam{TeamID: &zeroValue} - e.GetTeamID() - e = &ExternalGroupTeam{} - e.GetTeamID() + var zeroValue string + e := &Enterprise{AvatarURL: &zeroValue} + e.GetAvatarURL() + e = &Enterprise{} + e.GetAvatarURL() e = nil - e.GetTeamID() + e.GetAvatarURL() } -func TestExternalGroupTeam_GetTeamName(tt *testing.T) { +func TestEnterprise_GetCreatedAt(tt *testing.T) { tt.Parallel() - var zeroValue string - e := &ExternalGroupTeam{TeamName: &zeroValue} - e.GetTeamName() - e = &ExternalGroupTeam{} - e.GetTeamName() + var zeroValue Timestamp + e := &Enterprise{CreatedAt: &zeroValue} + e.GetCreatedAt() + e = &Enterprise{} + e.GetCreatedAt() e = nil - e.GetTeamName() + e.GetCreatedAt() } -func TestFeedLink_GetHRef(tt *testing.T) { +func TestEnterprise_GetDescription(tt *testing.T) { tt.Parallel() var zeroValue string - f := &FeedLink{HRef: &zeroValue} - f.GetHRef() - f = &FeedLink{} - f.GetHRef() - f = nil - f.GetHRef() + e := &Enterprise{Description: &zeroValue} + e.GetDescription() + e = &Enterprise{} + e.GetDescription() + e = nil + e.GetDescription() } -func TestFeedLink_GetType(tt *testing.T) { +func TestEnterprise_GetHTMLURL(tt *testing.T) { tt.Parallel() var zeroValue string - f := &FeedLink{Type: &zeroValue} - f.GetType() - f = &FeedLink{} - f.GetType() - f = nil - f.GetType() + e := &Enterprise{HTMLURL: &zeroValue} + e.GetHTMLURL() + e = &Enterprise{} + e.GetHTMLURL() + e = nil + e.GetHTMLURL() } -func TestFeedLinks_GetCurrentUser(tt *testing.T) { +func TestEnterprise_GetID(tt *testing.T) { tt.Parallel() - f := &FeedLinks{} - f.GetCurrentUser() - f = nil - f.GetCurrentUser() + var zeroValue int + e := &Enterprise{ID: &zeroValue} + e.GetID() + e = &Enterprise{} + e.GetID() + e = nil + e.GetID() } -func TestFeedLinks_GetCurrentUserActor(tt *testing.T) { +func TestEnterprise_GetName(tt *testing.T) { tt.Parallel() - f := &FeedLinks{} - f.GetCurrentUserActor() - f = nil - f.GetCurrentUserActor() + var zeroValue string + e := &Enterprise{Name: &zeroValue} + e.GetName() + e = &Enterprise{} + e.GetName() + e = nil + e.GetName() } -func TestFeedLinks_GetCurrentUserOrganization(tt *testing.T) { +func TestEnterprise_GetNodeID(tt *testing.T) { tt.Parallel() - f := &FeedLinks{} - f.GetCurrentUserOrganization() - f = nil - f.GetCurrentUserOrganization() + var zeroValue string + e := &Enterprise{NodeID: &zeroValue} + e.GetNodeID() + e = &Enterprise{} + e.GetNodeID() + e = nil + e.GetNodeID() } -func TestFeedLinks_GetCurrentUserPublic(tt *testing.T) { +func TestEnterprise_GetSlug(tt *testing.T) { tt.Parallel() - f := &FeedLinks{} - f.GetCurrentUserPublic() - f = nil - f.GetCurrentUserPublic() + var zeroValue string + e := &Enterprise{Slug: &zeroValue} + e.GetSlug() + e = &Enterprise{} + e.GetSlug() + e = nil + e.GetSlug() } -func TestFeedLinks_GetTimeline(tt *testing.T) { +func TestEnterprise_GetUpdatedAt(tt *testing.T) { tt.Parallel() - f := &FeedLinks{} - f.GetTimeline() - f = nil - f.GetTimeline() + var zeroValue Timestamp + e := &Enterprise{UpdatedAt: &zeroValue} + e.GetUpdatedAt() + e = &Enterprise{} + e.GetUpdatedAt() + e = nil + e.GetUpdatedAt() } -func TestFeedLinks_GetUser(tt *testing.T) { +func TestEnterprise_GetWebsiteURL(tt *testing.T) { tt.Parallel() - f := &FeedLinks{} - f.GetUser() - f = nil - f.GetUser() + var zeroValue string + e := &Enterprise{WebsiteURL: &zeroValue} + e.GetWebsiteURL() + e = &Enterprise{} + e.GetWebsiteURL() + e = nil + e.GetWebsiteURL() } -func TestFeeds_GetCurrentUserActorURL(tt *testing.T) { +func TestEnterpriseRunnerGroup_GetAllowsPublicRepositories(tt *testing.T) { tt.Parallel() - var zeroValue string - f := &Feeds{CurrentUserActorURL: &zeroValue} - f.GetCurrentUserActorURL() - f = &Feeds{} - f.GetCurrentUserActorURL() - f = nil - f.GetCurrentUserActorURL() + var zeroValue bool + e := &EnterpriseRunnerGroup{AllowsPublicRepositories: &zeroValue} + e.GetAllowsPublicRepositories() + e = &EnterpriseRunnerGroup{} + e.GetAllowsPublicRepositories() + e = nil + e.GetAllowsPublicRepositories() } -func TestFeeds_GetCurrentUserOrganizationURL(tt *testing.T) { +func TestEnterpriseRunnerGroup_GetDefault(tt *testing.T) { tt.Parallel() - var zeroValue string - f := &Feeds{CurrentUserOrganizationURL: &zeroValue} - f.GetCurrentUserOrganizationURL() - f = &Feeds{} - f.GetCurrentUserOrganizationURL() - f = nil - f.GetCurrentUserOrganizationURL() + var zeroValue bool + e := &EnterpriseRunnerGroup{Default: &zeroValue} + e.GetDefault() + e = &EnterpriseRunnerGroup{} + e.GetDefault() + e = nil + e.GetDefault() } -func TestFeeds_GetCurrentUserPublicURL(tt *testing.T) { +func TestEnterpriseRunnerGroup_GetID(tt *testing.T) { tt.Parallel() - var zeroValue string - f := &Feeds{CurrentUserPublicURL: &zeroValue} - f.GetCurrentUserPublicURL() - f = &Feeds{} - f.GetCurrentUserPublicURL() - f = nil - f.GetCurrentUserPublicURL() + var zeroValue int64 + e := &EnterpriseRunnerGroup{ID: &zeroValue} + e.GetID() + e = &EnterpriseRunnerGroup{} + e.GetID() + e = nil + e.GetID() } -func TestFeeds_GetCurrentUserURL(tt *testing.T) { +func TestEnterpriseRunnerGroup_GetInherited(tt *testing.T) { tt.Parallel() - var zeroValue string - f := &Feeds{CurrentUserURL: &zeroValue} - f.GetCurrentUserURL() - f = &Feeds{} - f.GetCurrentUserURL() - f = nil - f.GetCurrentUserURL() + var zeroValue bool + e := &EnterpriseRunnerGroup{Inherited: &zeroValue} + e.GetInherited() + e = &EnterpriseRunnerGroup{} + e.GetInherited() + e = nil + e.GetInherited() } -func TestFeeds_GetLinks(tt *testing.T) { - tt.Parallel() - f := &Feeds{} - f.GetLinks() - f = nil - f.GetLinks() -} - -func TestFeeds_GetTimelineURL(tt *testing.T) { +func TestEnterpriseRunnerGroup_GetName(tt *testing.T) { tt.Parallel() var zeroValue string - f := &Feeds{TimelineURL: &zeroValue} - f.GetTimelineURL() - f = &Feeds{} - f.GetTimelineURL() - f = nil - f.GetTimelineURL() + e := &EnterpriseRunnerGroup{Name: &zeroValue} + e.GetName() + e = &EnterpriseRunnerGroup{} + e.GetName() + e = nil + e.GetName() } -func TestFeeds_GetUserURL(tt *testing.T) { +func TestEnterpriseRunnerGroup_GetRestrictedToWorkflows(tt *testing.T) { tt.Parallel() - var zeroValue string - f := &Feeds{UserURL: &zeroValue} - f.GetUserURL() - f = &Feeds{} - f.GetUserURL() - f = nil - f.GetUserURL() + var zeroValue bool + e := &EnterpriseRunnerGroup{RestrictedToWorkflows: &zeroValue} + e.GetRestrictedToWorkflows() + e = &EnterpriseRunnerGroup{} + e.GetRestrictedToWorkflows() + e = nil + e.GetRestrictedToWorkflows() } -func TestFirstPatchedVersion_GetIdentifier(tt *testing.T) { +func TestEnterpriseRunnerGroup_GetRunnersURL(tt *testing.T) { tt.Parallel() var zeroValue string - f := &FirstPatchedVersion{Identifier: &zeroValue} - f.GetIdentifier() - f = &FirstPatchedVersion{} - f.GetIdentifier() - f = nil - f.GetIdentifier() + e := &EnterpriseRunnerGroup{RunnersURL: &zeroValue} + e.GetRunnersURL() + e = &EnterpriseRunnerGroup{} + e.GetRunnersURL() + e = nil + e.GetRunnersURL() } -func TestForkEvent_GetForkee(tt *testing.T) { +func TestEnterpriseRunnerGroup_GetSelectedOrganizationsURL(tt *testing.T) { tt.Parallel() - f := &ForkEvent{} - f.GetForkee() - f = nil - f.GetForkee() + var zeroValue string + e := &EnterpriseRunnerGroup{SelectedOrganizationsURL: &zeroValue} + e.GetSelectedOrganizationsURL() + e = &EnterpriseRunnerGroup{} + e.GetSelectedOrganizationsURL() + e = nil + e.GetSelectedOrganizationsURL() } -func TestForkEvent_GetInstallation(tt *testing.T) { +func TestEnterpriseRunnerGroup_GetVisibility(tt *testing.T) { tt.Parallel() - f := &ForkEvent{} - f.GetInstallation() - f = nil - f.GetInstallation() + var zeroValue string + e := &EnterpriseRunnerGroup{Visibility: &zeroValue} + e.GetVisibility() + e = &EnterpriseRunnerGroup{} + e.GetVisibility() + e = nil + e.GetVisibility() } -func TestForkEvent_GetRepo(tt *testing.T) { +func TestEnterpriseRunnerGroup_GetWorkflowRestrictionsReadOnly(tt *testing.T) { tt.Parallel() - f := &ForkEvent{} - f.GetRepo() - f = nil - f.GetRepo() + var zeroValue bool + e := &EnterpriseRunnerGroup{WorkflowRestrictionsReadOnly: &zeroValue} + e.GetWorkflowRestrictionsReadOnly() + e = &EnterpriseRunnerGroup{} + e.GetWorkflowRestrictionsReadOnly() + e = nil + e.GetWorkflowRestrictionsReadOnly() } -func TestForkEvent_GetSender(tt *testing.T) { +func TestEnterpriseRunnerGroups_GetTotalCount(tt *testing.T) { tt.Parallel() - f := &ForkEvent{} - f.GetSender() - f = nil - f.GetSender() + var zeroValue int + e := &EnterpriseRunnerGroups{TotalCount: &zeroValue} + e.GetTotalCount() + e = &EnterpriseRunnerGroups{} + e.GetTotalCount() + e = nil + e.GetTotalCount() } -func TestGenerateJITConfigRequest_GetWorkFolder(tt *testing.T) { +func TestEnterpriseSecurityAnalysisSettings_GetAdvancedSecurityEnabledForNewRepositories(tt *testing.T) { tt.Parallel() - var zeroValue string - g := &GenerateJITConfigRequest{WorkFolder: &zeroValue} - g.GetWorkFolder() - g = &GenerateJITConfigRequest{} - g.GetWorkFolder() - g = nil - g.GetWorkFolder() + var zeroValue bool + e := &EnterpriseSecurityAnalysisSettings{AdvancedSecurityEnabledForNewRepositories: &zeroValue} + e.GetAdvancedSecurityEnabledForNewRepositories() + e = &EnterpriseSecurityAnalysisSettings{} + e.GetAdvancedSecurityEnabledForNewRepositories() + e = nil + e.GetAdvancedSecurityEnabledForNewRepositories() } -func TestGenerateNotesOptions_GetPreviousTagName(tt *testing.T) { +func TestEnterpriseSecurityAnalysisSettings_GetSecretScanningEnabledForNewRepositories(tt *testing.T) { tt.Parallel() - var zeroValue string - g := &GenerateNotesOptions{PreviousTagName: &zeroValue} - g.GetPreviousTagName() - g = &GenerateNotesOptions{} - g.GetPreviousTagName() - g = nil - g.GetPreviousTagName() + var zeroValue bool + e := &EnterpriseSecurityAnalysisSettings{SecretScanningEnabledForNewRepositories: &zeroValue} + e.GetSecretScanningEnabledForNewRepositories() + e = &EnterpriseSecurityAnalysisSettings{} + e.GetSecretScanningEnabledForNewRepositories() + e = nil + e.GetSecretScanningEnabledForNewRepositories() } -func TestGenerateNotesOptions_GetTargetCommitish(tt *testing.T) { +func TestEnterpriseSecurityAnalysisSettings_GetSecretScanningPushProtectionCustomLink(tt *testing.T) { tt.Parallel() var zeroValue string - g := &GenerateNotesOptions{TargetCommitish: &zeroValue} - g.GetTargetCommitish() - g = &GenerateNotesOptions{} - g.GetTargetCommitish() - g = nil - g.GetTargetCommitish() + e := &EnterpriseSecurityAnalysisSettings{SecretScanningPushProtectionCustomLink: &zeroValue} + e.GetSecretScanningPushProtectionCustomLink() + e = &EnterpriseSecurityAnalysisSettings{} + e.GetSecretScanningPushProtectionCustomLink() + e = nil + e.GetSecretScanningPushProtectionCustomLink() } -func TestGetAuditLogOptions_GetInclude(tt *testing.T) { +func TestEnterpriseSecurityAnalysisSettings_GetSecretScanningPushProtectionEnabledForNewRepositories(tt *testing.T) { tt.Parallel() - var zeroValue string - g := &GetAuditLogOptions{Include: &zeroValue} - g.GetInclude() - g = &GetAuditLogOptions{} - g.GetInclude() - g = nil - g.GetInclude() + var zeroValue bool + e := &EnterpriseSecurityAnalysisSettings{SecretScanningPushProtectionEnabledForNewRepositories: &zeroValue} + e.GetSecretScanningPushProtectionEnabledForNewRepositories() + e = &EnterpriseSecurityAnalysisSettings{} + e.GetSecretScanningPushProtectionEnabledForNewRepositories() + e = nil + e.GetSecretScanningPushProtectionEnabledForNewRepositories() } -func TestGetAuditLogOptions_GetOrder(tt *testing.T) { +func TestEnterpriseSecurityAnalysisSettings_GetSecretScanningValidityChecksEnabled(tt *testing.T) { tt.Parallel() - var zeroValue string - g := &GetAuditLogOptions{Order: &zeroValue} - g.GetOrder() - g = &GetAuditLogOptions{} - g.GetOrder() - g = nil - g.GetOrder() + var zeroValue bool + e := &EnterpriseSecurityAnalysisSettings{SecretScanningValidityChecksEnabled: &zeroValue} + e.GetSecretScanningValidityChecksEnabled() + e = &EnterpriseSecurityAnalysisSettings{} + e.GetSecretScanningValidityChecksEnabled() + e = nil + e.GetSecretScanningValidityChecksEnabled() } -func TestGetAuditLogOptions_GetPhrase(tt *testing.T) { +func TestEnvironment_GetCanAdminsBypass(tt *testing.T) { tt.Parallel() - var zeroValue string - g := &GetAuditLogOptions{Phrase: &zeroValue} - g.GetPhrase() - g = &GetAuditLogOptions{} - g.GetPhrase() - g = nil - g.GetPhrase() + var zeroValue bool + e := &Environment{CanAdminsBypass: &zeroValue} + e.GetCanAdminsBypass() + e = &Environment{} + e.GetCanAdminsBypass() + e = nil + e.GetCanAdminsBypass() } -func TestGist_GetComments(tt *testing.T) { +func TestEnvironment_GetCreatedAt(tt *testing.T) { tt.Parallel() - var zeroValue int - g := &Gist{Comments: &zeroValue} - g.GetComments() - g = &Gist{} - g.GetComments() - g = nil - g.GetComments() + var zeroValue Timestamp + e := &Environment{CreatedAt: &zeroValue} + e.GetCreatedAt() + e = &Environment{} + e.GetCreatedAt() + e = nil + e.GetCreatedAt() } -func TestGist_GetCreatedAt(tt *testing.T) { +func TestEnvironment_GetDeploymentBranchPolicy(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - g := &Gist{CreatedAt: &zeroValue} - g.GetCreatedAt() - g = &Gist{} - g.GetCreatedAt() - g = nil - g.GetCreatedAt() + e := &Environment{} + e.GetDeploymentBranchPolicy() + e = nil + e.GetDeploymentBranchPolicy() } -func TestGist_GetDescription(tt *testing.T) { +func TestEnvironment_GetEnvironmentName(tt *testing.T) { tt.Parallel() var zeroValue string - g := &Gist{Description: &zeroValue} - g.GetDescription() - g = &Gist{} - g.GetDescription() - g = nil - g.GetDescription() + e := &Environment{EnvironmentName: &zeroValue} + e.GetEnvironmentName() + e = &Environment{} + e.GetEnvironmentName() + e = nil + e.GetEnvironmentName() } -func TestGist_GetFiles(tt *testing.T) { +func TestEnvironment_GetHTMLURL(tt *testing.T) { tt.Parallel() - zeroValue := map[GistFilename]GistFile{} - g := &Gist{Files: zeroValue} - g.GetFiles() - g = &Gist{} - g.GetFiles() - g = nil - g.GetFiles() + var zeroValue string + e := &Environment{HTMLURL: &zeroValue} + e.GetHTMLURL() + e = &Environment{} + e.GetHTMLURL() + e = nil + e.GetHTMLURL() } -func TestGist_GetGitPullURL(tt *testing.T) { +func TestEnvironment_GetID(tt *testing.T) { tt.Parallel() - var zeroValue string - g := &Gist{GitPullURL: &zeroValue} - g.GetGitPullURL() - g = &Gist{} - g.GetGitPullURL() - g = nil - g.GetGitPullURL() + var zeroValue int64 + e := &Environment{ID: &zeroValue} + e.GetID() + e = &Environment{} + e.GetID() + e = nil + e.GetID() } -func TestGist_GetGitPushURL(tt *testing.T) { +func TestEnvironment_GetName(tt *testing.T) { tt.Parallel() var zeroValue string - g := &Gist{GitPushURL: &zeroValue} - g.GetGitPushURL() - g = &Gist{} - g.GetGitPushURL() - g = nil - g.GetGitPushURL() + e := &Environment{Name: &zeroValue} + e.GetName() + e = &Environment{} + e.GetName() + e = nil + e.GetName() } -func TestGist_GetHTMLURL(tt *testing.T) { +func TestEnvironment_GetNodeID(tt *testing.T) { tt.Parallel() var zeroValue string - g := &Gist{HTMLURL: &zeroValue} - g.GetHTMLURL() - g = &Gist{} - g.GetHTMLURL() - g = nil - g.GetHTMLURL() + e := &Environment{NodeID: &zeroValue} + e.GetNodeID() + e = &Environment{} + e.GetNodeID() + e = nil + e.GetNodeID() } -func TestGist_GetID(tt *testing.T) { +func TestEnvironment_GetOwner(tt *testing.T) { tt.Parallel() var zeroValue string - g := &Gist{ID: &zeroValue} - g.GetID() - g = &Gist{} - g.GetID() - g = nil - g.GetID() + e := &Environment{Owner: &zeroValue} + e.GetOwner() + e = &Environment{} + e.GetOwner() + e = nil + e.GetOwner() } -func TestGist_GetNodeID(tt *testing.T) { +func TestEnvironment_GetRepo(tt *testing.T) { tt.Parallel() var zeroValue string - g := &Gist{NodeID: &zeroValue} - g.GetNodeID() - g = &Gist{} - g.GetNodeID() - g = nil - g.GetNodeID() + e := &Environment{Repo: &zeroValue} + e.GetRepo() + e = &Environment{} + e.GetRepo() + e = nil + e.GetRepo() } -func TestGist_GetOwner(tt *testing.T) { +func TestEnvironment_GetUpdatedAt(tt *testing.T) { tt.Parallel() - g := &Gist{} - g.GetOwner() - g = nil - g.GetOwner() + var zeroValue Timestamp + e := &Environment{UpdatedAt: &zeroValue} + e.GetUpdatedAt() + e = &Environment{} + e.GetUpdatedAt() + e = nil + e.GetUpdatedAt() } -func TestGist_GetPublic(tt *testing.T) { +func TestEnvironment_GetURL(tt *testing.T) { tt.Parallel() - var zeroValue bool - g := &Gist{Public: &zeroValue} - g.GetPublic() - g = &Gist{} - g.GetPublic() - g = nil - g.GetPublic() + var zeroValue string + e := &Environment{URL: &zeroValue} + e.GetURL() + e = &Environment{} + e.GetURL() + e = nil + e.GetURL() } -func TestGist_GetUpdatedAt(tt *testing.T) { +func TestEnvironment_GetWaitTimer(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - g := &Gist{UpdatedAt: &zeroValue} - g.GetUpdatedAt() - g = &Gist{} - g.GetUpdatedAt() - g = nil - g.GetUpdatedAt() + var zeroValue int + e := &Environment{WaitTimer: &zeroValue} + e.GetWaitTimer() + e = &Environment{} + e.GetWaitTimer() + e = nil + e.GetWaitTimer() } -func TestGistComment_GetBody(tt *testing.T) { +func TestEnvResponse_GetTotalCount(tt *testing.T) { tt.Parallel() - var zeroValue string - g := &GistComment{Body: &zeroValue} - g.GetBody() - g = &GistComment{} - g.GetBody() - g = nil - g.GetBody() + var zeroValue int + e := &EnvResponse{TotalCount: &zeroValue} + e.GetTotalCount() + e = &EnvResponse{} + e.GetTotalCount() + e = nil + e.GetTotalCount() } -func TestGistComment_GetCreatedAt(tt *testing.T) { +func TestEnvReviewers_GetID(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - g := &GistComment{CreatedAt: &zeroValue} - g.GetCreatedAt() - g = &GistComment{} - g.GetCreatedAt() - g = nil - g.GetCreatedAt() + var zeroValue int64 + e := &EnvReviewers{ID: &zeroValue} + e.GetID() + e = &EnvReviewers{} + e.GetID() + e = nil + e.GetID() } -func TestGistComment_GetID(tt *testing.T) { +func TestEnvReviewers_GetType(tt *testing.T) { tt.Parallel() - var zeroValue int64 - g := &GistComment{ID: &zeroValue} - g.GetID() - g = &GistComment{} - g.GetID() - g = nil - g.GetID() + var zeroValue string + e := &EnvReviewers{Type: &zeroValue} + e.GetType() + e = &EnvReviewers{} + e.GetType() + e = nil + e.GetType() } -func TestGistComment_GetURL(tt *testing.T) { +func TestErrorBlock_GetCreatedAt(tt *testing.T) { tt.Parallel() - var zeroValue string - g := &GistComment{URL: &zeroValue} - g.GetURL() - g = &GistComment{} - g.GetURL() - g = nil - g.GetURL() + var zeroValue Timestamp + e := &ErrorBlock{CreatedAt: &zeroValue} + e.GetCreatedAt() + e = &ErrorBlock{} + e.GetCreatedAt() + e = nil + e.GetCreatedAt() } -func TestGistComment_GetUser(tt *testing.T) { +func TestErrorResponse_GetBlock(tt *testing.T) { tt.Parallel() - g := &GistComment{} - g.GetUser() - g = nil - g.GetUser() + e := &ErrorResponse{} + e.GetBlock() + e = nil + e.GetBlock() } -func TestGistCommit_GetChangeStatus(tt *testing.T) { +func TestEvent_GetActor(tt *testing.T) { tt.Parallel() - g := &GistCommit{} - g.GetChangeStatus() - g = nil - g.GetChangeStatus() + e := &Event{} + e.GetActor() + e = nil + e.GetActor() } -func TestGistCommit_GetCommittedAt(tt *testing.T) { +func TestEvent_GetCreatedAt(tt *testing.T) { tt.Parallel() var zeroValue Timestamp - g := &GistCommit{CommittedAt: &zeroValue} - g.GetCommittedAt() - g = &GistCommit{} - g.GetCommittedAt() - g = nil - g.GetCommittedAt() + e := &Event{CreatedAt: &zeroValue} + e.GetCreatedAt() + e = &Event{} + e.GetCreatedAt() + e = nil + e.GetCreatedAt() } -func TestGistCommit_GetNodeID(tt *testing.T) { +func TestEvent_GetID(tt *testing.T) { tt.Parallel() var zeroValue string - g := &GistCommit{NodeID: &zeroValue} - g.GetNodeID() - g = &GistCommit{} - g.GetNodeID() - g = nil - g.GetNodeID() + e := &Event{ID: &zeroValue} + e.GetID() + e = &Event{} + e.GetID() + e = nil + e.GetID() } -func TestGistCommit_GetURL(tt *testing.T) { +func TestEvent_GetOrg(tt *testing.T) { tt.Parallel() - var zeroValue string - g := &GistCommit{URL: &zeroValue} - g.GetURL() - g = &GistCommit{} - g.GetURL() - g = nil - g.GetURL() + e := &Event{} + e.GetOrg() + e = nil + e.GetOrg() } -func TestGistCommit_GetUser(tt *testing.T) { +func TestEvent_GetPublic(tt *testing.T) { tt.Parallel() - g := &GistCommit{} - g.GetUser() - g = nil - g.GetUser() + var zeroValue bool + e := &Event{Public: &zeroValue} + e.GetPublic() + e = &Event{} + e.GetPublic() + e = nil + e.GetPublic() } -func TestGistCommit_GetVersion(tt *testing.T) { +func TestEvent_GetRawPayload(tt *testing.T) { tt.Parallel() - var zeroValue string - g := &GistCommit{Version: &zeroValue} - g.GetVersion() - g = &GistCommit{} - g.GetVersion() - g = nil - g.GetVersion() + var zeroValue json.RawMessage + e := &Event{RawPayload: &zeroValue} + e.GetRawPayload() + e = &Event{} + e.GetRawPayload() + e = nil + e.GetRawPayload() } -func TestGistFile_GetContent(tt *testing.T) { +func TestEvent_GetRepo(tt *testing.T) { tt.Parallel() - var zeroValue string - g := &GistFile{Content: &zeroValue} - g.GetContent() - g = &GistFile{} - g.GetContent() - g = nil - g.GetContent() + e := &Event{} + e.GetRepo() + e = nil + e.GetRepo() } -func TestGistFile_GetFilename(tt *testing.T) { +func TestEvent_GetType(tt *testing.T) { tt.Parallel() var zeroValue string - g := &GistFile{Filename: &zeroValue} - g.GetFilename() - g = &GistFile{} - g.GetFilename() - g = nil - g.GetFilename() + e := &Event{Type: &zeroValue} + e.GetType() + e = &Event{} + e.GetType() + e = nil + e.GetType() } -func TestGistFile_GetLanguage(tt *testing.T) { +func TestExternalGroup_GetGroupID(tt *testing.T) { tt.Parallel() - var zeroValue string - g := &GistFile{Language: &zeroValue} - g.GetLanguage() - g = &GistFile{} - g.GetLanguage() - g = nil - g.GetLanguage() + var zeroValue int64 + e := &ExternalGroup{GroupID: &zeroValue} + e.GetGroupID() + e = &ExternalGroup{} + e.GetGroupID() + e = nil + e.GetGroupID() } -func TestGistFile_GetRawURL(tt *testing.T) { +func TestExternalGroup_GetGroupName(tt *testing.T) { tt.Parallel() var zeroValue string - g := &GistFile{RawURL: &zeroValue} - g.GetRawURL() - g = &GistFile{} - g.GetRawURL() - g = nil - g.GetRawURL() + e := &ExternalGroup{GroupName: &zeroValue} + e.GetGroupName() + e = &ExternalGroup{} + e.GetGroupName() + e = nil + e.GetGroupName() } -func TestGistFile_GetSize(tt *testing.T) { +func TestExternalGroup_GetUpdatedAt(tt *testing.T) { tt.Parallel() - var zeroValue int - g := &GistFile{Size: &zeroValue} - g.GetSize() - g = &GistFile{} - g.GetSize() - g = nil - g.GetSize() + var zeroValue Timestamp + e := &ExternalGroup{UpdatedAt: &zeroValue} + e.GetUpdatedAt() + e = &ExternalGroup{} + e.GetUpdatedAt() + e = nil + e.GetUpdatedAt() } -func TestGistFile_GetType(tt *testing.T) { +func TestExternalGroupMember_GetMemberEmail(tt *testing.T) { tt.Parallel() var zeroValue string - g := &GistFile{Type: &zeroValue} - g.GetType() - g = &GistFile{} - g.GetType() - g = nil - g.GetType() + e := &ExternalGroupMember{MemberEmail: &zeroValue} + e.GetMemberEmail() + e = &ExternalGroupMember{} + e.GetMemberEmail() + e = nil + e.GetMemberEmail() } -func TestGistFork_GetCreatedAt(tt *testing.T) { +func TestExternalGroupMember_GetMemberID(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - g := &GistFork{CreatedAt: &zeroValue} - g.GetCreatedAt() - g = &GistFork{} - g.GetCreatedAt() - g = nil - g.GetCreatedAt() + var zeroValue int64 + e := &ExternalGroupMember{MemberID: &zeroValue} + e.GetMemberID() + e = &ExternalGroupMember{} + e.GetMemberID() + e = nil + e.GetMemberID() } -func TestGistFork_GetID(tt *testing.T) { +func TestExternalGroupMember_GetMemberLogin(tt *testing.T) { tt.Parallel() var zeroValue string - g := &GistFork{ID: &zeroValue} - g.GetID() - g = &GistFork{} - g.GetID() - g = nil - g.GetID() + e := &ExternalGroupMember{MemberLogin: &zeroValue} + e.GetMemberLogin() + e = &ExternalGroupMember{} + e.GetMemberLogin() + e = nil + e.GetMemberLogin() } -func TestGistFork_GetNodeID(tt *testing.T) { +func TestExternalGroupMember_GetMemberName(tt *testing.T) { tt.Parallel() var zeroValue string - g := &GistFork{NodeID: &zeroValue} - g.GetNodeID() - g = &GistFork{} - g.GetNodeID() - g = nil - g.GetNodeID() + e := &ExternalGroupMember{MemberName: &zeroValue} + e.GetMemberName() + e = &ExternalGroupMember{} + e.GetMemberName() + e = nil + e.GetMemberName() } -func TestGistFork_GetUpdatedAt(tt *testing.T) { +func TestExternalGroupTeam_GetTeamID(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - g := &GistFork{UpdatedAt: &zeroValue} - g.GetUpdatedAt() - g = &GistFork{} - g.GetUpdatedAt() - g = nil - g.GetUpdatedAt() + var zeroValue int64 + e := &ExternalGroupTeam{TeamID: &zeroValue} + e.GetTeamID() + e = &ExternalGroupTeam{} + e.GetTeamID() + e = nil + e.GetTeamID() } -func TestGistFork_GetURL(tt *testing.T) { +func TestExternalGroupTeam_GetTeamName(tt *testing.T) { tt.Parallel() var zeroValue string - g := &GistFork{URL: &zeroValue} - g.GetURL() - g = &GistFork{} - g.GetURL() - g = nil - g.GetURL() + e := &ExternalGroupTeam{TeamName: &zeroValue} + e.GetTeamName() + e = &ExternalGroupTeam{} + e.GetTeamName() + e = nil + e.GetTeamName() } -func TestGistFork_GetUser(tt *testing.T) { +func TestFeedLink_GetHRef(tt *testing.T) { tt.Parallel() - g := &GistFork{} - g.GetUser() - g = nil - g.GetUser() + var zeroValue string + f := &FeedLink{HRef: &zeroValue} + f.GetHRef() + f = &FeedLink{} + f.GetHRef() + f = nil + f.GetHRef() } -func TestGistStats_GetPrivateGists(tt *testing.T) { +func TestFeedLink_GetType(tt *testing.T) { tt.Parallel() - var zeroValue int - g := &GistStats{PrivateGists: &zeroValue} - g.GetPrivateGists() - g = &GistStats{} - g.GetPrivateGists() - g = nil - g.GetPrivateGists() + var zeroValue string + f := &FeedLink{Type: &zeroValue} + f.GetType() + f = &FeedLink{} + f.GetType() + f = nil + f.GetType() } -func TestGistStats_GetPublicGists(tt *testing.T) { +func TestFeedLinks_GetCurrentUser(tt *testing.T) { tt.Parallel() - var zeroValue int - g := &GistStats{PublicGists: &zeroValue} - g.GetPublicGists() - g = &GistStats{} - g.GetPublicGists() - g = nil - g.GetPublicGists() + f := &FeedLinks{} + f.GetCurrentUser() + f = nil + f.GetCurrentUser() } -func TestGistStats_GetTotalGists(tt *testing.T) { +func TestFeedLinks_GetCurrentUserActor(tt *testing.T) { tt.Parallel() - var zeroValue int - g := &GistStats{TotalGists: &zeroValue} - g.GetTotalGists() - g = &GistStats{} - g.GetTotalGists() - g = nil - g.GetTotalGists() + f := &FeedLinks{} + f.GetCurrentUserActor() + f = nil + f.GetCurrentUserActor() } -func TestGitHubAppAuthorizationEvent_GetAction(tt *testing.T) { +func TestFeedLinks_GetCurrentUserOrganization(tt *testing.T) { tt.Parallel() - var zeroValue string - g := &GitHubAppAuthorizationEvent{Action: &zeroValue} - g.GetAction() - g = &GitHubAppAuthorizationEvent{} - g.GetAction() - g = nil - g.GetAction() + f := &FeedLinks{} + f.GetCurrentUserOrganization() + f = nil + f.GetCurrentUserOrganization() } -func TestGitHubAppAuthorizationEvent_GetInstallation(tt *testing.T) { +func TestFeedLinks_GetCurrentUserPublic(tt *testing.T) { tt.Parallel() - g := &GitHubAppAuthorizationEvent{} - g.GetInstallation() - g = nil - g.GetInstallation() + f := &FeedLinks{} + f.GetCurrentUserPublic() + f = nil + f.GetCurrentUserPublic() } -func TestGitHubAppAuthorizationEvent_GetSender(tt *testing.T) { +func TestFeedLinks_GetTimeline(tt *testing.T) { tt.Parallel() - g := &GitHubAppAuthorizationEvent{} - g.GetSender() - g = nil - g.GetSender() + f := &FeedLinks{} + f.GetTimeline() + f = nil + f.GetTimeline() } -func TestGitignore_GetName(tt *testing.T) { +func TestFeedLinks_GetUser(tt *testing.T) { tt.Parallel() - var zeroValue string - g := &Gitignore{Name: &zeroValue} - g.GetName() - g = &Gitignore{} - g.GetName() - g = nil - g.GetName() + f := &FeedLinks{} + f.GetUser() + f = nil + f.GetUser() } -func TestGitignore_GetSource(tt *testing.T) { +func TestFeeds_GetCurrentUserActorURL(tt *testing.T) { tt.Parallel() var zeroValue string - g := &Gitignore{Source: &zeroValue} - g.GetSource() - g = &Gitignore{} - g.GetSource() - g = nil - g.GetSource() + f := &Feeds{CurrentUserActorURL: &zeroValue} + f.GetCurrentUserActorURL() + f = &Feeds{} + f.GetCurrentUserActorURL() + f = nil + f.GetCurrentUserActorURL() } -func TestGitObject_GetSHA(tt *testing.T) { +func TestFeeds_GetCurrentUserOrganizationURL(tt *testing.T) { tt.Parallel() var zeroValue string - g := &GitObject{SHA: &zeroValue} - g.GetSHA() - g = &GitObject{} - g.GetSHA() - g = nil - g.GetSHA() + f := &Feeds{CurrentUserOrganizationURL: &zeroValue} + f.GetCurrentUserOrganizationURL() + f = &Feeds{} + f.GetCurrentUserOrganizationURL() + f = nil + f.GetCurrentUserOrganizationURL() } -func TestGitObject_GetType(tt *testing.T) { +func TestFeeds_GetCurrentUserPublicURL(tt *testing.T) { tt.Parallel() var zeroValue string - g := &GitObject{Type: &zeroValue} - g.GetType() - g = &GitObject{} - g.GetType() - g = nil - g.GetType() + f := &Feeds{CurrentUserPublicURL: &zeroValue} + f.GetCurrentUserPublicURL() + f = &Feeds{} + f.GetCurrentUserPublicURL() + f = nil + f.GetCurrentUserPublicURL() } -func TestGitObject_GetURL(tt *testing.T) { +func TestFeeds_GetCurrentUserURL(tt *testing.T) { tt.Parallel() var zeroValue string - g := &GitObject{URL: &zeroValue} - g.GetURL() - g = &GitObject{} - g.GetURL() - g = nil - g.GetURL() + f := &Feeds{CurrentUserURL: &zeroValue} + f.GetCurrentUserURL() + f = &Feeds{} + f.GetCurrentUserURL() + f = nil + f.GetCurrentUserURL() } -func TestGlobalSecurityAdvisory_GetGithubReviewedAt(tt *testing.T) { +func TestFeeds_GetLinks(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - g := &GlobalSecurityAdvisory{GithubReviewedAt: &zeroValue} - g.GetGithubReviewedAt() - g = &GlobalSecurityAdvisory{} - g.GetGithubReviewedAt() - g = nil - g.GetGithubReviewedAt() + f := &Feeds{} + f.GetLinks() + f = nil + f.GetLinks() } -func TestGlobalSecurityAdvisory_GetID(tt *testing.T) { +func TestFeeds_GetTimelineURL(tt *testing.T) { tt.Parallel() - var zeroValue int64 - g := &GlobalSecurityAdvisory{ID: &zeroValue} - g.GetID() - g = &GlobalSecurityAdvisory{} - g.GetID() - g = nil - g.GetID() + var zeroValue string + f := &Feeds{TimelineURL: &zeroValue} + f.GetTimelineURL() + f = &Feeds{} + f.GetTimelineURL() + f = nil + f.GetTimelineURL() } -func TestGlobalSecurityAdvisory_GetNVDPublishedAt(tt *testing.T) { +func TestFeeds_GetUserURL(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - g := &GlobalSecurityAdvisory{NVDPublishedAt: &zeroValue} - g.GetNVDPublishedAt() - g = &GlobalSecurityAdvisory{} - g.GetNVDPublishedAt() - g = nil - g.GetNVDPublishedAt() + var zeroValue string + f := &Feeds{UserURL: &zeroValue} + f.GetUserURL() + f = &Feeds{} + f.GetUserURL() + f = nil + f.GetUserURL() } -func TestGlobalSecurityAdvisory_GetRepositoryAdvisoryURL(tt *testing.T) { +func TestFirstPatchedVersion_GetIdentifier(tt *testing.T) { tt.Parallel() var zeroValue string - g := &GlobalSecurityAdvisory{RepositoryAdvisoryURL: &zeroValue} - g.GetRepositoryAdvisoryURL() - g = &GlobalSecurityAdvisory{} - g.GetRepositoryAdvisoryURL() - g = nil - g.GetRepositoryAdvisoryURL() + f := &FirstPatchedVersion{Identifier: &zeroValue} + f.GetIdentifier() + f = &FirstPatchedVersion{} + f.GetIdentifier() + f = nil + f.GetIdentifier() } -func TestGlobalSecurityAdvisory_GetSourceCodeLocation(tt *testing.T) { +func TestForkEvent_GetForkee(tt *testing.T) { tt.Parallel() - var zeroValue string - g := &GlobalSecurityAdvisory{SourceCodeLocation: &zeroValue} - g.GetSourceCodeLocation() - g = &GlobalSecurityAdvisory{} - g.GetSourceCodeLocation() - g = nil - g.GetSourceCodeLocation() + f := &ForkEvent{} + f.GetForkee() + f = nil + f.GetForkee() } -func TestGlobalSecurityAdvisory_GetType(tt *testing.T) { +func TestForkEvent_GetInstallation(tt *testing.T) { tt.Parallel() - var zeroValue string - g := &GlobalSecurityAdvisory{Type: &zeroValue} - g.GetType() - g = &GlobalSecurityAdvisory{} - g.GetType() - g = nil - g.GetType() + f := &ForkEvent{} + f.GetInstallation() + f = nil + f.GetInstallation() } -func TestGlobalSecurityVulnerability_GetFirstPatchedVersion(tt *testing.T) { +func TestForkEvent_GetRepo(tt *testing.T) { tt.Parallel() - var zeroValue string - g := &GlobalSecurityVulnerability{FirstPatchedVersion: &zeroValue} - g.GetFirstPatchedVersion() - g = &GlobalSecurityVulnerability{} - g.GetFirstPatchedVersion() - g = nil - g.GetFirstPatchedVersion() + f := &ForkEvent{} + f.GetRepo() + f = nil + f.GetRepo() } -func TestGlobalSecurityVulnerability_GetPackage(tt *testing.T) { +func TestForkEvent_GetSender(tt *testing.T) { tt.Parallel() - g := &GlobalSecurityVulnerability{} - g.GetPackage() - g = nil - g.GetPackage() + f := &ForkEvent{} + f.GetSender() + f = nil + f.GetSender() } -func TestGlobalSecurityVulnerability_GetVulnerableVersionRange(tt *testing.T) { +func TestGenerateJITConfigRequest_GetWorkFolder(tt *testing.T) { tt.Parallel() var zeroValue string - g := &GlobalSecurityVulnerability{VulnerableVersionRange: &zeroValue} - g.GetVulnerableVersionRange() - g = &GlobalSecurityVulnerability{} - g.GetVulnerableVersionRange() + g := &GenerateJITConfigRequest{WorkFolder: &zeroValue} + g.GetWorkFolder() + g = &GenerateJITConfigRequest{} + g.GetWorkFolder() g = nil - g.GetVulnerableVersionRange() + g.GetWorkFolder() } -func TestGollumEvent_GetInstallation(tt *testing.T) { +func TestGenerateNotesOptions_GetPreviousTagName(tt *testing.T) { tt.Parallel() - g := &GollumEvent{} - g.GetInstallation() + var zeroValue string + g := &GenerateNotesOptions{PreviousTagName: &zeroValue} + g.GetPreviousTagName() + g = &GenerateNotesOptions{} + g.GetPreviousTagName() g = nil - g.GetInstallation() + g.GetPreviousTagName() } -func TestGollumEvent_GetOrg(tt *testing.T) { +func TestGenerateNotesOptions_GetTargetCommitish(tt *testing.T) { tt.Parallel() - g := &GollumEvent{} - g.GetOrg() + var zeroValue string + g := &GenerateNotesOptions{TargetCommitish: &zeroValue} + g.GetTargetCommitish() + g = &GenerateNotesOptions{} + g.GetTargetCommitish() g = nil - g.GetOrg() + g.GetTargetCommitish() } -func TestGollumEvent_GetRepo(tt *testing.T) { +func TestGetAuditLogOptions_GetInclude(tt *testing.T) { tt.Parallel() - g := &GollumEvent{} - g.GetRepo() + var zeroValue string + g := &GetAuditLogOptions{Include: &zeroValue} + g.GetInclude() + g = &GetAuditLogOptions{} + g.GetInclude() g = nil - g.GetRepo() + g.GetInclude() } -func TestGollumEvent_GetSender(tt *testing.T) { +func TestGetAuditLogOptions_GetOrder(tt *testing.T) { tt.Parallel() - g := &GollumEvent{} - g.GetSender() + var zeroValue string + g := &GetAuditLogOptions{Order: &zeroValue} + g.GetOrder() + g = &GetAuditLogOptions{} + g.GetOrder() g = nil - g.GetSender() + g.GetOrder() } -func TestGPGEmail_GetEmail(tt *testing.T) { +func TestGetAuditLogOptions_GetPhrase(tt *testing.T) { tt.Parallel() var zeroValue string - g := &GPGEmail{Email: &zeroValue} - g.GetEmail() - g = &GPGEmail{} - g.GetEmail() + g := &GetAuditLogOptions{Phrase: &zeroValue} + g.GetPhrase() + g = &GetAuditLogOptions{} + g.GetPhrase() g = nil - g.GetEmail() + g.GetPhrase() } -func TestGPGEmail_GetVerified(tt *testing.T) { +func TestGist_GetComments(tt *testing.T) { tt.Parallel() - var zeroValue bool - g := &GPGEmail{Verified: &zeroValue} - g.GetVerified() - g = &GPGEmail{} - g.GetVerified() + var zeroValue int + g := &Gist{Comments: &zeroValue} + g.GetComments() + g = &Gist{} + g.GetComments() g = nil - g.GetVerified() + g.GetComments() } -func TestGPGKey_GetCanCertify(tt *testing.T) { +func TestGist_GetCreatedAt(tt *testing.T) { tt.Parallel() - var zeroValue bool - g := &GPGKey{CanCertify: &zeroValue} - g.GetCanCertify() - g = &GPGKey{} - g.GetCanCertify() + var zeroValue Timestamp + g := &Gist{CreatedAt: &zeroValue} + g.GetCreatedAt() + g = &Gist{} + g.GetCreatedAt() g = nil - g.GetCanCertify() + g.GetCreatedAt() } -func TestGPGKey_GetCanEncryptComms(tt *testing.T) { +func TestGist_GetDescription(tt *testing.T) { tt.Parallel() - var zeroValue bool - g := &GPGKey{CanEncryptComms: &zeroValue} - g.GetCanEncryptComms() - g = &GPGKey{} - g.GetCanEncryptComms() + var zeroValue string + g := &Gist{Description: &zeroValue} + g.GetDescription() + g = &Gist{} + g.GetDescription() g = nil - g.GetCanEncryptComms() + g.GetDescription() } -func TestGPGKey_GetCanEncryptStorage(tt *testing.T) { +func TestGist_GetFiles(tt *testing.T) { tt.Parallel() - var zeroValue bool - g := &GPGKey{CanEncryptStorage: &zeroValue} - g.GetCanEncryptStorage() - g = &GPGKey{} - g.GetCanEncryptStorage() + zeroValue := map[GistFilename]GistFile{} + g := &Gist{Files: zeroValue} + g.GetFiles() + g = &Gist{} + g.GetFiles() g = nil - g.GetCanEncryptStorage() + g.GetFiles() } -func TestGPGKey_GetCanSign(tt *testing.T) { +func TestGist_GetGitPullURL(tt *testing.T) { tt.Parallel() - var zeroValue bool - g := &GPGKey{CanSign: &zeroValue} - g.GetCanSign() - g = &GPGKey{} - g.GetCanSign() + var zeroValue string + g := &Gist{GitPullURL: &zeroValue} + g.GetGitPullURL() + g = &Gist{} + g.GetGitPullURL() g = nil - g.GetCanSign() + g.GetGitPullURL() } -func TestGPGKey_GetCreatedAt(tt *testing.T) { +func TestGist_GetGitPushURL(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - g := &GPGKey{CreatedAt: &zeroValue} - g.GetCreatedAt() - g = &GPGKey{} - g.GetCreatedAt() + var zeroValue string + g := &Gist{GitPushURL: &zeroValue} + g.GetGitPushURL() + g = &Gist{} + g.GetGitPushURL() g = nil - g.GetCreatedAt() + g.GetGitPushURL() } -func TestGPGKey_GetExpiresAt(tt *testing.T) { +func TestGist_GetHTMLURL(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - g := &GPGKey{ExpiresAt: &zeroValue} - g.GetExpiresAt() - g = &GPGKey{} - g.GetExpiresAt() + var zeroValue string + g := &Gist{HTMLURL: &zeroValue} + g.GetHTMLURL() + g = &Gist{} + g.GetHTMLURL() g = nil - g.GetExpiresAt() + g.GetHTMLURL() } -func TestGPGKey_GetID(tt *testing.T) { +func TestGist_GetID(tt *testing.T) { tt.Parallel() - var zeroValue int64 - g := &GPGKey{ID: &zeroValue} + var zeroValue string + g := &Gist{ID: &zeroValue} g.GetID() - g = &GPGKey{} + g = &Gist{} g.GetID() g = nil g.GetID() } -func TestGPGKey_GetKeyID(tt *testing.T) { +func TestGist_GetNodeID(tt *testing.T) { tt.Parallel() var zeroValue string - g := &GPGKey{KeyID: &zeroValue} - g.GetKeyID() - g = &GPGKey{} - g.GetKeyID() + g := &Gist{NodeID: &zeroValue} + g.GetNodeID() + g = &Gist{} + g.GetNodeID() g = nil - g.GetKeyID() + g.GetNodeID() } -func TestGPGKey_GetPrimaryKeyID(tt *testing.T) { +func TestGist_GetOwner(tt *testing.T) { tt.Parallel() - var zeroValue int64 - g := &GPGKey{PrimaryKeyID: &zeroValue} - g.GetPrimaryKeyID() - g = &GPGKey{} - g.GetPrimaryKeyID() + g := &Gist{} + g.GetOwner() g = nil - g.GetPrimaryKeyID() + g.GetOwner() } -func TestGPGKey_GetPublicKey(tt *testing.T) { +func TestGist_GetPublic(tt *testing.T) { tt.Parallel() - var zeroValue string - g := &GPGKey{PublicKey: &zeroValue} - g.GetPublicKey() - g = &GPGKey{} - g.GetPublicKey() + var zeroValue bool + g := &Gist{Public: &zeroValue} + g.GetPublic() + g = &Gist{} + g.GetPublic() g = nil - g.GetPublicKey() + g.GetPublic() } -func TestGPGKey_GetRawKey(tt *testing.T) { +func TestGist_GetUpdatedAt(tt *testing.T) { tt.Parallel() - var zeroValue string - g := &GPGKey{RawKey: &zeroValue} - g.GetRawKey() - g = &GPGKey{} - g.GetRawKey() + var zeroValue Timestamp + g := &Gist{UpdatedAt: &zeroValue} + g.GetUpdatedAt() + g = &Gist{} + g.GetUpdatedAt() g = nil - g.GetRawKey() + g.GetUpdatedAt() } -func TestGrant_GetApp(tt *testing.T) { +func TestGistComment_GetBody(tt *testing.T) { tt.Parallel() - g := &Grant{} - g.GetApp() + var zeroValue string + g := &GistComment{Body: &zeroValue} + g.GetBody() + g = &GistComment{} + g.GetBody() g = nil - g.GetApp() + g.GetBody() } -func TestGrant_GetCreatedAt(tt *testing.T) { +func TestGistComment_GetCreatedAt(tt *testing.T) { tt.Parallel() var zeroValue Timestamp - g := &Grant{CreatedAt: &zeroValue} + g := &GistComment{CreatedAt: &zeroValue} g.GetCreatedAt() - g = &Grant{} + g = &GistComment{} g.GetCreatedAt() g = nil g.GetCreatedAt() } -func TestGrant_GetID(tt *testing.T) { +func TestGistComment_GetID(tt *testing.T) { tt.Parallel() var zeroValue int64 - g := &Grant{ID: &zeroValue} + g := &GistComment{ID: &zeroValue} g.GetID() - g = &Grant{} + g = &GistComment{} g.GetID() g = nil g.GetID() } -func TestGrant_GetUpdatedAt(tt *testing.T) { - tt.Parallel() - var zeroValue Timestamp - g := &Grant{UpdatedAt: &zeroValue} - g.GetUpdatedAt() - g = &Grant{} - g.GetUpdatedAt() - g = nil - g.GetUpdatedAt() -} - -func TestGrant_GetURL(tt *testing.T) { +func TestGistComment_GetURL(tt *testing.T) { tt.Parallel() var zeroValue string - g := &Grant{URL: &zeroValue} + g := &GistComment{URL: &zeroValue} g.GetURL() - g = &Grant{} + g = &GistComment{} g.GetURL() g = nil g.GetURL() } -func TestHeadCommit_GetAuthor(tt *testing.T) { +func TestGistComment_GetUser(tt *testing.T) { tt.Parallel() - h := &HeadCommit{} - h.GetAuthor() - h = nil - h.GetAuthor() + g := &GistComment{} + g.GetUser() + g = nil + g.GetUser() } -func TestHeadCommit_GetCommitter(tt *testing.T) { +func TestGistCommit_GetChangeStatus(tt *testing.T) { tt.Parallel() - h := &HeadCommit{} - h.GetCommitter() - h = nil - h.GetCommitter() + g := &GistCommit{} + g.GetChangeStatus() + g = nil + g.GetChangeStatus() } -func TestHeadCommit_GetDistinct(tt *testing.T) { +func TestGistCommit_GetCommittedAt(tt *testing.T) { tt.Parallel() - var zeroValue bool - h := &HeadCommit{Distinct: &zeroValue} - h.GetDistinct() - h = &HeadCommit{} - h.GetDistinct() - h = nil - h.GetDistinct() + var zeroValue Timestamp + g := &GistCommit{CommittedAt: &zeroValue} + g.GetCommittedAt() + g = &GistCommit{} + g.GetCommittedAt() + g = nil + g.GetCommittedAt() } -func TestHeadCommit_GetID(tt *testing.T) { +func TestGistCommit_GetNodeID(tt *testing.T) { tt.Parallel() var zeroValue string - h := &HeadCommit{ID: &zeroValue} - h.GetID() - h = &HeadCommit{} - h.GetID() - h = nil - h.GetID() + g := &GistCommit{NodeID: &zeroValue} + g.GetNodeID() + g = &GistCommit{} + g.GetNodeID() + g = nil + g.GetNodeID() } -func TestHeadCommit_GetMessage(tt *testing.T) { +func TestGistCommit_GetURL(tt *testing.T) { tt.Parallel() var zeroValue string - h := &HeadCommit{Message: &zeroValue} - h.GetMessage() - h = &HeadCommit{} - h.GetMessage() - h = nil - h.GetMessage() + g := &GistCommit{URL: &zeroValue} + g.GetURL() + g = &GistCommit{} + g.GetURL() + g = nil + g.GetURL() } -func TestHeadCommit_GetSHA(tt *testing.T) { +func TestGistCommit_GetUser(tt *testing.T) { tt.Parallel() - var zeroValue string - h := &HeadCommit{SHA: &zeroValue} - h.GetSHA() - h = &HeadCommit{} - h.GetSHA() - h = nil - h.GetSHA() -} - -func TestHeadCommit_GetTimestamp(tt *testing.T) { - tt.Parallel() - var zeroValue Timestamp - h := &HeadCommit{Timestamp: &zeroValue} - h.GetTimestamp() - h = &HeadCommit{} - h.GetTimestamp() - h = nil - h.GetTimestamp() + g := &GistCommit{} + g.GetUser() + g = nil + g.GetUser() } -func TestHeadCommit_GetTreeID(tt *testing.T) { +func TestGistCommit_GetVersion(tt *testing.T) { tt.Parallel() var zeroValue string - h := &HeadCommit{TreeID: &zeroValue} - h.GetTreeID() - h = &HeadCommit{} - h.GetTreeID() - h = nil - h.GetTreeID() + g := &GistCommit{Version: &zeroValue} + g.GetVersion() + g = &GistCommit{} + g.GetVersion() + g = nil + g.GetVersion() } -func TestHeadCommit_GetURL(tt *testing.T) { +func TestGistFile_GetContent(tt *testing.T) { tt.Parallel() var zeroValue string - h := &HeadCommit{URL: &zeroValue} - h.GetURL() - h = &HeadCommit{} - h.GetURL() - h = nil - h.GetURL() + g := &GistFile{Content: &zeroValue} + g.GetContent() + g = &GistFile{} + g.GetContent() + g = nil + g.GetContent() } -func TestHook_GetActive(tt *testing.T) { +func TestGistFile_GetFilename(tt *testing.T) { tt.Parallel() - var zeroValue bool - h := &Hook{Active: &zeroValue} - h.GetActive() - h = &Hook{} - h.GetActive() - h = nil - h.GetActive() + var zeroValue string + g := &GistFile{Filename: &zeroValue} + g.GetFilename() + g = &GistFile{} + g.GetFilename() + g = nil + g.GetFilename() } -func TestHook_GetConfig(tt *testing.T) { +func TestGistFile_GetLanguage(tt *testing.T) { tt.Parallel() - h := &Hook{} - h.GetConfig() - h = nil - h.GetConfig() + var zeroValue string + g := &GistFile{Language: &zeroValue} + g.GetLanguage() + g = &GistFile{} + g.GetLanguage() + g = nil + g.GetLanguage() } -func TestHook_GetCreatedAt(tt *testing.T) { +func TestGistFile_GetRawURL(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - h := &Hook{CreatedAt: &zeroValue} - h.GetCreatedAt() - h = &Hook{} - h.GetCreatedAt() - h = nil - h.GetCreatedAt() + var zeroValue string + g := &GistFile{RawURL: &zeroValue} + g.GetRawURL() + g = &GistFile{} + g.GetRawURL() + g = nil + g.GetRawURL() } -func TestHook_GetID(tt *testing.T) { +func TestGistFile_GetSize(tt *testing.T) { tt.Parallel() - var zeroValue int64 - h := &Hook{ID: &zeroValue} - h.GetID() - h = &Hook{} - h.GetID() - h = nil - h.GetID() + var zeroValue int + g := &GistFile{Size: &zeroValue} + g.GetSize() + g = &GistFile{} + g.GetSize() + g = nil + g.GetSize() } -func TestHook_GetName(tt *testing.T) { +func TestGistFile_GetType(tt *testing.T) { tt.Parallel() var zeroValue string - h := &Hook{Name: &zeroValue} - h.GetName() - h = &Hook{} - h.GetName() - h = nil - h.GetName() + g := &GistFile{Type: &zeroValue} + g.GetType() + g = &GistFile{} + g.GetType() + g = nil + g.GetType() } -func TestHook_GetPingURL(tt *testing.T) { +func TestGistFork_GetCreatedAt(tt *testing.T) { tt.Parallel() - var zeroValue string - h := &Hook{PingURL: &zeroValue} - h.GetPingURL() - h = &Hook{} - h.GetPingURL() - h = nil - h.GetPingURL() + var zeroValue Timestamp + g := &GistFork{CreatedAt: &zeroValue} + g.GetCreatedAt() + g = &GistFork{} + g.GetCreatedAt() + g = nil + g.GetCreatedAt() } -func TestHook_GetTestURL(tt *testing.T) { +func TestGistFork_GetID(tt *testing.T) { tt.Parallel() var zeroValue string - h := &Hook{TestURL: &zeroValue} - h.GetTestURL() - h = &Hook{} - h.GetTestURL() - h = nil - h.GetTestURL() + g := &GistFork{ID: &zeroValue} + g.GetID() + g = &GistFork{} + g.GetID() + g = nil + g.GetID() } -func TestHook_GetType(tt *testing.T) { +func TestGistFork_GetNodeID(tt *testing.T) { tt.Parallel() var zeroValue string - h := &Hook{Type: &zeroValue} - h.GetType() - h = &Hook{} - h.GetType() - h = nil - h.GetType() + g := &GistFork{NodeID: &zeroValue} + g.GetNodeID() + g = &GistFork{} + g.GetNodeID() + g = nil + g.GetNodeID() } -func TestHook_GetUpdatedAt(tt *testing.T) { +func TestGistFork_GetUpdatedAt(tt *testing.T) { tt.Parallel() var zeroValue Timestamp - h := &Hook{UpdatedAt: &zeroValue} - h.GetUpdatedAt() - h = &Hook{} - h.GetUpdatedAt() - h = nil - h.GetUpdatedAt() + g := &GistFork{UpdatedAt: &zeroValue} + g.GetUpdatedAt() + g = &GistFork{} + g.GetUpdatedAt() + g = nil + g.GetUpdatedAt() } -func TestHook_GetURL(tt *testing.T) { +func TestGistFork_GetURL(tt *testing.T) { tt.Parallel() var zeroValue string - h := &Hook{URL: &zeroValue} - h.GetURL() - h = &Hook{} - h.GetURL() - h = nil - h.GetURL() + g := &GistFork{URL: &zeroValue} + g.GetURL() + g = &GistFork{} + g.GetURL() + g = nil + g.GetURL() } -func TestHookConfig_GetContentType(tt *testing.T) { +func TestGistFork_GetUser(tt *testing.T) { tt.Parallel() - var zeroValue string - h := &HookConfig{ContentType: &zeroValue} - h.GetContentType() - h = &HookConfig{} - h.GetContentType() - h = nil - h.GetContentType() + g := &GistFork{} + g.GetUser() + g = nil + g.GetUser() } -func TestHookConfig_GetInsecureSSL(tt *testing.T) { +func TestGistStats_GetPrivateGists(tt *testing.T) { tt.Parallel() - var zeroValue string - h := &HookConfig{InsecureSSL: &zeroValue} - h.GetInsecureSSL() - h = &HookConfig{} - h.GetInsecureSSL() - h = nil - h.GetInsecureSSL() + var zeroValue int + g := &GistStats{PrivateGists: &zeroValue} + g.GetPrivateGists() + g = &GistStats{} + g.GetPrivateGists() + g = nil + g.GetPrivateGists() } -func TestHookConfig_GetSecret(tt *testing.T) { +func TestGistStats_GetPublicGists(tt *testing.T) { tt.Parallel() - var zeroValue string - h := &HookConfig{Secret: &zeroValue} - h.GetSecret() - h = &HookConfig{} - h.GetSecret() - h = nil - h.GetSecret() + var zeroValue int + g := &GistStats{PublicGists: &zeroValue} + g.GetPublicGists() + g = &GistStats{} + g.GetPublicGists() + g = nil + g.GetPublicGists() } -func TestHookConfig_GetURL(tt *testing.T) { +func TestGistStats_GetTotalGists(tt *testing.T) { + tt.Parallel() + var zeroValue int + g := &GistStats{TotalGists: &zeroValue} + g.GetTotalGists() + g = &GistStats{} + g.GetTotalGists() + g = nil + g.GetTotalGists() +} + +func TestGitHubAppAuthorizationEvent_GetAction(tt *testing.T) { tt.Parallel() var zeroValue string - h := &HookConfig{URL: &zeroValue} - h.GetURL() - h = &HookConfig{} - h.GetURL() - h = nil - h.GetURL() + g := &GitHubAppAuthorizationEvent{Action: &zeroValue} + g.GetAction() + g = &GitHubAppAuthorizationEvent{} + g.GetAction() + g = nil + g.GetAction() } -func TestHookDelivery_GetAction(tt *testing.T) { +func TestGitHubAppAuthorizationEvent_GetInstallation(tt *testing.T) { tt.Parallel() - var zeroValue string - h := &HookDelivery{Action: &zeroValue} - h.GetAction() - h = &HookDelivery{} - h.GetAction() - h = nil - h.GetAction() + g := &GitHubAppAuthorizationEvent{} + g.GetInstallation() + g = nil + g.GetInstallation() } -func TestHookDelivery_GetDeliveredAt(tt *testing.T) { +func TestGitHubAppAuthorizationEvent_GetSender(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - h := &HookDelivery{DeliveredAt: &zeroValue} - h.GetDeliveredAt() - h = &HookDelivery{} - h.GetDeliveredAt() - h = nil - h.GetDeliveredAt() + g := &GitHubAppAuthorizationEvent{} + g.GetSender() + g = nil + g.GetSender() } -func TestHookDelivery_GetDuration(tt *testing.T) { +func TestGitHubOAuth_GetClientID(tt *testing.T) { tt.Parallel() - h := &HookDelivery{} - h.GetDuration() - h = nil - h.GetDuration() + var zeroValue string + g := &GitHubOAuth{ClientID: &zeroValue} + g.GetClientID() + g = &GitHubOAuth{} + g.GetClientID() + g = nil + g.GetClientID() } -func TestHookDelivery_GetEvent(tt *testing.T) { +func TestGitHubOAuth_GetClientSecret(tt *testing.T) { tt.Parallel() var zeroValue string - h := &HookDelivery{Event: &zeroValue} - h.GetEvent() - h = &HookDelivery{} - h.GetEvent() - h = nil - h.GetEvent() + g := &GitHubOAuth{ClientSecret: &zeroValue} + g.GetClientSecret() + g = &GitHubOAuth{} + g.GetClientSecret() + g = nil + g.GetClientSecret() } -func TestHookDelivery_GetGUID(tt *testing.T) { +func TestGitHubOAuth_GetOrganizationName(tt *testing.T) { tt.Parallel() var zeroValue string - h := &HookDelivery{GUID: &zeroValue} - h.GetGUID() - h = &HookDelivery{} - h.GetGUID() - h = nil - h.GetGUID() + g := &GitHubOAuth{OrganizationName: &zeroValue} + g.GetOrganizationName() + g = &GitHubOAuth{} + g.GetOrganizationName() + g = nil + g.GetOrganizationName() } -func TestHookDelivery_GetID(tt *testing.T) { +func TestGitHubOAuth_GetOrganizationTeam(tt *testing.T) { tt.Parallel() - var zeroValue int64 - h := &HookDelivery{ID: &zeroValue} - h.GetID() - h = &HookDelivery{} - h.GetID() - h = nil - h.GetID() + var zeroValue string + g := &GitHubOAuth{OrganizationTeam: &zeroValue} + g.GetOrganizationTeam() + g = &GitHubOAuth{} + g.GetOrganizationTeam() + g = nil + g.GetOrganizationTeam() } -func TestHookDelivery_GetInstallationID(tt *testing.T) { +func TestGitHubSSL_GetCert(tt *testing.T) { tt.Parallel() - var zeroValue int64 - h := &HookDelivery{InstallationID: &zeroValue} - h.GetInstallationID() - h = &HookDelivery{} - h.GetInstallationID() - h = nil - h.GetInstallationID() + var zeroValue string + g := &GitHubSSL{Cert: &zeroValue} + g.GetCert() + g = &GitHubSSL{} + g.GetCert() + g = nil + g.GetCert() } -func TestHookDelivery_GetRedelivery(tt *testing.T) { +func TestGitHubSSL_GetEnabled(tt *testing.T) { tt.Parallel() var zeroValue bool - h := &HookDelivery{Redelivery: &zeroValue} - h.GetRedelivery() - h = &HookDelivery{} - h.GetRedelivery() - h = nil - h.GetRedelivery() + g := &GitHubSSL{Enabled: &zeroValue} + g.GetEnabled() + g = &GitHubSSL{} + g.GetEnabled() + g = nil + g.GetEnabled() } -func TestHookDelivery_GetRepositoryID(tt *testing.T) { +func TestGitHubSSL_GetKey(tt *testing.T) { tt.Parallel() - var zeroValue int64 - h := &HookDelivery{RepositoryID: &zeroValue} - h.GetRepositoryID() - h = &HookDelivery{} - h.GetRepositoryID() - h = nil - h.GetRepositoryID() + var zeroValue string + g := &GitHubSSL{Key: &zeroValue} + g.GetKey() + g = &GitHubSSL{} + g.GetKey() + g = nil + g.GetKey() } -func TestHookDelivery_GetRequest(tt *testing.T) { +func TestGitignore_GetName(tt *testing.T) { tt.Parallel() - h := &HookDelivery{} - h.GetRequest() - h = nil - h.GetRequest() + var zeroValue string + g := &Gitignore{Name: &zeroValue} + g.GetName() + g = &Gitignore{} + g.GetName() + g = nil + g.GetName() } -func TestHookDelivery_GetResponse(tt *testing.T) { +func TestGitignore_GetSource(tt *testing.T) { tt.Parallel() - h := &HookDelivery{} - h.GetResponse() - h = nil - h.GetResponse() + var zeroValue string + g := &Gitignore{Source: &zeroValue} + g.GetSource() + g = &Gitignore{} + g.GetSource() + g = nil + g.GetSource() } -func TestHookDelivery_GetStatus(tt *testing.T) { +func TestGitObject_GetSHA(tt *testing.T) { tt.Parallel() var zeroValue string - h := &HookDelivery{Status: &zeroValue} - h.GetStatus() - h = &HookDelivery{} - h.GetStatus() - h = nil - h.GetStatus() + g := &GitObject{SHA: &zeroValue} + g.GetSHA() + g = &GitObject{} + g.GetSHA() + g = nil + g.GetSHA() } -func TestHookDelivery_GetStatusCode(tt *testing.T) { +func TestGitObject_GetType(tt *testing.T) { tt.Parallel() - var zeroValue int - h := &HookDelivery{StatusCode: &zeroValue} - h.GetStatusCode() - h = &HookDelivery{} - h.GetStatusCode() - h = nil - h.GetStatusCode() + var zeroValue string + g := &GitObject{Type: &zeroValue} + g.GetType() + g = &GitObject{} + g.GetType() + g = nil + g.GetType() } -func TestHookRequest_GetHeaders(tt *testing.T) { +func TestGitObject_GetURL(tt *testing.T) { tt.Parallel() - zeroValue := map[string]string{} - h := &HookRequest{Headers: zeroValue} - h.GetHeaders() - h = &HookRequest{} - h.GetHeaders() - h = nil - h.GetHeaders() + var zeroValue string + g := &GitObject{URL: &zeroValue} + g.GetURL() + g = &GitObject{} + g.GetURL() + g = nil + g.GetURL() } -func TestHookRequest_GetRawPayload(tt *testing.T) { +func TestGlobalSecurityAdvisory_GetGithubReviewedAt(tt *testing.T) { tt.Parallel() - var zeroValue json.RawMessage - h := &HookRequest{RawPayload: &zeroValue} - h.GetRawPayload() - h = &HookRequest{} - h.GetRawPayload() - h = nil - h.GetRawPayload() + var zeroValue Timestamp + g := &GlobalSecurityAdvisory{GithubReviewedAt: &zeroValue} + g.GetGithubReviewedAt() + g = &GlobalSecurityAdvisory{} + g.GetGithubReviewedAt() + g = nil + g.GetGithubReviewedAt() } -func TestHookResponse_GetHeaders(tt *testing.T) { +func TestGlobalSecurityAdvisory_GetID(tt *testing.T) { tt.Parallel() - zeroValue := map[string]string{} - h := &HookResponse{Headers: zeroValue} - h.GetHeaders() - h = &HookResponse{} - h.GetHeaders() - h = nil - h.GetHeaders() + var zeroValue int64 + g := &GlobalSecurityAdvisory{ID: &zeroValue} + g.GetID() + g = &GlobalSecurityAdvisory{} + g.GetID() + g = nil + g.GetID() } -func TestHookResponse_GetRawPayload(tt *testing.T) { +func TestGlobalSecurityAdvisory_GetNVDPublishedAt(tt *testing.T) { tt.Parallel() - var zeroValue json.RawMessage - h := &HookResponse{RawPayload: &zeroValue} - h.GetRawPayload() - h = &HookResponse{} - h.GetRawPayload() - h = nil - h.GetRawPayload() + var zeroValue Timestamp + g := &GlobalSecurityAdvisory{NVDPublishedAt: &zeroValue} + g.GetNVDPublishedAt() + g = &GlobalSecurityAdvisory{} + g.GetNVDPublishedAt() + g = nil + g.GetNVDPublishedAt() } -func TestHookStats_GetActiveHooks(tt *testing.T) { +func TestGlobalSecurityAdvisory_GetRepositoryAdvisoryURL(tt *testing.T) { tt.Parallel() - var zeroValue int - h := &HookStats{ActiveHooks: &zeroValue} - h.GetActiveHooks() - h = &HookStats{} - h.GetActiveHooks() - h = nil - h.GetActiveHooks() + var zeroValue string + g := &GlobalSecurityAdvisory{RepositoryAdvisoryURL: &zeroValue} + g.GetRepositoryAdvisoryURL() + g = &GlobalSecurityAdvisory{} + g.GetRepositoryAdvisoryURL() + g = nil + g.GetRepositoryAdvisoryURL() } -func TestHookStats_GetInactiveHooks(tt *testing.T) { +func TestGlobalSecurityAdvisory_GetSourceCodeLocation(tt *testing.T) { tt.Parallel() - var zeroValue int - h := &HookStats{InactiveHooks: &zeroValue} - h.GetInactiveHooks() - h = &HookStats{} - h.GetInactiveHooks() - h = nil - h.GetInactiveHooks() + var zeroValue string + g := &GlobalSecurityAdvisory{SourceCodeLocation: &zeroValue} + g.GetSourceCodeLocation() + g = &GlobalSecurityAdvisory{} + g.GetSourceCodeLocation() + g = nil + g.GetSourceCodeLocation() +} + +func TestGlobalSecurityAdvisory_GetType(tt *testing.T) { + tt.Parallel() + var zeroValue string + g := &GlobalSecurityAdvisory{Type: &zeroValue} + g.GetType() + g = &GlobalSecurityAdvisory{} + g.GetType() + g = nil + g.GetType() +} + +func TestGlobalSecurityVulnerability_GetFirstPatchedVersion(tt *testing.T) { + tt.Parallel() + var zeroValue string + g := &GlobalSecurityVulnerability{FirstPatchedVersion: &zeroValue} + g.GetFirstPatchedVersion() + g = &GlobalSecurityVulnerability{} + g.GetFirstPatchedVersion() + g = nil + g.GetFirstPatchedVersion() +} + +func TestGlobalSecurityVulnerability_GetPackage(tt *testing.T) { + tt.Parallel() + g := &GlobalSecurityVulnerability{} + g.GetPackage() + g = nil + g.GetPackage() +} + +func TestGlobalSecurityVulnerability_GetVulnerableVersionRange(tt *testing.T) { + tt.Parallel() + var zeroValue string + g := &GlobalSecurityVulnerability{VulnerableVersionRange: &zeroValue} + g.GetVulnerableVersionRange() + g = &GlobalSecurityVulnerability{} + g.GetVulnerableVersionRange() + g = nil + g.GetVulnerableVersionRange() +} + +func TestGollumEvent_GetInstallation(tt *testing.T) { + tt.Parallel() + g := &GollumEvent{} + g.GetInstallation() + g = nil + g.GetInstallation() +} + +func TestGollumEvent_GetOrg(tt *testing.T) { + tt.Parallel() + g := &GollumEvent{} + g.GetOrg() + g = nil + g.GetOrg() +} + +func TestGollumEvent_GetRepo(tt *testing.T) { + tt.Parallel() + g := &GollumEvent{} + g.GetRepo() + g = nil + g.GetRepo() +} + +func TestGollumEvent_GetSender(tt *testing.T) { + tt.Parallel() + g := &GollumEvent{} + g.GetSender() + g = nil + g.GetSender() +} + +func TestGPGEmail_GetEmail(tt *testing.T) { + tt.Parallel() + var zeroValue string + g := &GPGEmail{Email: &zeroValue} + g.GetEmail() + g = &GPGEmail{} + g.GetEmail() + g = nil + g.GetEmail() +} + +func TestGPGEmail_GetVerified(tt *testing.T) { + tt.Parallel() + var zeroValue bool + g := &GPGEmail{Verified: &zeroValue} + g.GetVerified() + g = &GPGEmail{} + g.GetVerified() + g = nil + g.GetVerified() +} + +func TestGPGKey_GetCanCertify(tt *testing.T) { + tt.Parallel() + var zeroValue bool + g := &GPGKey{CanCertify: &zeroValue} + g.GetCanCertify() + g = &GPGKey{} + g.GetCanCertify() + g = nil + g.GetCanCertify() +} + +func TestGPGKey_GetCanEncryptComms(tt *testing.T) { + tt.Parallel() + var zeroValue bool + g := &GPGKey{CanEncryptComms: &zeroValue} + g.GetCanEncryptComms() + g = &GPGKey{} + g.GetCanEncryptComms() + g = nil + g.GetCanEncryptComms() +} + +func TestGPGKey_GetCanEncryptStorage(tt *testing.T) { + tt.Parallel() + var zeroValue bool + g := &GPGKey{CanEncryptStorage: &zeroValue} + g.GetCanEncryptStorage() + g = &GPGKey{} + g.GetCanEncryptStorage() + g = nil + g.GetCanEncryptStorage() +} + +func TestGPGKey_GetCanSign(tt *testing.T) { + tt.Parallel() + var zeroValue bool + g := &GPGKey{CanSign: &zeroValue} + g.GetCanSign() + g = &GPGKey{} + g.GetCanSign() + g = nil + g.GetCanSign() +} + +func TestGPGKey_GetCreatedAt(tt *testing.T) { + tt.Parallel() + var zeroValue Timestamp + g := &GPGKey{CreatedAt: &zeroValue} + g.GetCreatedAt() + g = &GPGKey{} + g.GetCreatedAt() + g = nil + g.GetCreatedAt() +} + +func TestGPGKey_GetExpiresAt(tt *testing.T) { + tt.Parallel() + var zeroValue Timestamp + g := &GPGKey{ExpiresAt: &zeroValue} + g.GetExpiresAt() + g = &GPGKey{} + g.GetExpiresAt() + g = nil + g.GetExpiresAt() +} + +func TestGPGKey_GetID(tt *testing.T) { + tt.Parallel() + var zeroValue int64 + g := &GPGKey{ID: &zeroValue} + g.GetID() + g = &GPGKey{} + g.GetID() + g = nil + g.GetID() +} + +func TestGPGKey_GetKeyID(tt *testing.T) { + tt.Parallel() + var zeroValue string + g := &GPGKey{KeyID: &zeroValue} + g.GetKeyID() + g = &GPGKey{} + g.GetKeyID() + g = nil + g.GetKeyID() +} + +func TestGPGKey_GetPrimaryKeyID(tt *testing.T) { + tt.Parallel() + var zeroValue int64 + g := &GPGKey{PrimaryKeyID: &zeroValue} + g.GetPrimaryKeyID() + g = &GPGKey{} + g.GetPrimaryKeyID() + g = nil + g.GetPrimaryKeyID() +} + +func TestGPGKey_GetPublicKey(tt *testing.T) { + tt.Parallel() + var zeroValue string + g := &GPGKey{PublicKey: &zeroValue} + g.GetPublicKey() + g = &GPGKey{} + g.GetPublicKey() + g = nil + g.GetPublicKey() +} + +func TestGPGKey_GetRawKey(tt *testing.T) { + tt.Parallel() + var zeroValue string + g := &GPGKey{RawKey: &zeroValue} + g.GetRawKey() + g = &GPGKey{} + g.GetRawKey() + g = nil + g.GetRawKey() +} + +func TestGrant_GetApp(tt *testing.T) { + tt.Parallel() + g := &Grant{} + g.GetApp() + g = nil + g.GetApp() +} + +func TestGrant_GetCreatedAt(tt *testing.T) { + tt.Parallel() + var zeroValue Timestamp + g := &Grant{CreatedAt: &zeroValue} + g.GetCreatedAt() + g = &Grant{} + g.GetCreatedAt() + g = nil + g.GetCreatedAt() +} + +func TestGrant_GetID(tt *testing.T) { + tt.Parallel() + var zeroValue int64 + g := &Grant{ID: &zeroValue} + g.GetID() + g = &Grant{} + g.GetID() + g = nil + g.GetID() +} + +func TestGrant_GetUpdatedAt(tt *testing.T) { + tt.Parallel() + var zeroValue Timestamp + g := &Grant{UpdatedAt: &zeroValue} + g.GetUpdatedAt() + g = &Grant{} + g.GetUpdatedAt() + g = nil + g.GetUpdatedAt() +} + +func TestGrant_GetURL(tt *testing.T) { + tt.Parallel() + var zeroValue string + g := &Grant{URL: &zeroValue} + g.GetURL() + g = &Grant{} + g.GetURL() + g = nil + g.GetURL() +} + +func TestHeadCommit_GetAuthor(tt *testing.T) { + tt.Parallel() + h := &HeadCommit{} + h.GetAuthor() + h = nil + h.GetAuthor() +} + +func TestHeadCommit_GetCommitter(tt *testing.T) { + tt.Parallel() + h := &HeadCommit{} + h.GetCommitter() + h = nil + h.GetCommitter() +} + +func TestHeadCommit_GetDistinct(tt *testing.T) { + tt.Parallel() + var zeroValue bool + h := &HeadCommit{Distinct: &zeroValue} + h.GetDistinct() + h = &HeadCommit{} + h.GetDistinct() + h = nil + h.GetDistinct() +} + +func TestHeadCommit_GetID(tt *testing.T) { + tt.Parallel() + var zeroValue string + h := &HeadCommit{ID: &zeroValue} + h.GetID() + h = &HeadCommit{} + h.GetID() + h = nil + h.GetID() +} + +func TestHeadCommit_GetMessage(tt *testing.T) { + tt.Parallel() + var zeroValue string + h := &HeadCommit{Message: &zeroValue} + h.GetMessage() + h = &HeadCommit{} + h.GetMessage() + h = nil + h.GetMessage() +} + +func TestHeadCommit_GetSHA(tt *testing.T) { + tt.Parallel() + var zeroValue string + h := &HeadCommit{SHA: &zeroValue} + h.GetSHA() + h = &HeadCommit{} + h.GetSHA() + h = nil + h.GetSHA() +} + +func TestHeadCommit_GetTimestamp(tt *testing.T) { + tt.Parallel() + var zeroValue Timestamp + h := &HeadCommit{Timestamp: &zeroValue} + h.GetTimestamp() + h = &HeadCommit{} + h.GetTimestamp() + h = nil + h.GetTimestamp() +} + +func TestHeadCommit_GetTreeID(tt *testing.T) { + tt.Parallel() + var zeroValue string + h := &HeadCommit{TreeID: &zeroValue} + h.GetTreeID() + h = &HeadCommit{} + h.GetTreeID() + h = nil + h.GetTreeID() +} + +func TestHeadCommit_GetURL(tt *testing.T) { + tt.Parallel() + var zeroValue string + h := &HeadCommit{URL: &zeroValue} + h.GetURL() + h = &HeadCommit{} + h.GetURL() + h = nil + h.GetURL() +} + +func TestHook_GetActive(tt *testing.T) { + tt.Parallel() + var zeroValue bool + h := &Hook{Active: &zeroValue} + h.GetActive() + h = &Hook{} + h.GetActive() + h = nil + h.GetActive() +} + +func TestHook_GetConfig(tt *testing.T) { + tt.Parallel() + h := &Hook{} + h.GetConfig() + h = nil + h.GetConfig() +} + +func TestHook_GetCreatedAt(tt *testing.T) { + tt.Parallel() + var zeroValue Timestamp + h := &Hook{CreatedAt: &zeroValue} + h.GetCreatedAt() + h = &Hook{} + h.GetCreatedAt() + h = nil + h.GetCreatedAt() +} + +func TestHook_GetID(tt *testing.T) { + tt.Parallel() + var zeroValue int64 + h := &Hook{ID: &zeroValue} + h.GetID() + h = &Hook{} + h.GetID() + h = nil + h.GetID() +} + +func TestHook_GetName(tt *testing.T) { + tt.Parallel() + var zeroValue string + h := &Hook{Name: &zeroValue} + h.GetName() + h = &Hook{} + h.GetName() + h = nil + h.GetName() +} + +func TestHook_GetPingURL(tt *testing.T) { + tt.Parallel() + var zeroValue string + h := &Hook{PingURL: &zeroValue} + h.GetPingURL() + h = &Hook{} + h.GetPingURL() + h = nil + h.GetPingURL() +} + +func TestHook_GetTestURL(tt *testing.T) { + tt.Parallel() + var zeroValue string + h := &Hook{TestURL: &zeroValue} + h.GetTestURL() + h = &Hook{} + h.GetTestURL() + h = nil + h.GetTestURL() +} + +func TestHook_GetType(tt *testing.T) { + tt.Parallel() + var zeroValue string + h := &Hook{Type: &zeroValue} + h.GetType() + h = &Hook{} + h.GetType() + h = nil + h.GetType() +} + +func TestHook_GetUpdatedAt(tt *testing.T) { + tt.Parallel() + var zeroValue Timestamp + h := &Hook{UpdatedAt: &zeroValue} + h.GetUpdatedAt() + h = &Hook{} + h.GetUpdatedAt() + h = nil + h.GetUpdatedAt() +} + +func TestHook_GetURL(tt *testing.T) { + tt.Parallel() + var zeroValue string + h := &Hook{URL: &zeroValue} + h.GetURL() + h = &Hook{} + h.GetURL() + h = nil + h.GetURL() +} + +func TestHookConfig_GetContentType(tt *testing.T) { + tt.Parallel() + var zeroValue string + h := &HookConfig{ContentType: &zeroValue} + h.GetContentType() + h = &HookConfig{} + h.GetContentType() + h = nil + h.GetContentType() +} + +func TestHookConfig_GetInsecureSSL(tt *testing.T) { + tt.Parallel() + var zeroValue string + h := &HookConfig{InsecureSSL: &zeroValue} + h.GetInsecureSSL() + h = &HookConfig{} + h.GetInsecureSSL() + h = nil + h.GetInsecureSSL() +} + +func TestHookConfig_GetSecret(tt *testing.T) { + tt.Parallel() + var zeroValue string + h := &HookConfig{Secret: &zeroValue} + h.GetSecret() + h = &HookConfig{} + h.GetSecret() + h = nil + h.GetSecret() +} + +func TestHookConfig_GetURL(tt *testing.T) { + tt.Parallel() + var zeroValue string + h := &HookConfig{URL: &zeroValue} + h.GetURL() + h = &HookConfig{} + h.GetURL() + h = nil + h.GetURL() +} + +func TestHookDelivery_GetAction(tt *testing.T) { + tt.Parallel() + var zeroValue string + h := &HookDelivery{Action: &zeroValue} + h.GetAction() + h = &HookDelivery{} + h.GetAction() + h = nil + h.GetAction() +} + +func TestHookDelivery_GetDeliveredAt(tt *testing.T) { + tt.Parallel() + var zeroValue Timestamp + h := &HookDelivery{DeliveredAt: &zeroValue} + h.GetDeliveredAt() + h = &HookDelivery{} + h.GetDeliveredAt() + h = nil + h.GetDeliveredAt() +} + +func TestHookDelivery_GetDuration(tt *testing.T) { + tt.Parallel() + h := &HookDelivery{} + h.GetDuration() + h = nil + h.GetDuration() +} + +func TestHookDelivery_GetEvent(tt *testing.T) { + tt.Parallel() + var zeroValue string + h := &HookDelivery{Event: &zeroValue} + h.GetEvent() + h = &HookDelivery{} + h.GetEvent() + h = nil + h.GetEvent() +} + +func TestHookDelivery_GetGUID(tt *testing.T) { + tt.Parallel() + var zeroValue string + h := &HookDelivery{GUID: &zeroValue} + h.GetGUID() + h = &HookDelivery{} + h.GetGUID() + h = nil + h.GetGUID() +} + +func TestHookDelivery_GetID(tt *testing.T) { + tt.Parallel() + var zeroValue int64 + h := &HookDelivery{ID: &zeroValue} + h.GetID() + h = &HookDelivery{} + h.GetID() + h = nil + h.GetID() +} + +func TestHookDelivery_GetInstallationID(tt *testing.T) { + tt.Parallel() + var zeroValue int64 + h := &HookDelivery{InstallationID: &zeroValue} + h.GetInstallationID() + h = &HookDelivery{} + h.GetInstallationID() + h = nil + h.GetInstallationID() +} + +func TestHookDelivery_GetRedelivery(tt *testing.T) { + tt.Parallel() + var zeroValue bool + h := &HookDelivery{Redelivery: &zeroValue} + h.GetRedelivery() + h = &HookDelivery{} + h.GetRedelivery() + h = nil + h.GetRedelivery() +} + +func TestHookDelivery_GetRepositoryID(tt *testing.T) { + tt.Parallel() + var zeroValue int64 + h := &HookDelivery{RepositoryID: &zeroValue} + h.GetRepositoryID() + h = &HookDelivery{} + h.GetRepositoryID() + h = nil + h.GetRepositoryID() +} + +func TestHookDelivery_GetRequest(tt *testing.T) { + tt.Parallel() + h := &HookDelivery{} + h.GetRequest() + h = nil + h.GetRequest() +} + +func TestHookDelivery_GetResponse(tt *testing.T) { + tt.Parallel() + h := &HookDelivery{} + h.GetResponse() + h = nil + h.GetResponse() +} + +func TestHookDelivery_GetStatus(tt *testing.T) { + tt.Parallel() + var zeroValue string + h := &HookDelivery{Status: &zeroValue} + h.GetStatus() + h = &HookDelivery{} + h.GetStatus() + h = nil + h.GetStatus() +} + +func TestHookDelivery_GetStatusCode(tt *testing.T) { + tt.Parallel() + var zeroValue int + h := &HookDelivery{StatusCode: &zeroValue} + h.GetStatusCode() + h = &HookDelivery{} + h.GetStatusCode() + h = nil + h.GetStatusCode() +} + +func TestHookRequest_GetHeaders(tt *testing.T) { + tt.Parallel() + zeroValue := map[string]string{} + h := &HookRequest{Headers: zeroValue} + h.GetHeaders() + h = &HookRequest{} + h.GetHeaders() + h = nil + h.GetHeaders() +} + +func TestHookRequest_GetRawPayload(tt *testing.T) { + tt.Parallel() + var zeroValue json.RawMessage + h := &HookRequest{RawPayload: &zeroValue} + h.GetRawPayload() + h = &HookRequest{} + h.GetRawPayload() + h = nil + h.GetRawPayload() +} + +func TestHookResponse_GetHeaders(tt *testing.T) { + tt.Parallel() + zeroValue := map[string]string{} + h := &HookResponse{Headers: zeroValue} + h.GetHeaders() + h = &HookResponse{} + h.GetHeaders() + h = nil + h.GetHeaders() +} + +func TestHookResponse_GetRawPayload(tt *testing.T) { + tt.Parallel() + var zeroValue json.RawMessage + h := &HookResponse{RawPayload: &zeroValue} + h.GetRawPayload() + h = &HookResponse{} + h.GetRawPayload() + h = nil + h.GetRawPayload() +} + +func TestHookStats_GetActiveHooks(tt *testing.T) { + tt.Parallel() + var zeroValue int + h := &HookStats{ActiveHooks: &zeroValue} + h.GetActiveHooks() + h = &HookStats{} + h.GetActiveHooks() + h = nil + h.GetActiveHooks() +} + +func TestHookStats_GetInactiveHooks(tt *testing.T) { + tt.Parallel() + var zeroValue int + h := &HookStats{InactiveHooks: &zeroValue} + h.GetInactiveHooks() + h = &HookStats{} + h.GetInactiveHooks() + h = nil + h.GetInactiveHooks() +} + +func TestHookStats_GetTotalHooks(tt *testing.T) { + tt.Parallel() + var zeroValue int + h := &HookStats{TotalHooks: &zeroValue} + h.GetTotalHooks() + h = &HookStats{} + h.GetTotalHooks() + h = nil + h.GetTotalHooks() +} + +func TestIDPGroup_GetGroupDescription(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &IDPGroup{GroupDescription: &zeroValue} + i.GetGroupDescription() + i = &IDPGroup{} + i.GetGroupDescription() + i = nil + i.GetGroupDescription() +} + +func TestIDPGroup_GetGroupID(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &IDPGroup{GroupID: &zeroValue} + i.GetGroupID() + i = &IDPGroup{} + i.GetGroupID() + i = nil + i.GetGroupID() +} + +func TestIDPGroup_GetGroupName(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &IDPGroup{GroupName: &zeroValue} + i.GetGroupName() + i = &IDPGroup{} + i.GetGroupName() + i = nil + i.GetGroupName() +} + +func TestImport_GetAuthorsCount(tt *testing.T) { + tt.Parallel() + var zeroValue int + i := &Import{AuthorsCount: &zeroValue} + i.GetAuthorsCount() + i = &Import{} + i.GetAuthorsCount() + i = nil + i.GetAuthorsCount() +} + +func TestImport_GetAuthorsURL(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &Import{AuthorsURL: &zeroValue} + i.GetAuthorsURL() + i = &Import{} + i.GetAuthorsURL() + i = nil + i.GetAuthorsURL() +} + +func TestImport_GetCommitCount(tt *testing.T) { + tt.Parallel() + var zeroValue int + i := &Import{CommitCount: &zeroValue} + i.GetCommitCount() + i = &Import{} + i.GetCommitCount() + i = nil + i.GetCommitCount() +} + +func TestImport_GetFailedStep(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &Import{FailedStep: &zeroValue} + i.GetFailedStep() + i = &Import{} + i.GetFailedStep() + i = nil + i.GetFailedStep() +} + +func TestImport_GetHasLargeFiles(tt *testing.T) { + tt.Parallel() + var zeroValue bool + i := &Import{HasLargeFiles: &zeroValue} + i.GetHasLargeFiles() + i = &Import{} + i.GetHasLargeFiles() + i = nil + i.GetHasLargeFiles() +} + +func TestImport_GetHTMLURL(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &Import{HTMLURL: &zeroValue} + i.GetHTMLURL() + i = &Import{} + i.GetHTMLURL() + i = nil + i.GetHTMLURL() +} + +func TestImport_GetHumanName(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &Import{HumanName: &zeroValue} + i.GetHumanName() + i = &Import{} + i.GetHumanName() + i = nil + i.GetHumanName() +} + +func TestImport_GetLargeFilesCount(tt *testing.T) { + tt.Parallel() + var zeroValue int + i := &Import{LargeFilesCount: &zeroValue} + i.GetLargeFilesCount() + i = &Import{} + i.GetLargeFilesCount() + i = nil + i.GetLargeFilesCount() +} + +func TestImport_GetLargeFilesSize(tt *testing.T) { + tt.Parallel() + var zeroValue int + i := &Import{LargeFilesSize: &zeroValue} + i.GetLargeFilesSize() + i = &Import{} + i.GetLargeFilesSize() + i = nil + i.GetLargeFilesSize() +} + +func TestImport_GetMessage(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &Import{Message: &zeroValue} + i.GetMessage() + i = &Import{} + i.GetMessage() + i = nil + i.GetMessage() +} + +func TestImport_GetPercent(tt *testing.T) { + tt.Parallel() + var zeroValue int + i := &Import{Percent: &zeroValue} + i.GetPercent() + i = &Import{} + i.GetPercent() + i = nil + i.GetPercent() +} + +func TestImport_GetPushPercent(tt *testing.T) { + tt.Parallel() + var zeroValue int + i := &Import{PushPercent: &zeroValue} + i.GetPushPercent() + i = &Import{} + i.GetPushPercent() + i = nil + i.GetPushPercent() +} + +func TestImport_GetRepositoryURL(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &Import{RepositoryURL: &zeroValue} + i.GetRepositoryURL() + i = &Import{} + i.GetRepositoryURL() + i = nil + i.GetRepositoryURL() +} + +func TestImport_GetStatus(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &Import{Status: &zeroValue} + i.GetStatus() + i = &Import{} + i.GetStatus() + i = nil + i.GetStatus() +} + +func TestImport_GetStatusText(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &Import{StatusText: &zeroValue} + i.GetStatusText() + i = &Import{} + i.GetStatusText() + i = nil + i.GetStatusText() +} + +func TestImport_GetTFVCProject(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &Import{TFVCProject: &zeroValue} + i.GetTFVCProject() + i = &Import{} + i.GetTFVCProject() + i = nil + i.GetTFVCProject() +} + +func TestImport_GetURL(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &Import{URL: &zeroValue} + i.GetURL() + i = &Import{} + i.GetURL() + i = nil + i.GetURL() +} + +func TestImport_GetUseLFS(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &Import{UseLFS: &zeroValue} + i.GetUseLFS() + i = &Import{} + i.GetUseLFS() + i = nil + i.GetUseLFS() +} + +func TestImport_GetVCS(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &Import{VCS: &zeroValue} + i.GetVCS() + i = &Import{} + i.GetVCS() + i = nil + i.GetVCS() +} + +func TestImport_GetVCSPassword(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &Import{VCSPassword: &zeroValue} + i.GetVCSPassword() + i = &Import{} + i.GetVCSPassword() + i = nil + i.GetVCSPassword() +} + +func TestImport_GetVCSURL(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &Import{VCSURL: &zeroValue} + i.GetVCSURL() + i = &Import{} + i.GetVCSURL() + i = nil + i.GetVCSURL() +} + +func TestImport_GetVCSUsername(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &Import{VCSUsername: &zeroValue} + i.GetVCSUsername() + i = &Import{} + i.GetVCSUsername() + i = nil + i.GetVCSUsername() +} + +func TestInstallation_GetAccessTokensURL(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &Installation{AccessTokensURL: &zeroValue} + i.GetAccessTokensURL() + i = &Installation{} + i.GetAccessTokensURL() + i = nil + i.GetAccessTokensURL() +} + +func TestInstallation_GetAccount(tt *testing.T) { + tt.Parallel() + i := &Installation{} + i.GetAccount() + i = nil + i.GetAccount() +} + +func TestInstallation_GetAppID(tt *testing.T) { + tt.Parallel() + var zeroValue int64 + i := &Installation{AppID: &zeroValue} + i.GetAppID() + i = &Installation{} + i.GetAppID() + i = nil + i.GetAppID() +} + +func TestInstallation_GetAppSlug(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &Installation{AppSlug: &zeroValue} + i.GetAppSlug() + i = &Installation{} + i.GetAppSlug() + i = nil + i.GetAppSlug() +} + +func TestInstallation_GetCreatedAt(tt *testing.T) { + tt.Parallel() + var zeroValue Timestamp + i := &Installation{CreatedAt: &zeroValue} + i.GetCreatedAt() + i = &Installation{} + i.GetCreatedAt() + i = nil + i.GetCreatedAt() +} + +func TestInstallation_GetHasMultipleSingleFiles(tt *testing.T) { + tt.Parallel() + var zeroValue bool + i := &Installation{HasMultipleSingleFiles: &zeroValue} + i.GetHasMultipleSingleFiles() + i = &Installation{} + i.GetHasMultipleSingleFiles() + i = nil + i.GetHasMultipleSingleFiles() +} + +func TestInstallation_GetHTMLURL(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &Installation{HTMLURL: &zeroValue} + i.GetHTMLURL() + i = &Installation{} + i.GetHTMLURL() + i = nil + i.GetHTMLURL() +} + +func TestInstallation_GetID(tt *testing.T) { + tt.Parallel() + var zeroValue int64 + i := &Installation{ID: &zeroValue} + i.GetID() + i = &Installation{} + i.GetID() + i = nil + i.GetID() +} + +func TestInstallation_GetNodeID(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &Installation{NodeID: &zeroValue} + i.GetNodeID() + i = &Installation{} + i.GetNodeID() + i = nil + i.GetNodeID() +} + +func TestInstallation_GetPermissions(tt *testing.T) { + tt.Parallel() + i := &Installation{} + i.GetPermissions() + i = nil + i.GetPermissions() +} + +func TestInstallation_GetRepositoriesURL(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &Installation{RepositoriesURL: &zeroValue} + i.GetRepositoriesURL() + i = &Installation{} + i.GetRepositoriesURL() + i = nil + i.GetRepositoriesURL() +} + +func TestInstallation_GetRepositorySelection(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &Installation{RepositorySelection: &zeroValue} + i.GetRepositorySelection() + i = &Installation{} + i.GetRepositorySelection() + i = nil + i.GetRepositorySelection() +} + +func TestInstallation_GetSingleFileName(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &Installation{SingleFileName: &zeroValue} + i.GetSingleFileName() + i = &Installation{} + i.GetSingleFileName() + i = nil + i.GetSingleFileName() +} + +func TestInstallation_GetSuspendedAt(tt *testing.T) { + tt.Parallel() + var zeroValue Timestamp + i := &Installation{SuspendedAt: &zeroValue} + i.GetSuspendedAt() + i = &Installation{} + i.GetSuspendedAt() + i = nil + i.GetSuspendedAt() +} + +func TestInstallation_GetSuspendedBy(tt *testing.T) { + tt.Parallel() + i := &Installation{} + i.GetSuspendedBy() + i = nil + i.GetSuspendedBy() +} + +func TestInstallation_GetTargetID(tt *testing.T) { + tt.Parallel() + var zeroValue int64 + i := &Installation{TargetID: &zeroValue} + i.GetTargetID() + i = &Installation{} + i.GetTargetID() + i = nil + i.GetTargetID() +} + +func TestInstallation_GetTargetType(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &Installation{TargetType: &zeroValue} + i.GetTargetType() + i = &Installation{} + i.GetTargetType() + i = nil + i.GetTargetType() +} + +func TestInstallation_GetUpdatedAt(tt *testing.T) { + tt.Parallel() + var zeroValue Timestamp + i := &Installation{UpdatedAt: &zeroValue} + i.GetUpdatedAt() + i = &Installation{} + i.GetUpdatedAt() + i = nil + i.GetUpdatedAt() +} + +func TestInstallationChanges_GetLogin(tt *testing.T) { + tt.Parallel() + i := &InstallationChanges{} + i.GetLogin() + i = nil + i.GetLogin() +} + +func TestInstallationChanges_GetSlug(tt *testing.T) { + tt.Parallel() + i := &InstallationChanges{} + i.GetSlug() + i = nil + i.GetSlug() +} + +func TestInstallationEvent_GetAction(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &InstallationEvent{Action: &zeroValue} + i.GetAction() + i = &InstallationEvent{} + i.GetAction() + i = nil + i.GetAction() } -func TestHookStats_GetTotalHooks(tt *testing.T) { +func TestInstallationEvent_GetInstallation(tt *testing.T) { tt.Parallel() - var zeroValue int - h := &HookStats{TotalHooks: &zeroValue} - h.GetTotalHooks() - h = &HookStats{} - h.GetTotalHooks() - h = nil - h.GetTotalHooks() + i := &InstallationEvent{} + i.GetInstallation() + i = nil + i.GetInstallation() } -func TestIDPGroup_GetGroupDescription(tt *testing.T) { +func TestInstallationEvent_GetOrg(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &IDPGroup{GroupDescription: &zeroValue} - i.GetGroupDescription() - i = &IDPGroup{} - i.GetGroupDescription() + i := &InstallationEvent{} + i.GetOrg() i = nil - i.GetGroupDescription() + i.GetOrg() } -func TestIDPGroup_GetGroupID(tt *testing.T) { +func TestInstallationEvent_GetRequester(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &IDPGroup{GroupID: &zeroValue} - i.GetGroupID() - i = &IDPGroup{} - i.GetGroupID() + i := &InstallationEvent{} + i.GetRequester() i = nil - i.GetGroupID() + i.GetRequester() } -func TestIDPGroup_GetGroupName(tt *testing.T) { +func TestInstallationEvent_GetSender(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &IDPGroup{GroupName: &zeroValue} - i.GetGroupName() - i = &IDPGroup{} - i.GetGroupName() + i := &InstallationEvent{} + i.GetSender() i = nil - i.GetGroupName() + i.GetSender() } -func TestImport_GetAuthorsCount(tt *testing.T) { +func TestInstallationLoginChange_GetFrom(tt *testing.T) { tt.Parallel() - var zeroValue int - i := &Import{AuthorsCount: &zeroValue} - i.GetAuthorsCount() - i = &Import{} - i.GetAuthorsCount() + var zeroValue string + i := &InstallationLoginChange{From: &zeroValue} + i.GetFrom() + i = &InstallationLoginChange{} + i.GetFrom() i = nil - i.GetAuthorsCount() + i.GetFrom() } -func TestImport_GetAuthorsURL(tt *testing.T) { +func TestInstallationPermissions_GetActions(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Import{AuthorsURL: &zeroValue} - i.GetAuthorsURL() - i = &Import{} - i.GetAuthorsURL() + i := &InstallationPermissions{Actions: &zeroValue} + i.GetActions() + i = &InstallationPermissions{} + i.GetActions() i = nil - i.GetAuthorsURL() + i.GetActions() } -func TestImport_GetCommitCount(tt *testing.T) { +func TestInstallationPermissions_GetActionsVariables(tt *testing.T) { tt.Parallel() - var zeroValue int - i := &Import{CommitCount: &zeroValue} - i.GetCommitCount() - i = &Import{} - i.GetCommitCount() + var zeroValue string + i := &InstallationPermissions{ActionsVariables: &zeroValue} + i.GetActionsVariables() + i = &InstallationPermissions{} + i.GetActionsVariables() i = nil - i.GetCommitCount() + i.GetActionsVariables() } -func TestImport_GetFailedStep(tt *testing.T) { +func TestInstallationPermissions_GetAdministration(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Import{FailedStep: &zeroValue} - i.GetFailedStep() - i = &Import{} - i.GetFailedStep() + i := &InstallationPermissions{Administration: &zeroValue} + i.GetAdministration() + i = &InstallationPermissions{} + i.GetAdministration() i = nil - i.GetFailedStep() + i.GetAdministration() } -func TestImport_GetHasLargeFiles(tt *testing.T) { +func TestInstallationPermissions_GetAttestations(tt *testing.T) { tt.Parallel() - var zeroValue bool - i := &Import{HasLargeFiles: &zeroValue} - i.GetHasLargeFiles() - i = &Import{} - i.GetHasLargeFiles() + var zeroValue string + i := &InstallationPermissions{Attestations: &zeroValue} + i.GetAttestations() + i = &InstallationPermissions{} + i.GetAttestations() i = nil - i.GetHasLargeFiles() + i.GetAttestations() } -func TestImport_GetHTMLURL(tt *testing.T) { +func TestInstallationPermissions_GetBlocking(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Import{HTMLURL: &zeroValue} - i.GetHTMLURL() - i = &Import{} - i.GetHTMLURL() + i := &InstallationPermissions{Blocking: &zeroValue} + i.GetBlocking() + i = &InstallationPermissions{} + i.GetBlocking() i = nil - i.GetHTMLURL() + i.GetBlocking() } -func TestImport_GetHumanName(tt *testing.T) { +func TestInstallationPermissions_GetChecks(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Import{HumanName: &zeroValue} - i.GetHumanName() - i = &Import{} - i.GetHumanName() + i := &InstallationPermissions{Checks: &zeroValue} + i.GetChecks() + i = &InstallationPermissions{} + i.GetChecks() i = nil - i.GetHumanName() + i.GetChecks() } -func TestImport_GetLargeFilesCount(tt *testing.T) { +func TestInstallationPermissions_GetCodespaces(tt *testing.T) { tt.Parallel() - var zeroValue int - i := &Import{LargeFilesCount: &zeroValue} - i.GetLargeFilesCount() - i = &Import{} - i.GetLargeFilesCount() + var zeroValue string + i := &InstallationPermissions{Codespaces: &zeroValue} + i.GetCodespaces() + i = &InstallationPermissions{} + i.GetCodespaces() i = nil - i.GetLargeFilesCount() + i.GetCodespaces() } -func TestImport_GetLargeFilesSize(tt *testing.T) { +func TestInstallationPermissions_GetCodespacesLifecycleAdmin(tt *testing.T) { tt.Parallel() - var zeroValue int - i := &Import{LargeFilesSize: &zeroValue} - i.GetLargeFilesSize() - i = &Import{} - i.GetLargeFilesSize() + var zeroValue string + i := &InstallationPermissions{CodespacesLifecycleAdmin: &zeroValue} + i.GetCodespacesLifecycleAdmin() + i = &InstallationPermissions{} + i.GetCodespacesLifecycleAdmin() i = nil - i.GetLargeFilesSize() + i.GetCodespacesLifecycleAdmin() } -func TestImport_GetMessage(tt *testing.T) { +func TestInstallationPermissions_GetCodespacesMetadata(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Import{Message: &zeroValue} - i.GetMessage() - i = &Import{} - i.GetMessage() + i := &InstallationPermissions{CodespacesMetadata: &zeroValue} + i.GetCodespacesMetadata() + i = &InstallationPermissions{} + i.GetCodespacesMetadata() i = nil - i.GetMessage() + i.GetCodespacesMetadata() } -func TestImport_GetPercent(tt *testing.T) { +func TestInstallationPermissions_GetCodespacesSecrets(tt *testing.T) { tt.Parallel() - var zeroValue int - i := &Import{Percent: &zeroValue} - i.GetPercent() - i = &Import{} - i.GetPercent() + var zeroValue string + i := &InstallationPermissions{CodespacesSecrets: &zeroValue} + i.GetCodespacesSecrets() + i = &InstallationPermissions{} + i.GetCodespacesSecrets() i = nil - i.GetPercent() + i.GetCodespacesSecrets() } -func TestImport_GetPushPercent(tt *testing.T) { +func TestInstallationPermissions_GetCodespacesUserSecrets(tt *testing.T) { tt.Parallel() - var zeroValue int - i := &Import{PushPercent: &zeroValue} - i.GetPushPercent() - i = &Import{} - i.GetPushPercent() + var zeroValue string + i := &InstallationPermissions{CodespacesUserSecrets: &zeroValue} + i.GetCodespacesUserSecrets() + i = &InstallationPermissions{} + i.GetCodespacesUserSecrets() i = nil - i.GetPushPercent() + i.GetCodespacesUserSecrets() } -func TestImport_GetRepositoryURL(tt *testing.T) { +func TestInstallationPermissions_GetContentReferences(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Import{RepositoryURL: &zeroValue} - i.GetRepositoryURL() - i = &Import{} - i.GetRepositoryURL() + i := &InstallationPermissions{ContentReferences: &zeroValue} + i.GetContentReferences() + i = &InstallationPermissions{} + i.GetContentReferences() i = nil - i.GetRepositoryURL() + i.GetContentReferences() } -func TestImport_GetStatus(tt *testing.T) { +func TestInstallationPermissions_GetContents(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Import{Status: &zeroValue} - i.GetStatus() - i = &Import{} - i.GetStatus() + i := &InstallationPermissions{Contents: &zeroValue} + i.GetContents() + i = &InstallationPermissions{} + i.GetContents() i = nil - i.GetStatus() + i.GetContents() } -func TestImport_GetStatusText(tt *testing.T) { +func TestInstallationPermissions_GetCopilotMessages(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Import{StatusText: &zeroValue} - i.GetStatusText() - i = &Import{} - i.GetStatusText() + i := &InstallationPermissions{CopilotMessages: &zeroValue} + i.GetCopilotMessages() + i = &InstallationPermissions{} + i.GetCopilotMessages() i = nil - i.GetStatusText() + i.GetCopilotMessages() } -func TestImport_GetTFVCProject(tt *testing.T) { +func TestInstallationPermissions_GetDependabotSecrets(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Import{TFVCProject: &zeroValue} - i.GetTFVCProject() - i = &Import{} - i.GetTFVCProject() + i := &InstallationPermissions{DependabotSecrets: &zeroValue} + i.GetDependabotSecrets() + i = &InstallationPermissions{} + i.GetDependabotSecrets() i = nil - i.GetTFVCProject() + i.GetDependabotSecrets() } -func TestImport_GetURL(tt *testing.T) { +func TestInstallationPermissions_GetDeployments(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Import{URL: &zeroValue} - i.GetURL() - i = &Import{} - i.GetURL() + i := &InstallationPermissions{Deployments: &zeroValue} + i.GetDeployments() + i = &InstallationPermissions{} + i.GetDeployments() i = nil - i.GetURL() + i.GetDeployments() } -func TestImport_GetUseLFS(tt *testing.T) { +func TestInstallationPermissions_GetDiscussions(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Import{UseLFS: &zeroValue} - i.GetUseLFS() - i = &Import{} - i.GetUseLFS() + i := &InstallationPermissions{Discussions: &zeroValue} + i.GetDiscussions() + i = &InstallationPermissions{} + i.GetDiscussions() i = nil - i.GetUseLFS() + i.GetDiscussions() } -func TestImport_GetVCS(tt *testing.T) { +func TestInstallationPermissions_GetEmails(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Import{VCS: &zeroValue} - i.GetVCS() - i = &Import{} - i.GetVCS() + i := &InstallationPermissions{Emails: &zeroValue} + i.GetEmails() + i = &InstallationPermissions{} + i.GetEmails() i = nil - i.GetVCS() + i.GetEmails() } -func TestImport_GetVCSPassword(tt *testing.T) { +func TestInstallationPermissions_GetEnvironments(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Import{VCSPassword: &zeroValue} - i.GetVCSPassword() - i = &Import{} - i.GetVCSPassword() + i := &InstallationPermissions{Environments: &zeroValue} + i.GetEnvironments() + i = &InstallationPermissions{} + i.GetEnvironments() i = nil - i.GetVCSPassword() + i.GetEnvironments() } -func TestImport_GetVCSURL(tt *testing.T) { +func TestInstallationPermissions_GetFollowers(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Import{VCSURL: &zeroValue} - i.GetVCSURL() - i = &Import{} - i.GetVCSURL() + i := &InstallationPermissions{Followers: &zeroValue} + i.GetFollowers() + i = &InstallationPermissions{} + i.GetFollowers() i = nil - i.GetVCSURL() + i.GetFollowers() } -func TestImport_GetVCSUsername(tt *testing.T) { +func TestInstallationPermissions_GetGists(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Import{VCSUsername: &zeroValue} - i.GetVCSUsername() - i = &Import{} - i.GetVCSUsername() + i := &InstallationPermissions{Gists: &zeroValue} + i.GetGists() + i = &InstallationPermissions{} + i.GetGists() i = nil - i.GetVCSUsername() + i.GetGists() } -func TestInstallation_GetAccessTokensURL(tt *testing.T) { +func TestInstallationPermissions_GetGitSigningSSHPublicKeys(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Installation{AccessTokensURL: &zeroValue} - i.GetAccessTokensURL() - i = &Installation{} - i.GetAccessTokensURL() + i := &InstallationPermissions{GitSigningSSHPublicKeys: &zeroValue} + i.GetGitSigningSSHPublicKeys() + i = &InstallationPermissions{} + i.GetGitSigningSSHPublicKeys() i = nil - i.GetAccessTokensURL() + i.GetGitSigningSSHPublicKeys() } -func TestInstallation_GetAccount(tt *testing.T) { +func TestInstallationPermissions_GetGPGKeys(tt *testing.T) { tt.Parallel() - i := &Installation{} - i.GetAccount() + var zeroValue string + i := &InstallationPermissions{GPGKeys: &zeroValue} + i.GetGPGKeys() + i = &InstallationPermissions{} + i.GetGPGKeys() i = nil - i.GetAccount() + i.GetGPGKeys() } -func TestInstallation_GetAppID(tt *testing.T) { +func TestInstallationPermissions_GetInteractionLimits(tt *testing.T) { tt.Parallel() - var zeroValue int64 - i := &Installation{AppID: &zeroValue} - i.GetAppID() - i = &Installation{} - i.GetAppID() + var zeroValue string + i := &InstallationPermissions{InteractionLimits: &zeroValue} + i.GetInteractionLimits() + i = &InstallationPermissions{} + i.GetInteractionLimits() i = nil - i.GetAppID() + i.GetInteractionLimits() } -func TestInstallation_GetAppSlug(tt *testing.T) { +func TestInstallationPermissions_GetIssues(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Installation{AppSlug: &zeroValue} - i.GetAppSlug() - i = &Installation{} - i.GetAppSlug() + i := &InstallationPermissions{Issues: &zeroValue} + i.GetIssues() + i = &InstallationPermissions{} + i.GetIssues() i = nil - i.GetAppSlug() + i.GetIssues() } -func TestInstallation_GetCreatedAt(tt *testing.T) { +func TestInstallationPermissions_GetKeys(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - i := &Installation{CreatedAt: &zeroValue} - i.GetCreatedAt() - i = &Installation{} - i.GetCreatedAt() + var zeroValue string + i := &InstallationPermissions{Keys: &zeroValue} + i.GetKeys() + i = &InstallationPermissions{} + i.GetKeys() i = nil - i.GetCreatedAt() + i.GetKeys() } -func TestInstallation_GetHasMultipleSingleFiles(tt *testing.T) { +func TestInstallationPermissions_GetMembers(tt *testing.T) { tt.Parallel() - var zeroValue bool - i := &Installation{HasMultipleSingleFiles: &zeroValue} - i.GetHasMultipleSingleFiles() - i = &Installation{} - i.GetHasMultipleSingleFiles() + var zeroValue string + i := &InstallationPermissions{Members: &zeroValue} + i.GetMembers() + i = &InstallationPermissions{} + i.GetMembers() i = nil - i.GetHasMultipleSingleFiles() + i.GetMembers() } -func TestInstallation_GetHTMLURL(tt *testing.T) { +func TestInstallationPermissions_GetMergeQueues(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Installation{HTMLURL: &zeroValue} - i.GetHTMLURL() - i = &Installation{} - i.GetHTMLURL() + i := &InstallationPermissions{MergeQueues: &zeroValue} + i.GetMergeQueues() + i = &InstallationPermissions{} + i.GetMergeQueues() i = nil - i.GetHTMLURL() + i.GetMergeQueues() } -func TestInstallation_GetID(tt *testing.T) { +func TestInstallationPermissions_GetMetadata(tt *testing.T) { tt.Parallel() - var zeroValue int64 - i := &Installation{ID: &zeroValue} - i.GetID() - i = &Installation{} - i.GetID() + var zeroValue string + i := &InstallationPermissions{Metadata: &zeroValue} + i.GetMetadata() + i = &InstallationPermissions{} + i.GetMetadata() i = nil - i.GetID() + i.GetMetadata() } -func TestInstallation_GetNodeID(tt *testing.T) { +func TestInstallationPermissions_GetOrganizationActionsVariables(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Installation{NodeID: &zeroValue} - i.GetNodeID() - i = &Installation{} - i.GetNodeID() + i := &InstallationPermissions{OrganizationActionsVariables: &zeroValue} + i.GetOrganizationActionsVariables() + i = &InstallationPermissions{} + i.GetOrganizationActionsVariables() i = nil - i.GetNodeID() + i.GetOrganizationActionsVariables() } -func TestInstallation_GetPermissions(tt *testing.T) { +func TestInstallationPermissions_GetOrganizationAdministration(tt *testing.T) { tt.Parallel() - i := &Installation{} - i.GetPermissions() + var zeroValue string + i := &InstallationPermissions{OrganizationAdministration: &zeroValue} + i.GetOrganizationAdministration() + i = &InstallationPermissions{} + i.GetOrganizationAdministration() i = nil - i.GetPermissions() + i.GetOrganizationAdministration() } -func TestInstallation_GetRepositoriesURL(tt *testing.T) { +func TestInstallationPermissions_GetOrganizationAnnouncementBanners(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Installation{RepositoriesURL: &zeroValue} - i.GetRepositoriesURL() - i = &Installation{} - i.GetRepositoriesURL() + i := &InstallationPermissions{OrganizationAnnouncementBanners: &zeroValue} + i.GetOrganizationAnnouncementBanners() + i = &InstallationPermissions{} + i.GetOrganizationAnnouncementBanners() i = nil - i.GetRepositoriesURL() + i.GetOrganizationAnnouncementBanners() } -func TestInstallation_GetRepositorySelection(tt *testing.T) { +func TestInstallationPermissions_GetOrganizationAPIInsights(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Installation{RepositorySelection: &zeroValue} - i.GetRepositorySelection() - i = &Installation{} - i.GetRepositorySelection() + i := &InstallationPermissions{OrganizationAPIInsights: &zeroValue} + i.GetOrganizationAPIInsights() + i = &InstallationPermissions{} + i.GetOrganizationAPIInsights() i = nil - i.GetRepositorySelection() + i.GetOrganizationAPIInsights() } -func TestInstallation_GetSingleFileName(tt *testing.T) { +func TestInstallationPermissions_GetOrganizationCodespaces(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Installation{SingleFileName: &zeroValue} - i.GetSingleFileName() - i = &Installation{} - i.GetSingleFileName() + i := &InstallationPermissions{OrganizationCodespaces: &zeroValue} + i.GetOrganizationCodespaces() + i = &InstallationPermissions{} + i.GetOrganizationCodespaces() i = nil - i.GetSingleFileName() + i.GetOrganizationCodespaces() } -func TestInstallation_GetSuspendedAt(tt *testing.T) { +func TestInstallationPermissions_GetOrganizationCodespacesSecrets(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - i := &Installation{SuspendedAt: &zeroValue} - i.GetSuspendedAt() - i = &Installation{} - i.GetSuspendedAt() + var zeroValue string + i := &InstallationPermissions{OrganizationCodespacesSecrets: &zeroValue} + i.GetOrganizationCodespacesSecrets() + i = &InstallationPermissions{} + i.GetOrganizationCodespacesSecrets() i = nil - i.GetSuspendedAt() + i.GetOrganizationCodespacesSecrets() } -func TestInstallation_GetSuspendedBy(tt *testing.T) { +func TestInstallationPermissions_GetOrganizationCodespacesSettings(tt *testing.T) { tt.Parallel() - i := &Installation{} - i.GetSuspendedBy() + var zeroValue string + i := &InstallationPermissions{OrganizationCodespacesSettings: &zeroValue} + i.GetOrganizationCodespacesSettings() + i = &InstallationPermissions{} + i.GetOrganizationCodespacesSettings() i = nil - i.GetSuspendedBy() + i.GetOrganizationCodespacesSettings() } -func TestInstallation_GetTargetID(tt *testing.T) { +func TestInstallationPermissions_GetOrganizationCopilotSeatManagement(tt *testing.T) { tt.Parallel() - var zeroValue int64 - i := &Installation{TargetID: &zeroValue} - i.GetTargetID() - i = &Installation{} - i.GetTargetID() + var zeroValue string + i := &InstallationPermissions{OrganizationCopilotSeatManagement: &zeroValue} + i.GetOrganizationCopilotSeatManagement() + i = &InstallationPermissions{} + i.GetOrganizationCopilotSeatManagement() i = nil - i.GetTargetID() + i.GetOrganizationCopilotSeatManagement() } -func TestInstallation_GetTargetType(tt *testing.T) { +func TestInstallationPermissions_GetOrganizationCustomOrgRoles(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Installation{TargetType: &zeroValue} - i.GetTargetType() - i = &Installation{} - i.GetTargetType() + i := &InstallationPermissions{OrganizationCustomOrgRoles: &zeroValue} + i.GetOrganizationCustomOrgRoles() + i = &InstallationPermissions{} + i.GetOrganizationCustomOrgRoles() i = nil - i.GetTargetType() + i.GetOrganizationCustomOrgRoles() } -func TestInstallation_GetUpdatedAt(tt *testing.T) { +func TestInstallationPermissions_GetOrganizationCustomProperties(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - i := &Installation{UpdatedAt: &zeroValue} - i.GetUpdatedAt() - i = &Installation{} - i.GetUpdatedAt() + var zeroValue string + i := &InstallationPermissions{OrganizationCustomProperties: &zeroValue} + i.GetOrganizationCustomProperties() + i = &InstallationPermissions{} + i.GetOrganizationCustomProperties() i = nil - i.GetUpdatedAt() + i.GetOrganizationCustomProperties() } -func TestInstallationChanges_GetLogin(tt *testing.T) { +func TestInstallationPermissions_GetOrganizationCustomRoles(tt *testing.T) { tt.Parallel() - i := &InstallationChanges{} - i.GetLogin() + var zeroValue string + i := &InstallationPermissions{OrganizationCustomRoles: &zeroValue} + i.GetOrganizationCustomRoles() + i = &InstallationPermissions{} + i.GetOrganizationCustomRoles() i = nil - i.GetLogin() + i.GetOrganizationCustomRoles() } -func TestInstallationChanges_GetSlug(tt *testing.T) { +func TestInstallationPermissions_GetOrganizationDependabotSecrets(tt *testing.T) { tt.Parallel() - i := &InstallationChanges{} - i.GetSlug() + var zeroValue string + i := &InstallationPermissions{OrganizationDependabotSecrets: &zeroValue} + i.GetOrganizationDependabotSecrets() + i = &InstallationPermissions{} + i.GetOrganizationDependabotSecrets() i = nil - i.GetSlug() + i.GetOrganizationDependabotSecrets() } -func TestInstallationEvent_GetAction(tt *testing.T) { +func TestInstallationPermissions_GetOrganizationEvents(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationEvent{Action: &zeroValue} - i.GetAction() - i = &InstallationEvent{} - i.GetAction() + i := &InstallationPermissions{OrganizationEvents: &zeroValue} + i.GetOrganizationEvents() + i = &InstallationPermissions{} + i.GetOrganizationEvents() i = nil - i.GetAction() + i.GetOrganizationEvents() } -func TestInstallationEvent_GetInstallation(tt *testing.T) { +func TestInstallationPermissions_GetOrganizationHooks(tt *testing.T) { tt.Parallel() - i := &InstallationEvent{} - i.GetInstallation() + var zeroValue string + i := &InstallationPermissions{OrganizationHooks: &zeroValue} + i.GetOrganizationHooks() + i = &InstallationPermissions{} + i.GetOrganizationHooks() i = nil - i.GetInstallation() + i.GetOrganizationHooks() } -func TestInstallationEvent_GetOrg(tt *testing.T) { +func TestInstallationPermissions_GetOrganizationKnowledgeBases(tt *testing.T) { tt.Parallel() - i := &InstallationEvent{} - i.GetOrg() + var zeroValue string + i := &InstallationPermissions{OrganizationKnowledgeBases: &zeroValue} + i.GetOrganizationKnowledgeBases() + i = &InstallationPermissions{} + i.GetOrganizationKnowledgeBases() i = nil - i.GetOrg() + i.GetOrganizationKnowledgeBases() } -func TestInstallationEvent_GetRequester(tt *testing.T) { +func TestInstallationPermissions_GetOrganizationPackages(tt *testing.T) { tt.Parallel() - i := &InstallationEvent{} - i.GetRequester() + var zeroValue string + i := &InstallationPermissions{OrganizationPackages: &zeroValue} + i.GetOrganizationPackages() + i = &InstallationPermissions{} + i.GetOrganizationPackages() i = nil - i.GetRequester() + i.GetOrganizationPackages() } -func TestInstallationEvent_GetSender(tt *testing.T) { +func TestInstallationPermissions_GetOrganizationPersonalAccessTokenRequests(tt *testing.T) { tt.Parallel() - i := &InstallationEvent{} - i.GetSender() + var zeroValue string + i := &InstallationPermissions{OrganizationPersonalAccessTokenRequests: &zeroValue} + i.GetOrganizationPersonalAccessTokenRequests() + i = &InstallationPermissions{} + i.GetOrganizationPersonalAccessTokenRequests() i = nil - i.GetSender() + i.GetOrganizationPersonalAccessTokenRequests() } -func TestInstallationLoginChange_GetFrom(tt *testing.T) { +func TestInstallationPermissions_GetOrganizationPersonalAccessTokens(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationLoginChange{From: &zeroValue} - i.GetFrom() - i = &InstallationLoginChange{} - i.GetFrom() + i := &InstallationPermissions{OrganizationPersonalAccessTokens: &zeroValue} + i.GetOrganizationPersonalAccessTokens() + i = &InstallationPermissions{} + i.GetOrganizationPersonalAccessTokens() i = nil - i.GetFrom() + i.GetOrganizationPersonalAccessTokens() } -func TestInstallationPermissions_GetActions(tt *testing.T) { +func TestInstallationPermissions_GetOrganizationPlan(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{Actions: &zeroValue} - i.GetActions() + i := &InstallationPermissions{OrganizationPlan: &zeroValue} + i.GetOrganizationPlan() i = &InstallationPermissions{} - i.GetActions() + i.GetOrganizationPlan() i = nil - i.GetActions() + i.GetOrganizationPlan() } -func TestInstallationPermissions_GetActionsVariables(tt *testing.T) { +func TestInstallationPermissions_GetOrganizationPreReceiveHooks(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{ActionsVariables: &zeroValue} - i.GetActionsVariables() + i := &InstallationPermissions{OrganizationPreReceiveHooks: &zeroValue} + i.GetOrganizationPreReceiveHooks() i = &InstallationPermissions{} - i.GetActionsVariables() + i.GetOrganizationPreReceiveHooks() i = nil - i.GetActionsVariables() + i.GetOrganizationPreReceiveHooks() } -func TestInstallationPermissions_GetAdministration(tt *testing.T) { +func TestInstallationPermissions_GetOrganizationProjects(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{Administration: &zeroValue} - i.GetAdministration() + i := &InstallationPermissions{OrganizationProjects: &zeroValue} + i.GetOrganizationProjects() i = &InstallationPermissions{} - i.GetAdministration() + i.GetOrganizationProjects() i = nil - i.GetAdministration() + i.GetOrganizationProjects() } -func TestInstallationPermissions_GetAttestations(tt *testing.T) { +func TestInstallationPermissions_GetOrganizationSecrets(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{Attestations: &zeroValue} - i.GetAttestations() + i := &InstallationPermissions{OrganizationSecrets: &zeroValue} + i.GetOrganizationSecrets() i = &InstallationPermissions{} - i.GetAttestations() + i.GetOrganizationSecrets() i = nil - i.GetAttestations() + i.GetOrganizationSecrets() } -func TestInstallationPermissions_GetBlocking(tt *testing.T) { +func TestInstallationPermissions_GetOrganizationSelfHostedRunners(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{Blocking: &zeroValue} - i.GetBlocking() + i := &InstallationPermissions{OrganizationSelfHostedRunners: &zeroValue} + i.GetOrganizationSelfHostedRunners() i = &InstallationPermissions{} - i.GetBlocking() + i.GetOrganizationSelfHostedRunners() i = nil - i.GetBlocking() + i.GetOrganizationSelfHostedRunners() } -func TestInstallationPermissions_GetChecks(tt *testing.T) { +func TestInstallationPermissions_GetOrganizationUserBlocking(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{Checks: &zeroValue} - i.GetChecks() + i := &InstallationPermissions{OrganizationUserBlocking: &zeroValue} + i.GetOrganizationUserBlocking() i = &InstallationPermissions{} - i.GetChecks() + i.GetOrganizationUserBlocking() i = nil - i.GetChecks() + i.GetOrganizationUserBlocking() } -func TestInstallationPermissions_GetCodespaces(tt *testing.T) { +func TestInstallationPermissions_GetPackages(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{Codespaces: &zeroValue} - i.GetCodespaces() + i := &InstallationPermissions{Packages: &zeroValue} + i.GetPackages() i = &InstallationPermissions{} - i.GetCodespaces() + i.GetPackages() i = nil - i.GetCodespaces() + i.GetPackages() } -func TestInstallationPermissions_GetCodespacesLifecycleAdmin(tt *testing.T) { +func TestInstallationPermissions_GetPages(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{CodespacesLifecycleAdmin: &zeroValue} - i.GetCodespacesLifecycleAdmin() + i := &InstallationPermissions{Pages: &zeroValue} + i.GetPages() i = &InstallationPermissions{} - i.GetCodespacesLifecycleAdmin() + i.GetPages() i = nil - i.GetCodespacesLifecycleAdmin() + i.GetPages() } -func TestInstallationPermissions_GetCodespacesMetadata(tt *testing.T) { +func TestInstallationPermissions_GetPlan(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{CodespacesMetadata: &zeroValue} - i.GetCodespacesMetadata() + i := &InstallationPermissions{Plan: &zeroValue} + i.GetPlan() i = &InstallationPermissions{} - i.GetCodespacesMetadata() + i.GetPlan() i = nil - i.GetCodespacesMetadata() + i.GetPlan() } -func TestInstallationPermissions_GetCodespacesSecrets(tt *testing.T) { +func TestInstallationPermissions_GetProfile(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{CodespacesSecrets: &zeroValue} - i.GetCodespacesSecrets() + i := &InstallationPermissions{Profile: &zeroValue} + i.GetProfile() i = &InstallationPermissions{} - i.GetCodespacesSecrets() + i.GetProfile() i = nil - i.GetCodespacesSecrets() + i.GetProfile() } -func TestInstallationPermissions_GetCodespacesUserSecrets(tt *testing.T) { +func TestInstallationPermissions_GetPullRequests(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{CodespacesUserSecrets: &zeroValue} - i.GetCodespacesUserSecrets() + i := &InstallationPermissions{PullRequests: &zeroValue} + i.GetPullRequests() i = &InstallationPermissions{} - i.GetCodespacesUserSecrets() + i.GetPullRequests() i = nil - i.GetCodespacesUserSecrets() + i.GetPullRequests() } -func TestInstallationPermissions_GetContentReferences(tt *testing.T) { +func TestInstallationPermissions_GetRepositoryAdvisories(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{ContentReferences: &zeroValue} - i.GetContentReferences() + i := &InstallationPermissions{RepositoryAdvisories: &zeroValue} + i.GetRepositoryAdvisories() i = &InstallationPermissions{} - i.GetContentReferences() + i.GetRepositoryAdvisories() i = nil - i.GetContentReferences() + i.GetRepositoryAdvisories() } -func TestInstallationPermissions_GetContents(tt *testing.T) { +func TestInstallationPermissions_GetRepositoryCustomProperties(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{Contents: &zeroValue} - i.GetContents() + i := &InstallationPermissions{RepositoryCustomProperties: &zeroValue} + i.GetRepositoryCustomProperties() i = &InstallationPermissions{} - i.GetContents() + i.GetRepositoryCustomProperties() i = nil - i.GetContents() + i.GetRepositoryCustomProperties() } -func TestInstallationPermissions_GetCopilotMessages(tt *testing.T) { +func TestInstallationPermissions_GetRepositoryHooks(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{CopilotMessages: &zeroValue} - i.GetCopilotMessages() + i := &InstallationPermissions{RepositoryHooks: &zeroValue} + i.GetRepositoryHooks() i = &InstallationPermissions{} - i.GetCopilotMessages() + i.GetRepositoryHooks() i = nil - i.GetCopilotMessages() + i.GetRepositoryHooks() } -func TestInstallationPermissions_GetDependabotSecrets(tt *testing.T) { +func TestInstallationPermissions_GetRepositoryPreReceiveHooks(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{DependabotSecrets: &zeroValue} - i.GetDependabotSecrets() + i := &InstallationPermissions{RepositoryPreReceiveHooks: &zeroValue} + i.GetRepositoryPreReceiveHooks() i = &InstallationPermissions{} - i.GetDependabotSecrets() + i.GetRepositoryPreReceiveHooks() i = nil - i.GetDependabotSecrets() + i.GetRepositoryPreReceiveHooks() } -func TestInstallationPermissions_GetDeployments(tt *testing.T) { +func TestInstallationPermissions_GetRepositoryProjects(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{Deployments: &zeroValue} - i.GetDeployments() + i := &InstallationPermissions{RepositoryProjects: &zeroValue} + i.GetRepositoryProjects() i = &InstallationPermissions{} - i.GetDeployments() + i.GetRepositoryProjects() i = nil - i.GetDeployments() + i.GetRepositoryProjects() } -func TestInstallationPermissions_GetDiscussions(tt *testing.T) { +func TestInstallationPermissions_GetSecrets(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{Discussions: &zeroValue} - i.GetDiscussions() + i := &InstallationPermissions{Secrets: &zeroValue} + i.GetSecrets() i = &InstallationPermissions{} - i.GetDiscussions() + i.GetSecrets() i = nil - i.GetDiscussions() + i.GetSecrets() } -func TestInstallationPermissions_GetEmails(tt *testing.T) { +func TestInstallationPermissions_GetSecretScanningAlerts(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{Emails: &zeroValue} - i.GetEmails() + i := &InstallationPermissions{SecretScanningAlerts: &zeroValue} + i.GetSecretScanningAlerts() i = &InstallationPermissions{} - i.GetEmails() + i.GetSecretScanningAlerts() i = nil - i.GetEmails() + i.GetSecretScanningAlerts() } -func TestInstallationPermissions_GetEnvironments(tt *testing.T) { +func TestInstallationPermissions_GetSecurityEvents(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{Environments: &zeroValue} - i.GetEnvironments() + i := &InstallationPermissions{SecurityEvents: &zeroValue} + i.GetSecurityEvents() i = &InstallationPermissions{} - i.GetEnvironments() + i.GetSecurityEvents() i = nil - i.GetEnvironments() + i.GetSecurityEvents() } -func TestInstallationPermissions_GetFollowers(tt *testing.T) { +func TestInstallationPermissions_GetSingleFile(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{Followers: &zeroValue} - i.GetFollowers() + i := &InstallationPermissions{SingleFile: &zeroValue} + i.GetSingleFile() i = &InstallationPermissions{} - i.GetFollowers() + i.GetSingleFile() i = nil - i.GetFollowers() + i.GetSingleFile() } -func TestInstallationPermissions_GetGists(tt *testing.T) { +func TestInstallationPermissions_GetStarring(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{Gists: &zeroValue} - i.GetGists() + i := &InstallationPermissions{Starring: &zeroValue} + i.GetStarring() i = &InstallationPermissions{} - i.GetGists() + i.GetStarring() i = nil - i.GetGists() + i.GetStarring() } -func TestInstallationPermissions_GetGitSigningSSHPublicKeys(tt *testing.T) { +func TestInstallationPermissions_GetStatuses(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{GitSigningSSHPublicKeys: &zeroValue} - i.GetGitSigningSSHPublicKeys() + i := &InstallationPermissions{Statuses: &zeroValue} + i.GetStatuses() i = &InstallationPermissions{} - i.GetGitSigningSSHPublicKeys() + i.GetStatuses() i = nil - i.GetGitSigningSSHPublicKeys() + i.GetStatuses() } -func TestInstallationPermissions_GetGPGKeys(tt *testing.T) { +func TestInstallationPermissions_GetTeamDiscussions(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{GPGKeys: &zeroValue} - i.GetGPGKeys() + i := &InstallationPermissions{TeamDiscussions: &zeroValue} + i.GetTeamDiscussions() i = &InstallationPermissions{} - i.GetGPGKeys() + i.GetTeamDiscussions() i = nil - i.GetGPGKeys() + i.GetTeamDiscussions() } -func TestInstallationPermissions_GetInteractionLimits(tt *testing.T) { +func TestInstallationPermissions_GetUserEvents(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{InteractionLimits: &zeroValue} - i.GetInteractionLimits() + i := &InstallationPermissions{UserEvents: &zeroValue} + i.GetUserEvents() i = &InstallationPermissions{} - i.GetInteractionLimits() + i.GetUserEvents() i = nil - i.GetInteractionLimits() + i.GetUserEvents() } -func TestInstallationPermissions_GetIssues(tt *testing.T) { +func TestInstallationPermissions_GetVulnerabilityAlerts(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{Issues: &zeroValue} - i.GetIssues() + i := &InstallationPermissions{VulnerabilityAlerts: &zeroValue} + i.GetVulnerabilityAlerts() i = &InstallationPermissions{} - i.GetIssues() + i.GetVulnerabilityAlerts() i = nil - i.GetIssues() + i.GetVulnerabilityAlerts() } -func TestInstallationPermissions_GetKeys(tt *testing.T) { +func TestInstallationPermissions_GetWatching(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{Keys: &zeroValue} - i.GetKeys() + i := &InstallationPermissions{Watching: &zeroValue} + i.GetWatching() i = &InstallationPermissions{} - i.GetKeys() + i.GetWatching() i = nil - i.GetKeys() + i.GetWatching() } -func TestInstallationPermissions_GetMembers(tt *testing.T) { +func TestInstallationPermissions_GetWorkflows(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{Members: &zeroValue} - i.GetMembers() + i := &InstallationPermissions{Workflows: &zeroValue} + i.GetWorkflows() i = &InstallationPermissions{} - i.GetMembers() + i.GetWorkflows() i = nil - i.GetMembers() + i.GetWorkflows() } -func TestInstallationPermissions_GetMergeQueues(tt *testing.T) { +func TestInstallationRepositoriesEvent_GetAction(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{MergeQueues: &zeroValue} - i.GetMergeQueues() - i = &InstallationPermissions{} - i.GetMergeQueues() + i := &InstallationRepositoriesEvent{Action: &zeroValue} + i.GetAction() + i = &InstallationRepositoriesEvent{} + i.GetAction() i = nil - i.GetMergeQueues() + i.GetAction() } -func TestInstallationPermissions_GetMetadata(tt *testing.T) { +func TestInstallationRepositoriesEvent_GetInstallation(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationPermissions{Metadata: &zeroValue} - i.GetMetadata() - i = &InstallationPermissions{} - i.GetMetadata() + i := &InstallationRepositoriesEvent{} + i.GetInstallation() i = nil - i.GetMetadata() + i.GetInstallation() } -func TestInstallationPermissions_GetOrganizationActionsVariables(tt *testing.T) { +func TestInstallationRepositoriesEvent_GetOrg(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationPermissions{OrganizationActionsVariables: &zeroValue} - i.GetOrganizationActionsVariables() - i = &InstallationPermissions{} - i.GetOrganizationActionsVariables() + i := &InstallationRepositoriesEvent{} + i.GetOrg() i = nil - i.GetOrganizationActionsVariables() + i.GetOrg() } -func TestInstallationPermissions_GetOrganizationAdministration(tt *testing.T) { +func TestInstallationRepositoriesEvent_GetRepositorySelection(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{OrganizationAdministration: &zeroValue} - i.GetOrganizationAdministration() - i = &InstallationPermissions{} - i.GetOrganizationAdministration() + i := &InstallationRepositoriesEvent{RepositorySelection: &zeroValue} + i.GetRepositorySelection() + i = &InstallationRepositoriesEvent{} + i.GetRepositorySelection() i = nil - i.GetOrganizationAdministration() + i.GetRepositorySelection() } -func TestInstallationPermissions_GetOrganizationAnnouncementBanners(tt *testing.T) { +func TestInstallationRepositoriesEvent_GetSender(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationPermissions{OrganizationAnnouncementBanners: &zeroValue} - i.GetOrganizationAnnouncementBanners() - i = &InstallationPermissions{} - i.GetOrganizationAnnouncementBanners() + i := &InstallationRepositoriesEvent{} + i.GetSender() i = nil - i.GetOrganizationAnnouncementBanners() + i.GetSender() } -func TestInstallationPermissions_GetOrganizationAPIInsights(tt *testing.T) { +func TestInstallationRequest_GetAccount(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationPermissions{OrganizationAPIInsights: &zeroValue} - i.GetOrganizationAPIInsights() - i = &InstallationPermissions{} - i.GetOrganizationAPIInsights() + i := &InstallationRequest{} + i.GetAccount() i = nil - i.GetOrganizationAPIInsights() + i.GetAccount() } -func TestInstallationPermissions_GetOrganizationCodespaces(tt *testing.T) { +func TestInstallationRequest_GetCreatedAt(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationPermissions{OrganizationCodespaces: &zeroValue} - i.GetOrganizationCodespaces() - i = &InstallationPermissions{} - i.GetOrganizationCodespaces() + var zeroValue Timestamp + i := &InstallationRequest{CreatedAt: &zeroValue} + i.GetCreatedAt() + i = &InstallationRequest{} + i.GetCreatedAt() i = nil - i.GetOrganizationCodespaces() + i.GetCreatedAt() } -func TestInstallationPermissions_GetOrganizationCodespacesSecrets(tt *testing.T) { +func TestInstallationRequest_GetID(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationPermissions{OrganizationCodespacesSecrets: &zeroValue} - i.GetOrganizationCodespacesSecrets() - i = &InstallationPermissions{} - i.GetOrganizationCodespacesSecrets() + var zeroValue int64 + i := &InstallationRequest{ID: &zeroValue} + i.GetID() + i = &InstallationRequest{} + i.GetID() i = nil - i.GetOrganizationCodespacesSecrets() + i.GetID() } -func TestInstallationPermissions_GetOrganizationCodespacesSettings(tt *testing.T) { +func TestInstallationRequest_GetNodeID(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{OrganizationCodespacesSettings: &zeroValue} - i.GetOrganizationCodespacesSettings() - i = &InstallationPermissions{} - i.GetOrganizationCodespacesSettings() + i := &InstallationRequest{NodeID: &zeroValue} + i.GetNodeID() + i = &InstallationRequest{} + i.GetNodeID() i = nil - i.GetOrganizationCodespacesSettings() + i.GetNodeID() } -func TestInstallationPermissions_GetOrganizationCopilotSeatManagement(tt *testing.T) { +func TestInstallationRequest_GetRequester(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationPermissions{OrganizationCopilotSeatManagement: &zeroValue} - i.GetOrganizationCopilotSeatManagement() - i = &InstallationPermissions{} - i.GetOrganizationCopilotSeatManagement() + i := &InstallationRequest{} + i.GetRequester() i = nil - i.GetOrganizationCopilotSeatManagement() + i.GetRequester() } -func TestInstallationPermissions_GetOrganizationCustomOrgRoles(tt *testing.T) { +func TestInstallationSlugChange_GetFrom(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{OrganizationCustomOrgRoles: &zeroValue} - i.GetOrganizationCustomOrgRoles() - i = &InstallationPermissions{} - i.GetOrganizationCustomOrgRoles() + i := &InstallationSlugChange{From: &zeroValue} + i.GetFrom() + i = &InstallationSlugChange{} + i.GetFrom() i = nil - i.GetOrganizationCustomOrgRoles() + i.GetFrom() } -func TestInstallationPermissions_GetOrganizationCustomProperties(tt *testing.T) { +func TestInstallationTargetEvent_GetAccount(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationPermissions{OrganizationCustomProperties: &zeroValue} - i.GetOrganizationCustomProperties() - i = &InstallationPermissions{} - i.GetOrganizationCustomProperties() + i := &InstallationTargetEvent{} + i.GetAccount() i = nil - i.GetOrganizationCustomProperties() + i.GetAccount() } -func TestInstallationPermissions_GetOrganizationCustomRoles(tt *testing.T) { +func TestInstallationTargetEvent_GetAction(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{OrganizationCustomRoles: &zeroValue} - i.GetOrganizationCustomRoles() - i = &InstallationPermissions{} - i.GetOrganizationCustomRoles() + i := &InstallationTargetEvent{Action: &zeroValue} + i.GetAction() + i = &InstallationTargetEvent{} + i.GetAction() i = nil - i.GetOrganizationCustomRoles() + i.GetAction() } -func TestInstallationPermissions_GetOrganizationDependabotSecrets(tt *testing.T) { +func TestInstallationTargetEvent_GetChanges(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationPermissions{OrganizationDependabotSecrets: &zeroValue} - i.GetOrganizationDependabotSecrets() - i = &InstallationPermissions{} - i.GetOrganizationDependabotSecrets() + i := &InstallationTargetEvent{} + i.GetChanges() i = nil - i.GetOrganizationDependabotSecrets() + i.GetChanges() } -func TestInstallationPermissions_GetOrganizationEvents(tt *testing.T) { +func TestInstallationTargetEvent_GetEnterprise(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationPermissions{OrganizationEvents: &zeroValue} - i.GetOrganizationEvents() - i = &InstallationPermissions{} - i.GetOrganizationEvents() + i := &InstallationTargetEvent{} + i.GetEnterprise() i = nil - i.GetOrganizationEvents() + i.GetEnterprise() } -func TestInstallationPermissions_GetOrganizationHooks(tt *testing.T) { +func TestInstallationTargetEvent_GetInstallation(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationPermissions{OrganizationHooks: &zeroValue} - i.GetOrganizationHooks() - i = &InstallationPermissions{} - i.GetOrganizationHooks() + i := &InstallationTargetEvent{} + i.GetInstallation() i = nil - i.GetOrganizationHooks() + i.GetInstallation() } -func TestInstallationPermissions_GetOrganizationKnowledgeBases(tt *testing.T) { +func TestInstallationTargetEvent_GetOrganization(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationPermissions{OrganizationKnowledgeBases: &zeroValue} - i.GetOrganizationKnowledgeBases() - i = &InstallationPermissions{} - i.GetOrganizationKnowledgeBases() + i := &InstallationTargetEvent{} + i.GetOrganization() i = nil - i.GetOrganizationKnowledgeBases() + i.GetOrganization() } -func TestInstallationPermissions_GetOrganizationPackages(tt *testing.T) { +func TestInstallationTargetEvent_GetRepository(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationPermissions{OrganizationPackages: &zeroValue} - i.GetOrganizationPackages() - i = &InstallationPermissions{} - i.GetOrganizationPackages() + i := &InstallationTargetEvent{} + i.GetRepository() i = nil - i.GetOrganizationPackages() + i.GetRepository() } -func TestInstallationPermissions_GetOrganizationPersonalAccessTokenRequests(tt *testing.T) { +func TestInstallationTargetEvent_GetSender(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationPermissions{OrganizationPersonalAccessTokenRequests: &zeroValue} - i.GetOrganizationPersonalAccessTokenRequests() - i = &InstallationPermissions{} - i.GetOrganizationPersonalAccessTokenRequests() + i := &InstallationTargetEvent{} + i.GetSender() i = nil - i.GetOrganizationPersonalAccessTokenRequests() + i.GetSender() } -func TestInstallationPermissions_GetOrganizationPersonalAccessTokens(tt *testing.T) { +func TestInstallationTargetEvent_GetTargetType(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{OrganizationPersonalAccessTokens: &zeroValue} - i.GetOrganizationPersonalAccessTokens() - i = &InstallationPermissions{} - i.GetOrganizationPersonalAccessTokens() + i := &InstallationTargetEvent{TargetType: &zeroValue} + i.GetTargetType() + i = &InstallationTargetEvent{} + i.GetTargetType() i = nil - i.GetOrganizationPersonalAccessTokens() + i.GetTargetType() } -func TestInstallationPermissions_GetOrganizationPlan(tt *testing.T) { +func TestInstallationToken_GetExpiresAt(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationPermissions{OrganizationPlan: &zeroValue} - i.GetOrganizationPlan() - i = &InstallationPermissions{} - i.GetOrganizationPlan() + var zeroValue Timestamp + i := &InstallationToken{ExpiresAt: &zeroValue} + i.GetExpiresAt() + i = &InstallationToken{} + i.GetExpiresAt() i = nil - i.GetOrganizationPlan() + i.GetExpiresAt() } -func TestInstallationPermissions_GetOrganizationPreReceiveHooks(tt *testing.T) { +func TestInstallationToken_GetPermissions(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationPermissions{OrganizationPreReceiveHooks: &zeroValue} - i.GetOrganizationPreReceiveHooks() - i = &InstallationPermissions{} - i.GetOrganizationPreReceiveHooks() + i := &InstallationToken{} + i.GetPermissions() i = nil - i.GetOrganizationPreReceiveHooks() + i.GetPermissions() } -func TestInstallationPermissions_GetOrganizationProjects(tt *testing.T) { +func TestInstallationToken_GetToken(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{OrganizationProjects: &zeroValue} - i.GetOrganizationProjects() - i = &InstallationPermissions{} - i.GetOrganizationProjects() + i := &InstallationToken{Token: &zeroValue} + i.GetToken() + i = &InstallationToken{} + i.GetToken() i = nil - i.GetOrganizationProjects() + i.GetToken() } -func TestInstallationPermissions_GetOrganizationSecrets(tt *testing.T) { +func TestInstallationTokenListRepoOptions_GetPermissions(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationPermissions{OrganizationSecrets: &zeroValue} - i.GetOrganizationSecrets() - i = &InstallationPermissions{} - i.GetOrganizationSecrets() + i := &InstallationTokenListRepoOptions{} + i.GetPermissions() i = nil - i.GetOrganizationSecrets() + i.GetPermissions() } -func TestInstallationPermissions_GetOrganizationSelfHostedRunners(tt *testing.T) { +func TestInstallationTokenOptions_GetPermissions(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationPermissions{OrganizationSelfHostedRunners: &zeroValue} - i.GetOrganizationSelfHostedRunners() - i = &InstallationPermissions{} - i.GetOrganizationSelfHostedRunners() + i := &InstallationTokenOptions{} + i.GetPermissions() i = nil - i.GetOrganizationSelfHostedRunners() + i.GetPermissions() } -func TestInstallationPermissions_GetOrganizationUserBlocking(tt *testing.T) { +func TestInteractionRestriction_GetExpiresAt(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationPermissions{OrganizationUserBlocking: &zeroValue} - i.GetOrganizationUserBlocking() - i = &InstallationPermissions{} - i.GetOrganizationUserBlocking() + var zeroValue Timestamp + i := &InteractionRestriction{ExpiresAt: &zeroValue} + i.GetExpiresAt() + i = &InteractionRestriction{} + i.GetExpiresAt() i = nil - i.GetOrganizationUserBlocking() + i.GetExpiresAt() } -func TestInstallationPermissions_GetPackages(tt *testing.T) { +func TestInteractionRestriction_GetLimit(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{Packages: &zeroValue} - i.GetPackages() - i = &InstallationPermissions{} - i.GetPackages() + i := &InteractionRestriction{Limit: &zeroValue} + i.GetLimit() + i = &InteractionRestriction{} + i.GetLimit() i = nil - i.GetPackages() + i.GetLimit() } -func TestInstallationPermissions_GetPages(tt *testing.T) { +func TestInteractionRestriction_GetOrigin(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{Pages: &zeroValue} - i.GetPages() - i = &InstallationPermissions{} - i.GetPages() + i := &InteractionRestriction{Origin: &zeroValue} + i.GetOrigin() + i = &InteractionRestriction{} + i.GetOrigin() i = nil - i.GetPages() + i.GetOrigin() } -func TestInstallationPermissions_GetPlan(tt *testing.T) { +func TestInvitation_GetCreatedAt(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationPermissions{Plan: &zeroValue} - i.GetPlan() - i = &InstallationPermissions{} - i.GetPlan() + var zeroValue Timestamp + i := &Invitation{CreatedAt: &zeroValue} + i.GetCreatedAt() + i = &Invitation{} + i.GetCreatedAt() i = nil - i.GetPlan() + i.GetCreatedAt() } -func TestInstallationPermissions_GetProfile(tt *testing.T) { +func TestInvitation_GetEmail(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{Profile: &zeroValue} - i.GetProfile() - i = &InstallationPermissions{} - i.GetProfile() + i := &Invitation{Email: &zeroValue} + i.GetEmail() + i = &Invitation{} + i.GetEmail() i = nil - i.GetProfile() + i.GetEmail() } - -func TestInstallationPermissions_GetPullRequests(tt *testing.T) { - tt.Parallel() - var zeroValue string - i := &InstallationPermissions{PullRequests: &zeroValue} - i.GetPullRequests() - i = &InstallationPermissions{} - i.GetPullRequests() + +func TestInvitation_GetFailedAt(tt *testing.T) { + tt.Parallel() + var zeroValue Timestamp + i := &Invitation{FailedAt: &zeroValue} + i.GetFailedAt() + i = &Invitation{} + i.GetFailedAt() i = nil - i.GetPullRequests() + i.GetFailedAt() } -func TestInstallationPermissions_GetRepositoryAdvisories(tt *testing.T) { +func TestInvitation_GetFailedReason(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{RepositoryAdvisories: &zeroValue} - i.GetRepositoryAdvisories() - i = &InstallationPermissions{} - i.GetRepositoryAdvisories() + i := &Invitation{FailedReason: &zeroValue} + i.GetFailedReason() + i = &Invitation{} + i.GetFailedReason() i = nil - i.GetRepositoryAdvisories() + i.GetFailedReason() } -func TestInstallationPermissions_GetRepositoryCustomProperties(tt *testing.T) { +func TestInvitation_GetID(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationPermissions{RepositoryCustomProperties: &zeroValue} - i.GetRepositoryCustomProperties() - i = &InstallationPermissions{} - i.GetRepositoryCustomProperties() + var zeroValue int64 + i := &Invitation{ID: &zeroValue} + i.GetID() + i = &Invitation{} + i.GetID() i = nil - i.GetRepositoryCustomProperties() + i.GetID() } -func TestInstallationPermissions_GetRepositoryHooks(tt *testing.T) { +func TestInvitation_GetInvitationTeamURL(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{RepositoryHooks: &zeroValue} - i.GetRepositoryHooks() - i = &InstallationPermissions{} - i.GetRepositoryHooks() + i := &Invitation{InvitationTeamURL: &zeroValue} + i.GetInvitationTeamURL() + i = &Invitation{} + i.GetInvitationTeamURL() i = nil - i.GetRepositoryHooks() + i.GetInvitationTeamURL() } -func TestInstallationPermissions_GetRepositoryPreReceiveHooks(tt *testing.T) { +func TestInvitation_GetInviter(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationPermissions{RepositoryPreReceiveHooks: &zeroValue} - i.GetRepositoryPreReceiveHooks() - i = &InstallationPermissions{} - i.GetRepositoryPreReceiveHooks() + i := &Invitation{} + i.GetInviter() i = nil - i.GetRepositoryPreReceiveHooks() + i.GetInviter() } -func TestInstallationPermissions_GetRepositoryProjects(tt *testing.T) { +func TestInvitation_GetLogin(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{RepositoryProjects: &zeroValue} - i.GetRepositoryProjects() - i = &InstallationPermissions{} - i.GetRepositoryProjects() + i := &Invitation{Login: &zeroValue} + i.GetLogin() + i = &Invitation{} + i.GetLogin() i = nil - i.GetRepositoryProjects() + i.GetLogin() } -func TestInstallationPermissions_GetSecrets(tt *testing.T) { +func TestInvitation_GetNodeID(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{Secrets: &zeroValue} - i.GetSecrets() - i = &InstallationPermissions{} - i.GetSecrets() + i := &Invitation{NodeID: &zeroValue} + i.GetNodeID() + i = &Invitation{} + i.GetNodeID() i = nil - i.GetSecrets() + i.GetNodeID() } -func TestInstallationPermissions_GetSecretScanningAlerts(tt *testing.T) { +func TestInvitation_GetRole(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{SecretScanningAlerts: &zeroValue} - i.GetSecretScanningAlerts() - i = &InstallationPermissions{} - i.GetSecretScanningAlerts() + i := &Invitation{Role: &zeroValue} + i.GetRole() + i = &Invitation{} + i.GetRole() i = nil - i.GetSecretScanningAlerts() + i.GetRole() } -func TestInstallationPermissions_GetSecurityEvents(tt *testing.T) { +func TestInvitation_GetTeamCount(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationPermissions{SecurityEvents: &zeroValue} - i.GetSecurityEvents() - i = &InstallationPermissions{} - i.GetSecurityEvents() + var zeroValue int + i := &Invitation{TeamCount: &zeroValue} + i.GetTeamCount() + i = &Invitation{} + i.GetTeamCount() i = nil - i.GetSecurityEvents() + i.GetTeamCount() } -func TestInstallationPermissions_GetSingleFile(tt *testing.T) { +func TestIssue_GetActiveLockReason(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{SingleFile: &zeroValue} - i.GetSingleFile() - i = &InstallationPermissions{} - i.GetSingleFile() + i := &Issue{ActiveLockReason: &zeroValue} + i.GetActiveLockReason() + i = &Issue{} + i.GetActiveLockReason() i = nil - i.GetSingleFile() + i.GetActiveLockReason() } -func TestInstallationPermissions_GetStarring(tt *testing.T) { +func TestIssue_GetAssignee(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationPermissions{Starring: &zeroValue} - i.GetStarring() - i = &InstallationPermissions{} - i.GetStarring() + i := &Issue{} + i.GetAssignee() i = nil - i.GetStarring() + i.GetAssignee() } -func TestInstallationPermissions_GetStatuses(tt *testing.T) { +func TestIssue_GetAuthorAssociation(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{Statuses: &zeroValue} - i.GetStatuses() - i = &InstallationPermissions{} - i.GetStatuses() + i := &Issue{AuthorAssociation: &zeroValue} + i.GetAuthorAssociation() + i = &Issue{} + i.GetAuthorAssociation() i = nil - i.GetStatuses() + i.GetAuthorAssociation() } -func TestInstallationPermissions_GetTeamDiscussions(tt *testing.T) { +func TestIssue_GetBody(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{TeamDiscussions: &zeroValue} - i.GetTeamDiscussions() - i = &InstallationPermissions{} - i.GetTeamDiscussions() + i := &Issue{Body: &zeroValue} + i.GetBody() + i = &Issue{} + i.GetBody() i = nil - i.GetTeamDiscussions() + i.GetBody() } -func TestInstallationPermissions_GetUserEvents(tt *testing.T) { +func TestIssue_GetClosedAt(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationPermissions{UserEvents: &zeroValue} - i.GetUserEvents() - i = &InstallationPermissions{} - i.GetUserEvents() + var zeroValue Timestamp + i := &Issue{ClosedAt: &zeroValue} + i.GetClosedAt() + i = &Issue{} + i.GetClosedAt() i = nil - i.GetUserEvents() + i.GetClosedAt() } -func TestInstallationPermissions_GetVulnerabilityAlerts(tt *testing.T) { +func TestIssue_GetClosedBy(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationPermissions{VulnerabilityAlerts: &zeroValue} - i.GetVulnerabilityAlerts() - i = &InstallationPermissions{} - i.GetVulnerabilityAlerts() + i := &Issue{} + i.GetClosedBy() i = nil - i.GetVulnerabilityAlerts() + i.GetClosedBy() } -func TestInstallationPermissions_GetWatching(tt *testing.T) { +func TestIssue_GetComments(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationPermissions{Watching: &zeroValue} - i.GetWatching() - i = &InstallationPermissions{} - i.GetWatching() + var zeroValue int + i := &Issue{Comments: &zeroValue} + i.GetComments() + i = &Issue{} + i.GetComments() i = nil - i.GetWatching() + i.GetComments() } -func TestInstallationPermissions_GetWorkflows(tt *testing.T) { +func TestIssue_GetCommentsURL(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationPermissions{Workflows: &zeroValue} - i.GetWorkflows() - i = &InstallationPermissions{} - i.GetWorkflows() + i := &Issue{CommentsURL: &zeroValue} + i.GetCommentsURL() + i = &Issue{} + i.GetCommentsURL() i = nil - i.GetWorkflows() + i.GetCommentsURL() } -func TestInstallationRepositoriesEvent_GetAction(tt *testing.T) { +func TestIssue_GetCreatedAt(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationRepositoriesEvent{Action: &zeroValue} - i.GetAction() - i = &InstallationRepositoriesEvent{} - i.GetAction() + var zeroValue Timestamp + i := &Issue{CreatedAt: &zeroValue} + i.GetCreatedAt() + i = &Issue{} + i.GetCreatedAt() i = nil - i.GetAction() + i.GetCreatedAt() } -func TestInstallationRepositoriesEvent_GetInstallation(tt *testing.T) { +func TestIssue_GetDraft(tt *testing.T) { tt.Parallel() - i := &InstallationRepositoriesEvent{} - i.GetInstallation() + var zeroValue bool + i := &Issue{Draft: &zeroValue} + i.GetDraft() + i = &Issue{} + i.GetDraft() i = nil - i.GetInstallation() + i.GetDraft() } -func TestInstallationRepositoriesEvent_GetOrg(tt *testing.T) { +func TestIssue_GetEventsURL(tt *testing.T) { tt.Parallel() - i := &InstallationRepositoriesEvent{} - i.GetOrg() + var zeroValue string + i := &Issue{EventsURL: &zeroValue} + i.GetEventsURL() + i = &Issue{} + i.GetEventsURL() i = nil - i.GetOrg() + i.GetEventsURL() } -func TestInstallationRepositoriesEvent_GetRepositorySelection(tt *testing.T) { +func TestIssue_GetHTMLURL(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationRepositoriesEvent{RepositorySelection: &zeroValue} - i.GetRepositorySelection() - i = &InstallationRepositoriesEvent{} - i.GetRepositorySelection() + i := &Issue{HTMLURL: &zeroValue} + i.GetHTMLURL() + i = &Issue{} + i.GetHTMLURL() i = nil - i.GetRepositorySelection() + i.GetHTMLURL() } -func TestInstallationRepositoriesEvent_GetSender(tt *testing.T) { +func TestIssue_GetID(tt *testing.T) { tt.Parallel() - i := &InstallationRepositoriesEvent{} - i.GetSender() + var zeroValue int64 + i := &Issue{ID: &zeroValue} + i.GetID() + i = &Issue{} + i.GetID() i = nil - i.GetSender() + i.GetID() } -func TestInstallationRequest_GetAccount(tt *testing.T) { +func TestIssue_GetLabelsURL(tt *testing.T) { tt.Parallel() - i := &InstallationRequest{} - i.GetAccount() + var zeroValue string + i := &Issue{LabelsURL: &zeroValue} + i.GetLabelsURL() + i = &Issue{} + i.GetLabelsURL() i = nil - i.GetAccount() + i.GetLabelsURL() } -func TestInstallationRequest_GetCreatedAt(tt *testing.T) { +func TestIssue_GetLocked(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - i := &InstallationRequest{CreatedAt: &zeroValue} - i.GetCreatedAt() - i = &InstallationRequest{} - i.GetCreatedAt() + var zeroValue bool + i := &Issue{Locked: &zeroValue} + i.GetLocked() + i = &Issue{} + i.GetLocked() i = nil - i.GetCreatedAt() + i.GetLocked() } -func TestInstallationRequest_GetID(tt *testing.T) { +func TestIssue_GetMilestone(tt *testing.T) { tt.Parallel() - var zeroValue int64 - i := &InstallationRequest{ID: &zeroValue} - i.GetID() - i = &InstallationRequest{} - i.GetID() + i := &Issue{} + i.GetMilestone() i = nil - i.GetID() + i.GetMilestone() } -func TestInstallationRequest_GetNodeID(tt *testing.T) { +func TestIssue_GetNodeID(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InstallationRequest{NodeID: &zeroValue} + i := &Issue{NodeID: &zeroValue} i.GetNodeID() - i = &InstallationRequest{} + i = &Issue{} i.GetNodeID() i = nil i.GetNodeID() } -func TestInstallationRequest_GetRequester(tt *testing.T) { +func TestIssue_GetNumber(tt *testing.T) { tt.Parallel() - i := &InstallationRequest{} - i.GetRequester() + var zeroValue int + i := &Issue{Number: &zeroValue} + i.GetNumber() + i = &Issue{} + i.GetNumber() i = nil - i.GetRequester() + i.GetNumber() } -func TestInstallationSlugChange_GetFrom(tt *testing.T) { +func TestIssue_GetPullRequestLinks(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationSlugChange{From: &zeroValue} - i.GetFrom() - i = &InstallationSlugChange{} - i.GetFrom() + i := &Issue{} + i.GetPullRequestLinks() i = nil - i.GetFrom() + i.GetPullRequestLinks() } -func TestInstallationTargetEvent_GetAccount(tt *testing.T) { +func TestIssue_GetReactions(tt *testing.T) { tt.Parallel() - i := &InstallationTargetEvent{} - i.GetAccount() + i := &Issue{} + i.GetReactions() i = nil - i.GetAccount() + i.GetReactions() } -func TestInstallationTargetEvent_GetAction(tt *testing.T) { +func TestIssue_GetRepository(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationTargetEvent{Action: &zeroValue} - i.GetAction() - i = &InstallationTargetEvent{} - i.GetAction() + i := &Issue{} + i.GetRepository() i = nil - i.GetAction() + i.GetRepository() } -func TestInstallationTargetEvent_GetChanges(tt *testing.T) { +func TestIssue_GetRepositoryURL(tt *testing.T) { tt.Parallel() - i := &InstallationTargetEvent{} - i.GetChanges() + var zeroValue string + i := &Issue{RepositoryURL: &zeroValue} + i.GetRepositoryURL() + i = &Issue{} + i.GetRepositoryURL() i = nil - i.GetChanges() + i.GetRepositoryURL() } -func TestInstallationTargetEvent_GetEnterprise(tt *testing.T) { +func TestIssue_GetState(tt *testing.T) { tt.Parallel() - i := &InstallationTargetEvent{} - i.GetEnterprise() + var zeroValue string + i := &Issue{State: &zeroValue} + i.GetState() + i = &Issue{} + i.GetState() i = nil - i.GetEnterprise() + i.GetState() } -func TestInstallationTargetEvent_GetInstallation(tt *testing.T) { +func TestIssue_GetStateReason(tt *testing.T) { tt.Parallel() - i := &InstallationTargetEvent{} - i.GetInstallation() + var zeroValue string + i := &Issue{StateReason: &zeroValue} + i.GetStateReason() + i = &Issue{} + i.GetStateReason() i = nil - i.GetInstallation() + i.GetStateReason() } -func TestInstallationTargetEvent_GetOrganization(tt *testing.T) { +func TestIssue_GetTitle(tt *testing.T) { tt.Parallel() - i := &InstallationTargetEvent{} - i.GetOrganization() + var zeroValue string + i := &Issue{Title: &zeroValue} + i.GetTitle() + i = &Issue{} + i.GetTitle() i = nil - i.GetOrganization() + i.GetTitle() } -func TestInstallationTargetEvent_GetRepository(tt *testing.T) { +func TestIssue_GetUpdatedAt(tt *testing.T) { tt.Parallel() - i := &InstallationTargetEvent{} - i.GetRepository() + var zeroValue Timestamp + i := &Issue{UpdatedAt: &zeroValue} + i.GetUpdatedAt() + i = &Issue{} + i.GetUpdatedAt() i = nil - i.GetRepository() + i.GetUpdatedAt() } -func TestInstallationTargetEvent_GetSender(tt *testing.T) { +func TestIssue_GetURL(tt *testing.T) { tt.Parallel() - i := &InstallationTargetEvent{} - i.GetSender() + var zeroValue string + i := &Issue{URL: &zeroValue} + i.GetURL() + i = &Issue{} + i.GetURL() i = nil - i.GetSender() + i.GetURL() } -func TestInstallationTargetEvent_GetTargetType(tt *testing.T) { +func TestIssue_GetUser(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationTargetEvent{TargetType: &zeroValue} - i.GetTargetType() - i = &InstallationTargetEvent{} - i.GetTargetType() + i := &Issue{} + i.GetUser() i = nil - i.GetTargetType() + i.GetUser() } -func TestInstallationToken_GetExpiresAt(tt *testing.T) { +func TestIssueComment_GetAuthorAssociation(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - i := &InstallationToken{ExpiresAt: &zeroValue} - i.GetExpiresAt() - i = &InstallationToken{} - i.GetExpiresAt() + var zeroValue string + i := &IssueComment{AuthorAssociation: &zeroValue} + i.GetAuthorAssociation() + i = &IssueComment{} + i.GetAuthorAssociation() i = nil - i.GetExpiresAt() + i.GetAuthorAssociation() } -func TestInstallationToken_GetPermissions(tt *testing.T) { +func TestIssueComment_GetBody(tt *testing.T) { tt.Parallel() - i := &InstallationToken{} - i.GetPermissions() + var zeroValue string + i := &IssueComment{Body: &zeroValue} + i.GetBody() + i = &IssueComment{} + i.GetBody() i = nil - i.GetPermissions() + i.GetBody() } -func TestInstallationToken_GetToken(tt *testing.T) { +func TestIssueComment_GetCreatedAt(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InstallationToken{Token: &zeroValue} - i.GetToken() - i = &InstallationToken{} - i.GetToken() + var zeroValue Timestamp + i := &IssueComment{CreatedAt: &zeroValue} + i.GetCreatedAt() + i = &IssueComment{} + i.GetCreatedAt() i = nil - i.GetToken() + i.GetCreatedAt() } -func TestInstallationTokenListRepoOptions_GetPermissions(tt *testing.T) { +func TestIssueComment_GetHTMLURL(tt *testing.T) { tt.Parallel() - i := &InstallationTokenListRepoOptions{} - i.GetPermissions() + var zeroValue string + i := &IssueComment{HTMLURL: &zeroValue} + i.GetHTMLURL() + i = &IssueComment{} + i.GetHTMLURL() i = nil - i.GetPermissions() + i.GetHTMLURL() } -func TestInstallationTokenOptions_GetPermissions(tt *testing.T) { +func TestIssueComment_GetID(tt *testing.T) { tt.Parallel() - i := &InstallationTokenOptions{} - i.GetPermissions() + var zeroValue int64 + i := &IssueComment{ID: &zeroValue} + i.GetID() + i = &IssueComment{} + i.GetID() i = nil - i.GetPermissions() + i.GetID() } -func TestInteractionRestriction_GetExpiresAt(tt *testing.T) { +func TestIssueComment_GetIssueURL(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - i := &InteractionRestriction{ExpiresAt: &zeroValue} - i.GetExpiresAt() - i = &InteractionRestriction{} - i.GetExpiresAt() + var zeroValue string + i := &IssueComment{IssueURL: &zeroValue} + i.GetIssueURL() + i = &IssueComment{} + i.GetIssueURL() i = nil - i.GetExpiresAt() + i.GetIssueURL() } -func TestInteractionRestriction_GetLimit(tt *testing.T) { +func TestIssueComment_GetNodeID(tt *testing.T) { tt.Parallel() var zeroValue string - i := &InteractionRestriction{Limit: &zeroValue} - i.GetLimit() - i = &InteractionRestriction{} - i.GetLimit() + i := &IssueComment{NodeID: &zeroValue} + i.GetNodeID() + i = &IssueComment{} + i.GetNodeID() i = nil - i.GetLimit() + i.GetNodeID() } -func TestInteractionRestriction_GetOrigin(tt *testing.T) { +func TestIssueComment_GetReactions(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &InteractionRestriction{Origin: &zeroValue} - i.GetOrigin() - i = &InteractionRestriction{} - i.GetOrigin() + i := &IssueComment{} + i.GetReactions() i = nil - i.GetOrigin() + i.GetReactions() } -func TestInvitation_GetCreatedAt(tt *testing.T) { +func TestIssueComment_GetUpdatedAt(tt *testing.T) { tt.Parallel() var zeroValue Timestamp - i := &Invitation{CreatedAt: &zeroValue} - i.GetCreatedAt() - i = &Invitation{} - i.GetCreatedAt() + i := &IssueComment{UpdatedAt: &zeroValue} + i.GetUpdatedAt() + i = &IssueComment{} + i.GetUpdatedAt() i = nil - i.GetCreatedAt() + i.GetUpdatedAt() } -func TestInvitation_GetEmail(tt *testing.T) { +func TestIssueComment_GetURL(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Invitation{Email: &zeroValue} - i.GetEmail() - i = &Invitation{} - i.GetEmail() + i := &IssueComment{URL: &zeroValue} + i.GetURL() + i = &IssueComment{} + i.GetURL() i = nil - i.GetEmail() + i.GetURL() } -func TestInvitation_GetFailedAt(tt *testing.T) { +func TestIssueComment_GetUser(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - i := &Invitation{FailedAt: &zeroValue} - i.GetFailedAt() - i = &Invitation{} - i.GetFailedAt() + i := &IssueComment{} + i.GetUser() i = nil - i.GetFailedAt() + i.GetUser() } -func TestInvitation_GetFailedReason(tt *testing.T) { +func TestIssueCommentEvent_GetAction(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Invitation{FailedReason: &zeroValue} - i.GetFailedReason() - i = &Invitation{} - i.GetFailedReason() + i := &IssueCommentEvent{Action: &zeroValue} + i.GetAction() + i = &IssueCommentEvent{} + i.GetAction() i = nil - i.GetFailedReason() + i.GetAction() } -func TestInvitation_GetID(tt *testing.T) { +func TestIssueCommentEvent_GetChanges(tt *testing.T) { tt.Parallel() - var zeroValue int64 - i := &Invitation{ID: &zeroValue} - i.GetID() - i = &Invitation{} - i.GetID() + i := &IssueCommentEvent{} + i.GetChanges() i = nil - i.GetID() + i.GetChanges() } -func TestInvitation_GetInvitationTeamURL(tt *testing.T) { +func TestIssueCommentEvent_GetComment(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &Invitation{InvitationTeamURL: &zeroValue} - i.GetInvitationTeamURL() - i = &Invitation{} - i.GetInvitationTeamURL() + i := &IssueCommentEvent{} + i.GetComment() i = nil - i.GetInvitationTeamURL() + i.GetComment() } -func TestInvitation_GetInviter(tt *testing.T) { +func TestIssueCommentEvent_GetInstallation(tt *testing.T) { tt.Parallel() - i := &Invitation{} - i.GetInviter() + i := &IssueCommentEvent{} + i.GetInstallation() i = nil - i.GetInviter() + i.GetInstallation() } -func TestInvitation_GetLogin(tt *testing.T) { +func TestIssueCommentEvent_GetIssue(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &Invitation{Login: &zeroValue} - i.GetLogin() - i = &Invitation{} - i.GetLogin() + i := &IssueCommentEvent{} + i.GetIssue() i = nil - i.GetLogin() + i.GetIssue() } -func TestInvitation_GetNodeID(tt *testing.T) { +func TestIssueCommentEvent_GetOrganization(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &Invitation{NodeID: &zeroValue} - i.GetNodeID() - i = &Invitation{} - i.GetNodeID() + i := &IssueCommentEvent{} + i.GetOrganization() i = nil - i.GetNodeID() + i.GetOrganization() } -func TestInvitation_GetRole(tt *testing.T) { +func TestIssueCommentEvent_GetRepo(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &Invitation{Role: &zeroValue} - i.GetRole() - i = &Invitation{} - i.GetRole() + i := &IssueCommentEvent{} + i.GetRepo() i = nil - i.GetRole() + i.GetRepo() } -func TestInvitation_GetTeamCount(tt *testing.T) { +func TestIssueCommentEvent_GetSender(tt *testing.T) { tt.Parallel() - var zeroValue int - i := &Invitation{TeamCount: &zeroValue} - i.GetTeamCount() - i = &Invitation{} - i.GetTeamCount() + i := &IssueCommentEvent{} + i.GetSender() i = nil - i.GetTeamCount() + i.GetSender() } -func TestIssue_GetActiveLockReason(tt *testing.T) { +func TestIssueEvent_GetActor(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &Issue{ActiveLockReason: &zeroValue} - i.GetActiveLockReason() - i = &Issue{} - i.GetActiveLockReason() + i := &IssueEvent{} + i.GetActor() i = nil - i.GetActiveLockReason() + i.GetActor() } -func TestIssue_GetAssignee(tt *testing.T) { +func TestIssueEvent_GetAssignee(tt *testing.T) { tt.Parallel() - i := &Issue{} + i := &IssueEvent{} i.GetAssignee() i = nil i.GetAssignee() } -func TestIssue_GetAuthorAssociation(tt *testing.T) { +func TestIssueEvent_GetAssigner(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &Issue{AuthorAssociation: &zeroValue} - i.GetAuthorAssociation() - i = &Issue{} - i.GetAuthorAssociation() + i := &IssueEvent{} + i.GetAssigner() i = nil - i.GetAuthorAssociation() + i.GetAssigner() } -func TestIssue_GetBody(tt *testing.T) { +func TestIssueEvent_GetCommitID(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Issue{Body: &zeroValue} - i.GetBody() - i = &Issue{} - i.GetBody() + i := &IssueEvent{CommitID: &zeroValue} + i.GetCommitID() + i = &IssueEvent{} + i.GetCommitID() i = nil - i.GetBody() + i.GetCommitID() } -func TestIssue_GetClosedAt(tt *testing.T) { +func TestIssueEvent_GetCreatedAt(tt *testing.T) { tt.Parallel() var zeroValue Timestamp - i := &Issue{ClosedAt: &zeroValue} - i.GetClosedAt() - i = &Issue{} - i.GetClosedAt() - i = nil - i.GetClosedAt() -} - -func TestIssue_GetClosedBy(tt *testing.T) { - tt.Parallel() - i := &Issue{} - i.GetClosedBy() + i := &IssueEvent{CreatedAt: &zeroValue} + i.GetCreatedAt() + i = &IssueEvent{} + i.GetCreatedAt() i = nil - i.GetClosedBy() + i.GetCreatedAt() } -func TestIssue_GetComments(tt *testing.T) { +func TestIssueEvent_GetDismissedReview(tt *testing.T) { tt.Parallel() - var zeroValue int - i := &Issue{Comments: &zeroValue} - i.GetComments() - i = &Issue{} - i.GetComments() + i := &IssueEvent{} + i.GetDismissedReview() i = nil - i.GetComments() + i.GetDismissedReview() } -func TestIssue_GetCommentsURL(tt *testing.T) { +func TestIssueEvent_GetEvent(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Issue{CommentsURL: &zeroValue} - i.GetCommentsURL() - i = &Issue{} - i.GetCommentsURL() + i := &IssueEvent{Event: &zeroValue} + i.GetEvent() + i = &IssueEvent{} + i.GetEvent() i = nil - i.GetCommentsURL() + i.GetEvent() } -func TestIssue_GetCreatedAt(tt *testing.T) { +func TestIssueEvent_GetID(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - i := &Issue{CreatedAt: &zeroValue} - i.GetCreatedAt() - i = &Issue{} - i.GetCreatedAt() + var zeroValue int64 + i := &IssueEvent{ID: &zeroValue} + i.GetID() + i = &IssueEvent{} + i.GetID() i = nil - i.GetCreatedAt() + i.GetID() } -func TestIssue_GetDraft(tt *testing.T) { +func TestIssueEvent_GetIssue(tt *testing.T) { tt.Parallel() - var zeroValue bool - i := &Issue{Draft: &zeroValue} - i.GetDraft() - i = &Issue{} - i.GetDraft() + i := &IssueEvent{} + i.GetIssue() i = nil - i.GetDraft() + i.GetIssue() } -func TestIssue_GetEventsURL(tt *testing.T) { +func TestIssueEvent_GetLabel(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &Issue{EventsURL: &zeroValue} - i.GetEventsURL() - i = &Issue{} - i.GetEventsURL() + i := &IssueEvent{} + i.GetLabel() i = nil - i.GetEventsURL() + i.GetLabel() } -func TestIssue_GetHTMLURL(tt *testing.T) { +func TestIssueEvent_GetLockReason(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Issue{HTMLURL: &zeroValue} - i.GetHTMLURL() - i = &Issue{} - i.GetHTMLURL() + i := &IssueEvent{LockReason: &zeroValue} + i.GetLockReason() + i = &IssueEvent{} + i.GetLockReason() i = nil - i.GetHTMLURL() + i.GetLockReason() } -func TestIssue_GetID(tt *testing.T) { +func TestIssueEvent_GetMilestone(tt *testing.T) { tt.Parallel() - var zeroValue int64 - i := &Issue{ID: &zeroValue} - i.GetID() - i = &Issue{} - i.GetID() + i := &IssueEvent{} + i.GetMilestone() i = nil - i.GetID() + i.GetMilestone() } -func TestIssue_GetLabelsURL(tt *testing.T) { +func TestIssueEvent_GetPerformedViaGithubApp(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &Issue{LabelsURL: &zeroValue} - i.GetLabelsURL() - i = &Issue{} - i.GetLabelsURL() + i := &IssueEvent{} + i.GetPerformedViaGithubApp() i = nil - i.GetLabelsURL() + i.GetPerformedViaGithubApp() } -func TestIssue_GetLocked(tt *testing.T) { +func TestIssueEvent_GetRename(tt *testing.T) { tt.Parallel() - var zeroValue bool - i := &Issue{Locked: &zeroValue} - i.GetLocked() - i = &Issue{} - i.GetLocked() + i := &IssueEvent{} + i.GetRename() i = nil - i.GetLocked() + i.GetRename() } -func TestIssue_GetMilestone(tt *testing.T) { +func TestIssueEvent_GetRepository(tt *testing.T) { tt.Parallel() - i := &Issue{} - i.GetMilestone() + i := &IssueEvent{} + i.GetRepository() i = nil - i.GetMilestone() + i.GetRepository() } -func TestIssue_GetNodeID(tt *testing.T) { +func TestIssueEvent_GetRequestedReviewer(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &Issue{NodeID: &zeroValue} - i.GetNodeID() - i = &Issue{} - i.GetNodeID() + i := &IssueEvent{} + i.GetRequestedReviewer() i = nil - i.GetNodeID() + i.GetRequestedReviewer() } -func TestIssue_GetNumber(tt *testing.T) { +func TestIssueEvent_GetRequestedTeam(tt *testing.T) { tt.Parallel() - var zeroValue int - i := &Issue{Number: &zeroValue} - i.GetNumber() - i = &Issue{} - i.GetNumber() + i := &IssueEvent{} + i.GetRequestedTeam() i = nil - i.GetNumber() + i.GetRequestedTeam() } -func TestIssue_GetPullRequestLinks(tt *testing.T) { +func TestIssueEvent_GetReviewRequester(tt *testing.T) { tt.Parallel() - i := &Issue{} - i.GetPullRequestLinks() + i := &IssueEvent{} + i.GetReviewRequester() i = nil - i.GetPullRequestLinks() + i.GetReviewRequester() } -func TestIssue_GetReactions(tt *testing.T) { +func TestIssueEvent_GetURL(tt *testing.T) { tt.Parallel() - i := &Issue{} - i.GetReactions() + var zeroValue string + i := &IssueEvent{URL: &zeroValue} + i.GetURL() + i = &IssueEvent{} + i.GetURL() i = nil - i.GetReactions() + i.GetURL() } -func TestIssue_GetRepository(tt *testing.T) { +func TestIssueImport_GetAssignee(tt *testing.T) { tt.Parallel() - i := &Issue{} - i.GetRepository() + var zeroValue string + i := &IssueImport{Assignee: &zeroValue} + i.GetAssignee() + i = &IssueImport{} + i.GetAssignee() i = nil - i.GetRepository() + i.GetAssignee() } -func TestIssue_GetRepositoryURL(tt *testing.T) { +func TestIssueImport_GetClosed(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &Issue{RepositoryURL: &zeroValue} - i.GetRepositoryURL() - i = &Issue{} - i.GetRepositoryURL() + var zeroValue bool + i := &IssueImport{Closed: &zeroValue} + i.GetClosed() + i = &IssueImport{} + i.GetClosed() i = nil - i.GetRepositoryURL() + i.GetClosed() } -func TestIssue_GetState(tt *testing.T) { +func TestIssueImport_GetClosedAt(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &Issue{State: &zeroValue} - i.GetState() - i = &Issue{} - i.GetState() + var zeroValue Timestamp + i := &IssueImport{ClosedAt: &zeroValue} + i.GetClosedAt() + i = &IssueImport{} + i.GetClosedAt() i = nil - i.GetState() + i.GetClosedAt() } -func TestIssue_GetStateReason(tt *testing.T) { +func TestIssueImport_GetCreatedAt(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &Issue{StateReason: &zeroValue} - i.GetStateReason() - i = &Issue{} - i.GetStateReason() + var zeroValue Timestamp + i := &IssueImport{CreatedAt: &zeroValue} + i.GetCreatedAt() + i = &IssueImport{} + i.GetCreatedAt() i = nil - i.GetStateReason() + i.GetCreatedAt() } -func TestIssue_GetTitle(tt *testing.T) { +func TestIssueImport_GetMilestone(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &Issue{Title: &zeroValue} - i.GetTitle() - i = &Issue{} - i.GetTitle() + var zeroValue int + i := &IssueImport{Milestone: &zeroValue} + i.GetMilestone() + i = &IssueImport{} + i.GetMilestone() i = nil - i.GetTitle() + i.GetMilestone() } -func TestIssue_GetUpdatedAt(tt *testing.T) { +func TestIssueImport_GetUpdatedAt(tt *testing.T) { tt.Parallel() var zeroValue Timestamp - i := &Issue{UpdatedAt: &zeroValue} + i := &IssueImport{UpdatedAt: &zeroValue} i.GetUpdatedAt() - i = &Issue{} + i = &IssueImport{} i.GetUpdatedAt() i = nil i.GetUpdatedAt() } -func TestIssue_GetURL(tt *testing.T) { +func TestIssueImportError_GetCode(tt *testing.T) { tt.Parallel() var zeroValue string - i := &Issue{URL: &zeroValue} - i.GetURL() - i = &Issue{} - i.GetURL() + i := &IssueImportError{Code: &zeroValue} + i.GetCode() + i = &IssueImportError{} + i.GetCode() i = nil - i.GetURL() + i.GetCode() } -func TestIssue_GetUser(tt *testing.T) { +func TestIssueImportError_GetField(tt *testing.T) { tt.Parallel() - i := &Issue{} - i.GetUser() + var zeroValue string + i := &IssueImportError{Field: &zeroValue} + i.GetField() + i = &IssueImportError{} + i.GetField() i = nil - i.GetUser() + i.GetField() } -func TestIssueComment_GetAuthorAssociation(tt *testing.T) { +func TestIssueImportError_GetLocation(tt *testing.T) { tt.Parallel() var zeroValue string - i := &IssueComment{AuthorAssociation: &zeroValue} - i.GetAuthorAssociation() - i = &IssueComment{} - i.GetAuthorAssociation() + i := &IssueImportError{Location: &zeroValue} + i.GetLocation() + i = &IssueImportError{} + i.GetLocation() i = nil - i.GetAuthorAssociation() + i.GetLocation() } -func TestIssueComment_GetBody(tt *testing.T) { +func TestIssueImportError_GetResource(tt *testing.T) { tt.Parallel() var zeroValue string - i := &IssueComment{Body: &zeroValue} - i.GetBody() - i = &IssueComment{} - i.GetBody() + i := &IssueImportError{Resource: &zeroValue} + i.GetResource() + i = &IssueImportError{} + i.GetResource() i = nil - i.GetBody() + i.GetResource() } -func TestIssueComment_GetCreatedAt(tt *testing.T) { +func TestIssueImportError_GetValue(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &IssueImportError{Value: &zeroValue} + i.GetValue() + i = &IssueImportError{} + i.GetValue() + i = nil + i.GetValue() +} + +func TestIssueImportResponse_GetCreatedAt(tt *testing.T) { tt.Parallel() var zeroValue Timestamp - i := &IssueComment{CreatedAt: &zeroValue} + i := &IssueImportResponse{CreatedAt: &zeroValue} i.GetCreatedAt() - i = &IssueComment{} + i = &IssueImportResponse{} i.GetCreatedAt() i = nil i.GetCreatedAt() } -func TestIssueComment_GetHTMLURL(tt *testing.T) { +func TestIssueImportResponse_GetDocumentationURL(tt *testing.T) { tt.Parallel() var zeroValue string - i := &IssueComment{HTMLURL: &zeroValue} - i.GetHTMLURL() - i = &IssueComment{} - i.GetHTMLURL() + i := &IssueImportResponse{DocumentationURL: &zeroValue} + i.GetDocumentationURL() + i = &IssueImportResponse{} + i.GetDocumentationURL() i = nil - i.GetHTMLURL() + i.GetDocumentationURL() } -func TestIssueComment_GetID(tt *testing.T) { +func TestIssueImportResponse_GetID(tt *testing.T) { tt.Parallel() - var zeroValue int64 - i := &IssueComment{ID: &zeroValue} + var zeroValue int + i := &IssueImportResponse{ID: &zeroValue} i.GetID() - i = &IssueComment{} + i = &IssueImportResponse{} + i.GetID() + i = nil i.GetID() +} + +func TestIssueImportResponse_GetImportIssuesURL(tt *testing.T) { + tt.Parallel() + var zeroValue string + i := &IssueImportResponse{ImportIssuesURL: &zeroValue} + i.GetImportIssuesURL() + i = &IssueImportResponse{} + i.GetImportIssuesURL() i = nil - i.GetID() + i.GetImportIssuesURL() } -func TestIssueComment_GetIssueURL(tt *testing.T) { +func TestIssueImportResponse_GetMessage(tt *testing.T) { tt.Parallel() var zeroValue string - i := &IssueComment{IssueURL: &zeroValue} - i.GetIssueURL() - i = &IssueComment{} - i.GetIssueURL() + i := &IssueImportResponse{Message: &zeroValue} + i.GetMessage() + i = &IssueImportResponse{} + i.GetMessage() i = nil - i.GetIssueURL() + i.GetMessage() } -func TestIssueComment_GetNodeID(tt *testing.T) { +func TestIssueImportResponse_GetRepositoryURL(tt *testing.T) { tt.Parallel() var zeroValue string - i := &IssueComment{NodeID: &zeroValue} - i.GetNodeID() - i = &IssueComment{} - i.GetNodeID() + i := &IssueImportResponse{RepositoryURL: &zeroValue} + i.GetRepositoryURL() + i = &IssueImportResponse{} + i.GetRepositoryURL() i = nil - i.GetNodeID() + i.GetRepositoryURL() } -func TestIssueComment_GetReactions(tt *testing.T) { +func TestIssueImportResponse_GetStatus(tt *testing.T) { tt.Parallel() - i := &IssueComment{} - i.GetReactions() + var zeroValue string + i := &IssueImportResponse{Status: &zeroValue} + i.GetStatus() + i = &IssueImportResponse{} + i.GetStatus() i = nil - i.GetReactions() + i.GetStatus() } -func TestIssueComment_GetUpdatedAt(tt *testing.T) { +func TestIssueImportResponse_GetUpdatedAt(tt *testing.T) { tt.Parallel() var zeroValue Timestamp - i := &IssueComment{UpdatedAt: &zeroValue} + i := &IssueImportResponse{UpdatedAt: &zeroValue} i.GetUpdatedAt() - i = &IssueComment{} + i = &IssueImportResponse{} i.GetUpdatedAt() i = nil i.GetUpdatedAt() } -func TestIssueComment_GetURL(tt *testing.T) { +func TestIssueImportResponse_GetURL(tt *testing.T) { tt.Parallel() var zeroValue string - i := &IssueComment{URL: &zeroValue} + i := &IssueImportResponse{URL: &zeroValue} i.GetURL() - i = &IssueComment{} + i = &IssueImportResponse{} i.GetURL() i = nil i.GetURL() } -func TestIssueComment_GetUser(tt *testing.T) { - tt.Parallel() - i := &IssueComment{} - i.GetUser() - i = nil - i.GetUser() -} - -func TestIssueCommentEvent_GetAction(tt *testing.T) { +func TestIssueListCommentsOptions_GetDirection(tt *testing.T) { tt.Parallel() var zeroValue string - i := &IssueCommentEvent{Action: &zeroValue} - i.GetAction() - i = &IssueCommentEvent{} - i.GetAction() - i = nil - i.GetAction() -} - -func TestIssueCommentEvent_GetChanges(tt *testing.T) { - tt.Parallel() - i := &IssueCommentEvent{} - i.GetChanges() + i := &IssueListCommentsOptions{Direction: &zeroValue} + i.GetDirection() + i = &IssueListCommentsOptions{} + i.GetDirection() i = nil - i.GetChanges() + i.GetDirection() } -func TestIssueCommentEvent_GetComment(tt *testing.T) { +func TestIssueListCommentsOptions_GetSince(tt *testing.T) { tt.Parallel() - i := &IssueCommentEvent{} - i.GetComment() + var zeroValue time.Time + i := &IssueListCommentsOptions{Since: &zeroValue} + i.GetSince() + i = &IssueListCommentsOptions{} + i.GetSince() i = nil - i.GetComment() + i.GetSince() } -func TestIssueCommentEvent_GetInstallation(tt *testing.T) { +func TestIssueListCommentsOptions_GetSort(tt *testing.T) { tt.Parallel() - i := &IssueCommentEvent{} - i.GetInstallation() + var zeroValue string + i := &IssueListCommentsOptions{Sort: &zeroValue} + i.GetSort() + i = &IssueListCommentsOptions{} + i.GetSort() i = nil - i.GetInstallation() + i.GetSort() } -func TestIssueCommentEvent_GetIssue(tt *testing.T) { +func TestIssueRequest_GetAssignee(tt *testing.T) { tt.Parallel() - i := &IssueCommentEvent{} - i.GetIssue() + var zeroValue string + i := &IssueRequest{Assignee: &zeroValue} + i.GetAssignee() + i = &IssueRequest{} + i.GetAssignee() i = nil - i.GetIssue() + i.GetAssignee() } -func TestIssueCommentEvent_GetOrganization(tt *testing.T) { +func TestIssueRequest_GetAssignees(tt *testing.T) { tt.Parallel() - i := &IssueCommentEvent{} - i.GetOrganization() + var zeroValue []string + i := &IssueRequest{Assignees: &zeroValue} + i.GetAssignees() + i = &IssueRequest{} + i.GetAssignees() i = nil - i.GetOrganization() + i.GetAssignees() } -func TestIssueCommentEvent_GetRepo(tt *testing.T) { +func TestIssueRequest_GetBody(tt *testing.T) { tt.Parallel() - i := &IssueCommentEvent{} - i.GetRepo() + var zeroValue string + i := &IssueRequest{Body: &zeroValue} + i.GetBody() + i = &IssueRequest{} + i.GetBody() i = nil - i.GetRepo() + i.GetBody() } -func TestIssueCommentEvent_GetSender(tt *testing.T) { +func TestIssueRequest_GetLabels(tt *testing.T) { tt.Parallel() - i := &IssueCommentEvent{} - i.GetSender() + var zeroValue []string + i := &IssueRequest{Labels: &zeroValue} + i.GetLabels() + i = &IssueRequest{} + i.GetLabels() i = nil - i.GetSender() + i.GetLabels() } -func TestIssueEvent_GetActor(tt *testing.T) { +func TestIssueRequest_GetMilestone(tt *testing.T) { tt.Parallel() - i := &IssueEvent{} - i.GetActor() + var zeroValue int + i := &IssueRequest{Milestone: &zeroValue} + i.GetMilestone() + i = &IssueRequest{} + i.GetMilestone() i = nil - i.GetActor() + i.GetMilestone() } -func TestIssueEvent_GetAssignee(tt *testing.T) { +func TestIssueRequest_GetState(tt *testing.T) { tt.Parallel() - i := &IssueEvent{} - i.GetAssignee() + var zeroValue string + i := &IssueRequest{State: &zeroValue} + i.GetState() + i = &IssueRequest{} + i.GetState() i = nil - i.GetAssignee() + i.GetState() } -func TestIssueEvent_GetAssigner(tt *testing.T) { +func TestIssueRequest_GetStateReason(tt *testing.T) { tt.Parallel() - i := &IssueEvent{} - i.GetAssigner() + var zeroValue string + i := &IssueRequest{StateReason: &zeroValue} + i.GetStateReason() + i = &IssueRequest{} + i.GetStateReason() i = nil - i.GetAssigner() + i.GetStateReason() } -func TestIssueEvent_GetCommitID(tt *testing.T) { +func TestIssueRequest_GetTitle(tt *testing.T) { tt.Parallel() var zeroValue string - i := &IssueEvent{CommitID: &zeroValue} - i.GetCommitID() - i = &IssueEvent{} - i.GetCommitID() + i := &IssueRequest{Title: &zeroValue} + i.GetTitle() + i = &IssueRequest{} + i.GetTitle() i = nil - i.GetCommitID() + i.GetTitle() } -func TestIssueEvent_GetCreatedAt(tt *testing.T) { +func TestIssuesEvent_GetAction(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - i := &IssueEvent{CreatedAt: &zeroValue} - i.GetCreatedAt() - i = &IssueEvent{} - i.GetCreatedAt() + var zeroValue string + i := &IssuesEvent{Action: &zeroValue} + i.GetAction() + i = &IssuesEvent{} + i.GetAction() i = nil - i.GetCreatedAt() + i.GetAction() } -func TestIssueEvent_GetDismissedReview(tt *testing.T) { +func TestIssuesEvent_GetAssignee(tt *testing.T) { tt.Parallel() - i := &IssueEvent{} - i.GetDismissedReview() + i := &IssuesEvent{} + i.GetAssignee() i = nil - i.GetDismissedReview() + i.GetAssignee() } -func TestIssueEvent_GetEvent(tt *testing.T) { +func TestIssuesEvent_GetChanges(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &IssueEvent{Event: &zeroValue} - i.GetEvent() - i = &IssueEvent{} - i.GetEvent() + i := &IssuesEvent{} + i.GetChanges() i = nil - i.GetEvent() + i.GetChanges() } -func TestIssueEvent_GetID(tt *testing.T) { +func TestIssuesEvent_GetInstallation(tt *testing.T) { tt.Parallel() - var zeroValue int64 - i := &IssueEvent{ID: &zeroValue} - i.GetID() - i = &IssueEvent{} - i.GetID() + i := &IssuesEvent{} + i.GetInstallation() i = nil - i.GetID() + i.GetInstallation() } -func TestIssueEvent_GetIssue(tt *testing.T) { +func TestIssuesEvent_GetIssue(tt *testing.T) { tt.Parallel() - i := &IssueEvent{} + i := &IssuesEvent{} i.GetIssue() i = nil i.GetIssue() } -func TestIssueEvent_GetLabel(tt *testing.T) { +func TestIssuesEvent_GetLabel(tt *testing.T) { tt.Parallel() - i := &IssueEvent{} + i := &IssuesEvent{} i.GetLabel() i = nil i.GetLabel() } -func TestIssueEvent_GetLockReason(tt *testing.T) { +func TestIssuesEvent_GetMilestone(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &IssueEvent{LockReason: &zeroValue} - i.GetLockReason() - i = &IssueEvent{} - i.GetLockReason() + i := &IssuesEvent{} + i.GetMilestone() i = nil - i.GetLockReason() + i.GetMilestone() } -func TestIssueEvent_GetMilestone(tt *testing.T) { +func TestIssuesEvent_GetOrg(tt *testing.T) { tt.Parallel() - i := &IssueEvent{} - i.GetMilestone() + i := &IssuesEvent{} + i.GetOrg() i = nil - i.GetMilestone() + i.GetOrg() } -func TestIssueEvent_GetPerformedViaGithubApp(tt *testing.T) { +func TestIssuesEvent_GetRepo(tt *testing.T) { tt.Parallel() - i := &IssueEvent{} - i.GetPerformedViaGithubApp() + i := &IssuesEvent{} + i.GetRepo() i = nil - i.GetPerformedViaGithubApp() + i.GetRepo() } -func TestIssueEvent_GetRename(tt *testing.T) { +func TestIssuesEvent_GetSender(tt *testing.T) { tt.Parallel() - i := &IssueEvent{} - i.GetRename() + i := &IssuesEvent{} + i.GetSender() i = nil - i.GetRename() + i.GetSender() } -func TestIssueEvent_GetRepository(tt *testing.T) { +func TestIssuesSearchResult_GetIncompleteResults(tt *testing.T) { tt.Parallel() - i := &IssueEvent{} - i.GetRepository() + var zeroValue bool + i := &IssuesSearchResult{IncompleteResults: &zeroValue} + i.GetIncompleteResults() + i = &IssuesSearchResult{} + i.GetIncompleteResults() i = nil - i.GetRepository() + i.GetIncompleteResults() } -func TestIssueEvent_GetRequestedReviewer(tt *testing.T) { +func TestIssuesSearchResult_GetTotal(tt *testing.T) { tt.Parallel() - i := &IssueEvent{} - i.GetRequestedReviewer() + var zeroValue int + i := &IssuesSearchResult{Total: &zeroValue} + i.GetTotal() + i = &IssuesSearchResult{} + i.GetTotal() i = nil - i.GetRequestedReviewer() + i.GetTotal() } -func TestIssueEvent_GetRequestedTeam(tt *testing.T) { +func TestIssueStats_GetClosedIssues(tt *testing.T) { tt.Parallel() - i := &IssueEvent{} - i.GetRequestedTeam() + var zeroValue int + i := &IssueStats{ClosedIssues: &zeroValue} + i.GetClosedIssues() + i = &IssueStats{} + i.GetClosedIssues() i = nil - i.GetRequestedTeam() + i.GetClosedIssues() } -func TestIssueEvent_GetReviewRequester(tt *testing.T) { +func TestIssueStats_GetOpenIssues(tt *testing.T) { tt.Parallel() - i := &IssueEvent{} - i.GetReviewRequester() + var zeroValue int + i := &IssueStats{OpenIssues: &zeroValue} + i.GetOpenIssues() + i = &IssueStats{} + i.GetOpenIssues() i = nil - i.GetReviewRequester() + i.GetOpenIssues() } -func TestIssueEvent_GetURL(tt *testing.T) { +func TestIssueStats_GetTotalIssues(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &IssueEvent{URL: &zeroValue} - i.GetURL() - i = &IssueEvent{} - i.GetURL() + var zeroValue int + i := &IssueStats{TotalIssues: &zeroValue} + i.GetTotalIssues() + i = &IssueStats{} + i.GetTotalIssues() i = nil - i.GetURL() + i.GetTotalIssues() } -func TestIssueImport_GetAssignee(tt *testing.T) { +func TestJITRunnerConfig_GetEncodedJITConfig(tt *testing.T) { tt.Parallel() var zeroValue string - i := &IssueImport{Assignee: &zeroValue} - i.GetAssignee() - i = &IssueImport{} - i.GetAssignee() - i = nil - i.GetAssignee() + j := &JITRunnerConfig{EncodedJITConfig: &zeroValue} + j.GetEncodedJITConfig() + j = &JITRunnerConfig{} + j.GetEncodedJITConfig() + j = nil + j.GetEncodedJITConfig() } -func TestIssueImport_GetClosed(tt *testing.T) { +func TestJITRunnerConfig_GetRunner(tt *testing.T) { tt.Parallel() - var zeroValue bool - i := &IssueImport{Closed: &zeroValue} - i.GetClosed() - i = &IssueImport{} - i.GetClosed() - i = nil - i.GetClosed() + j := &JITRunnerConfig{} + j.GetRunner() + j = nil + j.GetRunner() } -func TestIssueImport_GetClosedAt(tt *testing.T) { +func TestJobs_GetTotalCount(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - i := &IssueImport{ClosedAt: &zeroValue} - i.GetClosedAt() - i = &IssueImport{} - i.GetClosedAt() - i = nil - i.GetClosedAt() + var zeroValue int + j := &Jobs{TotalCount: &zeroValue} + j.GetTotalCount() + j = &Jobs{} + j.GetTotalCount() + j = nil + j.GetTotalCount() } -func TestIssueImport_GetCreatedAt(tt *testing.T) { +func TestKey_GetAddedBy(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - i := &IssueImport{CreatedAt: &zeroValue} - i.GetCreatedAt() - i = &IssueImport{} - i.GetCreatedAt() - i = nil - i.GetCreatedAt() + var zeroValue string + k := &Key{AddedBy: &zeroValue} + k.GetAddedBy() + k = &Key{} + k.GetAddedBy() + k = nil + k.GetAddedBy() } -func TestIssueImport_GetMilestone(tt *testing.T) { +func TestKey_GetCreatedAt(tt *testing.T) { tt.Parallel() - var zeroValue int - i := &IssueImport{Milestone: &zeroValue} - i.GetMilestone() - i = &IssueImport{} - i.GetMilestone() - i = nil - i.GetMilestone() + var zeroValue Timestamp + k := &Key{CreatedAt: &zeroValue} + k.GetCreatedAt() + k = &Key{} + k.GetCreatedAt() + k = nil + k.GetCreatedAt() } -func TestIssueImport_GetUpdatedAt(tt *testing.T) { +func TestKey_GetID(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - i := &IssueImport{UpdatedAt: &zeroValue} - i.GetUpdatedAt() - i = &IssueImport{} - i.GetUpdatedAt() - i = nil - i.GetUpdatedAt() + var zeroValue int64 + k := &Key{ID: &zeroValue} + k.GetID() + k = &Key{} + k.GetID() + k = nil + k.GetID() } -func TestIssueImportError_GetCode(tt *testing.T) { +func TestKey_GetKey(tt *testing.T) { tt.Parallel() var zeroValue string - i := &IssueImportError{Code: &zeroValue} - i.GetCode() - i = &IssueImportError{} - i.GetCode() - i = nil - i.GetCode() + k := &Key{Key: &zeroValue} + k.GetKey() + k = &Key{} + k.GetKey() + k = nil + k.GetKey() } -func TestIssueImportError_GetField(tt *testing.T) { +func TestKey_GetLastUsed(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &IssueImportError{Field: &zeroValue} - i.GetField() - i = &IssueImportError{} - i.GetField() - i = nil - i.GetField() + var zeroValue Timestamp + k := &Key{LastUsed: &zeroValue} + k.GetLastUsed() + k = &Key{} + k.GetLastUsed() + k = nil + k.GetLastUsed() } -func TestIssueImportError_GetLocation(tt *testing.T) { +func TestKey_GetReadOnly(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &IssueImportError{Location: &zeroValue} - i.GetLocation() - i = &IssueImportError{} - i.GetLocation() - i = nil - i.GetLocation() + var zeroValue bool + k := &Key{ReadOnly: &zeroValue} + k.GetReadOnly() + k = &Key{} + k.GetReadOnly() + k = nil + k.GetReadOnly() } -func TestIssueImportError_GetResource(tt *testing.T) { +func TestKey_GetTitle(tt *testing.T) { tt.Parallel() var zeroValue string - i := &IssueImportError{Resource: &zeroValue} - i.GetResource() - i = &IssueImportError{} - i.GetResource() - i = nil - i.GetResource() + k := &Key{Title: &zeroValue} + k.GetTitle() + k = &Key{} + k.GetTitle() + k = nil + k.GetTitle() } -func TestIssueImportError_GetValue(tt *testing.T) { +func TestKey_GetURL(tt *testing.T) { tt.Parallel() var zeroValue string - i := &IssueImportError{Value: &zeroValue} - i.GetValue() - i = &IssueImportError{} - i.GetValue() - i = nil - i.GetValue() + k := &Key{URL: &zeroValue} + k.GetURL() + k = &Key{} + k.GetURL() + k = nil + k.GetURL() } -func TestIssueImportResponse_GetCreatedAt(tt *testing.T) { +func TestKey_GetVerified(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - i := &IssueImportResponse{CreatedAt: &zeroValue} - i.GetCreatedAt() - i = &IssueImportResponse{} - i.GetCreatedAt() - i = nil - i.GetCreatedAt() + var zeroValue bool + k := &Key{Verified: &zeroValue} + k.GetVerified() + k = &Key{} + k.GetVerified() + k = nil + k.GetVerified() } -func TestIssueImportResponse_GetDocumentationURL(tt *testing.T) { +func TestLabel_GetColor(tt *testing.T) { tt.Parallel() var zeroValue string - i := &IssueImportResponse{DocumentationURL: &zeroValue} - i.GetDocumentationURL() - i = &IssueImportResponse{} - i.GetDocumentationURL() - i = nil - i.GetDocumentationURL() + l := &Label{Color: &zeroValue} + l.GetColor() + l = &Label{} + l.GetColor() + l = nil + l.GetColor() } -func TestIssueImportResponse_GetID(tt *testing.T) { +func TestLabel_GetDefault(tt *testing.T) { tt.Parallel() - var zeroValue int - i := &IssueImportResponse{ID: &zeroValue} - i.GetID() - i = &IssueImportResponse{} - i.GetID() - i = nil - i.GetID() + var zeroValue bool + l := &Label{Default: &zeroValue} + l.GetDefault() + l = &Label{} + l.GetDefault() + l = nil + l.GetDefault() } -func TestIssueImportResponse_GetImportIssuesURL(tt *testing.T) { +func TestLabel_GetDescription(tt *testing.T) { tt.Parallel() var zeroValue string - i := &IssueImportResponse{ImportIssuesURL: &zeroValue} - i.GetImportIssuesURL() - i = &IssueImportResponse{} - i.GetImportIssuesURL() - i = nil - i.GetImportIssuesURL() + l := &Label{Description: &zeroValue} + l.GetDescription() + l = &Label{} + l.GetDescription() + l = nil + l.GetDescription() } -func TestIssueImportResponse_GetMessage(tt *testing.T) { +func TestLabel_GetID(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &IssueImportResponse{Message: &zeroValue} - i.GetMessage() - i = &IssueImportResponse{} - i.GetMessage() - i = nil - i.GetMessage() + var zeroValue int64 + l := &Label{ID: &zeroValue} + l.GetID() + l = &Label{} + l.GetID() + l = nil + l.GetID() } -func TestIssueImportResponse_GetRepositoryURL(tt *testing.T) { +func TestLabel_GetName(tt *testing.T) { tt.Parallel() var zeroValue string - i := &IssueImportResponse{RepositoryURL: &zeroValue} - i.GetRepositoryURL() - i = &IssueImportResponse{} - i.GetRepositoryURL() - i = nil - i.GetRepositoryURL() + l := &Label{Name: &zeroValue} + l.GetName() + l = &Label{} + l.GetName() + l = nil + l.GetName() } -func TestIssueImportResponse_GetStatus(tt *testing.T) { +func TestLabel_GetNodeID(tt *testing.T) { tt.Parallel() var zeroValue string - i := &IssueImportResponse{Status: &zeroValue} - i.GetStatus() - i = &IssueImportResponse{} - i.GetStatus() - i = nil - i.GetStatus() + l := &Label{NodeID: &zeroValue} + l.GetNodeID() + l = &Label{} + l.GetNodeID() + l = nil + l.GetNodeID() } -func TestIssueImportResponse_GetUpdatedAt(tt *testing.T) { +func TestLabel_GetURL(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - i := &IssueImportResponse{UpdatedAt: &zeroValue} - i.GetUpdatedAt() - i = &IssueImportResponse{} - i.GetUpdatedAt() - i = nil - i.GetUpdatedAt() + var zeroValue string + l := &Label{URL: &zeroValue} + l.GetURL() + l = &Label{} + l.GetURL() + l = nil + l.GetURL() } -func TestIssueImportResponse_GetURL(tt *testing.T) { +func TestLabelEvent_GetAction(tt *testing.T) { tt.Parallel() var zeroValue string - i := &IssueImportResponse{URL: &zeroValue} - i.GetURL() - i = &IssueImportResponse{} - i.GetURL() - i = nil - i.GetURL() + l := &LabelEvent{Action: &zeroValue} + l.GetAction() + l = &LabelEvent{} + l.GetAction() + l = nil + l.GetAction() } -func TestIssueListCommentsOptions_GetDirection(tt *testing.T) { +func TestLabelEvent_GetChanges(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &IssueListCommentsOptions{Direction: &zeroValue} - i.GetDirection() - i = &IssueListCommentsOptions{} - i.GetDirection() - i = nil - i.GetDirection() + l := &LabelEvent{} + l.GetChanges() + l = nil + l.GetChanges() } -func TestIssueListCommentsOptions_GetSince(tt *testing.T) { +func TestLabelEvent_GetInstallation(tt *testing.T) { tt.Parallel() - var zeroValue time.Time - i := &IssueListCommentsOptions{Since: &zeroValue} - i.GetSince() - i = &IssueListCommentsOptions{} - i.GetSince() - i = nil - i.GetSince() + l := &LabelEvent{} + l.GetInstallation() + l = nil + l.GetInstallation() } -func TestIssueListCommentsOptions_GetSort(tt *testing.T) { +func TestLabelEvent_GetLabel(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &IssueListCommentsOptions{Sort: &zeroValue} - i.GetSort() - i = &IssueListCommentsOptions{} - i.GetSort() - i = nil - i.GetSort() + l := &LabelEvent{} + l.GetLabel() + l = nil + l.GetLabel() } -func TestIssueRequest_GetAssignee(tt *testing.T) { +func TestLabelEvent_GetOrg(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &IssueRequest{Assignee: &zeroValue} - i.GetAssignee() - i = &IssueRequest{} - i.GetAssignee() - i = nil - i.GetAssignee() + l := &LabelEvent{} + l.GetOrg() + l = nil + l.GetOrg() } -func TestIssueRequest_GetAssignees(tt *testing.T) { +func TestLabelEvent_GetRepo(tt *testing.T) { tt.Parallel() - var zeroValue []string - i := &IssueRequest{Assignees: &zeroValue} - i.GetAssignees() - i = &IssueRequest{} - i.GetAssignees() - i = nil - i.GetAssignees() + l := &LabelEvent{} + l.GetRepo() + l = nil + l.GetRepo() } -func TestIssueRequest_GetBody(tt *testing.T) { +func TestLabelEvent_GetSender(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &IssueRequest{Body: &zeroValue} - i.GetBody() - i = &IssueRequest{} - i.GetBody() - i = nil - i.GetBody() + l := &LabelEvent{} + l.GetSender() + l = nil + l.GetSender() } -func TestIssueRequest_GetLabels(tt *testing.T) { +func TestLabelResult_GetColor(tt *testing.T) { tt.Parallel() - var zeroValue []string - i := &IssueRequest{Labels: &zeroValue} - i.GetLabels() - i = &IssueRequest{} - i.GetLabels() - i = nil - i.GetLabels() + var zeroValue string + l := &LabelResult{Color: &zeroValue} + l.GetColor() + l = &LabelResult{} + l.GetColor() + l = nil + l.GetColor() } -func TestIssueRequest_GetMilestone(tt *testing.T) { +func TestLabelResult_GetDefault(tt *testing.T) { tt.Parallel() - var zeroValue int - i := &IssueRequest{Milestone: &zeroValue} - i.GetMilestone() - i = &IssueRequest{} - i.GetMilestone() - i = nil - i.GetMilestone() + var zeroValue bool + l := &LabelResult{Default: &zeroValue} + l.GetDefault() + l = &LabelResult{} + l.GetDefault() + l = nil + l.GetDefault() } -func TestIssueRequest_GetState(tt *testing.T) { +func TestLabelResult_GetDescription(tt *testing.T) { tt.Parallel() var zeroValue string - i := &IssueRequest{State: &zeroValue} - i.GetState() - i = &IssueRequest{} - i.GetState() - i = nil - i.GetState() + l := &LabelResult{Description: &zeroValue} + l.GetDescription() + l = &LabelResult{} + l.GetDescription() + l = nil + l.GetDescription() } -func TestIssueRequest_GetStateReason(tt *testing.T) { +func TestLabelResult_GetID(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &IssueRequest{StateReason: &zeroValue} - i.GetStateReason() - i = &IssueRequest{} - i.GetStateReason() - i = nil - i.GetStateReason() + var zeroValue int64 + l := &LabelResult{ID: &zeroValue} + l.GetID() + l = &LabelResult{} + l.GetID() + l = nil + l.GetID() } -func TestIssueRequest_GetTitle(tt *testing.T) { +func TestLabelResult_GetName(tt *testing.T) { tt.Parallel() var zeroValue string - i := &IssueRequest{Title: &zeroValue} - i.GetTitle() - i = &IssueRequest{} - i.GetTitle() - i = nil - i.GetTitle() + l := &LabelResult{Name: &zeroValue} + l.GetName() + l = &LabelResult{} + l.GetName() + l = nil + l.GetName() } -func TestIssuesEvent_GetAction(tt *testing.T) { +func TestLabelResult_GetScore(tt *testing.T) { tt.Parallel() - var zeroValue string - i := &IssuesEvent{Action: &zeroValue} - i.GetAction() - i = &IssuesEvent{} - i.GetAction() - i = nil - i.GetAction() + l := &LabelResult{} + l.GetScore() + l = nil + l.GetScore() } -func TestIssuesEvent_GetAssignee(tt *testing.T) { +func TestLabelResult_GetURL(tt *testing.T) { tt.Parallel() - i := &IssuesEvent{} - i.GetAssignee() - i = nil - i.GetAssignee() + var zeroValue string + l := &LabelResult{URL: &zeroValue} + l.GetURL() + l = &LabelResult{} + l.GetURL() + l = nil + l.GetURL() } -func TestIssuesEvent_GetChanges(tt *testing.T) { +func TestLabelsSearchResult_GetIncompleteResults(tt *testing.T) { tt.Parallel() - i := &IssuesEvent{} - i.GetChanges() - i = nil - i.GetChanges() + var zeroValue bool + l := &LabelsSearchResult{IncompleteResults: &zeroValue} + l.GetIncompleteResults() + l = &LabelsSearchResult{} + l.GetIncompleteResults() + l = nil + l.GetIncompleteResults() } -func TestIssuesEvent_GetInstallation(tt *testing.T) { +func TestLabelsSearchResult_GetTotal(tt *testing.T) { tt.Parallel() - i := &IssuesEvent{} - i.GetInstallation() - i = nil - i.GetInstallation() + var zeroValue int + l := &LabelsSearchResult{Total: &zeroValue} + l.GetTotal() + l = &LabelsSearchResult{} + l.GetTotal() + l = nil + l.GetTotal() } -func TestIssuesEvent_GetIssue(tt *testing.T) { +func TestLargeFile_GetOID(tt *testing.T) { tt.Parallel() - i := &IssuesEvent{} - i.GetIssue() - i = nil - i.GetIssue() + var zeroValue string + l := &LargeFile{OID: &zeroValue} + l.GetOID() + l = &LargeFile{} + l.GetOID() + l = nil + l.GetOID() } -func TestIssuesEvent_GetLabel(tt *testing.T) { +func TestLargeFile_GetPath(tt *testing.T) { tt.Parallel() - i := &IssuesEvent{} - i.GetLabel() - i = nil - i.GetLabel() + var zeroValue string + l := &LargeFile{Path: &zeroValue} + l.GetPath() + l = &LargeFile{} + l.GetPath() + l = nil + l.GetPath() } -func TestIssuesEvent_GetMilestone(tt *testing.T) { +func TestLargeFile_GetRefName(tt *testing.T) { tt.Parallel() - i := &IssuesEvent{} - i.GetMilestone() - i = nil - i.GetMilestone() + var zeroValue string + l := &LargeFile{RefName: &zeroValue} + l.GetRefName() + l = &LargeFile{} + l.GetRefName() + l = nil + l.GetRefName() } -func TestIssuesEvent_GetOrg(tt *testing.T) { +func TestLargeFile_GetSize(tt *testing.T) { tt.Parallel() - i := &IssuesEvent{} - i.GetOrg() - i = nil - i.GetOrg() + var zeroValue int + l := &LargeFile{Size: &zeroValue} + l.GetSize() + l = &LargeFile{} + l.GetSize() + l = nil + l.GetSize() } -func TestIssuesEvent_GetRepo(tt *testing.T) { +func TestLDAP_GetAdminGroup(tt *testing.T) { tt.Parallel() - i := &IssuesEvent{} - i.GetRepo() - i = nil - i.GetRepo() + var zeroValue string + l := &LDAP{AdminGroup: &zeroValue} + l.GetAdminGroup() + l = &LDAP{} + l.GetAdminGroup() + l = nil + l.GetAdminGroup() } -func TestIssuesEvent_GetSender(tt *testing.T) { +func TestLDAP_GetBindDN(tt *testing.T) { tt.Parallel() - i := &IssuesEvent{} - i.GetSender() - i = nil - i.GetSender() + var zeroValue string + l := &LDAP{BindDN: &zeroValue} + l.GetBindDN() + l = &LDAP{} + l.GetBindDN() + l = nil + l.GetBindDN() } -func TestIssuesSearchResult_GetIncompleteResults(tt *testing.T) { +func TestLDAP_GetHost(tt *testing.T) { tt.Parallel() - var zeroValue bool - i := &IssuesSearchResult{IncompleteResults: &zeroValue} - i.GetIncompleteResults() - i = &IssuesSearchResult{} - i.GetIncompleteResults() - i = nil - i.GetIncompleteResults() + var zeroValue string + l := &LDAP{Host: &zeroValue} + l.GetHost() + l = &LDAP{} + l.GetHost() + l = nil + l.GetHost() } -func TestIssuesSearchResult_GetTotal(tt *testing.T) { +func TestLDAP_GetMethod(tt *testing.T) { tt.Parallel() - var zeroValue int - i := &IssuesSearchResult{Total: &zeroValue} - i.GetTotal() - i = &IssuesSearchResult{} - i.GetTotal() - i = nil - i.GetTotal() + var zeroValue string + l := &LDAP{Method: &zeroValue} + l.GetMethod() + l = &LDAP{} + l.GetMethod() + l = nil + l.GetMethod() } -func TestIssueStats_GetClosedIssues(tt *testing.T) { +func TestLDAP_GetPassword(tt *testing.T) { tt.Parallel() - var zeroValue int - i := &IssueStats{ClosedIssues: &zeroValue} - i.GetClosedIssues() - i = &IssueStats{} - i.GetClosedIssues() - i = nil - i.GetClosedIssues() + var zeroValue string + l := &LDAP{Password: &zeroValue} + l.GetPassword() + l = &LDAP{} + l.GetPassword() + l = nil + l.GetPassword() } -func TestIssueStats_GetOpenIssues(tt *testing.T) { +func TestLDAP_GetPort(tt *testing.T) { tt.Parallel() var zeroValue int - i := &IssueStats{OpenIssues: &zeroValue} - i.GetOpenIssues() - i = &IssueStats{} - i.GetOpenIssues() - i = nil - i.GetOpenIssues() + l := &LDAP{Port: &zeroValue} + l.GetPort() + l = &LDAP{} + l.GetPort() + l = nil + l.GetPort() } -func TestIssueStats_GetTotalIssues(tt *testing.T) { +func TestLDAP_GetPosixSupport(tt *testing.T) { tt.Parallel() - var zeroValue int - i := &IssueStats{TotalIssues: &zeroValue} - i.GetTotalIssues() - i = &IssueStats{} - i.GetTotalIssues() - i = nil - i.GetTotalIssues() + var zeroValue bool + l := &LDAP{PosixSupport: &zeroValue} + l.GetPosixSupport() + l = &LDAP{} + l.GetPosixSupport() + l = nil + l.GetPosixSupport() } -func TestJITRunnerConfig_GetEncodedJITConfig(tt *testing.T) { +func TestLDAP_GetProfile(tt *testing.T) { tt.Parallel() - var zeroValue string - j := &JITRunnerConfig{EncodedJITConfig: &zeroValue} - j.GetEncodedJITConfig() - j = &JITRunnerConfig{} - j.GetEncodedJITConfig() - j = nil - j.GetEncodedJITConfig() + l := &LDAP{} + l.GetProfile() + l = nil + l.GetProfile() } -func TestJITRunnerConfig_GetRunner(tt *testing.T) { +func TestLDAP_GetReconciliation(tt *testing.T) { tt.Parallel() - j := &JITRunnerConfig{} - j.GetRunner() - j = nil - j.GetRunner() + l := &LDAP{} + l.GetReconciliation() + l = nil + l.GetReconciliation() } -func TestJobs_GetTotalCount(tt *testing.T) { +func TestLDAP_GetRecursiveGroupSearch(tt *testing.T) { tt.Parallel() - var zeroValue int - j := &Jobs{TotalCount: &zeroValue} - j.GetTotalCount() - j = &Jobs{} - j.GetTotalCount() - j = nil - j.GetTotalCount() + var zeroValue bool + l := &LDAP{RecursiveGroupSearch: &zeroValue} + l.GetRecursiveGroupSearch() + l = &LDAP{} + l.GetRecursiveGroupSearch() + l = nil + l.GetRecursiveGroupSearch() } -func TestKey_GetAddedBy(tt *testing.T) { +func TestLDAP_GetSearchStrategy(tt *testing.T) { tt.Parallel() var zeroValue string - k := &Key{AddedBy: &zeroValue} - k.GetAddedBy() - k = &Key{} - k.GetAddedBy() - k = nil - k.GetAddedBy() -} - -func TestKey_GetCreatedAt(tt *testing.T) { - tt.Parallel() - var zeroValue Timestamp - k := &Key{CreatedAt: &zeroValue} - k.GetCreatedAt() - k = &Key{} - k.GetCreatedAt() - k = nil - k.GetCreatedAt() + l := &LDAP{SearchStrategy: &zeroValue} + l.GetSearchStrategy() + l = &LDAP{} + l.GetSearchStrategy() + l = nil + l.GetSearchStrategy() } -func TestKey_GetID(tt *testing.T) { +func TestLDAP_GetSyncEnabled(tt *testing.T) { tt.Parallel() - var zeroValue int64 - k := &Key{ID: &zeroValue} - k.GetID() - k = &Key{} - k.GetID() - k = nil - k.GetID() + var zeroValue bool + l := &LDAP{SyncEnabled: &zeroValue} + l.GetSyncEnabled() + l = &LDAP{} + l.GetSyncEnabled() + l = nil + l.GetSyncEnabled() } -func TestKey_GetKey(tt *testing.T) { +func TestLDAP_GetTeamSyncInterval(tt *testing.T) { tt.Parallel() - var zeroValue string - k := &Key{Key: &zeroValue} - k.GetKey() - k = &Key{} - k.GetKey() - k = nil - k.GetKey() + var zeroValue int + l := &LDAP{TeamSyncInterval: &zeroValue} + l.GetTeamSyncInterval() + l = &LDAP{} + l.GetTeamSyncInterval() + l = nil + l.GetTeamSyncInterval() } -func TestKey_GetLastUsed(tt *testing.T) { +func TestLDAP_GetUID(tt *testing.T) { tt.Parallel() - var zeroValue Timestamp - k := &Key{LastUsed: &zeroValue} - k.GetLastUsed() - k = &Key{} - k.GetLastUsed() - k = nil - k.GetLastUsed() + var zeroValue string + l := &LDAP{UID: &zeroValue} + l.GetUID() + l = &LDAP{} + l.GetUID() + l = nil + l.GetUID() } -func TestKey_GetReadOnly(tt *testing.T) { +func TestLDAP_GetUserSyncEmails(tt *testing.T) { tt.Parallel() var zeroValue bool - k := &Key{ReadOnly: &zeroValue} - k.GetReadOnly() - k = &Key{} - k.GetReadOnly() - k = nil - k.GetReadOnly() + l := &LDAP{UserSyncEmails: &zeroValue} + l.GetUserSyncEmails() + l = &LDAP{} + l.GetUserSyncEmails() + l = nil + l.GetUserSyncEmails() } -func TestKey_GetTitle(tt *testing.T) { +func TestLDAP_GetUserSyncInterval(tt *testing.T) { tt.Parallel() - var zeroValue string - k := &Key{Title: &zeroValue} - k.GetTitle() - k = &Key{} - k.GetTitle() - k = nil - k.GetTitle() + var zeroValue int + l := &LDAP{UserSyncInterval: &zeroValue} + l.GetUserSyncInterval() + l = &LDAP{} + l.GetUserSyncInterval() + l = nil + l.GetUserSyncInterval() } -func TestKey_GetURL(tt *testing.T) { +func TestLDAP_GetUserSyncKeys(tt *testing.T) { tt.Parallel() - var zeroValue string - k := &Key{URL: &zeroValue} - k.GetURL() - k = &Key{} - k.GetURL() - k = nil - k.GetURL() + var zeroValue bool + l := &LDAP{UserSyncKeys: &zeroValue} + l.GetUserSyncKeys() + l = &LDAP{} + l.GetUserSyncKeys() + l = nil + l.GetUserSyncKeys() } -func TestKey_GetVerified(tt *testing.T) { +func TestLDAP_GetVirtualAttributeEnabled(tt *testing.T) { tt.Parallel() var zeroValue bool - k := &Key{Verified: &zeroValue} - k.GetVerified() - k = &Key{} - k.GetVerified() - k = nil - k.GetVerified() + l := &LDAP{VirtualAttributeEnabled: &zeroValue} + l.GetVirtualAttributeEnabled() + l = &LDAP{} + l.GetVirtualAttributeEnabled() + l = nil + l.GetVirtualAttributeEnabled() } -func TestLabel_GetColor(tt *testing.T) { +func TestLicense_GetBody(tt *testing.T) { tt.Parallel() var zeroValue string - l := &Label{Color: &zeroValue} - l.GetColor() - l = &Label{} - l.GetColor() + l := &License{Body: &zeroValue} + l.GetBody() + l = &License{} + l.GetBody() l = nil - l.GetColor() + l.GetBody() } -func TestLabel_GetDefault(tt *testing.T) { +func TestLicense_GetConditions(tt *testing.T) { tt.Parallel() - var zeroValue bool - l := &Label{Default: &zeroValue} - l.GetDefault() - l = &Label{} - l.GetDefault() + var zeroValue []string + l := &License{Conditions: &zeroValue} + l.GetConditions() + l = &License{} + l.GetConditions() l = nil - l.GetDefault() + l.GetConditions() } -func TestLabel_GetDescription(tt *testing.T) { +func TestLicense_GetDescription(tt *testing.T) { tt.Parallel() var zeroValue string - l := &Label{Description: &zeroValue} + l := &License{Description: &zeroValue} l.GetDescription() - l = &Label{} + l = &License{} l.GetDescription() l = nil l.GetDescription() } -func TestLabel_GetID(tt *testing.T) { - tt.Parallel() - var zeroValue int64 - l := &Label{ID: &zeroValue} - l.GetID() - l = &Label{} - l.GetID() - l = nil - l.GetID() -} - -func TestLabel_GetName(tt *testing.T) { +func TestLicense_GetFeatured(tt *testing.T) { tt.Parallel() - var zeroValue string - l := &Label{Name: &zeroValue} - l.GetName() - l = &Label{} - l.GetName() + var zeroValue bool + l := &License{Featured: &zeroValue} + l.GetFeatured() + l = &License{} + l.GetFeatured() l = nil - l.GetName() + l.GetFeatured() } -func TestLabel_GetNodeID(tt *testing.T) { +func TestLicense_GetHTMLURL(tt *testing.T) { tt.Parallel() var zeroValue string - l := &Label{NodeID: &zeroValue} - l.GetNodeID() - l = &Label{} - l.GetNodeID() + l := &License{HTMLURL: &zeroValue} + l.GetHTMLURL() + l = &License{} + l.GetHTMLURL() l = nil - l.GetNodeID() + l.GetHTMLURL() } -func TestLabel_GetURL(tt *testing.T) { +func TestLicense_GetImplementation(tt *testing.T) { tt.Parallel() var zeroValue string - l := &Label{URL: &zeroValue} - l.GetURL() - l = &Label{} - l.GetURL() + l := &License{Implementation: &zeroValue} + l.GetImplementation() + l = &License{} + l.GetImplementation() l = nil - l.GetURL() + l.GetImplementation() } -func TestLabelEvent_GetAction(tt *testing.T) { +func TestLicense_GetKey(tt *testing.T) { tt.Parallel() var zeroValue string - l := &LabelEvent{Action: &zeroValue} - l.GetAction() - l = &LabelEvent{} - l.GetAction() + l := &License{Key: &zeroValue} + l.GetKey() + l = &License{} + l.GetKey() l = nil - l.GetAction() + l.GetKey() } -func TestLabelEvent_GetChanges(tt *testing.T) { +func TestLicense_GetLimitations(tt *testing.T) { tt.Parallel() - l := &LabelEvent{} - l.GetChanges() + var zeroValue []string + l := &License{Limitations: &zeroValue} + l.GetLimitations() + l = &License{} + l.GetLimitations() l = nil - l.GetChanges() + l.GetLimitations() } -func TestLabelEvent_GetInstallation(tt *testing.T) { +func TestLicense_GetName(tt *testing.T) { tt.Parallel() - l := &LabelEvent{} - l.GetInstallation() + var zeroValue string + l := &License{Name: &zeroValue} + l.GetName() + l = &License{} + l.GetName() l = nil - l.GetInstallation() + l.GetName() } -func TestLabelEvent_GetLabel(tt *testing.T) { +func TestLicense_GetPermissions(tt *testing.T) { tt.Parallel() - l := &LabelEvent{} - l.GetLabel() + var zeroValue []string + l := &License{Permissions: &zeroValue} + l.GetPermissions() + l = &License{} + l.GetPermissions() l = nil - l.GetLabel() + l.GetPermissions() } -func TestLabelEvent_GetOrg(tt *testing.T) { +func TestLicense_GetSPDXID(tt *testing.T) { tt.Parallel() - l := &LabelEvent{} - l.GetOrg() + var zeroValue string + l := &License{SPDXID: &zeroValue} + l.GetSPDXID() + l = &License{} + l.GetSPDXID() l = nil - l.GetOrg() + l.GetSPDXID() } -func TestLabelEvent_GetRepo(tt *testing.T) { +func TestLicense_GetURL(tt *testing.T) { tt.Parallel() - l := &LabelEvent{} - l.GetRepo() + var zeroValue string + l := &License{URL: &zeroValue} + l.GetURL() + l = &License{} + l.GetURL() l = nil - l.GetRepo() + l.GetURL() } -func TestLabelEvent_GetSender(tt *testing.T) { +func TestLicenseCheck_GetStatus(tt *testing.T) { tt.Parallel() - l := &LabelEvent{} - l.GetSender() + var zeroValue string + l := &LicenseCheck{Status: &zeroValue} + l.GetStatus() + l = &LicenseCheck{} + l.GetStatus() l = nil - l.GetSender() + l.GetStatus() } -func TestLabelResult_GetColor(tt *testing.T) { +func TestLicenseSettings_GetClusterSupport(tt *testing.T) { tt.Parallel() - var zeroValue string - l := &LabelResult{Color: &zeroValue} - l.GetColor() - l = &LabelResult{} - l.GetColor() + var zeroValue bool + l := &LicenseSettings{ClusterSupport: &zeroValue} + l.GetClusterSupport() + l = &LicenseSettings{} + l.GetClusterSupport() l = nil - l.GetColor() + l.GetClusterSupport() } -func TestLabelResult_GetDefault(tt *testing.T) { +func TestLicenseSettings_GetEvaluation(tt *testing.T) { tt.Parallel() var zeroValue bool - l := &LabelResult{Default: &zeroValue} - l.GetDefault() - l = &LabelResult{} - l.GetDefault() + l := &LicenseSettings{Evaluation: &zeroValue} + l.GetEvaluation() + l = &LicenseSettings{} + l.GetEvaluation() l = nil - l.GetDefault() + l.GetEvaluation() } -func TestLabelResult_GetDescription(tt *testing.T) { +func TestLicenseSettings_GetExpireAt(tt *testing.T) { tt.Parallel() - var zeroValue string - l := &LabelResult{Description: &zeroValue} - l.GetDescription() - l = &LabelResult{} - l.GetDescription() + var zeroValue Timestamp + l := &LicenseSettings{ExpireAt: &zeroValue} + l.GetExpireAt() + l = &LicenseSettings{} + l.GetExpireAt() l = nil - l.GetDescription() + l.GetExpireAt() } -func TestLabelResult_GetID(tt *testing.T) { +func TestLicenseSettings_GetPerpetual(tt *testing.T) { tt.Parallel() - var zeroValue int64 - l := &LabelResult{ID: &zeroValue} - l.GetID() - l = &LabelResult{} - l.GetID() + var zeroValue bool + l := &LicenseSettings{Perpetual: &zeroValue} + l.GetPerpetual() + l = &LicenseSettings{} + l.GetPerpetual() l = nil - l.GetID() + l.GetPerpetual() } -func TestLabelResult_GetName(tt *testing.T) { +func TestLicenseSettings_GetSeats(tt *testing.T) { tt.Parallel() - var zeroValue string - l := &LabelResult{Name: &zeroValue} - l.GetName() - l = &LabelResult{} - l.GetName() + var zeroValue int + l := &LicenseSettings{Seats: &zeroValue} + l.GetSeats() + l = &LicenseSettings{} + l.GetSeats() l = nil - l.GetName() + l.GetSeats() } -func TestLabelResult_GetScore(tt *testing.T) { +func TestLicenseSettings_GetSSHAllowed(tt *testing.T) { tt.Parallel() - l := &LabelResult{} - l.GetScore() + var zeroValue bool + l := &LicenseSettings{SSHAllowed: &zeroValue} + l.GetSSHAllowed() + l = &LicenseSettings{} + l.GetSSHAllowed() l = nil - l.GetScore() + l.GetSSHAllowed() } -func TestLabelResult_GetURL(tt *testing.T) { +func TestLicenseSettings_GetSupportKey(tt *testing.T) { tt.Parallel() var zeroValue string - l := &LabelResult{URL: &zeroValue} - l.GetURL() - l = &LabelResult{} - l.GetURL() + l := &LicenseSettings{SupportKey: &zeroValue} + l.GetSupportKey() + l = &LicenseSettings{} + l.GetSupportKey() l = nil - l.GetURL() + l.GetSupportKey() } -func TestLabelsSearchResult_GetIncompleteResults(tt *testing.T) { +func TestLicenseSettings_GetUnlimitedSeating(tt *testing.T) { tt.Parallel() var zeroValue bool - l := &LabelsSearchResult{IncompleteResults: &zeroValue} - l.GetIncompleteResults() - l = &LabelsSearchResult{} - l.GetIncompleteResults() + l := &LicenseSettings{UnlimitedSeating: &zeroValue} + l.GetUnlimitedSeating() + l = &LicenseSettings{} + l.GetUnlimitedSeating() l = nil - l.GetIncompleteResults() + l.GetUnlimitedSeating() } -func TestLabelsSearchResult_GetTotal(tt *testing.T) { - tt.Parallel() - var zeroValue int - l := &LabelsSearchResult{Total: &zeroValue} - l.GetTotal() - l = &LabelsSearchResult{} - l.GetTotal() +func TestLicenseStatus_GetAdvancedSecurityEnabled(tt *testing.T) { + tt.Parallel() + var zeroValue bool + l := &LicenseStatus{AdvancedSecurityEnabled: &zeroValue} + l.GetAdvancedSecurityEnabled() + l = &LicenseStatus{} + l.GetAdvancedSecurityEnabled() l = nil - l.GetTotal() + l.GetAdvancedSecurityEnabled() } -func TestLargeFile_GetOID(tt *testing.T) { +func TestLicenseStatus_GetAdvancedSecuritySeats(tt *testing.T) { tt.Parallel() - var zeroValue string - l := &LargeFile{OID: &zeroValue} - l.GetOID() - l = &LargeFile{} - l.GetOID() + var zeroValue int + l := &LicenseStatus{AdvancedSecuritySeats: &zeroValue} + l.GetAdvancedSecuritySeats() + l = &LicenseStatus{} + l.GetAdvancedSecuritySeats() l = nil - l.GetOID() + l.GetAdvancedSecuritySeats() } -func TestLargeFile_GetPath(tt *testing.T) { +func TestLicenseStatus_GetClusterSupport(tt *testing.T) { tt.Parallel() - var zeroValue string - l := &LargeFile{Path: &zeroValue} - l.GetPath() - l = &LargeFile{} - l.GetPath() + var zeroValue bool + l := &LicenseStatus{ClusterSupport: &zeroValue} + l.GetClusterSupport() + l = &LicenseStatus{} + l.GetClusterSupport() l = nil - l.GetPath() + l.GetClusterSupport() } -func TestLargeFile_GetRefName(tt *testing.T) { +func TestLicenseStatus_GetCompany(tt *testing.T) { tt.Parallel() var zeroValue string - l := &LargeFile{RefName: &zeroValue} - l.GetRefName() - l = &LargeFile{} - l.GetRefName() + l := &LicenseStatus{Company: &zeroValue} + l.GetCompany() + l = &LicenseStatus{} + l.GetCompany() l = nil - l.GetRefName() + l.GetCompany() } -func TestLargeFile_GetSize(tt *testing.T) { +func TestLicenseStatus_GetCroquetSupport(tt *testing.T) { tt.Parallel() - var zeroValue int - l := &LargeFile{Size: &zeroValue} - l.GetSize() - l = &LargeFile{} - l.GetSize() + var zeroValue bool + l := &LicenseStatus{CroquetSupport: &zeroValue} + l.GetCroquetSupport() + l = &LicenseStatus{} + l.GetCroquetSupport() l = nil - l.GetSize() + l.GetCroquetSupport() } -func TestLicense_GetBody(tt *testing.T) { +func TestLicenseStatus_GetCustomTerms(tt *testing.T) { tt.Parallel() - var zeroValue string - l := &License{Body: &zeroValue} - l.GetBody() - l = &License{} - l.GetBody() + var zeroValue bool + l := &LicenseStatus{CustomTerms: &zeroValue} + l.GetCustomTerms() + l = &LicenseStatus{} + l.GetCustomTerms() l = nil - l.GetBody() + l.GetCustomTerms() } -func TestLicense_GetConditions(tt *testing.T) { +func TestLicenseStatus_GetEvaluation(tt *testing.T) { tt.Parallel() - var zeroValue []string - l := &License{Conditions: &zeroValue} - l.GetConditions() - l = &License{} - l.GetConditions() + var zeroValue bool + l := &LicenseStatus{Evaluation: &zeroValue} + l.GetEvaluation() + l = &LicenseStatus{} + l.GetEvaluation() l = nil - l.GetConditions() + l.GetEvaluation() } -func TestLicense_GetDescription(tt *testing.T) { +func TestLicenseStatus_GetExpireAt(tt *testing.T) { tt.Parallel() - var zeroValue string - l := &License{Description: &zeroValue} - l.GetDescription() - l = &License{} - l.GetDescription() + var zeroValue Timestamp + l := &LicenseStatus{ExpireAt: &zeroValue} + l.GetExpireAt() + l = &LicenseStatus{} + l.GetExpireAt() l = nil - l.GetDescription() + l.GetExpireAt() } -func TestLicense_GetFeatured(tt *testing.T) { +func TestLicenseStatus_GetInsightsEnabled(tt *testing.T) { tt.Parallel() var zeroValue bool - l := &License{Featured: &zeroValue} - l.GetFeatured() - l = &License{} - l.GetFeatured() + l := &LicenseStatus{InsightsEnabled: &zeroValue} + l.GetInsightsEnabled() + l = &LicenseStatus{} + l.GetInsightsEnabled() l = nil - l.GetFeatured() + l.GetInsightsEnabled() } -func TestLicense_GetHTMLURL(tt *testing.T) { +func TestLicenseStatus_GetInsightsExpireAt(tt *testing.T) { tt.Parallel() - var zeroValue string - l := &License{HTMLURL: &zeroValue} - l.GetHTMLURL() - l = &License{} - l.GetHTMLURL() + var zeroValue Timestamp + l := &LicenseStatus{InsightsExpireAt: &zeroValue} + l.GetInsightsExpireAt() + l = &LicenseStatus{} + l.GetInsightsExpireAt() l = nil - l.GetHTMLURL() + l.GetInsightsExpireAt() } -func TestLicense_GetImplementation(tt *testing.T) { +func TestLicenseStatus_GetLearningLabEvaluationExpires(tt *testing.T) { tt.Parallel() - var zeroValue string - l := &License{Implementation: &zeroValue} - l.GetImplementation() - l = &License{} - l.GetImplementation() + var zeroValue Timestamp + l := &LicenseStatus{LearningLabEvaluationExpires: &zeroValue} + l.GetLearningLabEvaluationExpires() + l = &LicenseStatus{} + l.GetLearningLabEvaluationExpires() l = nil - l.GetImplementation() + l.GetLearningLabEvaluationExpires() } -func TestLicense_GetKey(tt *testing.T) { +func TestLicenseStatus_GetLearningLabSeats(tt *testing.T) { tt.Parallel() - var zeroValue string - l := &License{Key: &zeroValue} - l.GetKey() - l = &License{} - l.GetKey() + var zeroValue int + l := &LicenseStatus{LearningLabSeats: &zeroValue} + l.GetLearningLabSeats() + l = &LicenseStatus{} + l.GetLearningLabSeats() l = nil - l.GetKey() + l.GetLearningLabSeats() } -func TestLicense_GetLimitations(tt *testing.T) { +func TestLicenseStatus_GetPerpetual(tt *testing.T) { tt.Parallel() - var zeroValue []string - l := &License{Limitations: &zeroValue} - l.GetLimitations() - l = &License{} - l.GetLimitations() + var zeroValue bool + l := &LicenseStatus{Perpetual: &zeroValue} + l.GetPerpetual() + l = &LicenseStatus{} + l.GetPerpetual() l = nil - l.GetLimitations() + l.GetPerpetual() } -func TestLicense_GetName(tt *testing.T) { +func TestLicenseStatus_GetReferenceNumber(tt *testing.T) { tt.Parallel() var zeroValue string - l := &License{Name: &zeroValue} - l.GetName() - l = &License{} - l.GetName() + l := &LicenseStatus{ReferenceNumber: &zeroValue} + l.GetReferenceNumber() + l = &LicenseStatus{} + l.GetReferenceNumber() l = nil - l.GetName() + l.GetReferenceNumber() } -func TestLicense_GetPermissions(tt *testing.T) { +func TestLicenseStatus_GetSeats(tt *testing.T) { tt.Parallel() - var zeroValue []string - l := &License{Permissions: &zeroValue} - l.GetPermissions() - l = &License{} - l.GetPermissions() + var zeroValue int + l := &LicenseStatus{Seats: &zeroValue} + l.GetSeats() + l = &LicenseStatus{} + l.GetSeats() l = nil - l.GetPermissions() + l.GetSeats() } -func TestLicense_GetSPDXID(tt *testing.T) { +func TestLicenseStatus_GetSSHAllowed(tt *testing.T) { tt.Parallel() - var zeroValue string - l := &License{SPDXID: &zeroValue} - l.GetSPDXID() - l = &License{} - l.GetSPDXID() + var zeroValue bool + l := &LicenseStatus{SSHAllowed: &zeroValue} + l.GetSSHAllowed() + l = &LicenseStatus{} + l.GetSSHAllowed() l = nil - l.GetSPDXID() + l.GetSSHAllowed() } -func TestLicense_GetURL(tt *testing.T) { +func TestLicenseStatus_GetSupportKey(tt *testing.T) { tt.Parallel() var zeroValue string - l := &License{URL: &zeroValue} - l.GetURL() - l = &License{} - l.GetURL() + l := &LicenseStatus{SupportKey: &zeroValue} + l.GetSupportKey() + l = &LicenseStatus{} + l.GetSupportKey() l = nil - l.GetURL() + l.GetSupportKey() +} + +func TestLicenseStatus_GetUnlimitedSeating(tt *testing.T) { + tt.Parallel() + var zeroValue bool + l := &LicenseStatus{UnlimitedSeating: &zeroValue} + l.GetUnlimitedSeating() + l = &LicenseStatus{} + l.GetUnlimitedSeating() + l = nil + l.GetUnlimitedSeating() } func TestLinearHistoryRequirementEnforcementLevelChanges_GetFrom(tt *testing.T) { @@ -15499,6 +16823,193 @@ func TestLockBranch_GetEnabled(tt *testing.T) { l.GetEnabled() } +func TestMaintenanceOperationStatus_GetHostname(tt *testing.T) { + tt.Parallel() + var zeroValue string + m := &MaintenanceOperationStatus{Hostname: &zeroValue} + m.GetHostname() + m = &MaintenanceOperationStatus{} + m.GetHostname() + m = nil + m.GetHostname() +} + +func TestMaintenanceOperationStatus_GetMessage(tt *testing.T) { + tt.Parallel() + var zeroValue string + m := &MaintenanceOperationStatus{Message: &zeroValue} + m.GetMessage() + m = &MaintenanceOperationStatus{} + m.GetMessage() + m = nil + m.GetMessage() +} + +func TestMaintenanceOperationStatus_GetUUID(tt *testing.T) { + tt.Parallel() + var zeroValue string + m := &MaintenanceOperationStatus{UUID: &zeroValue} + m.GetUUID() + m = &MaintenanceOperationStatus{} + m.GetUUID() + m = nil + m.GetUUID() +} + +func TestMaintenanceOptions_GetEnabled(tt *testing.T) { + tt.Parallel() + var zeroValue bool + m := &MaintenanceOptions{Enabled: &zeroValue} + m.GetEnabled() + m = &MaintenanceOptions{} + m.GetEnabled() + m = nil + m.GetEnabled() +} + +func TestMaintenanceOptions_GetMaintenanceModeMessage(tt *testing.T) { + tt.Parallel() + var zeroValue string + m := &MaintenanceOptions{MaintenanceModeMessage: &zeroValue} + m.GetMaintenanceModeMessage() + m = &MaintenanceOptions{} + m.GetMaintenanceModeMessage() + m = nil + m.GetMaintenanceModeMessage() +} + +func TestMaintenanceOptions_GetUUID(tt *testing.T) { + tt.Parallel() + var zeroValue string + m := &MaintenanceOptions{UUID: &zeroValue} + m.GetUUID() + m = &MaintenanceOptions{} + m.GetUUID() + m = nil + m.GetUUID() +} + +func TestMaintenanceOptions_GetWhen(tt *testing.T) { + tt.Parallel() + var zeroValue string + m := &MaintenanceOptions{When: &zeroValue} + m.GetWhen() + m = &MaintenanceOptions{} + m.GetWhen() + m = nil + m.GetWhen() +} + +func TestMaintenanceStatus_GetCanUnsetMaintenance(tt *testing.T) { + tt.Parallel() + var zeroValue bool + m := &MaintenanceStatus{CanUnsetMaintenance: &zeroValue} + m.GetCanUnsetMaintenance() + m = &MaintenanceStatus{} + m.GetCanUnsetMaintenance() + m = nil + m.GetCanUnsetMaintenance() +} + +func TestMaintenanceStatus_GetHostname(tt *testing.T) { + tt.Parallel() + var zeroValue string + m := &MaintenanceStatus{Hostname: &zeroValue} + m.GetHostname() + m = &MaintenanceStatus{} + m.GetHostname() + m = nil + m.GetHostname() +} + +func TestMaintenanceStatus_GetMaintenanceModeMessage(tt *testing.T) { + tt.Parallel() + var zeroValue string + m := &MaintenanceStatus{MaintenanceModeMessage: &zeroValue} + m.GetMaintenanceModeMessage() + m = &MaintenanceStatus{} + m.GetMaintenanceModeMessage() + m = nil + m.GetMaintenanceModeMessage() +} + +func TestMaintenanceStatus_GetScheduledTime(tt *testing.T) { + tt.Parallel() + var zeroValue Timestamp + m := &MaintenanceStatus{ScheduledTime: &zeroValue} + m.GetScheduledTime() + m = &MaintenanceStatus{} + m.GetScheduledTime() + m = nil + m.GetScheduledTime() +} + +func TestMaintenanceStatus_GetStatus(tt *testing.T) { + tt.Parallel() + var zeroValue string + m := &MaintenanceStatus{Status: &zeroValue} + m.GetStatus() + m = &MaintenanceStatus{} + m.GetStatus() + m = nil + m.GetStatus() +} + +func TestMaintenanceStatus_GetUUID(tt *testing.T) { + tt.Parallel() + var zeroValue string + m := &MaintenanceStatus{UUID: &zeroValue} + m.GetUUID() + m = &MaintenanceStatus{} + m.GetUUID() + m = nil + m.GetUUID() +} + +func TestMapping_GetBasemap(tt *testing.T) { + tt.Parallel() + var zeroValue string + m := &Mapping{Basemap: &zeroValue} + m.GetBasemap() + m = &Mapping{} + m.GetBasemap() + m = nil + m.GetBasemap() +} + +func TestMapping_GetEnabled(tt *testing.T) { + tt.Parallel() + var zeroValue bool + m := &Mapping{Enabled: &zeroValue} + m.GetEnabled() + m = &Mapping{} + m.GetEnabled() + m = nil + m.GetEnabled() +} + +func TestMapping_GetTileserver(tt *testing.T) { + tt.Parallel() + var zeroValue string + m := &Mapping{Tileserver: &zeroValue} + m.GetTileserver() + m = &Mapping{} + m.GetTileserver() + m = nil + m.GetTileserver() +} + +func TestMapping_GetToken(tt *testing.T) { + tt.Parallel() + var zeroValue string + m := &Mapping{Token: &zeroValue} + m.GetToken() + m = &Mapping{} + m.GetToken() + m = nil + m.GetToken() +} + func TestMarketplacePendingChange_GetEffectiveDate(tt *testing.T) { tt.Parallel() var zeroValue Timestamp @@ -17069,6 +18580,58 @@ func TestNewTeam_GetPrivacy(tt *testing.T) { n.GetPrivacy() } +func TestNodeDetails_GetHostname(tt *testing.T) { + tt.Parallel() + var zeroValue string + n := &NodeDetails{Hostname: &zeroValue} + n.GetHostname() + n = &NodeDetails{} + n.GetHostname() + n = nil + n.GetHostname() +} + +func TestNodeDetails_GetUUID(tt *testing.T) { + tt.Parallel() + var zeroValue string + n := &NodeDetails{UUID: &zeroValue} + n.GetUUID() + n = &NodeDetails{} + n.GetUUID() + n = nil + n.GetUUID() +} + +func TestNodeMetadataStatus_GetTopology(tt *testing.T) { + tt.Parallel() + var zeroValue string + n := &NodeMetadataStatus{Topology: &zeroValue} + n.GetTopology() + n = &NodeMetadataStatus{} + n.GetTopology() + n = nil + n.GetTopology() +} + +func TestNodeReleaseVersions_GetHostname(tt *testing.T) { + tt.Parallel() + var zeroValue string + n := &NodeReleaseVersions{Hostname: &zeroValue} + n.GetHostname() + n = &NodeReleaseVersions{} + n.GetHostname() + n = nil + n.GetHostname() +} + +func TestNodeReleaseVersions_GetVersion(tt *testing.T) { + tt.Parallel() + n := &NodeReleaseVersions{} + n.GetVersion() + n = nil + n.GetVersion() +} + func TestNotification_GetID(tt *testing.T) { tt.Parallel() var zeroValue string @@ -17184,15 +18747,37 @@ func TestNotificationSubject_GetType(tt *testing.T) { n.GetType() } -func TestNotificationSubject_GetURL(tt *testing.T) { +func TestNotificationSubject_GetURL(tt *testing.T) { + tt.Parallel() + var zeroValue string + n := &NotificationSubject{URL: &zeroValue} + n.GetURL() + n = &NotificationSubject{} + n.GetURL() + n = nil + n.GetURL() +} + +func TestNTP_GetPrimaryServer(tt *testing.T) { + tt.Parallel() + var zeroValue string + n := &NTP{PrimaryServer: &zeroValue} + n.GetPrimaryServer() + n = &NTP{} + n.GetPrimaryServer() + n = nil + n.GetPrimaryServer() +} + +func TestNTP_GetSecondaryServer(tt *testing.T) { tt.Parallel() var zeroValue string - n := &NotificationSubject{URL: &zeroValue} - n.GetURL() - n = &NotificationSubject{} - n.GetURL() + n := &NTP{SecondaryServer: &zeroValue} + n.GetSecondaryServer() + n = &NTP{} + n.GetSecondaryServer() n = nil - n.GetURL() + n.GetSecondaryServer() } func TestOAuthAPP_GetClientID(tt *testing.T) { @@ -19586,6 +21171,17 @@ func TestPagesHTTPSCertificate_GetState(tt *testing.T) { p.GetState() } +func TestPagesSettings_GetEnabled(tt *testing.T) { + tt.Parallel() + var zeroValue bool + p := &PagesSettings{Enabled: &zeroValue} + p.GetEnabled() + p = &PagesSettings{} + p.GetEnabled() + p = nil + p.GetEnabled() +} + func TestPagesSource_GetBranch(tt *testing.T) { tt.Parallel() var zeroValue string @@ -20322,6 +21918,50 @@ func TestPRLinks_GetStatuses(tt *testing.T) { p.GetStatuses() } +func TestProfile_GetKey(tt *testing.T) { + tt.Parallel() + var zeroValue string + p := &Profile{Key: &zeroValue} + p.GetKey() + p = &Profile{} + p.GetKey() + p = nil + p.GetKey() +} + +func TestProfile_GetMail(tt *testing.T) { + tt.Parallel() + var zeroValue string + p := &Profile{Mail: &zeroValue} + p.GetMail() + p = &Profile{} + p.GetMail() + p = nil + p.GetMail() +} + +func TestProfile_GetName(tt *testing.T) { + tt.Parallel() + var zeroValue string + p := &Profile{Name: &zeroValue} + p.GetName() + p = &Profile{} + p.GetName() + p = nil + p.GetName() +} + +func TestProfile_GetUID(tt *testing.T) { + tt.Parallel() + var zeroValue string + p := &Profile{UID: &zeroValue} + p.GetUID() + p = &Profile{} + p.GetUID() + p = nil + p.GetUID() +} + func TestProjectBody_GetFrom(tt *testing.T) { tt.Parallel() var zeroValue string @@ -23897,6 +25537,28 @@ func TestReactions_GetURL(tt *testing.T) { r.GetURL() } +func TestReconciliation_GetOrg(tt *testing.T) { + tt.Parallel() + var zeroValue string + r := &Reconciliation{Org: &zeroValue} + r.GetOrg() + r = &Reconciliation{} + r.GetOrg() + r = nil + r.GetOrg() +} + +func TestReconciliation_GetUser(tt *testing.T) { + tt.Parallel() + var zeroValue string + r := &Reconciliation{User: &zeroValue} + r.GetUser() + r = &Reconciliation{} + r.GetUser() + r = nil + r.GetUser() +} + func TestReference_GetNodeID(tt *testing.T) { tt.Parallel() var zeroValue string @@ -24184,6 +25846,50 @@ func TestReleaseEvent_GetSender(tt *testing.T) { r.GetSender() } +func TestReleaseVersions_GetBuildDate(tt *testing.T) { + tt.Parallel() + var zeroValue string + r := &ReleaseVersions{BuildDate: &zeroValue} + r.GetBuildDate() + r = &ReleaseVersions{} + r.GetBuildDate() + r = nil + r.GetBuildDate() +} + +func TestReleaseVersions_GetBuildID(tt *testing.T) { + tt.Parallel() + var zeroValue string + r := &ReleaseVersions{BuildID: &zeroValue} + r.GetBuildID() + r = &ReleaseVersions{} + r.GetBuildID() + r = nil + r.GetBuildID() +} + +func TestReleaseVersions_GetPlatform(tt *testing.T) { + tt.Parallel() + var zeroValue string + r := &ReleaseVersions{Platform: &zeroValue} + r.GetPlatform() + r = &ReleaseVersions{} + r.GetPlatform() + r = nil + r.GetPlatform() +} + +func TestReleaseVersions_GetVersion(tt *testing.T) { + tt.Parallel() + var zeroValue string + r := &ReleaseVersions{Version: &zeroValue} + r.GetVersion() + r = &ReleaseVersions{} + r.GetVersion() + r = nil + r.GetVersion() +} + func TestRemoveToken_GetExpiresAt(tt *testing.T) { tt.Parallel() var zeroValue Timestamp @@ -28517,6 +30223,72 @@ func TestRunnerLabels_GetType(tt *testing.T) { r.GetType() } +func TestSAML_GetCertificate(tt *testing.T) { + tt.Parallel() + var zeroValue string + s := &SAML{Certificate: &zeroValue} + s.GetCertificate() + s = &SAML{} + s.GetCertificate() + s = nil + s.GetCertificate() +} + +func TestSAML_GetCertificatePath(tt *testing.T) { + tt.Parallel() + var zeroValue string + s := &SAML{CertificatePath: &zeroValue} + s.GetCertificatePath() + s = &SAML{} + s.GetCertificatePath() + s = nil + s.GetCertificatePath() +} + +func TestSAML_GetDisableAdminDemote(tt *testing.T) { + tt.Parallel() + var zeroValue bool + s := &SAML{DisableAdminDemote: &zeroValue} + s.GetDisableAdminDemote() + s = &SAML{} + s.GetDisableAdminDemote() + s = nil + s.GetDisableAdminDemote() +} + +func TestSAML_GetIDPInitiatedSSO(tt *testing.T) { + tt.Parallel() + var zeroValue bool + s := &SAML{IDPInitiatedSSO: &zeroValue} + s.GetIDPInitiatedSSO() + s = &SAML{} + s.GetIDPInitiatedSSO() + s = nil + s.GetIDPInitiatedSSO() +} + +func TestSAML_GetIssuer(tt *testing.T) { + tt.Parallel() + var zeroValue string + s := &SAML{Issuer: &zeroValue} + s.GetIssuer() + s = &SAML{} + s.GetIssuer() + s = nil + s.GetIssuer() +} + +func TestSAML_GetSSOURL(tt *testing.T) { + tt.Parallel() + var zeroValue string + s := &SAML{SSOURL: &zeroValue} + s.GetSSOURL() + s = &SAML{} + s.GetSSOURL() + s = nil + s.GetSSOURL() +} + func TestSarifAnalysis_GetCheckoutURI(tt *testing.T) { tt.Parallel() var zeroValue string @@ -29958,6 +31730,171 @@ func TestSignatureVerification_GetVerified(tt *testing.T) { s.GetVerified() } +func TestSMTP_GetAddress(tt *testing.T) { + tt.Parallel() + var zeroValue string + s := &SMTP{Address: &zeroValue} + s.GetAddress() + s = &SMTP{} + s.GetAddress() + s = nil + s.GetAddress() +} + +func TestSMTP_GetAuthentication(tt *testing.T) { + tt.Parallel() + var zeroValue string + s := &SMTP{Authentication: &zeroValue} + s.GetAuthentication() + s = &SMTP{} + s.GetAuthentication() + s = nil + s.GetAuthentication() +} + +func TestSMTP_GetDiscardToNoreplyAddress(tt *testing.T) { + tt.Parallel() + var zeroValue bool + s := &SMTP{DiscardToNoreplyAddress: &zeroValue} + s.GetDiscardToNoreplyAddress() + s = &SMTP{} + s.GetDiscardToNoreplyAddress() + s = nil + s.GetDiscardToNoreplyAddress() +} + +func TestSMTP_GetDomain(tt *testing.T) { + tt.Parallel() + var zeroValue string + s := &SMTP{Domain: &zeroValue} + s.GetDomain() + s = &SMTP{} + s.GetDomain() + s = nil + s.GetDomain() +} + +func TestSMTP_GetEnabled(tt *testing.T) { + tt.Parallel() + var zeroValue bool + s := &SMTP{Enabled: &zeroValue} + s.GetEnabled() + s = &SMTP{} + s.GetEnabled() + s = nil + s.GetEnabled() +} + +func TestSMTP_GetEnableStarttlsAuto(tt *testing.T) { + tt.Parallel() + var zeroValue bool + s := &SMTP{EnableStarttlsAuto: &zeroValue} + s.GetEnableStarttlsAuto() + s = &SMTP{} + s.GetEnableStarttlsAuto() + s = nil + s.GetEnableStarttlsAuto() +} + +func TestSMTP_GetNoreplyAddress(tt *testing.T) { + tt.Parallel() + var zeroValue string + s := &SMTP{NoreplyAddress: &zeroValue} + s.GetNoreplyAddress() + s = &SMTP{} + s.GetNoreplyAddress() + s = nil + s.GetNoreplyAddress() +} + +func TestSMTP_GetPassword(tt *testing.T) { + tt.Parallel() + var zeroValue string + s := &SMTP{Password: &zeroValue} + s.GetPassword() + s = &SMTP{} + s.GetPassword() + s = nil + s.GetPassword() +} + +func TestSMTP_GetPort(tt *testing.T) { + tt.Parallel() + var zeroValue string + s := &SMTP{Port: &zeroValue} + s.GetPort() + s = &SMTP{} + s.GetPort() + s = nil + s.GetPort() +} + +func TestSMTP_GetSupportAddress(tt *testing.T) { + tt.Parallel() + var zeroValue string + s := &SMTP{SupportAddress: &zeroValue} + s.GetSupportAddress() + s = &SMTP{} + s.GetSupportAddress() + s = nil + s.GetSupportAddress() +} + +func TestSMTP_GetSupportAddressType(tt *testing.T) { + tt.Parallel() + var zeroValue string + s := &SMTP{SupportAddressType: &zeroValue} + s.GetSupportAddressType() + s = &SMTP{} + s.GetSupportAddressType() + s = nil + s.GetSupportAddressType() +} + +func TestSMTP_GetUsername(tt *testing.T) { + tt.Parallel() + var zeroValue string + s := &SMTP{Username: &zeroValue} + s.GetUsername() + s = &SMTP{} + s.GetUsername() + s = nil + s.GetUsername() +} + +func TestSMTP_GetUserName(tt *testing.T) { + tt.Parallel() + var zeroValue string + s := &SMTP{UserName: &zeroValue} + s.GetUserName() + s = &SMTP{} + s.GetUserName() + s = nil + s.GetUserName() +} + +func TestSNMP_GetCommunity(tt *testing.T) { + tt.Parallel() + var zeroValue string + s := &SNMP{Community: &zeroValue} + s.GetCommunity() + s = &SNMP{} + s.GetCommunity() + s = nil + s.GetCommunity() +} + +func TestSNMP_GetEnabled(tt *testing.T) { + tt.Parallel() + var zeroValue bool + s := &SNMP{Enabled: &zeroValue} + s.GetEnabled() + s = &SNMP{} + s.GetEnabled() + s = nil + s.GetEnabled() +} + func TestSource_GetActor(tt *testing.T) { tt.Parallel() s := &Source{} @@ -30176,6 +32113,50 @@ func TestSponsorshipTier_GetFrom(tt *testing.T) { s.GetFrom() } +func TestSSHKeyStatus_GetHostname(tt *testing.T) { + tt.Parallel() + var zeroValue string + s := &SSHKeyStatus{Hostname: &zeroValue} + s.GetHostname() + s = &SSHKeyStatus{} + s.GetHostname() + s = nil + s.GetHostname() +} + +func TestSSHKeyStatus_GetMessage(tt *testing.T) { + tt.Parallel() + var zeroValue string + s := &SSHKeyStatus{Message: &zeroValue} + s.GetMessage() + s = &SSHKeyStatus{} + s.GetMessage() + s = nil + s.GetMessage() +} + +func TestSSHKeyStatus_GetModified(tt *testing.T) { + tt.Parallel() + var zeroValue bool + s := &SSHKeyStatus{Modified: &zeroValue} + s.GetModified() + s = &SSHKeyStatus{} + s.GetModified() + s = nil + s.GetModified() +} + +func TestSSHKeyStatus_GetUUID(tt *testing.T) { + tt.Parallel() + var zeroValue string + s := &SSHKeyStatus{UUID: &zeroValue} + s.GetUUID() + s = &SSHKeyStatus{} + s.GetUUID() + s = nil + s.GetUUID() +} + func TestSSHSigningKey_GetCreatedAt(tt *testing.T) { tt.Parallel() var zeroValue Timestamp @@ -30528,6 +32509,94 @@ func TestSubscription_GetURL(tt *testing.T) { s.GetURL() } +func TestSyslog_GetEnabled(tt *testing.T) { + tt.Parallel() + var zeroValue bool + s := &Syslog{Enabled: &zeroValue} + s.GetEnabled() + s = &Syslog{} + s.GetEnabled() + s = nil + s.GetEnabled() +} + +func TestSyslog_GetProtocolName(tt *testing.T) { + tt.Parallel() + var zeroValue string + s := &Syslog{ProtocolName: &zeroValue} + s.GetProtocolName() + s = &Syslog{} + s.GetProtocolName() + s = nil + s.GetProtocolName() +} + +func TestSyslog_GetServer(tt *testing.T) { + tt.Parallel() + var zeroValue string + s := &Syslog{Server: &zeroValue} + s.GetServer() + s = &Syslog{} + s.GetServer() + s = nil + s.GetServer() +} + +func TestSystemRequirements_GetStatus(tt *testing.T) { + tt.Parallel() + var zeroValue string + s := &SystemRequirements{Status: &zeroValue} + s.GetStatus() + s = &SystemRequirements{} + s.GetStatus() + s = nil + s.GetStatus() +} + +func TestSystemRequirementsNodes_GetHostname(tt *testing.T) { + tt.Parallel() + var zeroValue string + s := &SystemRequirementsNodes{Hostname: &zeroValue} + s.GetHostname() + s = &SystemRequirementsNodes{} + s.GetHostname() + s = nil + s.GetHostname() +} + +func TestSystemRequirementsNodes_GetStatus(tt *testing.T) { + tt.Parallel() + var zeroValue string + s := &SystemRequirementsNodes{Status: &zeroValue} + s.GetStatus() + s = &SystemRequirementsNodes{} + s.GetStatus() + s = nil + s.GetStatus() +} + +func TestSystemRequirementsNodesRolesStatus_GetRole(tt *testing.T) { + tt.Parallel() + var zeroValue string + s := &SystemRequirementsNodesRolesStatus{Role: &zeroValue} + s.GetRole() + s = &SystemRequirementsNodesRolesStatus{} + s.GetRole() + s = nil + s.GetRole() +} + +func TestSystemRequirementsNodesRolesStatus_GetStatus(tt *testing.T) { + tt.Parallel() + var zeroValue string + s := &SystemRequirementsNodesRolesStatus{Status: &zeroValue} + s.GetStatus() + s = &SystemRequirementsNodesRolesStatus{} + s.GetStatus() + s = nil + s.GetStatus() +} + func TestTag_GetMessage(tt *testing.T) { tt.Parallel() var zeroValue string From b0f90be6f17b3ad7c9449ab9d079773305e44a50 Mon Sep 17 00:00:00 2001 From: Banhidy Krisztian Date: Thu, 16 Jan 2025 00:56:24 +0300 Subject: [PATCH 02/21] Fix year in Copyright --- github/enterprise_manage_ghes.go | 2 +- github/enterprise_manage_ghes_config.go | 2 +- github/enterprise_manage_ghes_config_test.go | 2 +- github/enterprise_manage_ghes_maintenance.go | 2 +- github/enterprise_manage_ghes_maintenance_test.go | 2 +- github/enterprise_manage_ghes_ssh.go | 2 +- github/enterprise_manage_ghes_ssh_test.go | 2 +- github/enterprise_manage_ghes_test.go | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/github/enterprise_manage_ghes.go b/github/enterprise_manage_ghes.go index bc41ed9ed5e..9568faca498 100644 --- a/github/enterprise_manage_ghes.go +++ b/github/enterprise_manage_ghes.go @@ -1,4 +1,4 @@ -// Copyright 2013 The go-github AUTHORS. All rights reserved. +// Copyright 2025 The go-github AUTHORS. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/github/enterprise_manage_ghes_config.go b/github/enterprise_manage_ghes_config.go index 1df8e4ca6aa..da017d2f1aa 100644 --- a/github/enterprise_manage_ghes_config.go +++ b/github/enterprise_manage_ghes_config.go @@ -1,4 +1,4 @@ -// Copyright 2013 The go-github AUTHORS. All rights reserved. +// Copyright 2025 The go-github AUTHORS. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/github/enterprise_manage_ghes_config_test.go b/github/enterprise_manage_ghes_config_test.go index 7cf441d9943..c2a9df45ef3 100644 --- a/github/enterprise_manage_ghes_config_test.go +++ b/github/enterprise_manage_ghes_config_test.go @@ -1,4 +1,4 @@ -// Copyright 2013 The go-github AUTHORS. All rights reserved. +// Copyright 2025 The go-github AUTHORS. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/github/enterprise_manage_ghes_maintenance.go b/github/enterprise_manage_ghes_maintenance.go index 0fc384dda9c..8ba8325b95a 100644 --- a/github/enterprise_manage_ghes_maintenance.go +++ b/github/enterprise_manage_ghes_maintenance.go @@ -1,4 +1,4 @@ -// Copyright 2013 The go-github AUTHORS. All rights reserved. +// Copyright 2025 The go-github AUTHORS. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/github/enterprise_manage_ghes_maintenance_test.go b/github/enterprise_manage_ghes_maintenance_test.go index 61ff70eabd2..23a8f0b450c 100644 --- a/github/enterprise_manage_ghes_maintenance_test.go +++ b/github/enterprise_manage_ghes_maintenance_test.go @@ -1,4 +1,4 @@ -// Copyright 2013 The go-github AUTHORS. All rights reserved. +// Copyright 2025 The go-github AUTHORS. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/github/enterprise_manage_ghes_ssh.go b/github/enterprise_manage_ghes_ssh.go index ac4821cca69..1e7762ba1aa 100644 --- a/github/enterprise_manage_ghes_ssh.go +++ b/github/enterprise_manage_ghes_ssh.go @@ -1,4 +1,4 @@ -// Copyright 2013 The go-github AUTHORS. All rights reserved. +// Copyright 2025 The go-github AUTHORS. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/github/enterprise_manage_ghes_ssh_test.go b/github/enterprise_manage_ghes_ssh_test.go index d8cf45c530a..292f9e088bf 100644 --- a/github/enterprise_manage_ghes_ssh_test.go +++ b/github/enterprise_manage_ghes_ssh_test.go @@ -1,4 +1,4 @@ -// Copyright 2013 The go-github AUTHORS. All rights reserved. +// Copyright 2025 The go-github AUTHORS. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/github/enterprise_manage_ghes_test.go b/github/enterprise_manage_ghes_test.go index 632ab7cdfa5..3849eb31aff 100644 --- a/github/enterprise_manage_ghes_test.go +++ b/github/enterprise_manage_ghes_test.go @@ -1,4 +1,4 @@ -// Copyright 2013 The go-github AUTHORS. All rights reserved. +// Copyright 2025 The go-github AUTHORS. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. From e75c40082a0ce56afb7d614be619e0d86bf12b9b Mon Sep 17 00:00:00 2001 From: Banhidy Krisztian Date: Thu, 16 Jan 2025 01:03:47 +0300 Subject: [PATCH 03/21] Fix generate & lint --- github/github-accessors.go | 16 ++++++++-------- github/github-accessors_test.go | 20 ++++++++++---------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/github/github-accessors.go b/github/github-accessors.go index ead6581600a..9627e9f8ef3 100644 --- a/github/github-accessors.go +++ b/github/github-accessors.go @@ -24806,14 +24806,6 @@ func (s *SMTP) GetSupportAddressType() string { return *s.SupportAddressType } -// GetUsername returns the Username field if it's non-nil, zero value otherwise. -func (s *SMTP) GetUsername() string { - if s == nil || s.Username == nil { - return "" - } - return *s.Username -} - // GetUserName returns the UserName field if it's non-nil, zero value otherwise. func (s *SMTP) GetUserName() string { if s == nil || s.UserName == nil { @@ -24822,6 +24814,14 @@ func (s *SMTP) GetUserName() string { return *s.UserName } +// GetUsername returns the Username field if it's non-nil, zero value otherwise. +func (s *SMTP) GetUsername() string { + if s == nil || s.Username == nil { + return "" + } + return *s.Username +} + // GetCommunity returns the Community field if it's non-nil, zero value otherwise. func (s *SNMP) GetCommunity() string { if s == nil || s.Community == nil { diff --git a/github/github-accessors_test.go b/github/github-accessors_test.go index 89729cd59b1..525c5dd00c6 100644 --- a/github/github-accessors_test.go +++ b/github/github-accessors_test.go @@ -31851,26 +31851,26 @@ func TestSMTP_GetSupportAddressType(tt *testing.T) { s.GetSupportAddressType() } -func TestSMTP_GetUsername(tt *testing.T) { +func TestSMTP_GetUserName(tt *testing.T) { tt.Parallel() var zeroValue string - s := &SMTP{Username: &zeroValue} - s.GetUsername() + s := &SMTP{UserName: &zeroValue} + s.GetUserName() s = &SMTP{} - s.GetUsername() + s.GetUserName() s = nil - s.GetUsername() + s.GetUserName() } -func TestSMTP_GetUserName(tt *testing.T) { +func TestSMTP_GetUsername(tt *testing.T) { tt.Parallel() var zeroValue string - s := &SMTP{UserName: &zeroValue} - s.GetUserName() + s := &SMTP{Username: &zeroValue} + s.GetUsername() s = &SMTP{} - s.GetUserName() + s.GetUsername() s = nil - s.GetUserName() + s.GetUsername() } func TestSNMP_GetCommunity(tt *testing.T) { From 9a0776c14f263816f6dbba4d609215ec10cd5a62 Mon Sep 17 00:00:00 2001 From: Krisztian Banhidy Date: Thu, 16 Jan 2025 14:26:55 +0300 Subject: [PATCH 04/21] Fix double-space in comment Co-authored-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com> --- github/enterprise_manage_ghes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/enterprise_manage_ghes.go b/github/enterprise_manage_ghes.go index 9568faca498..ef626dc4320 100644 --- a/github/enterprise_manage_ghes.go +++ b/github/enterprise_manage_ghes.go @@ -19,7 +19,7 @@ type NodeQueryOptions struct { ClusterRoles string `url:"cluster_roles,omitempty"` } -// ClusterStatus represents a response from the GetClusterStatus and GetReplicationStatus method. +// ClusterStatus represents a response from the GetClusterStatus and GetReplicationStatus method. type ClusterStatus struct { Status *string `json:"status"` Nodes []*ClusterStatusNodes `json:"nodes"` From c024efa188458c40e7d308ff8f7026ad905425f3 Mon Sep 17 00:00:00 2001 From: Banhidy Krisztian Date: Thu, 16 Jan 2025 15:12:07 +0300 Subject: [PATCH 05/21] Fix omitempty and types --- github/enterprise_manage_ghes.go | 38 ++++---- github/enterprise_manage_ghes_config.go | 94 +++++++++---------- github/enterprise_manage_ghes_config_test.go | 22 ++--- github/enterprise_manage_ghes_maintenance.go | 28 +++--- ...enterprise_manage_ghes_maintenance_test.go | 4 +- github/enterprise_manage_ghes_ssh.go | 16 ++-- github/enterprise_manage_ghes_ssh_test.go | 2 +- github/enterprise_manage_ghes_test.go | 4 +- github/github-accessors.go | 48 ++++++---- github/github-accessors_test.go | 66 ++++++++----- 10 files changed, 180 insertions(+), 142 deletions(-) diff --git a/github/enterprise_manage_ghes.go b/github/enterprise_manage_ghes.go index ef626dc4320..d7f6a5b5212 100644 --- a/github/enterprise_manage_ghes.go +++ b/github/enterprise_manage_ghes.go @@ -13,63 +13,63 @@ import ( // Node management APIS. type NodeQueryOptions struct { // UUID filters issues based on the node UUID. - UUID string `url:"uuid,omitempty"` + UUID *string `url:"uuid,omitempty"` // ClusterRoles filters The cluster roles from the cluster configuration file. - ClusterRoles string `url:"cluster_roles,omitempty"` + ClusterRoles *string `url:"cluster_roles,omitempty"` } // ClusterStatus represents a response from the GetClusterStatus and GetReplicationStatus method. type ClusterStatus struct { - Status *string `json:"status"` + Status *string `json:"status,omitempty"` Nodes []*ClusterStatusNodes `json:"nodes"` } // ClusterStatusNodes represents the status of a cluster node. type ClusterStatusNodes struct { - Hostname *string `json:"hostname"` - Status *string `json:"status"` - Services []*ClusterStatusNodesServices `json:"services,omitempty"` + Hostname *string `json:"hostname,omitempty"` + Status *string `json:"status,omitempty"` + Services []*ClusterStatusNodesServices `json:"services"` } // ClusterStatusNodesServices represents the status of a service running on a cluster node. type ClusterStatusNodesServices struct { - Status *string `json:"status"` - Name *string `json:"name"` - Details *string `json:"details"` + Status *string `json:"status,omitempty"` + Name *string `json:"name,omitempty"` + Details *string `json:"details,omitempty"` } // SystemRequirements represents a response from the GetCheckSystemRequirements method. type SystemRequirements struct { - Status *string `json:"status"` + Status *string `json:"status,omitempty"` Nodes []*SystemRequirementsNodes `json:"nodes"` } // SystemRequirementsNodes represents the status of a system node. type SystemRequirementsNodes struct { - Hostname *string `json:"hostname"` - Status *string `json:"status"` + Hostname *string `json:"hostname,omitempty"` + Status *string `json:"status,omitempty"` RolesStatus []*SystemRequirementsNodesRolesStatus `json:"roles_status"` } // SystemRequirementsNodesRolesStatus represents the status of a role on a system node. type SystemRequirementsNodesRolesStatus struct { - Status *string `json:"status"` - Role *string `json:"role"` + Status *string `json:"status,omitempty"` + Role *string `json:"role,omitempty"` } // NodeReleaseVersions represents a response from the GetReplicationStatus method. type NodeReleaseVersions struct { - Hostname *string `json:"hostname"` + Hostname *string `json:"hostname,omitempty"` Version *ReleaseVersions `json:"version"` } // ReleaseVersions holds the release version information of the node. type ReleaseVersions struct { - Version *string `json:"version"` - Platform *string `json:"platform"` - BuildID *string `json:"build_id"` - BuildDate *string `json:"build_date"` + Version *string `json:"version,omitempty"` + Platform *string `json:"platform,omitempty"` + BuildID *string `json:"build_id,omitempty"` + BuildDate *string `json:"build_date,omitempty"` } // CheckSystemRequirements checks if GHES system nodes meet the system requirements. diff --git a/github/enterprise_manage_ghes_config.go b/github/enterprise_manage_ghes_config.go index da017d2f1aa..e21033b41fc 100644 --- a/github/enterprise_manage_ghes_config.go +++ b/github/enterprise_manage_ghes_config.go @@ -13,27 +13,27 @@ import ( // ConfigApplyOptions is a struct to hold the options for the ConfigApply API and the response. type ConfigApplyOptions struct { // RunID is the ID of the run to get the status of. If empty a random one will be generated. - RunID string `json:"run_id,omitempty"` + RunID *string `json:"run_id,omitempty"` } // ConfigApplyStatus is a struct to hold the response from the ConfigApply API. type ConfigApplyStatus struct { - Running *bool `json:"running"` - Successful *bool `json:"successful"` + Running *bool `json:"running,omitempty"` + Successful *bool `json:"successful,omitempty"` Nodes []*ConfigApplyStatusNodes `json:"nodes"` } // ConfigApplyStatusNodes is a struct to hold the response from the ConfigApply API. type ConfigApplyStatusNodes struct { - Hostname *string `json:"hostname"` - Running *bool `json:"running"` - Successful *bool `json:"successful"` - RunID *string `json:"run_id"` + Hostname *string `json:"hostname,omitempty"` + Running *bool `json:"running,omitempty"` + Successful *bool `json:"successful,omitempty"` + RunID *string `json:"run_id,omitempty"` } // ConfigApplyEventsOptions is used to enable pagination. type ConfigApplyEventsOptions struct { - LastRequestID string `url:"last_request_id,omitempty"` + LastRequestID *string `url:"last_request_id,omitempty"` } // ConfigApplyEvents is a struct to hold the response from the ConfigApplyEvents API. @@ -43,24 +43,24 @@ type ConfigApplyEvents struct { // ConfigApplyEventsNodes is a struct to hold the response from the ConfigApplyEvents API. type ConfigApplyEventsNodes struct { - Node *string `json:"node"` - LastRequestID *string `json:"last_request_id"` + Node *string `json:"node,omitempty"` + LastRequestID *string `json:"last_request_id,omitempty"` Events []*ConfigApplyEventsNodeEvents `json:"events"` } // ConfigApplyEventsNodeEvents is a struct to hold the response from the ConfigApplyEvents API. type ConfigApplyEventsNodeEvents struct { - Timestamp *Timestamp `json:"timestamp"` - SeverityText *string `json:"severity_text"` - Body *string `json:"body"` - EventName *string `json:"event_name"` - Topology *string `json:"topology"` - Hostname *string `json:"hostname"` - ConfigRunID *string `json:"config_run_id"` - TraceID *string `json:"trace_id"` - SpanID *string `json:"span_id"` - SpanParentID *int `json:"span_parent_id"` - SpanDepth *int `json:"span_depth"` + Timestamp *Timestamp `json:"timestamp,omitempty"` + SeverityText *string `json:"severity_text,omitempty"` + Body *string `json:"body,omitempty"` + EventName *string `json:"event_name,omitempty"` + Topology *string `json:"topology,omitempty"` + Hostname *string `json:"hostname,omitempty"` + ConfigRunID *string `json:"config_run_id,omitempty"` + TraceID *string `json:"trace_id,omitempty"` + SpanID *string `json:"span_id,omitempty"` + SpanParentID *int `json:"span_parent_id,omitempty"` + SpanDepth *int `json:"span_depth,omitempty"` } // InitialConfigOptions is a struct to hold the options for the InitialConfig API. @@ -71,24 +71,24 @@ type InitialConfigOptions struct { // LicenseStatus is a struct to hold the response from the License API. type LicenseStatus struct { - AdvancedSecurityEnabled *bool `json:"advancedSecurityEnabled"` - AdvancedSecuritySeats *int `json:"advancedSecuritySeats"` - ClusterSupport *bool `json:"clusterSupport"` - Company *string `json:"company"` - CroquetSupport *bool `json:"croquetSupport"` - CustomTerms *bool `json:"customTerms"` - Evaluation *bool `json:"evaluation"` - ExpireAt *Timestamp `json:"expireAt"` - InsightsEnabled *bool `json:"insightsEnabled"` - InsightsExpireAt *Timestamp `json:"insightsExpireAt"` - LearningLabEvaluationExpires *Timestamp `json:"learningLabEvaluationExpires"` - LearningLabSeats *int `json:"learningLabSeats"` - Perpetual *bool `json:"perpetual"` - ReferenceNumber *string `json:"referenceNumber"` - Seats *int `json:"seats"` - SSHAllowed *bool `json:"sshAllowed"` - SupportKey *string `json:"supportKey"` - UnlimitedSeating *bool `json:"unlimitedSeating"` + AdvancedSecurityEnabled *bool `json:"advancedSecurityEnabled,omitempty"` + AdvancedSecuritySeats *int `json:"advancedSecuritySeats,omitempty"` + ClusterSupport *bool `json:"clusterSupport,omitempty"` + Company *string `json:"company,omitempty"` + CroquetSupport *bool `json:"croquetSupport,omitempty"` + CustomTerms *bool `json:"customTerms,omitempty"` + Evaluation *bool `json:"evaluation,omitempty"` + ExpireAt *Timestamp `json:"expireAt,omitempty"` + InsightsEnabled *bool `json:"insightsEnabled,omitempty"` + InsightsExpireAt *Timestamp `json:"insightsExpireAt,omitempty"` + LearningLabEvaluationExpires *Timestamp `json:"learningLabEvaluationExpires,omitempty"` + LearningLabSeats *int `json:"learningLabSeats,omitempty"` + Perpetual *bool `json:"perpetual,omitempty"` + ReferenceNumber *string `json:"referenceNumber,omitempty"` + Seats *int `json:"seats,omitempty"` + SSHAllowed *bool `json:"sshAllowed,omitempty"` + SupportKey *string `json:"supportKey,omitempty"` + UnlimitedSeating *bool `json:"unlimitedSeating,omitempty"` } // UploadLicenseOptions is a struct to hold the options for the UploadLicense API. @@ -98,7 +98,7 @@ type UploadLicenseOptions struct { // LicenseCheck is a struct to hold the response from the LicenseStatus API. type LicenseCheck struct { - Status *string `json:"status"` + Status *string `json:"status,omitempty"` } // ConfigSettings is a struct to hold the response from the Settings API. @@ -123,7 +123,7 @@ type ConfigSettings struct { LDAP *LDAP `json:"ldap,omitempty"` CAS *CAS `json:"cas,omitempty"` SAML *SAML `json:"saml,omitempty"` - GitHubOAuth *GitHubOAuth `json:"github_oauth"` + GitHubOAuth *GitHubOAuth `json:"github_oauth,omitempty"` SMTP *SMTP `json:"smtp,omitempty"` NTP *NTP `json:"ntp,omitempty"` Timezone *string `json:"timezone,omitempty"` @@ -174,13 +174,13 @@ type GitHubSSL struct { type LDAP struct { Host *string `json:"host,omitempty"` Port *int `json:"port,omitempty"` - Base []string `json:"base,omitempty"` + Base []*string `json:"base,omitempty"` UID *string `json:"uid,omitempty"` BindDN *string `json:"bind_dn,omitempty"` Password *string `json:"password,omitempty"` Method *string `json:"method,omitempty"` SearchStrategy *string `json:"search_strategy,omitempty"` - UserGroups []string `json:"user_groups,omitempty"` + UserGroups []*string `json:"user_groups,omitempty"` AdminGroup *string `json:"admin_group,omitempty"` VirtualAttributeEnabled *bool `json:"virtual_attribute_enabled,omitempty"` RecursiveGroupSearch *bool `json:"recursive_group_search,omitempty"` @@ -292,15 +292,15 @@ type Mapping struct { // NodeMetadataStatus is a struct to hold the response from the NodeMetadata API. type NodeMetadataStatus struct { - Topology *string `json:"topology"` + Topology *string `json:"topology,omitempty"` Nodes []*NodeDetails `json:"nodes"` } // NodeDetails is a struct to hold the response from the NodeMetadata API. type NodeDetails struct { - Hostname *string `json:"hostname"` - UUID *string `json:"uuid"` - ClusterRoles []string `json:"cluster_roles"` + Hostname *string `json:"hostname,omitempty"` + UUID *string `json:"uuid,omitempty"` + ClusterRoles []*string `json:"cluster_roles,omitempty"` } // ConfigApplyEvents gets events from the command ghe-config-apply diff --git a/github/enterprise_manage_ghes_config_test.go b/github/enterprise_manage_ghes_config_test.go index c2a9df45ef3..ce16abf9b24 100644 --- a/github/enterprise_manage_ghes_config_test.go +++ b/github/enterprise_manage_ghes_config_test.go @@ -207,13 +207,13 @@ func TestEnterpriseService_Settings(t *testing.T) { LDAP: &LDAP{ Host: nil, Port: Ptr(0), - Base: []string{}, + Base: []*string{}, UID: nil, BindDN: nil, Password: nil, Method: Ptr("Plain"), SearchStrategy: Ptr("detect"), - UserGroups: []string{}, + UserGroups: []*string{}, AdminGroup: nil, VirtualAttributeEnabled: Ptr(false), RecursiveGroupSearch: Ptr(false), @@ -337,7 +337,7 @@ func TestEnterpriseService_NodeMetadata(t *testing.T) { }) opt := &NodeQueryOptions{ - UUID: "1234-1234", ClusterRoles: "primary", + UUID: Ptr("1234-1234"), ClusterRoles: Ptr("primary"), } ctx := context.Background() configNodes, _, err := client.Enterprise.NodeMetadata(ctx, opt) @@ -350,8 +350,8 @@ func TestEnterpriseService_NodeMetadata(t *testing.T) { Nodes: []*NodeDetails{{ Hostname: Ptr("data1"), UUID: Ptr("1b6cf518-f97c-11ed-8544-061d81f7eedb"), - ClusterRoles: []string{ - "ConsulServer", + ClusterRoles: []*string{ + Ptr("ConsulServer"), }, }}, } @@ -498,7 +498,7 @@ func TestEnterpriseService_ConfigApplyEvents(t *testing.T) { }) input := &ConfigApplyEventsOptions{ - LastRequestID: "387cd628c06d606700e79be368e5e574:0cde553750689", + LastRequestID: Ptr("387cd628c06d606700e79be368e5e574:0cde553750689"), } ctx := context.Background() @@ -634,7 +634,7 @@ func TestEnterpriseService_ConfigApply(t *testing.T) { assertNilError(t, json.NewDecoder(r.Body).Decode(got)) want := &ConfigApplyOptions{ - RunID: "1234", + RunID: Ptr("1234"), } if diff := cmp.Diff(want, got); diff != "" { t.Errorf("diff mismatch (-want +got):\n%v", diff) @@ -643,7 +643,7 @@ func TestEnterpriseService_ConfigApply(t *testing.T) { }) input := &ConfigApplyOptions{ - RunID: "1234", + RunID: Ptr("1234"), } ctx := context.Background() @@ -652,7 +652,7 @@ func TestEnterpriseService_ConfigApply(t *testing.T) { t.Errorf("Enterprise.ConfigApply returned error: %v", err) } want := &ConfigApplyOptions{ - RunID: "1234", + RunID: Ptr("1234"), } if !cmp.Equal(configApply, want) { t.Errorf("Enterprise.ConfigApply returned %+v, want %+v", configApply, want) @@ -669,7 +669,7 @@ func TestEnterpriseService_ConfigApplyStatus(t *testing.T) { assertNilError(t, json.NewDecoder(r.Body).Decode(got)) want := &ConfigApplyOptions{ - RunID: "1234", + RunID: Ptr("1234"), } if diff := cmp.Diff(want, got); diff != "" { t.Errorf("diff mismatch (-want +got):\n%v", diff) @@ -688,7 +688,7 @@ func TestEnterpriseService_ConfigApplyStatus(t *testing.T) { }`) }) input := &ConfigApplyOptions{ - RunID: "1234", + RunID: Ptr("1234"), } ctx := context.Background() configApplyStatus, _, err := client.Enterprise.ConfigApplyStatus(ctx, input) diff --git a/github/enterprise_manage_ghes_maintenance.go b/github/enterprise_manage_ghes_maintenance.go index 8ba8325b95a..a43acf196ff 100644 --- a/github/enterprise_manage_ghes_maintenance.go +++ b/github/enterprise_manage_ghes_maintenance.go @@ -11,33 +11,33 @@ import ( // MaintenanceOperationStatus represents the message to be displayed when the instance gets a maintenance operation request. type MaintenanceOperationStatus struct { - Hostname *string `json:"hostname"` - UUID *string `json:"uuid"` - Message *string `json:"message"` + Hostname *string `json:"hostname,omitempty"` + UUID *string `json:"uuid,omitempty"` + Message *string `json:"message,omitempty"` } // MaintenanceStatus represents the status of maintenance mode for all nodes. type MaintenanceStatus struct { - Hostname *string `json:"hostname"` - UUID *string `json:"uuid"` - Status *string `json:"status"` - ScheduledTime *Timestamp `json:"scheduled_time"` + Hostname *string `json:"hostname,omitempty"` + UUID *string `json:"uuid,omitempty"` + Status *string `json:"status,omitempty"` + ScheduledTime *Timestamp `json:"scheduled_time,omitempty"` ConnectionServices []*ConnectionServices `json:"connection_services"` - CanUnsetMaintenance *bool `json:"can_unset_maintenance"` - IPExceptionList []*string `json:"ip_exception_list"` - MaintenanceModeMessage *string `json:"maintenance_mode_message"` + CanUnsetMaintenance *bool `json:"can_unset_maintenance,omitempty"` + IPExceptionList []*string `json:"ip_exception_list,omitempty"` + MaintenanceModeMessage *string `json:"maintenance_mode_message,omitempty"` } // ConnectionServices represents the connection services for the maintenance status. type ConnectionServices struct { - Name *string `json:"name"` - Number *int `json:"number"` + Name *string `json:"name,omitempty"` + Number *int `json:"number,omitempty"` } // MaintenanceOptions represents the options for setting the maintenance mode for the instance. // When can be a string, so we cant use a Timestamp type. type MaintenanceOptions struct { - Enabled *bool `json:"enabled,omitempty"` + Enabled bool `json:"enabled"` UUID *string `json:"uuid,omitempty"` When *string `json:"when,omitempty"` IPExceptionList []*string `json:"ip_exception_list,omitempty"` @@ -77,7 +77,7 @@ func (s *EnterpriseService) GetMaintenanceStatus(ctx context.Context, opts *Node func (s *EnterpriseService) CreateMaintenance(ctx context.Context, enable bool, opts *MaintenanceOptions) ([]*MaintenanceOperationStatus, *Response, error) { u := "manage/v1/maintenance" - opts.Enabled = &enable + opts.Enabled = enable req, err := s.client.NewRequest("POST", u, opts) if err != nil { diff --git a/github/enterprise_manage_ghes_maintenance_test.go b/github/enterprise_manage_ghes_maintenance_test.go index 23a8f0b450c..2cd659f6ee1 100644 --- a/github/enterprise_manage_ghes_maintenance_test.go +++ b/github/enterprise_manage_ghes_maintenance_test.go @@ -46,7 +46,7 @@ func TestEnterpriseService_GetMaintenanceStatus(t *testing.T) { }) opt := &NodeQueryOptions{ - UUID: "1234-1234", ClusterRoles: "primary", + UUID: Ptr("1234-1234"), ClusterRoles: Ptr("primary"), } ctx := context.Background() maintenanceStatus, _, err := client.Enterprise.GetMaintenanceStatus(ctx, opt) @@ -86,7 +86,7 @@ func TestEnterpriseService_CreateMaintenance(t *testing.T) { client, mux, _ := setup(t) input := &MaintenanceOptions{ - Enabled: Ptr(true), + Enabled: true, UUID: Ptr("1234-1234"), When: Ptr("now"), IPExceptionList: []*string{ diff --git a/github/enterprise_manage_ghes_ssh.go b/github/enterprise_manage_ghes_ssh.go index 1e7762ba1aa..6ce96bc7526 100644 --- a/github/enterprise_manage_ghes_ssh.go +++ b/github/enterprise_manage_ghes_ssh.go @@ -11,22 +11,22 @@ import ( // SSHKeyStatus represents the status of a SSH key operation. type SSHKeyStatus struct { - Hostname *string `json:"hostname"` - UUID *string `json:"uuid"` - Message *string `json:"message"` - Modified *bool `json:"modified,omitempty"` + Hostname *string `json:"hostname,omitempty"` + UUID *string `json:"uuid,omitempty"` + Message *string `json:"message,omitempty"` + Modified bool `json:"modified,omitempty"` } -// SSHKeyOptions specifies the optional parameters to the SSH create and delete functions. +// SSHKeyOptions specifies the parameters to the SSH create and delete functions. type SSHKeyOptions struct { // Key is the SSH key to add to the instance. - Key string `json:"key,omitempty"` + Key string `json:"key"` } // ClusterSSHKeys represents the SSH keys configured for the instance. type ClusterSSHKeys struct { - Key *string `json:"key"` - Fingerprint *string `json:"fingerprint"` + Key *string `json:"key,omitempty"` + Fingerprint *string `json:"fingerprint,omitempty"` } // DeleteSSHKey deletes the SSH key from the instance. diff --git a/github/enterprise_manage_ghes_ssh_test.go b/github/enterprise_manage_ghes_ssh_test.go index 292f9e088bf..478306e12ad 100644 --- a/github/enterprise_manage_ghes_ssh_test.go +++ b/github/enterprise_manage_ghes_ssh_test.go @@ -118,7 +118,7 @@ func TestEnterpriseService_CreateSSHKey(t *testing.T) { t.Errorf("Enterprise.CreateSSHKey returned error: %v", err) } - want := []*SSHKeyStatus{{Hostname: Ptr("primary"), UUID: Ptr("1b6cf518-f97c-11ed-8544-061d81f7eedb"), Message: Ptr("SSH key added successfully"), Modified: Ptr(true)}} + want := []*SSHKeyStatus{{Hostname: Ptr("primary"), UUID: Ptr("1b6cf518-f97c-11ed-8544-061d81f7eedb"), Message: Ptr("SSH key added successfully"), Modified: true}} if diff := cmp.Diff(want, sshStatus); diff != "" { t.Errorf("diff mismatch (-want +got):\n%v", diff) } diff --git a/github/enterprise_manage_ghes_test.go b/github/enterprise_manage_ghes_test.go index 3849eb31aff..cbcbfaf70c5 100644 --- a/github/enterprise_manage_ghes_test.go +++ b/github/enterprise_manage_ghes_test.go @@ -129,7 +129,7 @@ func TestEnterpriseService_ReplicationStatus(t *testing.T) { }) opt := &NodeQueryOptions{ - UUID: "1234-1234", ClusterRoles: "primary", + UUID: Ptr("1234-1234"), ClusterRoles: Ptr("primary"), } ctx := context.Background() replicationStatus, _, err := client.Enterprise.ReplicationStatus(ctx, opt) @@ -181,7 +181,7 @@ func TestEnterpriseService_Versions(t *testing.T) { }) opt := &NodeQueryOptions{ - UUID: "1234-1234", ClusterRoles: "primary", + UUID: Ptr("1234-1234"), ClusterRoles: Ptr("primary"), } ctx := context.Background() releaseVersions, _, err := client.Enterprise.Versions(ctx, opt) diff --git a/github/github-accessors.go b/github/github-accessors.go index 9627e9f8ef3..6f41ec7f0af 100644 --- a/github/github-accessors.go +++ b/github/github-accessors.go @@ -4278,6 +4278,22 @@ func (c *ConfigApplyEventsNodes) GetNode() string { return *c.Node } +// GetLastRequestID returns the LastRequestID field if it's non-nil, zero value otherwise. +func (c *ConfigApplyEventsOptions) GetLastRequestID() string { + if c == nil || c.LastRequestID == nil { + return "" + } + return *c.LastRequestID +} + +// GetRunID returns the RunID field if it's non-nil, zero value otherwise. +func (c *ConfigApplyOptions) GetRunID() string { + if c == nil || c.RunID == nil { + return "" + } + return *c.RunID +} + // GetRunning returns the Running field if it's non-nil, zero value otherwise. func (c *ConfigApplyStatus) GetRunning() bool { if c == nil || c.Running == nil { @@ -13006,14 +13022,6 @@ func (m *MaintenanceOperationStatus) GetUUID() string { return *m.UUID } -// GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. -func (m *MaintenanceOptions) GetEnabled() bool { - if m == nil || m.Enabled == nil { - return false - } - return *m.Enabled -} - // GetMaintenanceModeMessage returns the MaintenanceModeMessage field if it's non-nil, zero value otherwise. func (m *MaintenanceOptions) GetMaintenanceModeMessage() string { if m == nil || m.MaintenanceModeMessage == nil { @@ -14382,6 +14390,22 @@ func (n *NodeMetadataStatus) GetTopology() string { return *n.Topology } +// GetClusterRoles returns the ClusterRoles field if it's non-nil, zero value otherwise. +func (n *NodeQueryOptions) GetClusterRoles() string { + if n == nil || n.ClusterRoles == nil { + return "" + } + return *n.ClusterRoles +} + +// GetUUID returns the UUID field if it's non-nil, zero value otherwise. +func (n *NodeQueryOptions) GetUUID() string { + if n == nil || n.UUID == nil { + return "" + } + return *n.UUID +} + // GetHostname returns the Hostname field if it's non-nil, zero value otherwise. func (n *NodeReleaseVersions) GetHostname() string { if n == nil || n.Hostname == nil { @@ -25030,14 +25054,6 @@ func (s *SSHKeyStatus) GetMessage() string { return *s.Message } -// GetModified returns the Modified field if it's non-nil, zero value otherwise. -func (s *SSHKeyStatus) GetModified() bool { - if s == nil || s.Modified == nil { - return false - } - return *s.Modified -} - // GetUUID returns the UUID field if it's non-nil, zero value otherwise. func (s *SSHKeyStatus) GetUUID() string { if s == nil || s.UUID == nil { diff --git a/github/github-accessors_test.go b/github/github-accessors_test.go index 525c5dd00c6..2ab8e481b5a 100644 --- a/github/github-accessors_test.go +++ b/github/github-accessors_test.go @@ -5560,6 +5560,28 @@ func TestConfigApplyEventsNodes_GetNode(tt *testing.T) { c.GetNode() } +func TestConfigApplyEventsOptions_GetLastRequestID(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigApplyEventsOptions{LastRequestID: &zeroValue} + c.GetLastRequestID() + c = &ConfigApplyEventsOptions{} + c.GetLastRequestID() + c = nil + c.GetLastRequestID() +} + +func TestConfigApplyOptions_GetRunID(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigApplyOptions{RunID: &zeroValue} + c.GetRunID() + c = &ConfigApplyOptions{} + c.GetRunID() + c = nil + c.GetRunID() +} + func TestConfigApplyStatus_GetRunning(tt *testing.T) { tt.Parallel() var zeroValue bool @@ -16856,17 +16878,6 @@ func TestMaintenanceOperationStatus_GetUUID(tt *testing.T) { m.GetUUID() } -func TestMaintenanceOptions_GetEnabled(tt *testing.T) { - tt.Parallel() - var zeroValue bool - m := &MaintenanceOptions{Enabled: &zeroValue} - m.GetEnabled() - m = &MaintenanceOptions{} - m.GetEnabled() - m = nil - m.GetEnabled() -} - func TestMaintenanceOptions_GetMaintenanceModeMessage(tt *testing.T) { tt.Parallel() var zeroValue string @@ -18613,6 +18624,28 @@ func TestNodeMetadataStatus_GetTopology(tt *testing.T) { n.GetTopology() } +func TestNodeQueryOptions_GetClusterRoles(tt *testing.T) { + tt.Parallel() + var zeroValue string + n := &NodeQueryOptions{ClusterRoles: &zeroValue} + n.GetClusterRoles() + n = &NodeQueryOptions{} + n.GetClusterRoles() + n = nil + n.GetClusterRoles() +} + +func TestNodeQueryOptions_GetUUID(tt *testing.T) { + tt.Parallel() + var zeroValue string + n := &NodeQueryOptions{UUID: &zeroValue} + n.GetUUID() + n = &NodeQueryOptions{} + n.GetUUID() + n = nil + n.GetUUID() +} + func TestNodeReleaseVersions_GetHostname(tt *testing.T) { tt.Parallel() var zeroValue string @@ -32135,17 +32168,6 @@ func TestSSHKeyStatus_GetMessage(tt *testing.T) { s.GetMessage() } -func TestSSHKeyStatus_GetModified(tt *testing.T) { - tt.Parallel() - var zeroValue bool - s := &SSHKeyStatus{Modified: &zeroValue} - s.GetModified() - s = &SSHKeyStatus{} - s.GetModified() - s = nil - s.GetModified() -} - func TestSSHKeyStatus_GetUUID(tt *testing.T) { tt.Parallel() var zeroValue string From 65cea53ad8f1cc83ef217e0642463fb0497c5972 Mon Sep 17 00:00:00 2001 From: Banhidy Krisztian Date: Thu, 16 Jan 2025 15:17:13 +0300 Subject: [PATCH 06/21] Fix ghes_ssh Modified field --- github/enterprise_manage_ghes_ssh.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/enterprise_manage_ghes_ssh.go b/github/enterprise_manage_ghes_ssh.go index 6ce96bc7526..6c36ccb0e76 100644 --- a/github/enterprise_manage_ghes_ssh.go +++ b/github/enterprise_manage_ghes_ssh.go @@ -14,7 +14,7 @@ type SSHKeyStatus struct { Hostname *string `json:"hostname,omitempty"` UUID *string `json:"uuid,omitempty"` Message *string `json:"message,omitempty"` - Modified bool `json:"modified,omitempty"` + Modified *bool `json:"modified,omitempty"` } // SSHKeyOptions specifies the parameters to the SSH create and delete functions. From 519df0183b3ef16561edc61717fdeb0a47691b57 Mon Sep 17 00:00:00 2001 From: Banhidy Krisztian Date: Thu, 16 Jan 2025 15:35:54 +0300 Subject: [PATCH 07/21] Fix broken test --- github/enterprise_manage_ghes_ssh_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/enterprise_manage_ghes_ssh_test.go b/github/enterprise_manage_ghes_ssh_test.go index 478306e12ad..292f9e088bf 100644 --- a/github/enterprise_manage_ghes_ssh_test.go +++ b/github/enterprise_manage_ghes_ssh_test.go @@ -118,7 +118,7 @@ func TestEnterpriseService_CreateSSHKey(t *testing.T) { t.Errorf("Enterprise.CreateSSHKey returned error: %v", err) } - want := []*SSHKeyStatus{{Hostname: Ptr("primary"), UUID: Ptr("1b6cf518-f97c-11ed-8544-061d81f7eedb"), Message: Ptr("SSH key added successfully"), Modified: true}} + want := []*SSHKeyStatus{{Hostname: Ptr("primary"), UUID: Ptr("1b6cf518-f97c-11ed-8544-061d81f7eedb"), Message: Ptr("SSH key added successfully"), Modified: Ptr(true)}} if diff := cmp.Diff(want, sshStatus); diff != "" { t.Errorf("diff mismatch (-want +got):\n%v", diff) } From cdb712e3a304a74fca5833bb5f8f0269b434abd9 Mon Sep 17 00:00:00 2001 From: Banhidy Krisztian Date: Thu, 16 Jan 2025 16:21:57 +0300 Subject: [PATCH 08/21] Add missing testNewRequestAndDoFailure --- github/enterprise_manage_ghes_config_test.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/github/enterprise_manage_ghes_config_test.go b/github/enterprise_manage_ghes_config_test.go index ce16abf9b24..edc0a86aa34 100644 --- a/github/enterprise_manage_ghes_config_test.go +++ b/github/enterprise_manage_ghes_config_test.go @@ -657,6 +657,15 @@ func TestEnterpriseService_ConfigApply(t *testing.T) { if !cmp.Equal(configApply, want) { t.Errorf("Enterprise.ConfigApply returned %+v, want %+v", configApply, want) } + const methodName = "ConfigApply" + + testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) { + got, resp, err := client.Enterprise.ConfigApply(ctx, input) + if got != nil { + t.Errorf("testNewRequestAndDoFailure %v = %#v, want nil", methodName, got) + } + return resp, err + }) } func TestEnterpriseService_ConfigApplyStatus(t *testing.T) { @@ -708,4 +717,13 @@ func TestEnterpriseService_ConfigApplyStatus(t *testing.T) { if !cmp.Equal(configApplyStatus, want) { t.Errorf("Enterprise.ConfigApplyStatus returned %+v, want %+v", configApplyStatus, want) } + const methodName = "ConfigApplyStatus" + + testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) { + got, resp, err := client.Enterprise.ConfigApplyStatus(ctx, input) + if got != nil { + t.Errorf("testNewRequestAndDoFailure %v = %#v, want nil", methodName, got) + } + return resp, err + }) } From 9775d7367825e855525131590aa718c225eb4c53 Mon Sep 17 00:00:00 2001 From: Banhidy Krisztian Date: Thu, 16 Jan 2025 16:47:20 +0300 Subject: [PATCH 09/21] Run generate --- github/github-accessors.go | 8 ++++++++ github/github-accessors_test.go | 11 +++++++++++ 2 files changed, 19 insertions(+) diff --git a/github/github-accessors.go b/github/github-accessors.go index 6f41ec7f0af..22d9ba73801 100644 --- a/github/github-accessors.go +++ b/github/github-accessors.go @@ -25054,6 +25054,14 @@ func (s *SSHKeyStatus) GetMessage() string { return *s.Message } +// GetModified returns the Modified field if it's non-nil, zero value otherwise. +func (s *SSHKeyStatus) GetModified() bool { + if s == nil || s.Modified == nil { + return false + } + return *s.Modified +} + // GetUUID returns the UUID field if it's non-nil, zero value otherwise. func (s *SSHKeyStatus) GetUUID() string { if s == nil || s.UUID == nil { diff --git a/github/github-accessors_test.go b/github/github-accessors_test.go index 2ab8e481b5a..f761d17bae0 100644 --- a/github/github-accessors_test.go +++ b/github/github-accessors_test.go @@ -32168,6 +32168,17 @@ func TestSSHKeyStatus_GetMessage(tt *testing.T) { s.GetMessage() } +func TestSSHKeyStatus_GetModified(tt *testing.T) { + tt.Parallel() + var zeroValue bool + s := &SSHKeyStatus{Modified: &zeroValue} + s.GetModified() + s = &SSHKeyStatus{} + s.GetModified() + s = nil + s.GetModified() +} + func TestSSHKeyStatus_GetUUID(tt *testing.T) { tt.Parallel() var zeroValue string From af473dad5a99e32aa136077fcddab2d55b50216b Mon Sep 17 00:00:00 2001 From: Banhidy Krisztian Date: Thu, 16 Jan 2025 17:20:39 +0300 Subject: [PATCH 10/21] Run generate --- github/github-accessors.go | 16 ++++++++-------- github/github-accessors_test.go | 20 ++++++++++---------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/github/github-accessors.go b/github/github-accessors.go index 22d9ba73801..e6675596386 100644 --- a/github/github-accessors.go +++ b/github/github-accessors.go @@ -24830,14 +24830,6 @@ func (s *SMTP) GetSupportAddressType() string { return *s.SupportAddressType } -// GetUserName returns the UserName field if it's non-nil, zero value otherwise. -func (s *SMTP) GetUserName() string { - if s == nil || s.UserName == nil { - return "" - } - return *s.UserName -} - // GetUsername returns the Username field if it's non-nil, zero value otherwise. func (s *SMTP) GetUsername() string { if s == nil || s.Username == nil { @@ -24846,6 +24838,14 @@ func (s *SMTP) GetUsername() string { return *s.Username } +// GetUserName returns the UserName field if it's non-nil, zero value otherwise. +func (s *SMTP) GetUserName() string { + if s == nil || s.UserName == nil { + return "" + } + return *s.UserName +} + // GetCommunity returns the Community field if it's non-nil, zero value otherwise. func (s *SNMP) GetCommunity() string { if s == nil || s.Community == nil { diff --git a/github/github-accessors_test.go b/github/github-accessors_test.go index f761d17bae0..a1ead1fdfac 100644 --- a/github/github-accessors_test.go +++ b/github/github-accessors_test.go @@ -31884,26 +31884,26 @@ func TestSMTP_GetSupportAddressType(tt *testing.T) { s.GetSupportAddressType() } -func TestSMTP_GetUserName(tt *testing.T) { +func TestSMTP_GetUsername(tt *testing.T) { tt.Parallel() var zeroValue string - s := &SMTP{UserName: &zeroValue} - s.GetUserName() + s := &SMTP{Username: &zeroValue} + s.GetUsername() s = &SMTP{} - s.GetUserName() + s.GetUsername() s = nil - s.GetUserName() + s.GetUsername() } -func TestSMTP_GetUsername(tt *testing.T) { +func TestSMTP_GetUserName(tt *testing.T) { tt.Parallel() var zeroValue string - s := &SMTP{Username: &zeroValue} - s.GetUsername() + s := &SMTP{UserName: &zeroValue} + s.GetUserName() s = &SMTP{} - s.GetUsername() + s.GetUserName() s = nil - s.GetUsername() + s.GetUserName() } func TestSNMP_GetCommunity(tt *testing.T) { From f9aac39d188994355852334e983fd5f13be1d11a Mon Sep 17 00:00:00 2001 From: Banhidy Krisztian Date: Thu, 16 Jan 2025 17:59:05 +0300 Subject: [PATCH 11/21] Run generate with go 1.22.0 --- github/github-accessors.go | 16 ++++++++-------- github/github-accessors_test.go | 20 ++++++++++---------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/github/github-accessors.go b/github/github-accessors.go index e6675596386..22d9ba73801 100644 --- a/github/github-accessors.go +++ b/github/github-accessors.go @@ -24830,14 +24830,6 @@ func (s *SMTP) GetSupportAddressType() string { return *s.SupportAddressType } -// GetUsername returns the Username field if it's non-nil, zero value otherwise. -func (s *SMTP) GetUsername() string { - if s == nil || s.Username == nil { - return "" - } - return *s.Username -} - // GetUserName returns the UserName field if it's non-nil, zero value otherwise. func (s *SMTP) GetUserName() string { if s == nil || s.UserName == nil { @@ -24846,6 +24838,14 @@ func (s *SMTP) GetUserName() string { return *s.UserName } +// GetUsername returns the Username field if it's non-nil, zero value otherwise. +func (s *SMTP) GetUsername() string { + if s == nil || s.Username == nil { + return "" + } + return *s.Username +} + // GetCommunity returns the Community field if it's non-nil, zero value otherwise. func (s *SNMP) GetCommunity() string { if s == nil || s.Community == nil { diff --git a/github/github-accessors_test.go b/github/github-accessors_test.go index a1ead1fdfac..f761d17bae0 100644 --- a/github/github-accessors_test.go +++ b/github/github-accessors_test.go @@ -31884,26 +31884,26 @@ func TestSMTP_GetSupportAddressType(tt *testing.T) { s.GetSupportAddressType() } -func TestSMTP_GetUsername(tt *testing.T) { +func TestSMTP_GetUserName(tt *testing.T) { tt.Parallel() var zeroValue string - s := &SMTP{Username: &zeroValue} - s.GetUsername() + s := &SMTP{UserName: &zeroValue} + s.GetUserName() s = &SMTP{} - s.GetUsername() + s.GetUserName() s = nil - s.GetUsername() + s.GetUserName() } -func TestSMTP_GetUserName(tt *testing.T) { +func TestSMTP_GetUsername(tt *testing.T) { tt.Parallel() var zeroValue string - s := &SMTP{UserName: &zeroValue} - s.GetUserName() + s := &SMTP{Username: &zeroValue} + s.GetUsername() s = &SMTP{} - s.GetUserName() + s.GetUsername() s = nil - s.GetUserName() + s.GetUsername() } func TestSNMP_GetCommunity(tt *testing.T) { From dfc158ad08d532f434995e982f2c1844f688234b Mon Sep 17 00:00:00 2001 From: Banhidy Krisztian Date: Thu, 16 Jan 2025 21:24:51 +0300 Subject: [PATCH 12/21] Add #3436 patch and generate --- github/github-accessors.go | 16 ++++++++-------- github/github-accessors_test.go | 20 ++++++++++---------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/github/github-accessors.go b/github/github-accessors.go index 22d9ba73801..e6675596386 100644 --- a/github/github-accessors.go +++ b/github/github-accessors.go @@ -24830,14 +24830,6 @@ func (s *SMTP) GetSupportAddressType() string { return *s.SupportAddressType } -// GetUserName returns the UserName field if it's non-nil, zero value otherwise. -func (s *SMTP) GetUserName() string { - if s == nil || s.UserName == nil { - return "" - } - return *s.UserName -} - // GetUsername returns the Username field if it's non-nil, zero value otherwise. func (s *SMTP) GetUsername() string { if s == nil || s.Username == nil { @@ -24846,6 +24838,14 @@ func (s *SMTP) GetUsername() string { return *s.Username } +// GetUserName returns the UserName field if it's non-nil, zero value otherwise. +func (s *SMTP) GetUserName() string { + if s == nil || s.UserName == nil { + return "" + } + return *s.UserName +} + // GetCommunity returns the Community field if it's non-nil, zero value otherwise. func (s *SNMP) GetCommunity() string { if s == nil || s.Community == nil { diff --git a/github/github-accessors_test.go b/github/github-accessors_test.go index f761d17bae0..a1ead1fdfac 100644 --- a/github/github-accessors_test.go +++ b/github/github-accessors_test.go @@ -31884,26 +31884,26 @@ func TestSMTP_GetSupportAddressType(tt *testing.T) { s.GetSupportAddressType() } -func TestSMTP_GetUserName(tt *testing.T) { +func TestSMTP_GetUsername(tt *testing.T) { tt.Parallel() var zeroValue string - s := &SMTP{UserName: &zeroValue} - s.GetUserName() + s := &SMTP{Username: &zeroValue} + s.GetUsername() s = &SMTP{} - s.GetUserName() + s.GetUsername() s = nil - s.GetUserName() + s.GetUsername() } -func TestSMTP_GetUsername(tt *testing.T) { +func TestSMTP_GetUserName(tt *testing.T) { tt.Parallel() var zeroValue string - s := &SMTP{Username: &zeroValue} - s.GetUsername() + s := &SMTP{UserName: &zeroValue} + s.GetUserName() s = &SMTP{} - s.GetUsername() + s.GetUserName() s = nil - s.GetUsername() + s.GetUserName() } func TestSNMP_GetCommunity(tt *testing.T) { From 8eea7bb8445fc86529c8d0297a1a5c475882d78a Mon Sep 17 00:00:00 2001 From: Krisztian Banhidy Date: Fri, 17 Jan 2025 18:00:24 +0300 Subject: [PATCH 13/21] Fix APIs Co-authored-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com> --- github/enterprise_manage_ghes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/enterprise_manage_ghes.go b/github/enterprise_manage_ghes.go index d7f6a5b5212..e9139305220 100644 --- a/github/enterprise_manage_ghes.go +++ b/github/enterprise_manage_ghes.go @@ -10,7 +10,7 @@ import ( ) // NodeQueryOptions specifies the optional parameters to the EnterpriseService -// Node management APIS. +// Node management APIs. type NodeQueryOptions struct { // UUID filters issues based on the node UUID. UUID *string `url:"uuid,omitempty"` From 885cafcd836477aa185b99d65fdcfc29276b44ce Mon Sep 17 00:00:00 2001 From: Krisztian Banhidy Date: Fri, 17 Jan 2025 18:02:31 +0300 Subject: [PATCH 14/21] Fix plural of method in doc Co-authored-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com> --- github/enterprise_manage_ghes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/enterprise_manage_ghes.go b/github/enterprise_manage_ghes.go index e9139305220..c44d4695e00 100644 --- a/github/enterprise_manage_ghes.go +++ b/github/enterprise_manage_ghes.go @@ -19,7 +19,7 @@ type NodeQueryOptions struct { ClusterRoles *string `url:"cluster_roles,omitempty"` } -// ClusterStatus represents a response from the GetClusterStatus and GetReplicationStatus method. +// ClusterStatus represents a response from the GetClusterStatus and GetReplicationStatus methods. type ClusterStatus struct { Status *string `json:"status,omitempty"` Nodes []*ClusterStatusNodes `json:"nodes"` From d18f95d8eaeb9fcc7f63c13ec18ce2d75e683912 Mon Sep 17 00:00:00 2001 From: Banhidy Krisztian Date: Fri, 17 Jan 2025 18:29:55 +0300 Subject: [PATCH 15/21] Fix from review to enterprise_manage_ghes.go --- github/enterprise_manage_ghes.go | 44 ++++++++--------- github/enterprise_manage_ghes_test.go | 22 ++++----- github/github-accessors.go | 24 ++++----- github/github-accessors_test.go | 70 +++++++++++++-------------- 4 files changed, 80 insertions(+), 80 deletions(-) diff --git a/github/enterprise_manage_ghes.go b/github/enterprise_manage_ghes.go index c44d4695e00..3ecf373fa33 100644 --- a/github/enterprise_manage_ghes.go +++ b/github/enterprise_manage_ghes.go @@ -21,12 +21,12 @@ type NodeQueryOptions struct { // ClusterStatus represents a response from the GetClusterStatus and GetReplicationStatus methods. type ClusterStatus struct { - Status *string `json:"status,omitempty"` - Nodes []*ClusterStatusNodes `json:"nodes"` + Status *string `json:"status,omitempty"` + Nodes []*ClusterStatusNode `json:"nodes"` } -// ClusterStatusNodes represents the status of a cluster node. -type ClusterStatusNodes struct { +// ClusterStatusNode represents the status of a cluster node. +type ClusterStatusNode struct { Hostname *string `json:"hostname,omitempty"` Status *string `json:"status,omitempty"` Services []*ClusterStatusNodesServices `json:"services"` @@ -41,31 +41,31 @@ type ClusterStatusNodesServices struct { // SystemRequirements represents a response from the GetCheckSystemRequirements method. type SystemRequirements struct { - Status *string `json:"status,omitempty"` - Nodes []*SystemRequirementsNodes `json:"nodes"` + Status *string `json:"status,omitempty"` + Nodes []*SystemRequirementsNode `json:"nodes"` } -// SystemRequirementsNodes represents the status of a system node. -type SystemRequirementsNodes struct { - Hostname *string `json:"hostname,omitempty"` - Status *string `json:"status,omitempty"` - RolesStatus []*SystemRequirementsNodesRolesStatus `json:"roles_status"` +// SystemRequirementsNode represents the status of a system node. +type SystemRequirementsNode struct { + Hostname *string `json:"hostname,omitempty"` + Status *string `json:"status,omitempty"` + RolesStatus []*SystemRequirementsNodeRoleStatus `json:"roles_status"` } -// SystemRequirementsNodesRolesStatus represents the status of a role on a system node. -type SystemRequirementsNodesRolesStatus struct { +// SystemRequirementsNodeRoleStatus represents the status of a role on a system node. +type SystemRequirementsNodeRoleStatus struct { Status *string `json:"status,omitempty"` Role *string `json:"role,omitempty"` } -// NodeReleaseVersions represents a response from the GetReplicationStatus method. -type NodeReleaseVersions struct { - Hostname *string `json:"hostname,omitempty"` - Version *ReleaseVersions `json:"version"` +// NodeReleaseVersion represents a response from the GetNodeReleaseVersions method. +type NodeReleaseVersion struct { + Hostname *string `json:"hostname,omitempty"` + Version *ReleaseVersion `json:"version"` } -// ReleaseVersions holds the release version information of the node. -type ReleaseVersions struct { +// ReleaseVersion holds the release version information of the node. +type ReleaseVersion struct { Version *string `json:"version,omitempty"` Platform *string `json:"platform,omitempty"` BuildID *string `json:"build_id,omitempty"` @@ -138,12 +138,12 @@ func (s *EnterpriseService) ReplicationStatus(ctx context.Context, opts *NodeQue return replicationStatus, resp, nil } -// Versions gets the versions information deployed to each node. +// GetNodeReleaseVersions gets the version information deployed to each node. // // GitHub API docs: https://docs.github.com/enterprise-server@3.15/rest/enterprise-admin/manage-ghes#get-all-ghes-release-versions-for-all-nodes // //meta:operation GET /manage/v1/version -func (s *EnterpriseService) Versions(ctx context.Context, opts *NodeQueryOptions) ([]*NodeReleaseVersions, *Response, error) { +func (s *EnterpriseService) GetNodeReleaseVersions(ctx context.Context, opts *NodeQueryOptions) ([]*NodeReleaseVersion, *Response, error) { u, err := addOptions("manage/v1/version", opts) if err != nil { return nil, nil, err @@ -153,7 +153,7 @@ func (s *EnterpriseService) Versions(ctx context.Context, opts *NodeQueryOptions return nil, nil, err } - var releaseVersions []*NodeReleaseVersions + var releaseVersions []*NodeReleaseVersion resp, err := s.client.Do(ctx, req, &releaseVersions) if err != nil { return nil, resp, err diff --git a/github/enterprise_manage_ghes_test.go b/github/enterprise_manage_ghes_test.go index cbcbfaf70c5..3c35b207a15 100644 --- a/github/enterprise_manage_ghes_test.go +++ b/github/enterprise_manage_ghes_test.go @@ -41,10 +41,10 @@ func TestEnterpriseService_CheckSystemRequirements(t *testing.T) { want := &SystemRequirements{ Status: Ptr("OK"), - Nodes: []*SystemRequirementsNodes{{ + Nodes: []*SystemRequirementsNode{{ Hostname: Ptr("primary"), Status: Ptr("OK"), - RolesStatus: []*SystemRequirementsNodesRolesStatus{{ + RolesStatus: []*SystemRequirementsNodeRoleStatus{{ Status: Ptr("OK"), Role: Ptr("ConsulServer"), }}, @@ -88,7 +88,7 @@ func TestEnterpriseService_ClusterStatus(t *testing.T) { want := &ClusterStatus{ Status: Ptr("OK"), - Nodes: []*ClusterStatusNodes{{ + Nodes: []*ClusterStatusNode{{ Hostname: Ptr("primary"), Status: Ptr("OK"), Services: []*ClusterStatusNodesServices{}, @@ -139,7 +139,7 @@ func TestEnterpriseService_ReplicationStatus(t *testing.T) { want := &ClusterStatus{ Status: Ptr("OK"), - Nodes: []*ClusterStatusNodes{{ + Nodes: []*ClusterStatusNode{{ Hostname: Ptr("primary"), Status: Ptr("OK"), Services: []*ClusterStatusNodesServices{}, @@ -184,14 +184,14 @@ func TestEnterpriseService_Versions(t *testing.T) { UUID: Ptr("1234-1234"), ClusterRoles: Ptr("primary"), } ctx := context.Background() - releaseVersions, _, err := client.Enterprise.Versions(ctx, opt) + releaseVersions, _, err := client.Enterprise.GetNodeReleaseVersions(ctx, opt) if err != nil { - t.Errorf("Enterprise.Versions returned error: %v", err) + t.Errorf("Enterprise.GetNodeReleaseVersions returned error: %v", err) } - want := []*NodeReleaseVersions{{ + want := []*NodeReleaseVersion{{ Hostname: Ptr("primary"), - Version: &ReleaseVersions{ + Version: &ReleaseVersion{ Version: Ptr("3.9.0"), Platform: Ptr("azure"), BuildID: Ptr("fc542058b5"), @@ -199,12 +199,12 @@ func TestEnterpriseService_Versions(t *testing.T) { }, }} if !cmp.Equal(releaseVersions, want) { - t.Errorf("Enterprise.Versions returned %+v, want %+v", releaseVersions, want) + t.Errorf("Enterprise.GetNodeReleaseVersions returned %+v, want %+v", releaseVersions, want) } - const methodName = "Versions" + const methodName = "GetNodeReleaseVersions" testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) { - got, resp, err := client.Enterprise.Versions(ctx, opt) + got, resp, err := client.Enterprise.GetNodeReleaseVersions(ctx, opt) if got != nil { t.Errorf("testNewRequestAndDoFailure %v = %#v, want nil", methodName, got) } diff --git a/github/github-accessors.go b/github/github-accessors.go index e6675596386..298d371d4d3 100644 --- a/github/github-accessors.go +++ b/github/github-accessors.go @@ -2511,7 +2511,7 @@ func (c *ClusterStatus) GetStatus() string { } // GetHostname returns the Hostname field if it's non-nil, zero value otherwise. -func (c *ClusterStatusNodes) GetHostname() string { +func (c *ClusterStatusNode) GetHostname() string { if c == nil || c.Hostname == nil { return "" } @@ -2519,7 +2519,7 @@ func (c *ClusterStatusNodes) GetHostname() string { } // GetStatus returns the Status field if it's non-nil, zero value otherwise. -func (c *ClusterStatusNodes) GetStatus() string { +func (c *ClusterStatusNode) GetStatus() string { if c == nil || c.Status == nil { return "" } @@ -14407,7 +14407,7 @@ func (n *NodeQueryOptions) GetUUID() string { } // GetHostname returns the Hostname field if it's non-nil, zero value otherwise. -func (n *NodeReleaseVersions) GetHostname() string { +func (n *NodeReleaseVersion) GetHostname() string { if n == nil || n.Hostname == nil { return "" } @@ -14415,7 +14415,7 @@ func (n *NodeReleaseVersions) GetHostname() string { } // GetVersion returns the Version field. -func (n *NodeReleaseVersions) GetVersion() *ReleaseVersions { +func (n *NodeReleaseVersion) GetVersion() *ReleaseVersion { if n == nil { return nil } @@ -20119,7 +20119,7 @@ func (r *ReleaseEvent) GetSender() *User { } // GetBuildDate returns the BuildDate field if it's non-nil, zero value otherwise. -func (r *ReleaseVersions) GetBuildDate() string { +func (r *ReleaseVersion) GetBuildDate() string { if r == nil || r.BuildDate == nil { return "" } @@ -20127,7 +20127,7 @@ func (r *ReleaseVersions) GetBuildDate() string { } // GetBuildID returns the BuildID field if it's non-nil, zero value otherwise. -func (r *ReleaseVersions) GetBuildID() string { +func (r *ReleaseVersion) GetBuildID() string { if r == nil || r.BuildID == nil { return "" } @@ -20135,7 +20135,7 @@ func (r *ReleaseVersions) GetBuildID() string { } // GetPlatform returns the Platform field if it's non-nil, zero value otherwise. -func (r *ReleaseVersions) GetPlatform() string { +func (r *ReleaseVersion) GetPlatform() string { if r == nil || r.Platform == nil { return "" } @@ -20143,7 +20143,7 @@ func (r *ReleaseVersions) GetPlatform() string { } // GetVersion returns the Version field if it's non-nil, zero value otherwise. -func (r *ReleaseVersions) GetVersion() string { +func (r *ReleaseVersion) GetVersion() string { if r == nil || r.Version == nil { return "" } @@ -25383,7 +25383,7 @@ func (s *SystemRequirements) GetStatus() string { } // GetHostname returns the Hostname field if it's non-nil, zero value otherwise. -func (s *SystemRequirementsNodes) GetHostname() string { +func (s *SystemRequirementsNode) GetHostname() string { if s == nil || s.Hostname == nil { return "" } @@ -25391,7 +25391,7 @@ func (s *SystemRequirementsNodes) GetHostname() string { } // GetStatus returns the Status field if it's non-nil, zero value otherwise. -func (s *SystemRequirementsNodes) GetStatus() string { +func (s *SystemRequirementsNode) GetStatus() string { if s == nil || s.Status == nil { return "" } @@ -25399,7 +25399,7 @@ func (s *SystemRequirementsNodes) GetStatus() string { } // GetRole returns the Role field if it's non-nil, zero value otherwise. -func (s *SystemRequirementsNodesRolesStatus) GetRole() string { +func (s *SystemRequirementsNodeRoleStatus) GetRole() string { if s == nil || s.Role == nil { return "" } @@ -25407,7 +25407,7 @@ func (s *SystemRequirementsNodesRolesStatus) GetRole() string { } // GetStatus returns the Status field if it's non-nil, zero value otherwise. -func (s *SystemRequirementsNodesRolesStatus) GetStatus() string { +func (s *SystemRequirementsNodeRoleStatus) GetStatus() string { if s == nil || s.Status == nil { return "" } diff --git a/github/github-accessors_test.go b/github/github-accessors_test.go index a1ead1fdfac..2ba3bc382f9 100644 --- a/github/github-accessors_test.go +++ b/github/github-accessors_test.go @@ -3261,23 +3261,23 @@ func TestClusterStatus_GetStatus(tt *testing.T) { c.GetStatus() } -func TestClusterStatusNodes_GetHostname(tt *testing.T) { +func TestClusterStatusNode_GetHostname(tt *testing.T) { tt.Parallel() var zeroValue string - c := &ClusterStatusNodes{Hostname: &zeroValue} + c := &ClusterStatusNode{Hostname: &zeroValue} c.GetHostname() - c = &ClusterStatusNodes{} + c = &ClusterStatusNode{} c.GetHostname() c = nil c.GetHostname() } -func TestClusterStatusNodes_GetStatus(tt *testing.T) { +func TestClusterStatusNode_GetStatus(tt *testing.T) { tt.Parallel() var zeroValue string - c := &ClusterStatusNodes{Status: &zeroValue} + c := &ClusterStatusNode{Status: &zeroValue} c.GetStatus() - c = &ClusterStatusNodes{} + c = &ClusterStatusNode{} c.GetStatus() c = nil c.GetStatus() @@ -18646,20 +18646,20 @@ func TestNodeQueryOptions_GetUUID(tt *testing.T) { n.GetUUID() } -func TestNodeReleaseVersions_GetHostname(tt *testing.T) { +func TestNodeReleaseVersion_GetHostname(tt *testing.T) { tt.Parallel() var zeroValue string - n := &NodeReleaseVersions{Hostname: &zeroValue} + n := &NodeReleaseVersion{Hostname: &zeroValue} n.GetHostname() - n = &NodeReleaseVersions{} + n = &NodeReleaseVersion{} n.GetHostname() n = nil n.GetHostname() } -func TestNodeReleaseVersions_GetVersion(tt *testing.T) { +func TestNodeReleaseVersion_GetVersion(tt *testing.T) { tt.Parallel() - n := &NodeReleaseVersions{} + n := &NodeReleaseVersion{} n.GetVersion() n = nil n.GetVersion() @@ -25879,45 +25879,45 @@ func TestReleaseEvent_GetSender(tt *testing.T) { r.GetSender() } -func TestReleaseVersions_GetBuildDate(tt *testing.T) { +func TestReleaseVersion_GetBuildDate(tt *testing.T) { tt.Parallel() var zeroValue string - r := &ReleaseVersions{BuildDate: &zeroValue} + r := &ReleaseVersion{BuildDate: &zeroValue} r.GetBuildDate() - r = &ReleaseVersions{} + r = &ReleaseVersion{} r.GetBuildDate() r = nil r.GetBuildDate() } -func TestReleaseVersions_GetBuildID(tt *testing.T) { +func TestReleaseVersion_GetBuildID(tt *testing.T) { tt.Parallel() var zeroValue string - r := &ReleaseVersions{BuildID: &zeroValue} + r := &ReleaseVersion{BuildID: &zeroValue} r.GetBuildID() - r = &ReleaseVersions{} + r = &ReleaseVersion{} r.GetBuildID() r = nil r.GetBuildID() } -func TestReleaseVersions_GetPlatform(tt *testing.T) { +func TestReleaseVersion_GetPlatform(tt *testing.T) { tt.Parallel() var zeroValue string - r := &ReleaseVersions{Platform: &zeroValue} + r := &ReleaseVersion{Platform: &zeroValue} r.GetPlatform() - r = &ReleaseVersions{} + r = &ReleaseVersion{} r.GetPlatform() r = nil r.GetPlatform() } -func TestReleaseVersions_GetVersion(tt *testing.T) { +func TestReleaseVersion_GetVersion(tt *testing.T) { tt.Parallel() var zeroValue string - r := &ReleaseVersions{Version: &zeroValue} + r := &ReleaseVersion{Version: &zeroValue} r.GetVersion() - r = &ReleaseVersions{} + r = &ReleaseVersion{} r.GetVersion() r = nil r.GetVersion() @@ -32586,45 +32586,45 @@ func TestSystemRequirements_GetStatus(tt *testing.T) { s.GetStatus() } -func TestSystemRequirementsNodes_GetHostname(tt *testing.T) { +func TestSystemRequirementsNode_GetHostname(tt *testing.T) { tt.Parallel() var zeroValue string - s := &SystemRequirementsNodes{Hostname: &zeroValue} + s := &SystemRequirementsNode{Hostname: &zeroValue} s.GetHostname() - s = &SystemRequirementsNodes{} + s = &SystemRequirementsNode{} s.GetHostname() s = nil s.GetHostname() } -func TestSystemRequirementsNodes_GetStatus(tt *testing.T) { +func TestSystemRequirementsNode_GetStatus(tt *testing.T) { tt.Parallel() var zeroValue string - s := &SystemRequirementsNodes{Status: &zeroValue} + s := &SystemRequirementsNode{Status: &zeroValue} s.GetStatus() - s = &SystemRequirementsNodes{} + s = &SystemRequirementsNode{} s.GetStatus() s = nil s.GetStatus() } -func TestSystemRequirementsNodesRolesStatus_GetRole(tt *testing.T) { +func TestSystemRequirementsNodeRoleStatus_GetRole(tt *testing.T) { tt.Parallel() var zeroValue string - s := &SystemRequirementsNodesRolesStatus{Role: &zeroValue} + s := &SystemRequirementsNodeRoleStatus{Role: &zeroValue} s.GetRole() - s = &SystemRequirementsNodesRolesStatus{} + s = &SystemRequirementsNodeRoleStatus{} s.GetRole() s = nil s.GetRole() } -func TestSystemRequirementsNodesRolesStatus_GetStatus(tt *testing.T) { +func TestSystemRequirementsNodeRoleStatus_GetStatus(tt *testing.T) { tt.Parallel() var zeroValue string - s := &SystemRequirementsNodesRolesStatus{Status: &zeroValue} + s := &SystemRequirementsNodeRoleStatus{Status: &zeroValue} s.GetStatus() - s = &SystemRequirementsNodesRolesStatus{} + s = &SystemRequirementsNodeRoleStatus{} s.GetStatus() s = nil s.GetStatus() From f3d10fdc71f840e2ea0b1ea6209a5f502d2df5f7 Mon Sep 17 00:00:00 2001 From: Banhidy Krisztian Date: Fri, 17 Jan 2025 22:18:16 +0300 Subject: [PATCH 16/21] Fix ClusterSSHKey --- github/enterprise_manage_ghes_ssh.go | 8 ++++---- github/enterprise_manage_ghes_ssh_test.go | 2 +- github/github-accessors.go | 4 ++-- github/github-accessors_test.go | 12 ++++++------ 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/github/enterprise_manage_ghes_ssh.go b/github/enterprise_manage_ghes_ssh.go index 6c36ccb0e76..77d25216593 100644 --- a/github/enterprise_manage_ghes_ssh.go +++ b/github/enterprise_manage_ghes_ssh.go @@ -23,8 +23,8 @@ type SSHKeyOptions struct { Key string `json:"key"` } -// ClusterSSHKeys represents the SSH keys configured for the instance. -type ClusterSSHKeys struct { +// ClusterSSHKey represents the SSH keys configured for the instance. +type ClusterSSHKey struct { Key *string `json:"key,omitempty"` Fingerprint *string `json:"fingerprint,omitempty"` } @@ -58,14 +58,14 @@ func (s *EnterpriseService) DeleteSSHKey(ctx context.Context, key string) ([]*SS // GitHub API docs: https://docs.github.com/enterprise-server@3.15/rest/enterprise-admin/manage-ghes#get-the-configured-ssh-keys // //meta:operation GET /manage/v1/access/ssh -func (s *EnterpriseService) GetSSHKey(ctx context.Context) ([]*ClusterSSHKeys, *Response, error) { +func (s *EnterpriseService) GetSSHKey(ctx context.Context) ([]*ClusterSSHKey, *Response, error) { u := "manage/v1/access/ssh" req, err := s.client.NewRequest("GET", u, nil) if err != nil { return nil, nil, err } - var sshKeys []*ClusterSSHKeys + var sshKeys []*ClusterSSHKey resp, err := s.client.Do(ctx, req, &sshKeys) if err != nil { return nil, resp, err diff --git a/github/enterprise_manage_ghes_ssh_test.go b/github/enterprise_manage_ghes_ssh_test.go index 292f9e088bf..b8ed236644f 100644 --- a/github/enterprise_manage_ghes_ssh_test.go +++ b/github/enterprise_manage_ghes_ssh_test.go @@ -33,7 +33,7 @@ func TestEnterpriseService_GetSSHKey(t *testing.T) { t.Errorf("Enterprise.GetSSHKey returned error: %v", err) } - want := []*ClusterSSHKeys{{ + want := []*ClusterSSHKey{{ Key: Ptr("ssh-rsa 1234"), Fingerprint: Ptr("bd"), }} diff --git a/github/github-accessors.go b/github/github-accessors.go index 298d371d4d3..eafa7656ccc 100644 --- a/github/github-accessors.go +++ b/github/github-accessors.go @@ -2487,7 +2487,7 @@ func (c *CheckSuitePreferenceResults) GetRepository() *Repository { } // GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. -func (c *ClusterSSHKeys) GetFingerprint() string { +func (c *ClusterSSHKey) GetFingerprint() string { if c == nil || c.Fingerprint == nil { return "" } @@ -2495,7 +2495,7 @@ func (c *ClusterSSHKeys) GetFingerprint() string { } // GetKey returns the Key field if it's non-nil, zero value otherwise. -func (c *ClusterSSHKeys) GetKey() string { +func (c *ClusterSSHKey) GetKey() string { if c == nil || c.Key == nil { return "" } diff --git a/github/github-accessors_test.go b/github/github-accessors_test.go index 2ba3bc382f9..b459cd1350c 100644 --- a/github/github-accessors_test.go +++ b/github/github-accessors_test.go @@ -3228,23 +3228,23 @@ func TestCheckSuitePreferenceResults_GetRepository(tt *testing.T) { c.GetRepository() } -func TestClusterSSHKeys_GetFingerprint(tt *testing.T) { +func TestClusterSSHKey_GetFingerprint(tt *testing.T) { tt.Parallel() var zeroValue string - c := &ClusterSSHKeys{Fingerprint: &zeroValue} + c := &ClusterSSHKey{Fingerprint: &zeroValue} c.GetFingerprint() - c = &ClusterSSHKeys{} + c = &ClusterSSHKey{} c.GetFingerprint() c = nil c.GetFingerprint() } -func TestClusterSSHKeys_GetKey(tt *testing.T) { +func TestClusterSSHKey_GetKey(tt *testing.T) { tt.Parallel() var zeroValue string - c := &ClusterSSHKeys{Key: &zeroValue} + c := &ClusterSSHKey{Key: &zeroValue} c.GetKey() - c = &ClusterSSHKeys{} + c = &ClusterSSHKey{} c.GetKey() c = nil c.GetKey() From c4121e90cb3e0bbded4e2119cd7c14365bd1da25 Mon Sep 17 00:00:00 2001 From: Banhidy Krisztian Date: Fri, 17 Jan 2025 22:24:46 +0300 Subject: [PATCH 17/21] Fix enterprise_manage_ghes_config --- github/enterprise_manage_ghes_config.go | 26 ++-- github/enterprise_manage_ghes_config_test.go | 6 +- github/github-accessors.go | 62 ++++----- github/github-accessors_test.go | 134 +++++++++---------- 4 files changed, 114 insertions(+), 114 deletions(-) diff --git a/github/enterprise_manage_ghes_config.go b/github/enterprise_manage_ghes_config.go index e21033b41fc..9f9cc762965 100644 --- a/github/enterprise_manage_ghes_config.go +++ b/github/enterprise_manage_ghes_config.go @@ -18,13 +18,13 @@ type ConfigApplyOptions struct { // ConfigApplyStatus is a struct to hold the response from the ConfigApply API. type ConfigApplyStatus struct { - Running *bool `json:"running,omitempty"` - Successful *bool `json:"successful,omitempty"` - Nodes []*ConfigApplyStatusNodes `json:"nodes"` + Running *bool `json:"running,omitempty"` + Successful *bool `json:"successful,omitempty"` + Nodes []*ConfigApplyStatusNode `json:"nodes"` } -// ConfigApplyStatusNodes is a struct to hold the response from the ConfigApply API. -type ConfigApplyStatusNodes struct { +// ConfigApplyStatusNode is a struct to hold the response from the ConfigApply API. +type ConfigApplyStatusNode struct { Hostname *string `json:"hostname,omitempty"` Running *bool `json:"running,omitempty"` Successful *bool `json:"successful,omitempty"` @@ -38,18 +38,18 @@ type ConfigApplyEventsOptions struct { // ConfigApplyEvents is a struct to hold the response from the ConfigApplyEvents API. type ConfigApplyEvents struct { - Nodes []*ConfigApplyEventsNodes `json:"nodes"` + Nodes []*ConfigApplyEventsNode `json:"nodes"` } -// ConfigApplyEventsNodes is a struct to hold the response from the ConfigApplyEvents API. -type ConfigApplyEventsNodes struct { - Node *string `json:"node,omitempty"` - LastRequestID *string `json:"last_request_id,omitempty"` - Events []*ConfigApplyEventsNodeEvents `json:"events"` +// ConfigApplyEventsNode is a struct to hold the response from the ConfigApplyEvents API. +type ConfigApplyEventsNode struct { + Node *string `json:"node,omitempty"` + LastRequestID *string `json:"last_request_id,omitempty"` + Events []*ConfigApplyEventsNodeEvent `json:"events"` } -// ConfigApplyEventsNodeEvents is a struct to hold the response from the ConfigApplyEvents API. -type ConfigApplyEventsNodeEvents struct { +// ConfigApplyEventsNodeEvent is a struct to hold the response from the ConfigApplyEvents API. +type ConfigApplyEventsNodeEvent struct { Timestamp *Timestamp `json:"timestamp,omitempty"` SeverityText *string `json:"severity_text,omitempty"` Body *string `json:"body,omitempty"` diff --git a/github/enterprise_manage_ghes_config_test.go b/github/enterprise_manage_ghes_config_test.go index edc0a86aa34..964f318ec21 100644 --- a/github/enterprise_manage_ghes_config_test.go +++ b/github/enterprise_manage_ghes_config_test.go @@ -508,10 +508,10 @@ func TestEnterpriseService_ConfigApplyEvents(t *testing.T) { } want := &ConfigApplyEvents{ - Nodes: []*ConfigApplyEventsNodes{{ + Nodes: []*ConfigApplyEventsNode{{ Node: Ptr("ghes-01.lan"), LastRequestID: Ptr("387cd628c06d606700e79be368e5e574:0cde553750689c76:0000000000000000"), - Events: []*ConfigApplyEventsNodeEvents{{ + Events: []*ConfigApplyEventsNodeEvent{{ Timestamp: &Timestamp{time.Date(2018, time.January, 1, 0, 0, 0, 0, time.UTC)}, SeverityText: Ptr("INFO"), Body: Ptr("Validating services"), @@ -707,7 +707,7 @@ func TestEnterpriseService_ConfigApplyStatus(t *testing.T) { want := &ConfigApplyStatus{ Running: Ptr(true), Successful: Ptr(false), - Nodes: []*ConfigApplyStatusNodes{{ + Nodes: []*ConfigApplyStatusNode{{ RunID: Ptr("d34db33f"), Hostname: Ptr("ghes-01.lan"), Running: Ptr(true), diff --git a/github/github-accessors.go b/github/github-accessors.go index eafa7656ccc..d78419147cc 100644 --- a/github/github-accessors.go +++ b/github/github-accessors.go @@ -4174,8 +4174,24 @@ func (c *CommunityHealthMetrics) GetUpdatedAt() Timestamp { return *c.UpdatedAt } +// GetLastRequestID returns the LastRequestID field if it's non-nil, zero value otherwise. +func (c *ConfigApplyEventsNode) GetLastRequestID() string { + if c == nil || c.LastRequestID == nil { + return "" + } + return *c.LastRequestID +} + +// GetNode returns the Node field if it's non-nil, zero value otherwise. +func (c *ConfigApplyEventsNode) GetNode() string { + if c == nil || c.Node == nil { + return "" + } + return *c.Node +} + // GetBody returns the Body field if it's non-nil, zero value otherwise. -func (c *ConfigApplyEventsNodeEvents) GetBody() string { +func (c *ConfigApplyEventsNodeEvent) GetBody() string { if c == nil || c.Body == nil { return "" } @@ -4183,7 +4199,7 @@ func (c *ConfigApplyEventsNodeEvents) GetBody() string { } // GetConfigRunID returns the ConfigRunID field if it's non-nil, zero value otherwise. -func (c *ConfigApplyEventsNodeEvents) GetConfigRunID() string { +func (c *ConfigApplyEventsNodeEvent) GetConfigRunID() string { if c == nil || c.ConfigRunID == nil { return "" } @@ -4191,7 +4207,7 @@ func (c *ConfigApplyEventsNodeEvents) GetConfigRunID() string { } // GetEventName returns the EventName field if it's non-nil, zero value otherwise. -func (c *ConfigApplyEventsNodeEvents) GetEventName() string { +func (c *ConfigApplyEventsNodeEvent) GetEventName() string { if c == nil || c.EventName == nil { return "" } @@ -4199,7 +4215,7 @@ func (c *ConfigApplyEventsNodeEvents) GetEventName() string { } // GetHostname returns the Hostname field if it's non-nil, zero value otherwise. -func (c *ConfigApplyEventsNodeEvents) GetHostname() string { +func (c *ConfigApplyEventsNodeEvent) GetHostname() string { if c == nil || c.Hostname == nil { return "" } @@ -4207,7 +4223,7 @@ func (c *ConfigApplyEventsNodeEvents) GetHostname() string { } // GetSeverityText returns the SeverityText field if it's non-nil, zero value otherwise. -func (c *ConfigApplyEventsNodeEvents) GetSeverityText() string { +func (c *ConfigApplyEventsNodeEvent) GetSeverityText() string { if c == nil || c.SeverityText == nil { return "" } @@ -4215,7 +4231,7 @@ func (c *ConfigApplyEventsNodeEvents) GetSeverityText() string { } // GetSpanDepth returns the SpanDepth field if it's non-nil, zero value otherwise. -func (c *ConfigApplyEventsNodeEvents) GetSpanDepth() int { +func (c *ConfigApplyEventsNodeEvent) GetSpanDepth() int { if c == nil || c.SpanDepth == nil { return 0 } @@ -4223,7 +4239,7 @@ func (c *ConfigApplyEventsNodeEvents) GetSpanDepth() int { } // GetSpanID returns the SpanID field if it's non-nil, zero value otherwise. -func (c *ConfigApplyEventsNodeEvents) GetSpanID() string { +func (c *ConfigApplyEventsNodeEvent) GetSpanID() string { if c == nil || c.SpanID == nil { return "" } @@ -4231,7 +4247,7 @@ func (c *ConfigApplyEventsNodeEvents) GetSpanID() string { } // GetSpanParentID returns the SpanParentID field if it's non-nil, zero value otherwise. -func (c *ConfigApplyEventsNodeEvents) GetSpanParentID() int { +func (c *ConfigApplyEventsNodeEvent) GetSpanParentID() int { if c == nil || c.SpanParentID == nil { return 0 } @@ -4239,7 +4255,7 @@ func (c *ConfigApplyEventsNodeEvents) GetSpanParentID() int { } // GetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise. -func (c *ConfigApplyEventsNodeEvents) GetTimestamp() Timestamp { +func (c *ConfigApplyEventsNodeEvent) GetTimestamp() Timestamp { if c == nil || c.Timestamp == nil { return Timestamp{} } @@ -4247,7 +4263,7 @@ func (c *ConfigApplyEventsNodeEvents) GetTimestamp() Timestamp { } // GetTopology returns the Topology field if it's non-nil, zero value otherwise. -func (c *ConfigApplyEventsNodeEvents) GetTopology() string { +func (c *ConfigApplyEventsNodeEvent) GetTopology() string { if c == nil || c.Topology == nil { return "" } @@ -4255,29 +4271,13 @@ func (c *ConfigApplyEventsNodeEvents) GetTopology() string { } // GetTraceID returns the TraceID field if it's non-nil, zero value otherwise. -func (c *ConfigApplyEventsNodeEvents) GetTraceID() string { +func (c *ConfigApplyEventsNodeEvent) GetTraceID() string { if c == nil || c.TraceID == nil { return "" } return *c.TraceID } -// GetLastRequestID returns the LastRequestID field if it's non-nil, zero value otherwise. -func (c *ConfigApplyEventsNodes) GetLastRequestID() string { - if c == nil || c.LastRequestID == nil { - return "" - } - return *c.LastRequestID -} - -// GetNode returns the Node field if it's non-nil, zero value otherwise. -func (c *ConfigApplyEventsNodes) GetNode() string { - if c == nil || c.Node == nil { - return "" - } - return *c.Node -} - // GetLastRequestID returns the LastRequestID field if it's non-nil, zero value otherwise. func (c *ConfigApplyEventsOptions) GetLastRequestID() string { if c == nil || c.LastRequestID == nil { @@ -4311,7 +4311,7 @@ func (c *ConfigApplyStatus) GetSuccessful() bool { } // GetHostname returns the Hostname field if it's non-nil, zero value otherwise. -func (c *ConfigApplyStatusNodes) GetHostname() string { +func (c *ConfigApplyStatusNode) GetHostname() string { if c == nil || c.Hostname == nil { return "" } @@ -4319,7 +4319,7 @@ func (c *ConfigApplyStatusNodes) GetHostname() string { } // GetRunID returns the RunID field if it's non-nil, zero value otherwise. -func (c *ConfigApplyStatusNodes) GetRunID() string { +func (c *ConfigApplyStatusNode) GetRunID() string { if c == nil || c.RunID == nil { return "" } @@ -4327,7 +4327,7 @@ func (c *ConfigApplyStatusNodes) GetRunID() string { } // GetRunning returns the Running field if it's non-nil, zero value otherwise. -func (c *ConfigApplyStatusNodes) GetRunning() bool { +func (c *ConfigApplyStatusNode) GetRunning() bool { if c == nil || c.Running == nil { return false } @@ -4335,7 +4335,7 @@ func (c *ConfigApplyStatusNodes) GetRunning() bool { } // GetSuccessful returns the Successful field if it's non-nil, zero value otherwise. -func (c *ConfigApplyStatusNodes) GetSuccessful() bool { +func (c *ConfigApplyStatusNode) GetSuccessful() bool { if c == nil || c.Successful == nil { return false } diff --git a/github/github-accessors_test.go b/github/github-accessors_test.go index b459cd1350c..2aca7e602cf 100644 --- a/github/github-accessors_test.go +++ b/github/github-accessors_test.go @@ -5417,149 +5417,149 @@ func TestCommunityHealthMetrics_GetUpdatedAt(tt *testing.T) { c.GetUpdatedAt() } -func TestConfigApplyEventsNodeEvents_GetBody(tt *testing.T) { +func TestConfigApplyEventsNode_GetLastRequestID(tt *testing.T) { tt.Parallel() var zeroValue string - c := &ConfigApplyEventsNodeEvents{Body: &zeroValue} + c := &ConfigApplyEventsNode{LastRequestID: &zeroValue} + c.GetLastRequestID() + c = &ConfigApplyEventsNode{} + c.GetLastRequestID() + c = nil + c.GetLastRequestID() +} + +func TestConfigApplyEventsNode_GetNode(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigApplyEventsNode{Node: &zeroValue} + c.GetNode() + c = &ConfigApplyEventsNode{} + c.GetNode() + c = nil + c.GetNode() +} + +func TestConfigApplyEventsNodeEvent_GetBody(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigApplyEventsNodeEvent{Body: &zeroValue} c.GetBody() - c = &ConfigApplyEventsNodeEvents{} + c = &ConfigApplyEventsNodeEvent{} c.GetBody() c = nil c.GetBody() } -func TestConfigApplyEventsNodeEvents_GetConfigRunID(tt *testing.T) { +func TestConfigApplyEventsNodeEvent_GetConfigRunID(tt *testing.T) { tt.Parallel() var zeroValue string - c := &ConfigApplyEventsNodeEvents{ConfigRunID: &zeroValue} + c := &ConfigApplyEventsNodeEvent{ConfigRunID: &zeroValue} c.GetConfigRunID() - c = &ConfigApplyEventsNodeEvents{} + c = &ConfigApplyEventsNodeEvent{} c.GetConfigRunID() c = nil c.GetConfigRunID() } -func TestConfigApplyEventsNodeEvents_GetEventName(tt *testing.T) { +func TestConfigApplyEventsNodeEvent_GetEventName(tt *testing.T) { tt.Parallel() var zeroValue string - c := &ConfigApplyEventsNodeEvents{EventName: &zeroValue} + c := &ConfigApplyEventsNodeEvent{EventName: &zeroValue} c.GetEventName() - c = &ConfigApplyEventsNodeEvents{} + c = &ConfigApplyEventsNodeEvent{} c.GetEventName() c = nil c.GetEventName() } -func TestConfigApplyEventsNodeEvents_GetHostname(tt *testing.T) { +func TestConfigApplyEventsNodeEvent_GetHostname(tt *testing.T) { tt.Parallel() var zeroValue string - c := &ConfigApplyEventsNodeEvents{Hostname: &zeroValue} + c := &ConfigApplyEventsNodeEvent{Hostname: &zeroValue} c.GetHostname() - c = &ConfigApplyEventsNodeEvents{} + c = &ConfigApplyEventsNodeEvent{} c.GetHostname() c = nil c.GetHostname() } -func TestConfigApplyEventsNodeEvents_GetSeverityText(tt *testing.T) { +func TestConfigApplyEventsNodeEvent_GetSeverityText(tt *testing.T) { tt.Parallel() var zeroValue string - c := &ConfigApplyEventsNodeEvents{SeverityText: &zeroValue} + c := &ConfigApplyEventsNodeEvent{SeverityText: &zeroValue} c.GetSeverityText() - c = &ConfigApplyEventsNodeEvents{} + c = &ConfigApplyEventsNodeEvent{} c.GetSeverityText() c = nil c.GetSeverityText() } -func TestConfigApplyEventsNodeEvents_GetSpanDepth(tt *testing.T) { +func TestConfigApplyEventsNodeEvent_GetSpanDepth(tt *testing.T) { tt.Parallel() var zeroValue int - c := &ConfigApplyEventsNodeEvents{SpanDepth: &zeroValue} + c := &ConfigApplyEventsNodeEvent{SpanDepth: &zeroValue} c.GetSpanDepth() - c = &ConfigApplyEventsNodeEvents{} + c = &ConfigApplyEventsNodeEvent{} c.GetSpanDepth() c = nil c.GetSpanDepth() } -func TestConfigApplyEventsNodeEvents_GetSpanID(tt *testing.T) { +func TestConfigApplyEventsNodeEvent_GetSpanID(tt *testing.T) { tt.Parallel() var zeroValue string - c := &ConfigApplyEventsNodeEvents{SpanID: &zeroValue} + c := &ConfigApplyEventsNodeEvent{SpanID: &zeroValue} c.GetSpanID() - c = &ConfigApplyEventsNodeEvents{} + c = &ConfigApplyEventsNodeEvent{} c.GetSpanID() c = nil c.GetSpanID() } -func TestConfigApplyEventsNodeEvents_GetSpanParentID(tt *testing.T) { +func TestConfigApplyEventsNodeEvent_GetSpanParentID(tt *testing.T) { tt.Parallel() var zeroValue int - c := &ConfigApplyEventsNodeEvents{SpanParentID: &zeroValue} + c := &ConfigApplyEventsNodeEvent{SpanParentID: &zeroValue} c.GetSpanParentID() - c = &ConfigApplyEventsNodeEvents{} + c = &ConfigApplyEventsNodeEvent{} c.GetSpanParentID() c = nil c.GetSpanParentID() } -func TestConfigApplyEventsNodeEvents_GetTimestamp(tt *testing.T) { +func TestConfigApplyEventsNodeEvent_GetTimestamp(tt *testing.T) { tt.Parallel() var zeroValue Timestamp - c := &ConfigApplyEventsNodeEvents{Timestamp: &zeroValue} + c := &ConfigApplyEventsNodeEvent{Timestamp: &zeroValue} c.GetTimestamp() - c = &ConfigApplyEventsNodeEvents{} + c = &ConfigApplyEventsNodeEvent{} c.GetTimestamp() c = nil c.GetTimestamp() } -func TestConfigApplyEventsNodeEvents_GetTopology(tt *testing.T) { +func TestConfigApplyEventsNodeEvent_GetTopology(tt *testing.T) { tt.Parallel() var zeroValue string - c := &ConfigApplyEventsNodeEvents{Topology: &zeroValue} + c := &ConfigApplyEventsNodeEvent{Topology: &zeroValue} c.GetTopology() - c = &ConfigApplyEventsNodeEvents{} + c = &ConfigApplyEventsNodeEvent{} c.GetTopology() c = nil c.GetTopology() } -func TestConfigApplyEventsNodeEvents_GetTraceID(tt *testing.T) { +func TestConfigApplyEventsNodeEvent_GetTraceID(tt *testing.T) { tt.Parallel() var zeroValue string - c := &ConfigApplyEventsNodeEvents{TraceID: &zeroValue} + c := &ConfigApplyEventsNodeEvent{TraceID: &zeroValue} c.GetTraceID() - c = &ConfigApplyEventsNodeEvents{} + c = &ConfigApplyEventsNodeEvent{} c.GetTraceID() c = nil c.GetTraceID() } -func TestConfigApplyEventsNodes_GetLastRequestID(tt *testing.T) { - tt.Parallel() - var zeroValue string - c := &ConfigApplyEventsNodes{LastRequestID: &zeroValue} - c.GetLastRequestID() - c = &ConfigApplyEventsNodes{} - c.GetLastRequestID() - c = nil - c.GetLastRequestID() -} - -func TestConfigApplyEventsNodes_GetNode(tt *testing.T) { - tt.Parallel() - var zeroValue string - c := &ConfigApplyEventsNodes{Node: &zeroValue} - c.GetNode() - c = &ConfigApplyEventsNodes{} - c.GetNode() - c = nil - c.GetNode() -} - func TestConfigApplyEventsOptions_GetLastRequestID(tt *testing.T) { tt.Parallel() var zeroValue string @@ -5604,45 +5604,45 @@ func TestConfigApplyStatus_GetSuccessful(tt *testing.T) { c.GetSuccessful() } -func TestConfigApplyStatusNodes_GetHostname(tt *testing.T) { +func TestConfigApplyStatusNode_GetHostname(tt *testing.T) { tt.Parallel() var zeroValue string - c := &ConfigApplyStatusNodes{Hostname: &zeroValue} + c := &ConfigApplyStatusNode{Hostname: &zeroValue} c.GetHostname() - c = &ConfigApplyStatusNodes{} + c = &ConfigApplyStatusNode{} c.GetHostname() c = nil c.GetHostname() } -func TestConfigApplyStatusNodes_GetRunID(tt *testing.T) { +func TestConfigApplyStatusNode_GetRunID(tt *testing.T) { tt.Parallel() var zeroValue string - c := &ConfigApplyStatusNodes{RunID: &zeroValue} + c := &ConfigApplyStatusNode{RunID: &zeroValue} c.GetRunID() - c = &ConfigApplyStatusNodes{} + c = &ConfigApplyStatusNode{} c.GetRunID() c = nil c.GetRunID() } -func TestConfigApplyStatusNodes_GetRunning(tt *testing.T) { +func TestConfigApplyStatusNode_GetRunning(tt *testing.T) { tt.Parallel() var zeroValue bool - c := &ConfigApplyStatusNodes{Running: &zeroValue} + c := &ConfigApplyStatusNode{Running: &zeroValue} c.GetRunning() - c = &ConfigApplyStatusNodes{} + c = &ConfigApplyStatusNode{} c.GetRunning() c = nil c.GetRunning() } -func TestConfigApplyStatusNodes_GetSuccessful(tt *testing.T) { +func TestConfigApplyStatusNode_GetSuccessful(tt *testing.T) { tt.Parallel() var zeroValue bool - c := &ConfigApplyStatusNodes{Successful: &zeroValue} + c := &ConfigApplyStatusNode{Successful: &zeroValue} c.GetSuccessful() - c = &ConfigApplyStatusNodes{} + c = &ConfigApplyStatusNode{} c.GetSuccessful() c = nil c.GetSuccessful() From b38b74f3cb4acf5019048806e3d2185fd3b517d8 Mon Sep 17 00:00:00 2001 From: Banhidy Krisztian Date: Mon, 20 Jan 2025 16:38:25 +0300 Subject: [PATCH 18/21] Fix ClusterStatusNodeServiceItem and ConnectionServiceItem --- github/enterprise_manage_ghes.go | 10 +++---- github/enterprise_manage_ghes_maintenance.go | 20 ++++++------- ...enterprise_manage_ghes_maintenance_test.go | 2 +- github/enterprise_manage_ghes_test.go | 4 +-- github/github-accessors.go | 10 +++---- github/github-accessors_test.go | 30 +++++++++---------- 6 files changed, 38 insertions(+), 38 deletions(-) diff --git a/github/enterprise_manage_ghes.go b/github/enterprise_manage_ghes.go index 3ecf373fa33..b91459565ef 100644 --- a/github/enterprise_manage_ghes.go +++ b/github/enterprise_manage_ghes.go @@ -27,13 +27,13 @@ type ClusterStatus struct { // ClusterStatusNode represents the status of a cluster node. type ClusterStatusNode struct { - Hostname *string `json:"hostname,omitempty"` - Status *string `json:"status,omitempty"` - Services []*ClusterStatusNodesServices `json:"services"` + Hostname *string `json:"hostname,omitempty"` + Status *string `json:"status,omitempty"` + Services []*ClusterStatusNodeServiceItem `json:"services"` } -// ClusterStatusNodesServices represents the status of a service running on a cluster node. -type ClusterStatusNodesServices struct { +// ClusterStatusNodeServiceItem represents the status of a service running on a cluster node. +type ClusterStatusNodeServiceItem struct { Status *string `json:"status,omitempty"` Name *string `json:"name,omitempty"` Details *string `json:"details,omitempty"` diff --git a/github/enterprise_manage_ghes_maintenance.go b/github/enterprise_manage_ghes_maintenance.go index a43acf196ff..cca82c73207 100644 --- a/github/enterprise_manage_ghes_maintenance.go +++ b/github/enterprise_manage_ghes_maintenance.go @@ -18,18 +18,18 @@ type MaintenanceOperationStatus struct { // MaintenanceStatus represents the status of maintenance mode for all nodes. type MaintenanceStatus struct { - Hostname *string `json:"hostname,omitempty"` - UUID *string `json:"uuid,omitempty"` - Status *string `json:"status,omitempty"` - ScheduledTime *Timestamp `json:"scheduled_time,omitempty"` - ConnectionServices []*ConnectionServices `json:"connection_services"` - CanUnsetMaintenance *bool `json:"can_unset_maintenance,omitempty"` - IPExceptionList []*string `json:"ip_exception_list,omitempty"` - MaintenanceModeMessage *string `json:"maintenance_mode_message,omitempty"` + Hostname *string `json:"hostname,omitempty"` + UUID *string `json:"uuid,omitempty"` + Status *string `json:"status,omitempty"` + ScheduledTime *Timestamp `json:"scheduled_time,omitempty"` + ConnectionServices []*ConnectionServiceItem `json:"connection_services"` + CanUnsetMaintenance *bool `json:"can_unset_maintenance,omitempty"` + IPExceptionList []*string `json:"ip_exception_list,omitempty"` + MaintenanceModeMessage *string `json:"maintenance_mode_message,omitempty"` } -// ConnectionServices represents the connection services for the maintenance status. -type ConnectionServices struct { +// ConnectionServiceItem represents the connection services for the maintenance status. +type ConnectionServiceItem struct { Name *string `json:"name,omitempty"` Number *int `json:"number,omitempty"` } diff --git a/github/enterprise_manage_ghes_maintenance_test.go b/github/enterprise_manage_ghes_maintenance_test.go index 2cd659f6ee1..a5b1ced677b 100644 --- a/github/enterprise_manage_ghes_maintenance_test.go +++ b/github/enterprise_manage_ghes_maintenance_test.go @@ -59,7 +59,7 @@ func TestEnterpriseService_GetMaintenanceStatus(t *testing.T) { UUID: Ptr("1b6cf518-f97c-11ed-8544-061d81f7eedb"), Status: Ptr("scheduled"), ScheduledTime: &Timestamp{time.Date(2018, time.January, 1, 0, 0, 0, 0, time.UTC)}, - ConnectionServices: []*ConnectionServices{{ + ConnectionServices: []*ConnectionServiceItem{{ Name: Ptr("git operations"), Number: Ptr(15), }}, diff --git a/github/enterprise_manage_ghes_test.go b/github/enterprise_manage_ghes_test.go index 3c35b207a15..7f947eb320e 100644 --- a/github/enterprise_manage_ghes_test.go +++ b/github/enterprise_manage_ghes_test.go @@ -91,7 +91,7 @@ func TestEnterpriseService_ClusterStatus(t *testing.T) { Nodes: []*ClusterStatusNode{{ Hostname: Ptr("primary"), Status: Ptr("OK"), - Services: []*ClusterStatusNodesServices{}, + Services: []*ClusterStatusNodeServiceItem{}, }}, } if !cmp.Equal(clusterStatus, want) { @@ -142,7 +142,7 @@ func TestEnterpriseService_ReplicationStatus(t *testing.T) { Nodes: []*ClusterStatusNode{{ Hostname: Ptr("primary"), Status: Ptr("OK"), - Services: []*ClusterStatusNodesServices{}, + Services: []*ClusterStatusNodeServiceItem{}, }}, } if !cmp.Equal(replicationStatus, want) { diff --git a/github/github-accessors.go b/github/github-accessors.go index d78419147cc..7be5e64d615 100644 --- a/github/github-accessors.go +++ b/github/github-accessors.go @@ -2527,7 +2527,7 @@ func (c *ClusterStatusNode) GetStatus() string { } // GetDetails returns the Details field if it's non-nil, zero value otherwise. -func (c *ClusterStatusNodesServices) GetDetails() string { +func (c *ClusterStatusNodeServiceItem) GetDetails() string { if c == nil || c.Details == nil { return "" } @@ -2535,7 +2535,7 @@ func (c *ClusterStatusNodesServices) GetDetails() string { } // GetName returns the Name field if it's non-nil, zero value otherwise. -func (c *ClusterStatusNodesServices) GetName() string { +func (c *ClusterStatusNodeServiceItem) GetName() string { if c == nil || c.Name == nil { return "" } @@ -2543,7 +2543,7 @@ func (c *ClusterStatusNodesServices) GetName() string { } // GetStatus returns the Status field if it's non-nil, zero value otherwise. -func (c *ClusterStatusNodesServices) GetStatus() string { +func (c *ClusterStatusNodeServiceItem) GetStatus() string { if c == nil || c.Status == nil { return "" } @@ -4583,7 +4583,7 @@ func (c *ConfigSettings) GetTimezone() string { } // GetName returns the Name field if it's non-nil, zero value otherwise. -func (c *ConnectionServices) GetName() string { +func (c *ConnectionServiceItem) GetName() string { if c == nil || c.Name == nil { return "" } @@ -4591,7 +4591,7 @@ func (c *ConnectionServices) GetName() string { } // GetNumber returns the Number field if it's non-nil, zero value otherwise. -func (c *ConnectionServices) GetNumber() int { +func (c *ConnectionServiceItem) GetNumber() int { if c == nil || c.Number == nil { return 0 } diff --git a/github/github-accessors_test.go b/github/github-accessors_test.go index 2aca7e602cf..4e5eeac8463 100644 --- a/github/github-accessors_test.go +++ b/github/github-accessors_test.go @@ -3283,34 +3283,34 @@ func TestClusterStatusNode_GetStatus(tt *testing.T) { c.GetStatus() } -func TestClusterStatusNodesServices_GetDetails(tt *testing.T) { +func TestClusterStatusNodeServiceItem_GetDetails(tt *testing.T) { tt.Parallel() var zeroValue string - c := &ClusterStatusNodesServices{Details: &zeroValue} + c := &ClusterStatusNodeServiceItem{Details: &zeroValue} c.GetDetails() - c = &ClusterStatusNodesServices{} + c = &ClusterStatusNodeServiceItem{} c.GetDetails() c = nil c.GetDetails() } -func TestClusterStatusNodesServices_GetName(tt *testing.T) { +func TestClusterStatusNodeServiceItem_GetName(tt *testing.T) { tt.Parallel() var zeroValue string - c := &ClusterStatusNodesServices{Name: &zeroValue} + c := &ClusterStatusNodeServiceItem{Name: &zeroValue} c.GetName() - c = &ClusterStatusNodesServices{} + c = &ClusterStatusNodeServiceItem{} c.GetName() c = nil c.GetName() } -func TestClusterStatusNodesServices_GetStatus(tt *testing.T) { +func TestClusterStatusNodeServiceItem_GetStatus(tt *testing.T) { tt.Parallel() var zeroValue string - c := &ClusterStatusNodesServices{Status: &zeroValue} + c := &ClusterStatusNodeServiceItem{Status: &zeroValue} c.GetStatus() - c = &ClusterStatusNodesServices{} + c = &ClusterStatusNodeServiceItem{} c.GetStatus() c = nil c.GetStatus() @@ -5933,23 +5933,23 @@ func TestConfigSettings_GetTimezone(tt *testing.T) { c.GetTimezone() } -func TestConnectionServices_GetName(tt *testing.T) { +func TestConnectionServiceItem_GetName(tt *testing.T) { tt.Parallel() var zeroValue string - c := &ConnectionServices{Name: &zeroValue} + c := &ConnectionServiceItem{Name: &zeroValue} c.GetName() - c = &ConnectionServices{} + c = &ConnectionServiceItem{} c.GetName() c = nil c.GetName() } -func TestConnectionServices_GetNumber(tt *testing.T) { +func TestConnectionServiceItem_GetNumber(tt *testing.T) { tt.Parallel() var zeroValue int - c := &ConnectionServices{Number: &zeroValue} + c := &ConnectionServiceItem{Number: &zeroValue} c.GetNumber() - c = &ConnectionServices{} + c = &ConnectionServiceItem{} c.GetNumber() c = nil c.GetNumber() From 957be90fdfdbf390b83e364a296402a6e72c210b Mon Sep 17 00:00:00 2001 From: Banhidy Krisztian Date: Mon, 20 Jan 2025 21:55:56 +0300 Subject: [PATCH 19/21] Fix for review findings in config --- github/enterprise_manage_ghes.go | 2 +- github/enterprise_manage_ghes_config.go | 190 +- github/enterprise_manage_ghes_config_test.go | 60 +- github/github-accessors.go | 1518 +++++++------- github/github-accessors_test.go | 1950 +++++++++--------- 5 files changed, 1860 insertions(+), 1860 deletions(-) diff --git a/github/enterprise_manage_ghes.go b/github/enterprise_manage_ghes.go index b91459565ef..c18cc424276 100644 --- a/github/enterprise_manage_ghes.go +++ b/github/enterprise_manage_ghes.go @@ -15,7 +15,7 @@ type NodeQueryOptions struct { // UUID filters issues based on the node UUID. UUID *string `url:"uuid,omitempty"` - // ClusterRoles filters The cluster roles from the cluster configuration file. + // ClusterRoles filters the cluster roles from the cluster configuration file. ClusterRoles *string `url:"cluster_roles,omitempty"` } diff --git a/github/enterprise_manage_ghes_config.go b/github/enterprise_manage_ghes_config.go index 9f9cc762965..7108e93bc9f 100644 --- a/github/enterprise_manage_ghes_config.go +++ b/github/enterprise_manage_ghes_config.go @@ -59,8 +59,8 @@ type ConfigApplyEventsNodeEvent struct { ConfigRunID *string `json:"config_run_id,omitempty"` TraceID *string `json:"trace_id,omitempty"` SpanID *string `json:"span_id,omitempty"` - SpanParentID *int `json:"span_parent_id,omitempty"` - SpanDepth *int `json:"span_depth,omitempty"` + SpanParentID *int64 `json:"span_parent_id,omitempty"` + SpanDepth *int64 `json:"span_depth,omitempty"` } // InitialConfigOptions is a struct to hold the options for the InitialConfig API. @@ -72,7 +72,7 @@ type InitialConfigOptions struct { // LicenseStatus is a struct to hold the response from the License API. type LicenseStatus struct { AdvancedSecurityEnabled *bool `json:"advancedSecurityEnabled,omitempty"` - AdvancedSecuritySeats *int `json:"advancedSecuritySeats,omitempty"` + AdvancedSecuritySeats *int64 `json:"advancedSecuritySeats,omitempty"` ClusterSupport *bool `json:"clusterSupport,omitempty"` Company *string `json:"company,omitempty"` CroquetSupport *bool `json:"croquetSupport,omitempty"` @@ -82,10 +82,10 @@ type LicenseStatus struct { InsightsEnabled *bool `json:"insightsEnabled,omitempty"` InsightsExpireAt *Timestamp `json:"insightsExpireAt,omitempty"` LearningLabEvaluationExpires *Timestamp `json:"learningLabEvaluationExpires,omitempty"` - LearningLabSeats *int `json:"learningLabSeats,omitempty"` + LearningLabSeats *int64 `json:"learningLabSeats,omitempty"` Perpetual *bool `json:"perpetual,omitempty"` ReferenceNumber *string `json:"referenceNumber,omitempty"` - Seats *int `json:"seats,omitempty"` + Seats *int64 `json:"seats,omitempty"` SSHAllowed *bool `json:"sshAllowed,omitempty"` SupportKey *string `json:"supportKey,omitempty"` UnlimitedSeating *bool `json:"unlimitedSeating,omitempty"` @@ -104,46 +104,46 @@ type LicenseCheck struct { // ConfigSettings is a struct to hold the response from the Settings API. // There are many fields that link to other structs. type ConfigSettings struct { - PrivateMode *bool `json:"private_mode,omitempty"` - PublicPages *bool `json:"public_pages,omitempty"` - SubdomainIsolation *bool `json:"subdomain_isolation,omitempty"` - SignupEnabled *bool `json:"signup_enabled,omitempty"` - GitHubHostname *string `json:"github_hostname,omitempty"` - IdenticonsHost *string `json:"identicons_host,omitempty"` - HTTPProxy *string `json:"http_proxy,omitempty"` - AuthMode *string `json:"auth_mode,omitempty"` - ExpireSessions *bool `json:"expire_sessions,omitempty"` - AdminPassword *string `json:"admin_password,omitempty"` - ConfigurationID *int `json:"configuration_id,omitempty"` - ConfigurationRunCount *int `json:"configuration_run_count,omitempty"` - Avatar *Avatar `json:"avatar,omitempty"` - Customer *Customer `json:"customer,omitempty"` - License *LicenseSettings `json:"license,omitempty"` - GitHubSSL *GitHubSSL `json:"github_ssl,omitempty"` - LDAP *LDAP `json:"ldap,omitempty"` - CAS *CAS `json:"cas,omitempty"` - SAML *SAML `json:"saml,omitempty"` - GitHubOAuth *GitHubOAuth `json:"github_oauth,omitempty"` - SMTP *SMTP `json:"smtp,omitempty"` - NTP *NTP `json:"ntp,omitempty"` - Timezone *string `json:"timezone,omitempty"` - SNMP *SNMP `json:"snmp,omitempty"` - Syslog *Syslog `json:"syslog,omitempty"` - Assets *string `json:"assets,omitempty"` - Pages *PagesSettings `json:"pages,omitempty"` - Collectd *Collectd `json:"collectd,omitempty"` - Mapping *Mapping `json:"mapping,omitempty"` - LoadBalancer *string `json:"load_balancer,omitempty"` -} - -// Avatar is a struct to hold the response from the Settings API. -type Avatar struct { + PrivateMode *bool `json:"private_mode,omitempty"` + PublicPages *bool `json:"public_pages,omitempty"` + SubdomainIsolation *bool `json:"subdomain_isolation,omitempty"` + SignupEnabled *bool `json:"signup_enabled,omitempty"` + GithubHostname *string `json:"github_hostname,omitempty"` + IdenticonsHost *string `json:"identicons_host,omitempty"` + HTTPProxy *string `json:"http_proxy,omitempty"` + AuthMode *string `json:"auth_mode,omitempty"` + ExpireSessions *bool `json:"expire_sessions,omitempty"` + AdminPassword *string `json:"admin_password,omitempty"` + ConfigurationID *int64 `json:"configuration_id,omitempty"` + ConfigurationRunCount *int64 `json:"configuration_run_count,omitempty"` + Avatar *ConfigSettingsAvatar `json:"avatar,omitempty"` + Customer *ConfigSettingsCustomer `json:"customer,omitempty"` + License *ConfigSettingsLicenseSettings `json:"license,omitempty"` + GithubSSL *ConfigSettingsGithubSSL `json:"github_ssl,omitempty"` + LDAP *ConfigSettingsLDAP `json:"ldap,omitempty"` + CAS *ConfigSettingsCAS `json:"cas,omitempty"` + SAML *ConfigSettingsSAML `json:"saml,omitempty"` + GithubOAuth *ConfigSettingsGithubOAuth `json:"github_oauth,omitempty"` + SMTP *ConfigSettingsSMTP `json:"smtp,omitempty"` + NTP *ConfigSettingsNTP `json:"ntp,omitempty"` + Timezone *string `json:"timezone,omitempty"` + SNMP *ConfigSettingsSNMP `json:"snmp,omitempty"` + Syslog *ConfigSettingsSyslog `json:"syslog,omitempty"` + Assets *string `json:"assets,omitempty"` + Pages *ConfigSettingsPagesSettings `json:"pages,omitempty"` + Collectd *ConfigSettingsCollectd `json:"collectd,omitempty"` + Mapping *ConfigSettingsMapping `json:"mapping,omitempty"` + LoadBalancer *string `json:"load_balancer,omitempty"` +} + +// ConfigSettingsAvatar is a struct to hold the response from the Settings API. +type ConfigSettingsAvatar struct { Enabled *bool `json:"enabled,omitempty"` URI *string `json:"uri,omitempty"` } -// Customer is a struct to hold the response from the Settings API. -type Customer struct { +// ConfigSettingsCustomer is a struct to hold the response from the Settings API. +type ConfigSettingsCustomer struct { Name *string `json:"name,omitempty"` Email *string `json:"email,omitempty"` UUID *string `json:"uuid,omitempty"` @@ -151,9 +151,9 @@ type Customer struct { PublicKeyData *string `json:"public_key_data,omitempty"` } -// LicenseSettings is a struct to hold the response from the Settings API. -type LicenseSettings struct { - Seats *int `json:"seats,omitempty"` +// ConfigSettingsLicenseSettings is a struct to hold the response from the Settings API. +type ConfigSettingsLicenseSettings struct { + Seats *int64 `json:"seats,omitempty"` Evaluation *bool `json:"evaluation,omitempty"` Perpetual *bool `json:"perpetual,omitempty"` UnlimitedSeating *bool `json:"unlimited_seating,omitempty"` @@ -163,58 +163,58 @@ type LicenseSettings struct { ExpireAt *Timestamp `json:"expire_at,omitempty"` } -// GitHubSSL is a struct to hold the response from the Settings API. -type GitHubSSL struct { +// ConfigSettingsGithubSSL is a struct to hold the response from the Settings API. +type ConfigSettingsGithubSSL struct { Enabled *bool `json:"enabled,omitempty"` Cert *string `json:"cert,omitempty"` Key *string `json:"key,omitempty"` } -// LDAP is a struct to hold the response from the Settings API. -type LDAP struct { - Host *string `json:"host,omitempty"` - Port *int `json:"port,omitempty"` - Base []*string `json:"base,omitempty"` - UID *string `json:"uid,omitempty"` - BindDN *string `json:"bind_dn,omitempty"` - Password *string `json:"password,omitempty"` - Method *string `json:"method,omitempty"` - SearchStrategy *string `json:"search_strategy,omitempty"` - UserGroups []*string `json:"user_groups,omitempty"` - AdminGroup *string `json:"admin_group,omitempty"` - VirtualAttributeEnabled *bool `json:"virtual_attribute_enabled,omitempty"` - RecursiveGroupSearch *bool `json:"recursive_group_search,omitempty"` - PosixSupport *bool `json:"posix_support,omitempty"` - UserSyncEmails *bool `json:"user_sync_emails,omitempty"` - UserSyncKeys *bool `json:"user_sync_keys,omitempty"` - UserSyncInterval *int `json:"user_sync_interval,omitempty"` - TeamSyncInterval *int `json:"team_sync_interval,omitempty"` - SyncEnabled *bool `json:"sync_enabled,omitempty"` - Reconciliation *Reconciliation `json:"reconciliation,omitempty"` - Profile *Profile `json:"profile,omitempty"` -} - -// Reconciliation is part of the LDAP struct. -type Reconciliation struct { +// ConfigSettingsLDAP is a struct to hold the response from the Settings API. +type ConfigSettingsLDAP struct { + Host *string `json:"host,omitempty"` + Port *int64 `json:"port,omitempty"` + Base []*string `json:"base,omitempty"` + UID *string `json:"uid,omitempty"` + BindDN *string `json:"bind_dn,omitempty"` + Password *string `json:"password,omitempty"` + Method *string `json:"method,omitempty"` + SearchStrategy *string `json:"search_strategy,omitempty"` + UserGroups []*string `json:"user_groups,omitempty"` + AdminGroup *string `json:"admin_group,omitempty"` + VirtualAttributeEnabled *bool `json:"virtual_attribute_enabled,omitempty"` + RecursiveGroupSearch *bool `json:"recursive_group_search,omitempty"` + PosixSupport *bool `json:"posix_support,omitempty"` + UserSyncEmails *bool `json:"user_sync_emails,omitempty"` + UserSyncKeys *bool `json:"user_sync_keys,omitempty"` + UserSyncInterval *int64 `json:"user_sync_interval,omitempty"` + TeamSyncInterval *int64 `json:"team_sync_interval,omitempty"` + SyncEnabled *bool `json:"sync_enabled,omitempty"` + Reconciliation *ConfigSettingsLDAPReconciliation `json:"reconciliation,omitempty"` + Profile *ConfigSettingsLDAPProfile `json:"profile,omitempty"` +} + +// ConfigSettingsLDAPReconciliation is part of the LDAP struct. +type ConfigSettingsLDAPReconciliation struct { User *string `json:"user,omitempty"` Org *string `json:"org,omitempty"` } -// Profile is part of the LDAP struct. -type Profile struct { +// ConfigSettingsLDAPProfile is part of the LDAP struct. +type ConfigSettingsLDAPProfile struct { UID *string `json:"uid,omitempty"` Name *string `json:"name,omitempty"` Mail *string `json:"mail,omitempty"` Key *string `json:"key,omitempty"` } -// CAS is a struct to hold the response from the Settings API. -type CAS struct { +// ConfigSettingsCAS is a struct to hold the response from the Settings API. +type ConfigSettingsCAS struct { URL *string `json:"url,omitempty"` } -// SAML is a struct to hold the response from the Settings API. -type SAML struct { +// ConfigSettingsSAML is a struct to hold the response from the Settings API. +type ConfigSettingsSAML struct { SSOURL *string `json:"sso_url,omitempty"` Certificate *string `json:"certificate,omitempty"` CertificatePath *string `json:"certificate_path,omitempty"` @@ -223,16 +223,16 @@ type SAML struct { DisableAdminDemote *bool `json:"disable_admin_demote,omitempty"` } -// GitHubOAuth is a struct to hold the response from the Settings API. -type GitHubOAuth struct { +// ConfigSettingsGithubOAuth is a struct to hold the response from the Settings API. +type ConfigSettingsGithubOAuth struct { ClientID *string `json:"client_id,omitempty"` ClientSecret *string `json:"client_secret,omitempty"` OrganizationName *string `json:"organization_name,omitempty"` OrganizationTeam *string `json:"organization_team,omitempty"` } -// SMTP is a struct to hold the response from the Settings API. -type SMTP struct { +// ConfigSettingsSMTP is a struct to hold the response from the Settings API. +type ConfigSettingsSMTP struct { Enabled *bool `json:"enabled,omitempty"` Address *string `json:"address,omitempty"` Authentication *string `json:"authentication,omitempty"` @@ -248,42 +248,42 @@ type SMTP struct { NoreplyAddress *string `json:"noreply_address,omitempty"` } -// NTP is a struct to hold the response from the Settings API. -type NTP struct { +// ConfigSettingsNTP is a struct to hold the response from the Settings API. +type ConfigSettingsNTP struct { PrimaryServer *string `json:"primary_server,omitempty"` SecondaryServer *string `json:"secondary_server,omitempty"` } -// SNMP is a struct to hold the response from the Settings API. -type SNMP struct { +// ConfigSettingsSNMP is a struct to hold the response from the Settings API. +type ConfigSettingsSNMP struct { Enabled *bool `json:"enabled,omitempty"` Community *string `json:"community,omitempty"` } -// Syslog is a struct to hold the response from the Settings API. -type Syslog struct { +// ConfigSettingsSyslog is a struct to hold the response from the Settings API. +type ConfigSettingsSyslog struct { Enabled *bool `json:"enabled,omitempty"` Server *string `json:"server,omitempty"` ProtocolName *string `json:"protocol_name,omitempty"` } -// PagesSettings is a struct to hold the response from the Settings API. -type PagesSettings struct { +// ConfigSettingsPagesSettings is a struct to hold the response from the Settings API. +type ConfigSettingsPagesSettings struct { Enabled *bool `json:"enabled,omitempty"` } -// Collectd is a struct to hold the response from the Settings API. -type Collectd struct { +// ConfigSettingsCollectd is a struct to hold the response from the Settings API. +type ConfigSettingsCollectd struct { Enabled *bool `json:"enabled,omitempty"` Server *string `json:"server,omitempty"` - Port *int `json:"port,omitempty"` + Port *int64 `json:"port,omitempty"` Encryption *string `json:"encryption,omitempty"` Username *string `json:"username,omitempty"` Password *string `json:"password,omitempty"` } -// Mapping is a struct to hold the response from the Settings API. -type Mapping struct { +// ConfigSettingsMapping is a struct to hold the response from the Settings API. +type ConfigSettingsMapping struct { Enabled *bool `json:"enabled,omitempty"` Tileserver *string `json:"tileserver,omitempty"` Basemap *string `json:"basemap,omitempty"` diff --git a/github/enterprise_manage_ghes_config_test.go b/github/enterprise_manage_ghes_config_test.go index 964f318ec21..291df1a5831 100644 --- a/github/enterprise_manage_ghes_config_test.go +++ b/github/enterprise_manage_ghes_config_test.go @@ -170,27 +170,27 @@ func TestEnterpriseService_Settings(t *testing.T) { PublicPages: Ptr(false), SubdomainIsolation: Ptr(true), SignupEnabled: Ptr(false), - GitHubHostname: Ptr("ghe.local"), + GithubHostname: Ptr("ghe.local"), IdenticonsHost: Ptr("dotcom"), HTTPProxy: nil, AuthMode: Ptr("default"), ExpireSessions: Ptr(false), AdminPassword: nil, - ConfigurationID: Ptr(1401777404), - ConfigurationRunCount: Ptr(4), - Avatar: &Avatar{ + ConfigurationID: Ptr(int64(1401777404)), + ConfigurationRunCount: Ptr(int64(4)), + Avatar: &ConfigSettingsAvatar{ Enabled: Ptr(false), URI: Ptr(""), }, - Customer: &Customer{ + Customer: &ConfigSettingsCustomer{ Name: Ptr("GitHub"), Email: Ptr("stannis"), UUID: Ptr("af6cac80-e4e1-012e-d822-1231380e52e9"), SecretKeyData: nil, PublicKeyData: Ptr("-"), }, - License: &LicenseSettings{ - Seats: Ptr(0), + License: &ConfigSettingsLicenseSettings{ + Seats: Ptr(int64(0)), Evaluation: Ptr(false), Perpetual: Ptr(false), UnlimitedSeating: Ptr(true), @@ -199,14 +199,14 @@ func TestEnterpriseService_Settings(t *testing.T) { ClusterSupport: Ptr(false), ExpireAt: &Timestamp{time.Date(2018, time.January, 1, 0, 0, 0, 0, time.UTC)}, }, - GitHubSSL: &GitHubSSL{ + GithubSSL: &ConfigSettingsGithubSSL{ Enabled: Ptr(false), Cert: nil, Key: nil, }, - LDAP: &LDAP{ + LDAP: &ConfigSettingsLDAP{ Host: nil, - Port: Ptr(0), + Port: Ptr(int64(0)), Base: []*string{}, UID: nil, BindDN: nil, @@ -220,24 +220,24 @@ func TestEnterpriseService_Settings(t *testing.T) { PosixSupport: Ptr(true), UserSyncEmails: Ptr(false), UserSyncKeys: Ptr(false), - UserSyncInterval: Ptr(4), - TeamSyncInterval: Ptr(4), + UserSyncInterval: Ptr(int64(4)), + TeamSyncInterval: Ptr(int64(4)), SyncEnabled: Ptr(false), - Reconciliation: &Reconciliation{ + Reconciliation: &ConfigSettingsLDAPReconciliation{ User: nil, Org: nil, }, - Profile: &Profile{ + Profile: &ConfigSettingsLDAPProfile{ UID: Ptr("uid"), Name: nil, Mail: nil, Key: nil, }, }, - CAS: &CAS{ + CAS: &ConfigSettingsCAS{ URL: nil, }, - SAML: &SAML{ + SAML: &ConfigSettingsSAML{ SSOURL: nil, Certificate: nil, CertificatePath: nil, @@ -245,13 +245,13 @@ func TestEnterpriseService_Settings(t *testing.T) { IDPInitiatedSSO: Ptr(false), DisableAdminDemote: Ptr(false), }, - GitHubOAuth: &GitHubOAuth{ + GithubOAuth: &ConfigSettingsGithubOAuth{ ClientID: Ptr("12313412"), ClientSecret: Ptr("kj123131132"), OrganizationName: Ptr("Homestar Runners"), OrganizationTeam: Ptr("homestarrunners/characters"), }, - SMTP: &SMTP{ + SMTP: &ConfigSettingsSMTP{ Enabled: Ptr(true), Address: Ptr("smtp.example.com"), Authentication: Ptr("plain"), @@ -266,33 +266,33 @@ func TestEnterpriseService_Settings(t *testing.T) { NoreplyAddress: Ptr("noreply@github.com"), EnableStarttlsAuto: Ptr(true), }, - NTP: &NTP{ + NTP: &ConfigSettingsNTP{ PrimaryServer: Ptr("0.pool.ntp.org"), SecondaryServer: Ptr("1.pool.ntp.org"), }, Timezone: nil, - SNMP: &SNMP{ + SNMP: &ConfigSettingsSNMP{ Enabled: Ptr(false), Community: Ptr(""), }, - Syslog: &Syslog{ + Syslog: &ConfigSettingsSyslog{ Enabled: Ptr(false), Server: nil, ProtocolName: Ptr("udp"), }, Assets: nil, - Pages: &PagesSettings{ + Pages: &ConfigSettingsPagesSettings{ Enabled: Ptr(true), }, - Collectd: &Collectd{ + Collectd: &ConfigSettingsCollectd{ Enabled: Ptr(false), Server: nil, - Port: Ptr(0), + Port: Ptr(int64(0)), Encryption: nil, Username: nil, Password: nil, }, - Mapping: &Mapping{ + Mapping: &ConfigSettingsMapping{ Enabled: Ptr(true), Tileserver: nil, Basemap: Ptr("company.map-qsz2zrvs"), @@ -439,7 +439,7 @@ func TestEnterpriseService_License(t *testing.T) { want := []*LicenseStatus{{ AdvancedSecurityEnabled: Ptr(true), - AdvancedSecuritySeats: Ptr(0), + AdvancedSecuritySeats: Ptr(int64(0)), ClusterSupport: Ptr(false), Company: Ptr("GitHub"), CroquetSupport: Ptr(true), @@ -449,10 +449,10 @@ func TestEnterpriseService_License(t *testing.T) { InsightsEnabled: Ptr(true), InsightsExpireAt: &Timestamp{time.Date(2018, time.January, 1, 0, 0, 0, 0, time.UTC)}, LearningLabEvaluationExpires: &Timestamp{time.Date(2018, time.January, 1, 0, 0, 0, 0, time.UTC)}, - LearningLabSeats: Ptr(100), + LearningLabSeats: Ptr(int64(100)), Perpetual: Ptr(false), ReferenceNumber: Ptr("32a145"), - Seats: Ptr(0), + Seats: Ptr(int64(0)), SSHAllowed: Ptr(true), SupportKey: Ptr(""), UnlimitedSeating: Ptr(true), @@ -521,8 +521,8 @@ func TestEnterpriseService_ConfigApplyEvents(t *testing.T) { ConfigRunID: Ptr("d34db33f"), TraceID: Ptr("387cd628c06d606700e79be368e5e574"), SpanID: Ptr("0cde553750689c76"), - SpanParentID: Ptr(0), - SpanDepth: Ptr(0), + SpanParentID: Ptr(int64(0)), + SpanDepth: Ptr(int64(0)), }}, }}, } diff --git a/github/github-accessors.go b/github/github-accessors.go index 7be5e64d615..3707dfee7ca 100644 --- a/github/github-accessors.go +++ b/github/github-accessors.go @@ -1510,22 +1510,6 @@ func (a *AutoTriggerCheck) GetSetting() bool { return *a.Setting } -// GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. -func (a *Avatar) GetEnabled() bool { - if a == nil || a.Enabled == nil { - return false - } - return *a.Enabled -} - -// GetURI returns the URI field if it's non-nil, zero value otherwise. -func (a *Avatar) GetURI() string { - if a == nil || a.URI == nil { - return "" - } - return *a.URI -} - // GetContent returns the Content field if it's non-nil, zero value otherwise. func (b *Blob) GetContent() string { if b == nil || b.Content == nil { @@ -1966,14 +1950,6 @@ func (b *BypassActor) GetBypassMode() string { return *b.BypassMode } -// GetURL returns the URL field if it's non-nil, zero value otherwise. -func (c *CAS) GetURL() string { - if c == nil || c.URL == nil { - return "" - } - return *c.URL -} - // GetApp returns the App field. func (c *CheckRun) GetApp() *App { if c == nil { @@ -3382,54 +3358,6 @@ func (c *CollaboratorInvitation) GetURL() string { return *c.URL } -// GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. -func (c *Collectd) GetEnabled() bool { - if c == nil || c.Enabled == nil { - return false - } - return *c.Enabled -} - -// GetEncryption returns the Encryption field if it's non-nil, zero value otherwise. -func (c *Collectd) GetEncryption() string { - if c == nil || c.Encryption == nil { - return "" - } - return *c.Encryption -} - -// GetPassword returns the Password field if it's non-nil, zero value otherwise. -func (c *Collectd) GetPassword() string { - if c == nil || c.Password == nil { - return "" - } - return *c.Password -} - -// GetPort returns the Port field if it's non-nil, zero value otherwise. -func (c *Collectd) GetPort() int { - if c == nil || c.Port == nil { - return 0 - } - return *c.Port -} - -// GetServer returns the Server field if it's non-nil, zero value otherwise. -func (c *Collectd) GetServer() string { - if c == nil || c.Server == nil { - return "" - } - return *c.Server -} - -// GetUsername returns the Username field if it's non-nil, zero value otherwise. -func (c *Collectd) GetUsername() string { - if c == nil || c.Username == nil { - return "" - } - return *c.Username -} - // GetCommitURL returns the CommitURL field if it's non-nil, zero value otherwise. func (c *CombinedStatus) GetCommitURL() string { if c == nil || c.CommitURL == nil { @@ -4231,7 +4159,7 @@ func (c *ConfigApplyEventsNodeEvent) GetSeverityText() string { } // GetSpanDepth returns the SpanDepth field if it's non-nil, zero value otherwise. -func (c *ConfigApplyEventsNodeEvent) GetSpanDepth() int { +func (c *ConfigApplyEventsNodeEvent) GetSpanDepth() int64 { if c == nil || c.SpanDepth == nil { return 0 } @@ -4247,7 +4175,7 @@ func (c *ConfigApplyEventsNodeEvent) GetSpanID() string { } // GetSpanParentID returns the SpanParentID field if it's non-nil, zero value otherwise. -func (c *ConfigApplyEventsNodeEvent) GetSpanParentID() int { +func (c *ConfigApplyEventsNodeEvent) GetSpanParentID() int64 { if c == nil || c.SpanParentID == nil { return 0 } @@ -4367,7 +4295,7 @@ func (c *ConfigSettings) GetAuthMode() string { } // GetAvatar returns the Avatar field. -func (c *ConfigSettings) GetAvatar() *Avatar { +func (c *ConfigSettings) GetAvatar() *ConfigSettingsAvatar { if c == nil { return nil } @@ -4375,7 +4303,7 @@ func (c *ConfigSettings) GetAvatar() *Avatar { } // GetCAS returns the CAS field. -func (c *ConfigSettings) GetCAS() *CAS { +func (c *ConfigSettings) GetCAS() *ConfigSettingsCAS { if c == nil { return nil } @@ -4383,7 +4311,7 @@ func (c *ConfigSettings) GetCAS() *CAS { } // GetCollectd returns the Collectd field. -func (c *ConfigSettings) GetCollectd() *Collectd { +func (c *ConfigSettings) GetCollectd() *ConfigSettingsCollectd { if c == nil { return nil } @@ -4391,7 +4319,7 @@ func (c *ConfigSettings) GetCollectd() *Collectd { } // GetConfigurationID returns the ConfigurationID field if it's non-nil, zero value otherwise. -func (c *ConfigSettings) GetConfigurationID() int { +func (c *ConfigSettings) GetConfigurationID() int64 { if c == nil || c.ConfigurationID == nil { return 0 } @@ -4399,7 +4327,7 @@ func (c *ConfigSettings) GetConfigurationID() int { } // GetConfigurationRunCount returns the ConfigurationRunCount field if it's non-nil, zero value otherwise. -func (c *ConfigSettings) GetConfigurationRunCount() int { +func (c *ConfigSettings) GetConfigurationRunCount() int64 { if c == nil || c.ConfigurationRunCount == nil { return 0 } @@ -4407,7 +4335,7 @@ func (c *ConfigSettings) GetConfigurationRunCount() int { } // GetCustomer returns the Customer field. -func (c *ConfigSettings) GetCustomer() *Customer { +func (c *ConfigSettings) GetCustomer() *ConfigSettingsCustomer { if c == nil { return nil } @@ -4422,28 +4350,28 @@ func (c *ConfigSettings) GetExpireSessions() bool { return *c.ExpireSessions } -// GetGitHubHostname returns the GitHubHostname field if it's non-nil, zero value otherwise. -func (c *ConfigSettings) GetGitHubHostname() string { - if c == nil || c.GitHubHostname == nil { +// GetGithubHostname returns the GithubHostname field if it's non-nil, zero value otherwise. +func (c *ConfigSettings) GetGithubHostname() string { + if c == nil || c.GithubHostname == nil { return "" } - return *c.GitHubHostname + return *c.GithubHostname } -// GetGitHubOAuth returns the GitHubOAuth field. -func (c *ConfigSettings) GetGitHubOAuth() *GitHubOAuth { +// GetGithubOAuth returns the GithubOAuth field. +func (c *ConfigSettings) GetGithubOAuth() *ConfigSettingsGithubOAuth { if c == nil { return nil } - return c.GitHubOAuth + return c.GithubOAuth } -// GetGitHubSSL returns the GitHubSSL field. -func (c *ConfigSettings) GetGitHubSSL() *GitHubSSL { +// GetGithubSSL returns the GithubSSL field. +func (c *ConfigSettings) GetGithubSSL() *ConfigSettingsGithubSSL { if c == nil { return nil } - return c.GitHubSSL + return c.GithubSSL } // GetHTTPProxy returns the HTTPProxy field if it's non-nil, zero value otherwise. @@ -4463,7 +4391,7 @@ func (c *ConfigSettings) GetIdenticonsHost() string { } // GetLDAP returns the LDAP field. -func (c *ConfigSettings) GetLDAP() *LDAP { +func (c *ConfigSettings) GetLDAP() *ConfigSettingsLDAP { if c == nil { return nil } @@ -4471,7 +4399,7 @@ func (c *ConfigSettings) GetLDAP() *LDAP { } // GetLicense returns the License field. -func (c *ConfigSettings) GetLicense() *LicenseSettings { +func (c *ConfigSettings) GetLicense() *ConfigSettingsLicenseSettings { if c == nil { return nil } @@ -4483,103 +4411,775 @@ func (c *ConfigSettings) GetLoadBalancer() string { if c == nil || c.LoadBalancer == nil { return "" } - return *c.LoadBalancer + return *c.LoadBalancer +} + +// GetMapping returns the Mapping field. +func (c *ConfigSettings) GetMapping() *ConfigSettingsMapping { + if c == nil { + return nil + } + return c.Mapping +} + +// GetNTP returns the NTP field. +func (c *ConfigSettings) GetNTP() *ConfigSettingsNTP { + if c == nil { + return nil + } + return c.NTP +} + +// GetPages returns the Pages field. +func (c *ConfigSettings) GetPages() *ConfigSettingsPagesSettings { + if c == nil { + return nil + } + return c.Pages +} + +// GetPrivateMode returns the PrivateMode field if it's non-nil, zero value otherwise. +func (c *ConfigSettings) GetPrivateMode() bool { + if c == nil || c.PrivateMode == nil { + return false + } + return *c.PrivateMode +} + +// GetPublicPages returns the PublicPages field if it's non-nil, zero value otherwise. +func (c *ConfigSettings) GetPublicPages() bool { + if c == nil || c.PublicPages == nil { + return false + } + return *c.PublicPages +} + +// GetSAML returns the SAML field. +func (c *ConfigSettings) GetSAML() *ConfigSettingsSAML { + if c == nil { + return nil + } + return c.SAML +} + +// GetSignupEnabled returns the SignupEnabled field if it's non-nil, zero value otherwise. +func (c *ConfigSettings) GetSignupEnabled() bool { + if c == nil || c.SignupEnabled == nil { + return false + } + return *c.SignupEnabled +} + +// GetSMTP returns the SMTP field. +func (c *ConfigSettings) GetSMTP() *ConfigSettingsSMTP { + if c == nil { + return nil + } + return c.SMTP +} + +// GetSNMP returns the SNMP field. +func (c *ConfigSettings) GetSNMP() *ConfigSettingsSNMP { + if c == nil { + return nil + } + return c.SNMP +} + +// GetSubdomainIsolation returns the SubdomainIsolation field if it's non-nil, zero value otherwise. +func (c *ConfigSettings) GetSubdomainIsolation() bool { + if c == nil || c.SubdomainIsolation == nil { + return false + } + return *c.SubdomainIsolation +} + +// GetSyslog returns the Syslog field. +func (c *ConfigSettings) GetSyslog() *ConfigSettingsSyslog { + if c == nil { + return nil + } + return c.Syslog +} + +// GetTimezone returns the Timezone field if it's non-nil, zero value otherwise. +func (c *ConfigSettings) GetTimezone() string { + if c == nil || c.Timezone == nil { + return "" + } + return *c.Timezone +} + +// GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsAvatar) GetEnabled() bool { + if c == nil || c.Enabled == nil { + return false + } + return *c.Enabled +} + +// GetURI returns the URI field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsAvatar) GetURI() string { + if c == nil || c.URI == nil { + return "" + } + return *c.URI +} + +// GetURL returns the URL field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsCAS) GetURL() string { + if c == nil || c.URL == nil { + return "" + } + return *c.URL +} + +// GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsCollectd) GetEnabled() bool { + if c == nil || c.Enabled == nil { + return false + } + return *c.Enabled +} + +// GetEncryption returns the Encryption field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsCollectd) GetEncryption() string { + if c == nil || c.Encryption == nil { + return "" + } + return *c.Encryption +} + +// GetPassword returns the Password field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsCollectd) GetPassword() string { + if c == nil || c.Password == nil { + return "" + } + return *c.Password +} + +// GetPort returns the Port field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsCollectd) GetPort() int64 { + if c == nil || c.Port == nil { + return 0 + } + return *c.Port +} + +// GetServer returns the Server field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsCollectd) GetServer() string { + if c == nil || c.Server == nil { + return "" + } + return *c.Server +} + +// GetUsername returns the Username field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsCollectd) GetUsername() string { + if c == nil || c.Username == nil { + return "" + } + return *c.Username +} + +// GetEmail returns the Email field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsCustomer) GetEmail() string { + if c == nil || c.Email == nil { + return "" + } + return *c.Email +} + +// GetName returns the Name field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsCustomer) GetName() string { + if c == nil || c.Name == nil { + return "" + } + return *c.Name +} + +// GetPublicKeyData returns the PublicKeyData field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsCustomer) GetPublicKeyData() string { + if c == nil || c.PublicKeyData == nil { + return "" + } + return *c.PublicKeyData +} + +// GetSecretKeyData returns the SecretKeyData field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsCustomer) GetSecretKeyData() string { + if c == nil || c.SecretKeyData == nil { + return "" + } + return *c.SecretKeyData +} + +// GetUUID returns the UUID field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsCustomer) GetUUID() string { + if c == nil || c.UUID == nil { + return "" + } + return *c.UUID +} + +// GetClientID returns the ClientID field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsGithubOAuth) GetClientID() string { + if c == nil || c.ClientID == nil { + return "" + } + return *c.ClientID +} + +// GetClientSecret returns the ClientSecret field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsGithubOAuth) GetClientSecret() string { + if c == nil || c.ClientSecret == nil { + return "" + } + return *c.ClientSecret +} + +// GetOrganizationName returns the OrganizationName field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsGithubOAuth) GetOrganizationName() string { + if c == nil || c.OrganizationName == nil { + return "" + } + return *c.OrganizationName +} + +// GetOrganizationTeam returns the OrganizationTeam field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsGithubOAuth) GetOrganizationTeam() string { + if c == nil || c.OrganizationTeam == nil { + return "" + } + return *c.OrganizationTeam +} + +// GetCert returns the Cert field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsGithubSSL) GetCert() string { + if c == nil || c.Cert == nil { + return "" + } + return *c.Cert +} + +// GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsGithubSSL) GetEnabled() bool { + if c == nil || c.Enabled == nil { + return false + } + return *c.Enabled +} + +// GetKey returns the Key field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsGithubSSL) GetKey() string { + if c == nil || c.Key == nil { + return "" + } + return *c.Key +} + +// GetAdminGroup returns the AdminGroup field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLDAP) GetAdminGroup() string { + if c == nil || c.AdminGroup == nil { + return "" + } + return *c.AdminGroup +} + +// GetBindDN returns the BindDN field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLDAP) GetBindDN() string { + if c == nil || c.BindDN == nil { + return "" + } + return *c.BindDN +} + +// GetHost returns the Host field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLDAP) GetHost() string { + if c == nil || c.Host == nil { + return "" + } + return *c.Host +} + +// GetMethod returns the Method field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLDAP) GetMethod() string { + if c == nil || c.Method == nil { + return "" + } + return *c.Method +} + +// GetPassword returns the Password field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLDAP) GetPassword() string { + if c == nil || c.Password == nil { + return "" + } + return *c.Password +} + +// GetPort returns the Port field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLDAP) GetPort() int64 { + if c == nil || c.Port == nil { + return 0 + } + return *c.Port +} + +// GetPosixSupport returns the PosixSupport field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLDAP) GetPosixSupport() bool { + if c == nil || c.PosixSupport == nil { + return false + } + return *c.PosixSupport +} + +// GetProfile returns the Profile field. +func (c *ConfigSettingsLDAP) GetProfile() *ConfigSettingsLDAPProfile { + if c == nil { + return nil + } + return c.Profile +} + +// GetReconciliation returns the Reconciliation field. +func (c *ConfigSettingsLDAP) GetReconciliation() *ConfigSettingsLDAPReconciliation { + if c == nil { + return nil + } + return c.Reconciliation +} + +// GetRecursiveGroupSearch returns the RecursiveGroupSearch field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLDAP) GetRecursiveGroupSearch() bool { + if c == nil || c.RecursiveGroupSearch == nil { + return false + } + return *c.RecursiveGroupSearch +} + +// GetSearchStrategy returns the SearchStrategy field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLDAP) GetSearchStrategy() string { + if c == nil || c.SearchStrategy == nil { + return "" + } + return *c.SearchStrategy +} + +// GetSyncEnabled returns the SyncEnabled field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLDAP) GetSyncEnabled() bool { + if c == nil || c.SyncEnabled == nil { + return false + } + return *c.SyncEnabled +} + +// GetTeamSyncInterval returns the TeamSyncInterval field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLDAP) GetTeamSyncInterval() int64 { + if c == nil || c.TeamSyncInterval == nil { + return 0 + } + return *c.TeamSyncInterval +} + +// GetUID returns the UID field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLDAP) GetUID() string { + if c == nil || c.UID == nil { + return "" + } + return *c.UID +} + +// GetUserSyncEmails returns the UserSyncEmails field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLDAP) GetUserSyncEmails() bool { + if c == nil || c.UserSyncEmails == nil { + return false + } + return *c.UserSyncEmails +} + +// GetUserSyncInterval returns the UserSyncInterval field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLDAP) GetUserSyncInterval() int64 { + if c == nil || c.UserSyncInterval == nil { + return 0 + } + return *c.UserSyncInterval +} + +// GetUserSyncKeys returns the UserSyncKeys field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLDAP) GetUserSyncKeys() bool { + if c == nil || c.UserSyncKeys == nil { + return false + } + return *c.UserSyncKeys +} + +// GetVirtualAttributeEnabled returns the VirtualAttributeEnabled field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLDAP) GetVirtualAttributeEnabled() bool { + if c == nil || c.VirtualAttributeEnabled == nil { + return false + } + return *c.VirtualAttributeEnabled +} + +// GetKey returns the Key field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLDAPProfile) GetKey() string { + if c == nil || c.Key == nil { + return "" + } + return *c.Key +} + +// GetMail returns the Mail field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLDAPProfile) GetMail() string { + if c == nil || c.Mail == nil { + return "" + } + return *c.Mail +} + +// GetName returns the Name field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLDAPProfile) GetName() string { + if c == nil || c.Name == nil { + return "" + } + return *c.Name +} + +// GetUID returns the UID field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLDAPProfile) GetUID() string { + if c == nil || c.UID == nil { + return "" + } + return *c.UID +} + +// GetOrg returns the Org field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLDAPReconciliation) GetOrg() string { + if c == nil || c.Org == nil { + return "" + } + return *c.Org +} + +// GetUser returns the User field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLDAPReconciliation) GetUser() string { + if c == nil || c.User == nil { + return "" + } + return *c.User +} + +// GetClusterSupport returns the ClusterSupport field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLicenseSettings) GetClusterSupport() bool { + if c == nil || c.ClusterSupport == nil { + return false + } + return *c.ClusterSupport +} + +// GetEvaluation returns the Evaluation field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLicenseSettings) GetEvaluation() bool { + if c == nil || c.Evaluation == nil { + return false + } + return *c.Evaluation +} + +// GetExpireAt returns the ExpireAt field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLicenseSettings) GetExpireAt() Timestamp { + if c == nil || c.ExpireAt == nil { + return Timestamp{} + } + return *c.ExpireAt +} + +// GetPerpetual returns the Perpetual field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLicenseSettings) GetPerpetual() bool { + if c == nil || c.Perpetual == nil { + return false + } + return *c.Perpetual +} + +// GetSeats returns the Seats field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLicenseSettings) GetSeats() int64 { + if c == nil || c.Seats == nil { + return 0 + } + return *c.Seats +} + +// GetSSHAllowed returns the SSHAllowed field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLicenseSettings) GetSSHAllowed() bool { + if c == nil || c.SSHAllowed == nil { + return false + } + return *c.SSHAllowed +} + +// GetSupportKey returns the SupportKey field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLicenseSettings) GetSupportKey() string { + if c == nil || c.SupportKey == nil { + return "" + } + return *c.SupportKey +} + +// GetUnlimitedSeating returns the UnlimitedSeating field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsLicenseSettings) GetUnlimitedSeating() bool { + if c == nil || c.UnlimitedSeating == nil { + return false + } + return *c.UnlimitedSeating +} + +// GetBasemap returns the Basemap field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsMapping) GetBasemap() string { + if c == nil || c.Basemap == nil { + return "" + } + return *c.Basemap +} + +// GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsMapping) GetEnabled() bool { + if c == nil || c.Enabled == nil { + return false + } + return *c.Enabled +} + +// GetTileserver returns the Tileserver field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsMapping) GetTileserver() string { + if c == nil || c.Tileserver == nil { + return "" + } + return *c.Tileserver +} + +// GetToken returns the Token field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsMapping) GetToken() string { + if c == nil || c.Token == nil { + return "" + } + return *c.Token +} + +// GetPrimaryServer returns the PrimaryServer field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsNTP) GetPrimaryServer() string { + if c == nil || c.PrimaryServer == nil { + return "" + } + return *c.PrimaryServer +} + +// GetSecondaryServer returns the SecondaryServer field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsNTP) GetSecondaryServer() string { + if c == nil || c.SecondaryServer == nil { + return "" + } + return *c.SecondaryServer +} + +// GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsPagesSettings) GetEnabled() bool { + if c == nil || c.Enabled == nil { + return false + } + return *c.Enabled +} + +// GetCertificate returns the Certificate field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsSAML) GetCertificate() string { + if c == nil || c.Certificate == nil { + return "" + } + return *c.Certificate +} + +// GetCertificatePath returns the CertificatePath field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsSAML) GetCertificatePath() string { + if c == nil || c.CertificatePath == nil { + return "" + } + return *c.CertificatePath +} + +// GetDisableAdminDemote returns the DisableAdminDemote field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsSAML) GetDisableAdminDemote() bool { + if c == nil || c.DisableAdminDemote == nil { + return false + } + return *c.DisableAdminDemote +} + +// GetIDPInitiatedSSO returns the IDPInitiatedSSO field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsSAML) GetIDPInitiatedSSO() bool { + if c == nil || c.IDPInitiatedSSO == nil { + return false + } + return *c.IDPInitiatedSSO +} + +// GetIssuer returns the Issuer field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsSAML) GetIssuer() string { + if c == nil || c.Issuer == nil { + return "" + } + return *c.Issuer +} + +// GetSSOURL returns the SSOURL field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsSAML) GetSSOURL() string { + if c == nil || c.SSOURL == nil { + return "" + } + return *c.SSOURL +} + +// GetAddress returns the Address field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsSMTP) GetAddress() string { + if c == nil || c.Address == nil { + return "" + } + return *c.Address +} + +// GetAuthentication returns the Authentication field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsSMTP) GetAuthentication() string { + if c == nil || c.Authentication == nil { + return "" + } + return *c.Authentication +} + +// GetDiscardToNoreplyAddress returns the DiscardToNoreplyAddress field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsSMTP) GetDiscardToNoreplyAddress() bool { + if c == nil || c.DiscardToNoreplyAddress == nil { + return false + } + return *c.DiscardToNoreplyAddress +} + +// GetDomain returns the Domain field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsSMTP) GetDomain() string { + if c == nil || c.Domain == nil { + return "" + } + return *c.Domain +} + +// GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsSMTP) GetEnabled() bool { + if c == nil || c.Enabled == nil { + return false + } + return *c.Enabled +} + +// GetEnableStarttlsAuto returns the EnableStarttlsAuto field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsSMTP) GetEnableStarttlsAuto() bool { + if c == nil || c.EnableStarttlsAuto == nil { + return false + } + return *c.EnableStarttlsAuto } -// GetMapping returns the Mapping field. -func (c *ConfigSettings) GetMapping() *Mapping { - if c == nil { - return nil +// GetNoreplyAddress returns the NoreplyAddress field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsSMTP) GetNoreplyAddress() string { + if c == nil || c.NoreplyAddress == nil { + return "" } - return c.Mapping + return *c.NoreplyAddress } -// GetNTP returns the NTP field. -func (c *ConfigSettings) GetNTP() *NTP { - if c == nil { - return nil +// GetPassword returns the Password field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsSMTP) GetPassword() string { + if c == nil || c.Password == nil { + return "" } - return c.NTP + return *c.Password } -// GetPages returns the Pages field. -func (c *ConfigSettings) GetPages() *PagesSettings { - if c == nil { - return nil +// GetPort returns the Port field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsSMTP) GetPort() string { + if c == nil || c.Port == nil { + return "" } - return c.Pages + return *c.Port } -// GetPrivateMode returns the PrivateMode field if it's non-nil, zero value otherwise. -func (c *ConfigSettings) GetPrivateMode() bool { - if c == nil || c.PrivateMode == nil { - return false +// GetSupportAddress returns the SupportAddress field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsSMTP) GetSupportAddress() string { + if c == nil || c.SupportAddress == nil { + return "" } - return *c.PrivateMode + return *c.SupportAddress } -// GetPublicPages returns the PublicPages field if it's non-nil, zero value otherwise. -func (c *ConfigSettings) GetPublicPages() bool { - if c == nil || c.PublicPages == nil { - return false +// GetSupportAddressType returns the SupportAddressType field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsSMTP) GetSupportAddressType() string { + if c == nil || c.SupportAddressType == nil { + return "" } - return *c.PublicPages + return *c.SupportAddressType } -// GetSAML returns the SAML field. -func (c *ConfigSettings) GetSAML() *SAML { - if c == nil { - return nil +// GetUsername returns the Username field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsSMTP) GetUsername() string { + if c == nil || c.Username == nil { + return "" } - return c.SAML + return *c.Username } -// GetSignupEnabled returns the SignupEnabled field if it's non-nil, zero value otherwise. -func (c *ConfigSettings) GetSignupEnabled() bool { - if c == nil || c.SignupEnabled == nil { - return false +// GetUserName returns the UserName field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsSMTP) GetUserName() string { + if c == nil || c.UserName == nil { + return "" } - return *c.SignupEnabled + return *c.UserName } -// GetSMTP returns the SMTP field. -func (c *ConfigSettings) GetSMTP() *SMTP { - if c == nil { - return nil +// GetCommunity returns the Community field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsSNMP) GetCommunity() string { + if c == nil || c.Community == nil { + return "" } - return c.SMTP + return *c.Community } -// GetSNMP returns the SNMP field. -func (c *ConfigSettings) GetSNMP() *SNMP { - if c == nil { - return nil +// GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsSNMP) GetEnabled() bool { + if c == nil || c.Enabled == nil { + return false } - return c.SNMP + return *c.Enabled } -// GetSubdomainIsolation returns the SubdomainIsolation field if it's non-nil, zero value otherwise. -func (c *ConfigSettings) GetSubdomainIsolation() bool { - if c == nil || c.SubdomainIsolation == nil { +// GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsSyslog) GetEnabled() bool { + if c == nil || c.Enabled == nil { return false } - return *c.SubdomainIsolation + return *c.Enabled } -// GetSyslog returns the Syslog field. -func (c *ConfigSettings) GetSyslog() *Syslog { - if c == nil { - return nil +// GetProtocolName returns the ProtocolName field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsSyslog) GetProtocolName() string { + if c == nil || c.ProtocolName == nil { + return "" } - return c.Syslog + return *c.ProtocolName } -// GetTimezone returns the Timezone field if it's non-nil, zero value otherwise. -func (c *ConfigSettings) GetTimezone() string { - if c == nil || c.Timezone == nil { +// GetServer returns the Server field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsSyslog) GetServer() string { + if c == nil || c.Server == nil { return "" } - return *c.Timezone + return *c.Server } // GetName returns the Name field if it's non-nil, zero value otherwise. @@ -5630,46 +6230,6 @@ func (c *CustomDeploymentProtectionRuleRequest) GetIntegrationID() int64 { return *c.IntegrationID } -// GetEmail returns the Email field if it's non-nil, zero value otherwise. -func (c *Customer) GetEmail() string { - if c == nil || c.Email == nil { - return "" - } - return *c.Email -} - -// GetName returns the Name field if it's non-nil, zero value otherwise. -func (c *Customer) GetName() string { - if c == nil || c.Name == nil { - return "" - } - return *c.Name -} - -// GetPublicKeyData returns the PublicKeyData field if it's non-nil, zero value otherwise. -func (c *Customer) GetPublicKeyData() string { - if c == nil || c.PublicKeyData == nil { - return "" - } - return *c.PublicKeyData -} - -// GetSecretKeyData returns the SecretKeyData field if it's non-nil, zero value otherwise. -func (c *Customer) GetSecretKeyData() string { - if c == nil || c.SecretKeyData == nil { - return "" - } - return *c.SecretKeyData -} - -// GetUUID returns the UUID field if it's non-nil, zero value otherwise. -func (c *Customer) GetUUID() string { - if c == nil || c.UUID == nil { - return "" - } - return *c.UUID -} - // GetBaseRole returns the BaseRole field if it's non-nil, zero value otherwise. func (c *CustomOrgRoles) GetBaseRole() string { if c == nil || c.BaseRole == nil { @@ -8990,62 +9550,6 @@ func (g *GitHubAppAuthorizationEvent) GetSender() *User { return g.Sender } -// GetClientID returns the ClientID field if it's non-nil, zero value otherwise. -func (g *GitHubOAuth) GetClientID() string { - if g == nil || g.ClientID == nil { - return "" - } - return *g.ClientID -} - -// GetClientSecret returns the ClientSecret field if it's non-nil, zero value otherwise. -func (g *GitHubOAuth) GetClientSecret() string { - if g == nil || g.ClientSecret == nil { - return "" - } - return *g.ClientSecret -} - -// GetOrganizationName returns the OrganizationName field if it's non-nil, zero value otherwise. -func (g *GitHubOAuth) GetOrganizationName() string { - if g == nil || g.OrganizationName == nil { - return "" - } - return *g.OrganizationName -} - -// GetOrganizationTeam returns the OrganizationTeam field if it's non-nil, zero value otherwise. -func (g *GitHubOAuth) GetOrganizationTeam() string { - if g == nil || g.OrganizationTeam == nil { - return "" - } - return *g.OrganizationTeam -} - -// GetCert returns the Cert field if it's non-nil, zero value otherwise. -func (g *GitHubSSL) GetCert() string { - if g == nil || g.Cert == nil { - return "" - } - return *g.Cert -} - -// GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. -func (g *GitHubSSL) GetEnabled() bool { - if g == nil || g.Enabled == nil { - return false - } - return *g.Enabled -} - -// GetKey returns the Key field if it's non-nil, zero value otherwise. -func (g *GitHubSSL) GetKey() string { - if g == nil || g.Key == nil { - return "" - } - return *g.Key -} - // GetName returns the Name field if it's non-nil, zero value otherwise. func (g *Gitignore) GetName() string { if g == nil || g.Name == nil { @@ -12190,156 +12694,12 @@ func (l *LargeFile) GetRefName() string { return *l.RefName } -// GetSize returns the Size field if it's non-nil, zero value otherwise. -func (l *LargeFile) GetSize() int { - if l == nil || l.Size == nil { - return 0 - } - return *l.Size -} - -// GetAdminGroup returns the AdminGroup field if it's non-nil, zero value otherwise. -func (l *LDAP) GetAdminGroup() string { - if l == nil || l.AdminGroup == nil { - return "" - } - return *l.AdminGroup -} - -// GetBindDN returns the BindDN field if it's non-nil, zero value otherwise. -func (l *LDAP) GetBindDN() string { - if l == nil || l.BindDN == nil { - return "" - } - return *l.BindDN -} - -// GetHost returns the Host field if it's non-nil, zero value otherwise. -func (l *LDAP) GetHost() string { - if l == nil || l.Host == nil { - return "" - } - return *l.Host -} - -// GetMethod returns the Method field if it's non-nil, zero value otherwise. -func (l *LDAP) GetMethod() string { - if l == nil || l.Method == nil { - return "" - } - return *l.Method -} - -// GetPassword returns the Password field if it's non-nil, zero value otherwise. -func (l *LDAP) GetPassword() string { - if l == nil || l.Password == nil { - return "" - } - return *l.Password -} - -// GetPort returns the Port field if it's non-nil, zero value otherwise. -func (l *LDAP) GetPort() int { - if l == nil || l.Port == nil { - return 0 - } - return *l.Port -} - -// GetPosixSupport returns the PosixSupport field if it's non-nil, zero value otherwise. -func (l *LDAP) GetPosixSupport() bool { - if l == nil || l.PosixSupport == nil { - return false - } - return *l.PosixSupport -} - -// GetProfile returns the Profile field. -func (l *LDAP) GetProfile() *Profile { - if l == nil { - return nil - } - return l.Profile -} - -// GetReconciliation returns the Reconciliation field. -func (l *LDAP) GetReconciliation() *Reconciliation { - if l == nil { - return nil - } - return l.Reconciliation -} - -// GetRecursiveGroupSearch returns the RecursiveGroupSearch field if it's non-nil, zero value otherwise. -func (l *LDAP) GetRecursiveGroupSearch() bool { - if l == nil || l.RecursiveGroupSearch == nil { - return false - } - return *l.RecursiveGroupSearch -} - -// GetSearchStrategy returns the SearchStrategy field if it's non-nil, zero value otherwise. -func (l *LDAP) GetSearchStrategy() string { - if l == nil || l.SearchStrategy == nil { - return "" - } - return *l.SearchStrategy -} - -// GetSyncEnabled returns the SyncEnabled field if it's non-nil, zero value otherwise. -func (l *LDAP) GetSyncEnabled() bool { - if l == nil || l.SyncEnabled == nil { - return false - } - return *l.SyncEnabled -} - -// GetTeamSyncInterval returns the TeamSyncInterval field if it's non-nil, zero value otherwise. -func (l *LDAP) GetTeamSyncInterval() int { - if l == nil || l.TeamSyncInterval == nil { - return 0 - } - return *l.TeamSyncInterval -} - -// GetUID returns the UID field if it's non-nil, zero value otherwise. -func (l *LDAP) GetUID() string { - if l == nil || l.UID == nil { - return "" - } - return *l.UID -} - -// GetUserSyncEmails returns the UserSyncEmails field if it's non-nil, zero value otherwise. -func (l *LDAP) GetUserSyncEmails() bool { - if l == nil || l.UserSyncEmails == nil { - return false - } - return *l.UserSyncEmails -} - -// GetUserSyncInterval returns the UserSyncInterval field if it's non-nil, zero value otherwise. -func (l *LDAP) GetUserSyncInterval() int { - if l == nil || l.UserSyncInterval == nil { - return 0 - } - return *l.UserSyncInterval -} - -// GetUserSyncKeys returns the UserSyncKeys field if it's non-nil, zero value otherwise. -func (l *LDAP) GetUserSyncKeys() bool { - if l == nil || l.UserSyncKeys == nil { - return false - } - return *l.UserSyncKeys -} - -// GetVirtualAttributeEnabled returns the VirtualAttributeEnabled field if it's non-nil, zero value otherwise. -func (l *LDAP) GetVirtualAttributeEnabled() bool { - if l == nil || l.VirtualAttributeEnabled == nil { - return false +// GetSize returns the Size field if it's non-nil, zero value otherwise. +func (l *LargeFile) GetSize() int { + if l == nil || l.Size == nil { + return 0 } - return *l.VirtualAttributeEnabled + return *l.Size } // GetBody returns the Body field if it's non-nil, zero value otherwise. @@ -12446,70 +12806,6 @@ func (l *LicenseCheck) GetStatus() string { return *l.Status } -// GetClusterSupport returns the ClusterSupport field if it's non-nil, zero value otherwise. -func (l *LicenseSettings) GetClusterSupport() bool { - if l == nil || l.ClusterSupport == nil { - return false - } - return *l.ClusterSupport -} - -// GetEvaluation returns the Evaluation field if it's non-nil, zero value otherwise. -func (l *LicenseSettings) GetEvaluation() bool { - if l == nil || l.Evaluation == nil { - return false - } - return *l.Evaluation -} - -// GetExpireAt returns the ExpireAt field if it's non-nil, zero value otherwise. -func (l *LicenseSettings) GetExpireAt() Timestamp { - if l == nil || l.ExpireAt == nil { - return Timestamp{} - } - return *l.ExpireAt -} - -// GetPerpetual returns the Perpetual field if it's non-nil, zero value otherwise. -func (l *LicenseSettings) GetPerpetual() bool { - if l == nil || l.Perpetual == nil { - return false - } - return *l.Perpetual -} - -// GetSeats returns the Seats field if it's non-nil, zero value otherwise. -func (l *LicenseSettings) GetSeats() int { - if l == nil || l.Seats == nil { - return 0 - } - return *l.Seats -} - -// GetSSHAllowed returns the SSHAllowed field if it's non-nil, zero value otherwise. -func (l *LicenseSettings) GetSSHAllowed() bool { - if l == nil || l.SSHAllowed == nil { - return false - } - return *l.SSHAllowed -} - -// GetSupportKey returns the SupportKey field if it's non-nil, zero value otherwise. -func (l *LicenseSettings) GetSupportKey() string { - if l == nil || l.SupportKey == nil { - return "" - } - return *l.SupportKey -} - -// GetUnlimitedSeating returns the UnlimitedSeating field if it's non-nil, zero value otherwise. -func (l *LicenseSettings) GetUnlimitedSeating() bool { - if l == nil || l.UnlimitedSeating == nil { - return false - } - return *l.UnlimitedSeating -} - // GetAdvancedSecurityEnabled returns the AdvancedSecurityEnabled field if it's non-nil, zero value otherwise. func (l *LicenseStatus) GetAdvancedSecurityEnabled() bool { if l == nil || l.AdvancedSecurityEnabled == nil { @@ -12519,7 +12815,7 @@ func (l *LicenseStatus) GetAdvancedSecurityEnabled() bool { } // GetAdvancedSecuritySeats returns the AdvancedSecuritySeats field if it's non-nil, zero value otherwise. -func (l *LicenseStatus) GetAdvancedSecuritySeats() int { +func (l *LicenseStatus) GetAdvancedSecuritySeats() int64 { if l == nil || l.AdvancedSecuritySeats == nil { return 0 } @@ -12599,7 +12895,7 @@ func (l *LicenseStatus) GetLearningLabEvaluationExpires() Timestamp { } // GetLearningLabSeats returns the LearningLabSeats field if it's non-nil, zero value otherwise. -func (l *LicenseStatus) GetLearningLabSeats() int { +func (l *LicenseStatus) GetLearningLabSeats() int64 { if l == nil || l.LearningLabSeats == nil { return 0 } @@ -12623,7 +12919,7 @@ func (l *LicenseStatus) GetReferenceNumber() string { } // GetSeats returns the Seats field if it's non-nil, zero value otherwise. -func (l *LicenseStatus) GetSeats() int { +func (l *LicenseStatus) GetSeats() int64 { if l == nil || l.Seats == nil { return 0 } @@ -13094,38 +13390,6 @@ func (m *MaintenanceStatus) GetUUID() string { return *m.UUID } -// GetBasemap returns the Basemap field if it's non-nil, zero value otherwise. -func (m *Mapping) GetBasemap() string { - if m == nil || m.Basemap == nil { - return "" - } - return *m.Basemap -} - -// GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. -func (m *Mapping) GetEnabled() bool { - if m == nil || m.Enabled == nil { - return false - } - return *m.Enabled -} - -// GetTileserver returns the Tileserver field if it's non-nil, zero value otherwise. -func (m *Mapping) GetTileserver() string { - if m == nil || m.Tileserver == nil { - return "" - } - return *m.Tileserver -} - -// GetToken returns the Token field if it's non-nil, zero value otherwise. -func (m *Mapping) GetToken() string { - if m == nil || m.Token == nil { - return "" - } - return *m.Token -} - // GetEffectiveDate returns the EffectiveDate field if it's non-nil, zero value otherwise. func (m *MarketplacePendingChange) GetEffectiveDate() Timestamp { if m == nil || m.EffectiveDate == nil { @@ -14518,22 +14782,6 @@ func (n *NotificationSubject) GetURL() string { return *n.URL } -// GetPrimaryServer returns the PrimaryServer field if it's non-nil, zero value otherwise. -func (n *NTP) GetPrimaryServer() string { - if n == nil || n.PrimaryServer == nil { - return "" - } - return *n.PrimaryServer -} - -// GetSecondaryServer returns the SecondaryServer field if it's non-nil, zero value otherwise. -func (n *NTP) GetSecondaryServer() string { - if n == nil || n.SecondaryServer == nil { - return "" - } - return *n.SecondaryServer -} - // GetClientID returns the ClientID field if it's non-nil, zero value otherwise. func (o *OAuthAPP) GetClientID() string { if o == nil || o.ClientID == nil { @@ -16358,14 +16606,6 @@ func (p *PagesHTTPSCertificate) GetState() string { return *p.State } -// GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. -func (p *PagesSettings) GetEnabled() bool { - if p == nil || p.Enabled == nil { - return false - } - return *p.Enabled -} - // GetBranch returns the Branch field if it's non-nil, zero value otherwise. func (p *PagesSource) GetBranch() string { if p == nil || p.Branch == nil { @@ -16958,38 +17198,6 @@ func (p *PRLinks) GetStatuses() *PRLink { return p.Statuses } -// GetKey returns the Key field if it's non-nil, zero value otherwise. -func (p *Profile) GetKey() string { - if p == nil || p.Key == nil { - return "" - } - return *p.Key -} - -// GetMail returns the Mail field if it's non-nil, zero value otherwise. -func (p *Profile) GetMail() string { - if p == nil || p.Mail == nil { - return "" - } - return *p.Mail -} - -// GetName returns the Name field if it's non-nil, zero value otherwise. -func (p *Profile) GetName() string { - if p == nil || p.Name == nil { - return "" - } - return *p.Name -} - -// GetUID returns the UID field if it's non-nil, zero value otherwise. -func (p *Profile) GetUID() string { - if p == nil || p.UID == nil { - return "" - } - return *p.UID -} - // GetFrom returns the From field if it's non-nil, zero value otherwise. func (p *ProjectBody) GetFrom() string { if p == nil || p.From == nil { @@ -19878,22 +20086,6 @@ func (r *Reactions) GetURL() string { return *r.URL } -// GetOrg returns the Org field if it's non-nil, zero value otherwise. -func (r *Reconciliation) GetOrg() string { - if r == nil || r.Org == nil { - return "" - } - return *r.Org -} - -// GetUser returns the User field if it's non-nil, zero value otherwise. -func (r *Reconciliation) GetUser() string { - if r == nil || r.User == nil { - return "" - } - return *r.User -} - // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. func (r *Reference) GetNodeID() string { if r == nil || r.NodeID == nil { @@ -23550,54 +23742,6 @@ func (r *RunnerLabels) GetType() string { return *r.Type } -// GetCertificate returns the Certificate field if it's non-nil, zero value otherwise. -func (s *SAML) GetCertificate() string { - if s == nil || s.Certificate == nil { - return "" - } - return *s.Certificate -} - -// GetCertificatePath returns the CertificatePath field if it's non-nil, zero value otherwise. -func (s *SAML) GetCertificatePath() string { - if s == nil || s.CertificatePath == nil { - return "" - } - return *s.CertificatePath -} - -// GetDisableAdminDemote returns the DisableAdminDemote field if it's non-nil, zero value otherwise. -func (s *SAML) GetDisableAdminDemote() bool { - if s == nil || s.DisableAdminDemote == nil { - return false - } - return *s.DisableAdminDemote -} - -// GetIDPInitiatedSSO returns the IDPInitiatedSSO field if it's non-nil, zero value otherwise. -func (s *SAML) GetIDPInitiatedSSO() bool { - if s == nil || s.IDPInitiatedSSO == nil { - return false - } - return *s.IDPInitiatedSSO -} - -// GetIssuer returns the Issuer field if it's non-nil, zero value otherwise. -func (s *SAML) GetIssuer() string { - if s == nil || s.Issuer == nil { - return "" - } - return *s.Issuer -} - -// GetSSOURL returns the SSOURL field if it's non-nil, zero value otherwise. -func (s *SAML) GetSSOURL() string { - if s == nil || s.SSOURL == nil { - return "" - } - return *s.SSOURL -} - // GetCheckoutURI returns the CheckoutURI field if it's non-nil, zero value otherwise. func (s *SarifAnalysis) GetCheckoutURI() string { if s == nil || s.CheckoutURI == nil { @@ -24742,126 +24886,6 @@ func (s *SignatureVerification) GetVerified() bool { return *s.Verified } -// GetAddress returns the Address field if it's non-nil, zero value otherwise. -func (s *SMTP) GetAddress() string { - if s == nil || s.Address == nil { - return "" - } - return *s.Address -} - -// GetAuthentication returns the Authentication field if it's non-nil, zero value otherwise. -func (s *SMTP) GetAuthentication() string { - if s == nil || s.Authentication == nil { - return "" - } - return *s.Authentication -} - -// GetDiscardToNoreplyAddress returns the DiscardToNoreplyAddress field if it's non-nil, zero value otherwise. -func (s *SMTP) GetDiscardToNoreplyAddress() bool { - if s == nil || s.DiscardToNoreplyAddress == nil { - return false - } - return *s.DiscardToNoreplyAddress -} - -// GetDomain returns the Domain field if it's non-nil, zero value otherwise. -func (s *SMTP) GetDomain() string { - if s == nil || s.Domain == nil { - return "" - } - return *s.Domain -} - -// GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. -func (s *SMTP) GetEnabled() bool { - if s == nil || s.Enabled == nil { - return false - } - return *s.Enabled -} - -// GetEnableStarttlsAuto returns the EnableStarttlsAuto field if it's non-nil, zero value otherwise. -func (s *SMTP) GetEnableStarttlsAuto() bool { - if s == nil || s.EnableStarttlsAuto == nil { - return false - } - return *s.EnableStarttlsAuto -} - -// GetNoreplyAddress returns the NoreplyAddress field if it's non-nil, zero value otherwise. -func (s *SMTP) GetNoreplyAddress() string { - if s == nil || s.NoreplyAddress == nil { - return "" - } - return *s.NoreplyAddress -} - -// GetPassword returns the Password field if it's non-nil, zero value otherwise. -func (s *SMTP) GetPassword() string { - if s == nil || s.Password == nil { - return "" - } - return *s.Password -} - -// GetPort returns the Port field if it's non-nil, zero value otherwise. -func (s *SMTP) GetPort() string { - if s == nil || s.Port == nil { - return "" - } - return *s.Port -} - -// GetSupportAddress returns the SupportAddress field if it's non-nil, zero value otherwise. -func (s *SMTP) GetSupportAddress() string { - if s == nil || s.SupportAddress == nil { - return "" - } - return *s.SupportAddress -} - -// GetSupportAddressType returns the SupportAddressType field if it's non-nil, zero value otherwise. -func (s *SMTP) GetSupportAddressType() string { - if s == nil || s.SupportAddressType == nil { - return "" - } - return *s.SupportAddressType -} - -// GetUsername returns the Username field if it's non-nil, zero value otherwise. -func (s *SMTP) GetUsername() string { - if s == nil || s.Username == nil { - return "" - } - return *s.Username -} - -// GetUserName returns the UserName field if it's non-nil, zero value otherwise. -func (s *SMTP) GetUserName() string { - if s == nil || s.UserName == nil { - return "" - } - return *s.UserName -} - -// GetCommunity returns the Community field if it's non-nil, zero value otherwise. -func (s *SNMP) GetCommunity() string { - if s == nil || s.Community == nil { - return "" - } - return *s.Community -} - -// GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. -func (s *SNMP) GetEnabled() bool { - if s == nil || s.Enabled == nil { - return false - } - return *s.Enabled -} - // GetActor returns the Actor field. func (s *Source) GetActor() *User { if s == nil { @@ -25350,30 +25374,6 @@ func (s *Subscription) GetURL() string { return *s.URL } -// GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. -func (s *Syslog) GetEnabled() bool { - if s == nil || s.Enabled == nil { - return false - } - return *s.Enabled -} - -// GetProtocolName returns the ProtocolName field if it's non-nil, zero value otherwise. -func (s *Syslog) GetProtocolName() string { - if s == nil || s.ProtocolName == nil { - return "" - } - return *s.ProtocolName -} - -// GetServer returns the Server field if it's non-nil, zero value otherwise. -func (s *Syslog) GetServer() string { - if s == nil || s.Server == nil { - return "" - } - return *s.Server -} - // GetStatus returns the Status field if it's non-nil, zero value otherwise. func (s *SystemRequirements) GetStatus() string { if s == nil || s.Status == nil { diff --git a/github/github-accessors_test.go b/github/github-accessors_test.go index 4e5eeac8463..d2818dbf9cc 100644 --- a/github/github-accessors_test.go +++ b/github/github-accessors_test.go @@ -1985,28 +1985,6 @@ func TestAutoTriggerCheck_GetSetting(tt *testing.T) { a.GetSetting() } -func TestAvatar_GetEnabled(tt *testing.T) { - tt.Parallel() - var zeroValue bool - a := &Avatar{Enabled: &zeroValue} - a.GetEnabled() - a = &Avatar{} - a.GetEnabled() - a = nil - a.GetEnabled() -} - -func TestAvatar_GetURI(tt *testing.T) { - tt.Parallel() - var zeroValue string - a := &Avatar{URI: &zeroValue} - a.GetURI() - a = &Avatar{} - a.GetURI() - a = nil - a.GetURI() -} - func TestBlob_GetContent(tt *testing.T) { tt.Parallel() var zeroValue string @@ -2570,17 +2548,6 @@ func TestBypassActor_GetBypassMode(tt *testing.T) { b.GetBypassMode() } -func TestCAS_GetURL(tt *testing.T) { - tt.Parallel() - var zeroValue string - c := &CAS{URL: &zeroValue} - c.GetURL() - c = &CAS{} - c.GetURL() - c = nil - c.GetURL() -} - func TestCheckRun_GetApp(tt *testing.T) { tt.Parallel() c := &CheckRun{} @@ -4406,72 +4373,6 @@ func TestCollaboratorInvitation_GetURL(tt *testing.T) { c.GetURL() } -func TestCollectd_GetEnabled(tt *testing.T) { - tt.Parallel() - var zeroValue bool - c := &Collectd{Enabled: &zeroValue} - c.GetEnabled() - c = &Collectd{} - c.GetEnabled() - c = nil - c.GetEnabled() -} - -func TestCollectd_GetEncryption(tt *testing.T) { - tt.Parallel() - var zeroValue string - c := &Collectd{Encryption: &zeroValue} - c.GetEncryption() - c = &Collectd{} - c.GetEncryption() - c = nil - c.GetEncryption() -} - -func TestCollectd_GetPassword(tt *testing.T) { - tt.Parallel() - var zeroValue string - c := &Collectd{Password: &zeroValue} - c.GetPassword() - c = &Collectd{} - c.GetPassword() - c = nil - c.GetPassword() -} - -func TestCollectd_GetPort(tt *testing.T) { - tt.Parallel() - var zeroValue int - c := &Collectd{Port: &zeroValue} - c.GetPort() - c = &Collectd{} - c.GetPort() - c = nil - c.GetPort() -} - -func TestCollectd_GetServer(tt *testing.T) { - tt.Parallel() - var zeroValue string - c := &Collectd{Server: &zeroValue} - c.GetServer() - c = &Collectd{} - c.GetServer() - c = nil - c.GetServer() -} - -func TestCollectd_GetUsername(tt *testing.T) { - tt.Parallel() - var zeroValue string - c := &Collectd{Username: &zeroValue} - c.GetUsername() - c = &Collectd{} - c.GetUsername() - c = nil - c.GetUsername() -} - func TestCombinedStatus_GetCommitURL(tt *testing.T) { tt.Parallel() var zeroValue string @@ -5496,7 +5397,7 @@ func TestConfigApplyEventsNodeEvent_GetSeverityText(tt *testing.T) { func TestConfigApplyEventsNodeEvent_GetSpanDepth(tt *testing.T) { tt.Parallel() - var zeroValue int + var zeroValue int64 c := &ConfigApplyEventsNodeEvent{SpanDepth: &zeroValue} c.GetSpanDepth() c = &ConfigApplyEventsNodeEvent{} @@ -5518,7 +5419,7 @@ func TestConfigApplyEventsNodeEvent_GetSpanID(tt *testing.T) { func TestConfigApplyEventsNodeEvent_GetSpanParentID(tt *testing.T) { tt.Parallel() - var zeroValue int + var zeroValue int64 c := &ConfigApplyEventsNodeEvent{SpanParentID: &zeroValue} c.GetSpanParentID() c = &ConfigApplyEventsNodeEvent{} @@ -5707,7 +5608,7 @@ func TestConfigSettings_GetCollectd(tt *testing.T) { func TestConfigSettings_GetConfigurationID(tt *testing.T) { tt.Parallel() - var zeroValue int + var zeroValue int64 c := &ConfigSettings{ConfigurationID: &zeroValue} c.GetConfigurationID() c = &ConfigSettings{} @@ -5718,7 +5619,7 @@ func TestConfigSettings_GetConfigurationID(tt *testing.T) { func TestConfigSettings_GetConfigurationRunCount(tt *testing.T) { tt.Parallel() - var zeroValue int + var zeroValue int64 c := &ConfigSettings{ConfigurationRunCount: &zeroValue} c.GetConfigurationRunCount() c = &ConfigSettings{} @@ -5746,31 +5647,31 @@ func TestConfigSettings_GetExpireSessions(tt *testing.T) { c.GetExpireSessions() } -func TestConfigSettings_GetGitHubHostname(tt *testing.T) { +func TestConfigSettings_GetGithubHostname(tt *testing.T) { tt.Parallel() var zeroValue string - c := &ConfigSettings{GitHubHostname: &zeroValue} - c.GetGitHubHostname() + c := &ConfigSettings{GithubHostname: &zeroValue} + c.GetGithubHostname() c = &ConfigSettings{} - c.GetGitHubHostname() + c.GetGithubHostname() c = nil - c.GetGitHubHostname() + c.GetGithubHostname() } -func TestConfigSettings_GetGitHubOAuth(tt *testing.T) { +func TestConfigSettings_GetGithubOAuth(tt *testing.T) { tt.Parallel() c := &ConfigSettings{} - c.GetGitHubOAuth() + c.GetGithubOAuth() c = nil - c.GetGitHubOAuth() + c.GetGithubOAuth() } -func TestConfigSettings_GetGitHubSSL(tt *testing.T) { +func TestConfigSettings_GetGithubSSL(tt *testing.T) { tt.Parallel() c := &ConfigSettings{} - c.GetGitHubSSL() + c.GetGithubSSL() c = nil - c.GetGitHubSSL() + c.GetGithubSSL() } func TestConfigSettings_GetHTTPProxy(tt *testing.T) { @@ -5911,26 +5812,944 @@ func TestConfigSettings_GetSubdomainIsolation(tt *testing.T) { c = &ConfigSettings{} c.GetSubdomainIsolation() c = nil - c.GetSubdomainIsolation() + c.GetSubdomainIsolation() +} + +func TestConfigSettings_GetSyslog(tt *testing.T) { + tt.Parallel() + c := &ConfigSettings{} + c.GetSyslog() + c = nil + c.GetSyslog() +} + +func TestConfigSettings_GetTimezone(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettings{Timezone: &zeroValue} + c.GetTimezone() + c = &ConfigSettings{} + c.GetTimezone() + c = nil + c.GetTimezone() +} + +func TestConfigSettingsAvatar_GetEnabled(tt *testing.T) { + tt.Parallel() + var zeroValue bool + c := &ConfigSettingsAvatar{Enabled: &zeroValue} + c.GetEnabled() + c = &ConfigSettingsAvatar{} + c.GetEnabled() + c = nil + c.GetEnabled() +} + +func TestConfigSettingsAvatar_GetURI(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsAvatar{URI: &zeroValue} + c.GetURI() + c = &ConfigSettingsAvatar{} + c.GetURI() + c = nil + c.GetURI() +} + +func TestConfigSettingsCAS_GetURL(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsCAS{URL: &zeroValue} + c.GetURL() + c = &ConfigSettingsCAS{} + c.GetURL() + c = nil + c.GetURL() +} + +func TestConfigSettingsCollectd_GetEnabled(tt *testing.T) { + tt.Parallel() + var zeroValue bool + c := &ConfigSettingsCollectd{Enabled: &zeroValue} + c.GetEnabled() + c = &ConfigSettingsCollectd{} + c.GetEnabled() + c = nil + c.GetEnabled() +} + +func TestConfigSettingsCollectd_GetEncryption(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsCollectd{Encryption: &zeroValue} + c.GetEncryption() + c = &ConfigSettingsCollectd{} + c.GetEncryption() + c = nil + c.GetEncryption() +} + +func TestConfigSettingsCollectd_GetPassword(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsCollectd{Password: &zeroValue} + c.GetPassword() + c = &ConfigSettingsCollectd{} + c.GetPassword() + c = nil + c.GetPassword() +} + +func TestConfigSettingsCollectd_GetPort(tt *testing.T) { + tt.Parallel() + var zeroValue int64 + c := &ConfigSettingsCollectd{Port: &zeroValue} + c.GetPort() + c = &ConfigSettingsCollectd{} + c.GetPort() + c = nil + c.GetPort() +} + +func TestConfigSettingsCollectd_GetServer(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsCollectd{Server: &zeroValue} + c.GetServer() + c = &ConfigSettingsCollectd{} + c.GetServer() + c = nil + c.GetServer() +} + +func TestConfigSettingsCollectd_GetUsername(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsCollectd{Username: &zeroValue} + c.GetUsername() + c = &ConfigSettingsCollectd{} + c.GetUsername() + c = nil + c.GetUsername() +} + +func TestConfigSettingsCustomer_GetEmail(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsCustomer{Email: &zeroValue} + c.GetEmail() + c = &ConfigSettingsCustomer{} + c.GetEmail() + c = nil + c.GetEmail() +} + +func TestConfigSettingsCustomer_GetName(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsCustomer{Name: &zeroValue} + c.GetName() + c = &ConfigSettingsCustomer{} + c.GetName() + c = nil + c.GetName() +} + +func TestConfigSettingsCustomer_GetPublicKeyData(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsCustomer{PublicKeyData: &zeroValue} + c.GetPublicKeyData() + c = &ConfigSettingsCustomer{} + c.GetPublicKeyData() + c = nil + c.GetPublicKeyData() +} + +func TestConfigSettingsCustomer_GetSecretKeyData(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsCustomer{SecretKeyData: &zeroValue} + c.GetSecretKeyData() + c = &ConfigSettingsCustomer{} + c.GetSecretKeyData() + c = nil + c.GetSecretKeyData() +} + +func TestConfigSettingsCustomer_GetUUID(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsCustomer{UUID: &zeroValue} + c.GetUUID() + c = &ConfigSettingsCustomer{} + c.GetUUID() + c = nil + c.GetUUID() +} + +func TestConfigSettingsGithubOAuth_GetClientID(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsGithubOAuth{ClientID: &zeroValue} + c.GetClientID() + c = &ConfigSettingsGithubOAuth{} + c.GetClientID() + c = nil + c.GetClientID() +} + +func TestConfigSettingsGithubOAuth_GetClientSecret(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsGithubOAuth{ClientSecret: &zeroValue} + c.GetClientSecret() + c = &ConfigSettingsGithubOAuth{} + c.GetClientSecret() + c = nil + c.GetClientSecret() +} + +func TestConfigSettingsGithubOAuth_GetOrganizationName(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsGithubOAuth{OrganizationName: &zeroValue} + c.GetOrganizationName() + c = &ConfigSettingsGithubOAuth{} + c.GetOrganizationName() + c = nil + c.GetOrganizationName() +} + +func TestConfigSettingsGithubOAuth_GetOrganizationTeam(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsGithubOAuth{OrganizationTeam: &zeroValue} + c.GetOrganizationTeam() + c = &ConfigSettingsGithubOAuth{} + c.GetOrganizationTeam() + c = nil + c.GetOrganizationTeam() +} + +func TestConfigSettingsGithubSSL_GetCert(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsGithubSSL{Cert: &zeroValue} + c.GetCert() + c = &ConfigSettingsGithubSSL{} + c.GetCert() + c = nil + c.GetCert() +} + +func TestConfigSettingsGithubSSL_GetEnabled(tt *testing.T) { + tt.Parallel() + var zeroValue bool + c := &ConfigSettingsGithubSSL{Enabled: &zeroValue} + c.GetEnabled() + c = &ConfigSettingsGithubSSL{} + c.GetEnabled() + c = nil + c.GetEnabled() +} + +func TestConfigSettingsGithubSSL_GetKey(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsGithubSSL{Key: &zeroValue} + c.GetKey() + c = &ConfigSettingsGithubSSL{} + c.GetKey() + c = nil + c.GetKey() +} + +func TestConfigSettingsLDAP_GetAdminGroup(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsLDAP{AdminGroup: &zeroValue} + c.GetAdminGroup() + c = &ConfigSettingsLDAP{} + c.GetAdminGroup() + c = nil + c.GetAdminGroup() +} + +func TestConfigSettingsLDAP_GetBindDN(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsLDAP{BindDN: &zeroValue} + c.GetBindDN() + c = &ConfigSettingsLDAP{} + c.GetBindDN() + c = nil + c.GetBindDN() +} + +func TestConfigSettingsLDAP_GetHost(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsLDAP{Host: &zeroValue} + c.GetHost() + c = &ConfigSettingsLDAP{} + c.GetHost() + c = nil + c.GetHost() +} + +func TestConfigSettingsLDAP_GetMethod(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsLDAP{Method: &zeroValue} + c.GetMethod() + c = &ConfigSettingsLDAP{} + c.GetMethod() + c = nil + c.GetMethod() +} + +func TestConfigSettingsLDAP_GetPassword(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsLDAP{Password: &zeroValue} + c.GetPassword() + c = &ConfigSettingsLDAP{} + c.GetPassword() + c = nil + c.GetPassword() +} + +func TestConfigSettingsLDAP_GetPort(tt *testing.T) { + tt.Parallel() + var zeroValue int64 + c := &ConfigSettingsLDAP{Port: &zeroValue} + c.GetPort() + c = &ConfigSettingsLDAP{} + c.GetPort() + c = nil + c.GetPort() +} + +func TestConfigSettingsLDAP_GetPosixSupport(tt *testing.T) { + tt.Parallel() + var zeroValue bool + c := &ConfigSettingsLDAP{PosixSupport: &zeroValue} + c.GetPosixSupport() + c = &ConfigSettingsLDAP{} + c.GetPosixSupport() + c = nil + c.GetPosixSupport() +} + +func TestConfigSettingsLDAP_GetProfile(tt *testing.T) { + tt.Parallel() + c := &ConfigSettingsLDAP{} + c.GetProfile() + c = nil + c.GetProfile() +} + +func TestConfigSettingsLDAP_GetReconciliation(tt *testing.T) { + tt.Parallel() + c := &ConfigSettingsLDAP{} + c.GetReconciliation() + c = nil + c.GetReconciliation() +} + +func TestConfigSettingsLDAP_GetRecursiveGroupSearch(tt *testing.T) { + tt.Parallel() + var zeroValue bool + c := &ConfigSettingsLDAP{RecursiveGroupSearch: &zeroValue} + c.GetRecursiveGroupSearch() + c = &ConfigSettingsLDAP{} + c.GetRecursiveGroupSearch() + c = nil + c.GetRecursiveGroupSearch() +} + +func TestConfigSettingsLDAP_GetSearchStrategy(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsLDAP{SearchStrategy: &zeroValue} + c.GetSearchStrategy() + c = &ConfigSettingsLDAP{} + c.GetSearchStrategy() + c = nil + c.GetSearchStrategy() +} + +func TestConfigSettingsLDAP_GetSyncEnabled(tt *testing.T) { + tt.Parallel() + var zeroValue bool + c := &ConfigSettingsLDAP{SyncEnabled: &zeroValue} + c.GetSyncEnabled() + c = &ConfigSettingsLDAP{} + c.GetSyncEnabled() + c = nil + c.GetSyncEnabled() +} + +func TestConfigSettingsLDAP_GetTeamSyncInterval(tt *testing.T) { + tt.Parallel() + var zeroValue int64 + c := &ConfigSettingsLDAP{TeamSyncInterval: &zeroValue} + c.GetTeamSyncInterval() + c = &ConfigSettingsLDAP{} + c.GetTeamSyncInterval() + c = nil + c.GetTeamSyncInterval() +} + +func TestConfigSettingsLDAP_GetUID(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsLDAP{UID: &zeroValue} + c.GetUID() + c = &ConfigSettingsLDAP{} + c.GetUID() + c = nil + c.GetUID() +} + +func TestConfigSettingsLDAP_GetUserSyncEmails(tt *testing.T) { + tt.Parallel() + var zeroValue bool + c := &ConfigSettingsLDAP{UserSyncEmails: &zeroValue} + c.GetUserSyncEmails() + c = &ConfigSettingsLDAP{} + c.GetUserSyncEmails() + c = nil + c.GetUserSyncEmails() +} + +func TestConfigSettingsLDAP_GetUserSyncInterval(tt *testing.T) { + tt.Parallel() + var zeroValue int64 + c := &ConfigSettingsLDAP{UserSyncInterval: &zeroValue} + c.GetUserSyncInterval() + c = &ConfigSettingsLDAP{} + c.GetUserSyncInterval() + c = nil + c.GetUserSyncInterval() +} + +func TestConfigSettingsLDAP_GetUserSyncKeys(tt *testing.T) { + tt.Parallel() + var zeroValue bool + c := &ConfigSettingsLDAP{UserSyncKeys: &zeroValue} + c.GetUserSyncKeys() + c = &ConfigSettingsLDAP{} + c.GetUserSyncKeys() + c = nil + c.GetUserSyncKeys() +} + +func TestConfigSettingsLDAP_GetVirtualAttributeEnabled(tt *testing.T) { + tt.Parallel() + var zeroValue bool + c := &ConfigSettingsLDAP{VirtualAttributeEnabled: &zeroValue} + c.GetVirtualAttributeEnabled() + c = &ConfigSettingsLDAP{} + c.GetVirtualAttributeEnabled() + c = nil + c.GetVirtualAttributeEnabled() +} + +func TestConfigSettingsLDAPProfile_GetKey(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsLDAPProfile{Key: &zeroValue} + c.GetKey() + c = &ConfigSettingsLDAPProfile{} + c.GetKey() + c = nil + c.GetKey() +} + +func TestConfigSettingsLDAPProfile_GetMail(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsLDAPProfile{Mail: &zeroValue} + c.GetMail() + c = &ConfigSettingsLDAPProfile{} + c.GetMail() + c = nil + c.GetMail() +} + +func TestConfigSettingsLDAPProfile_GetName(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsLDAPProfile{Name: &zeroValue} + c.GetName() + c = &ConfigSettingsLDAPProfile{} + c.GetName() + c = nil + c.GetName() +} + +func TestConfigSettingsLDAPProfile_GetUID(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsLDAPProfile{UID: &zeroValue} + c.GetUID() + c = &ConfigSettingsLDAPProfile{} + c.GetUID() + c = nil + c.GetUID() +} + +func TestConfigSettingsLDAPReconciliation_GetOrg(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsLDAPReconciliation{Org: &zeroValue} + c.GetOrg() + c = &ConfigSettingsLDAPReconciliation{} + c.GetOrg() + c = nil + c.GetOrg() +} + +func TestConfigSettingsLDAPReconciliation_GetUser(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsLDAPReconciliation{User: &zeroValue} + c.GetUser() + c = &ConfigSettingsLDAPReconciliation{} + c.GetUser() + c = nil + c.GetUser() +} + +func TestConfigSettingsLicenseSettings_GetClusterSupport(tt *testing.T) { + tt.Parallel() + var zeroValue bool + c := &ConfigSettingsLicenseSettings{ClusterSupport: &zeroValue} + c.GetClusterSupport() + c = &ConfigSettingsLicenseSettings{} + c.GetClusterSupport() + c = nil + c.GetClusterSupport() +} + +func TestConfigSettingsLicenseSettings_GetEvaluation(tt *testing.T) { + tt.Parallel() + var zeroValue bool + c := &ConfigSettingsLicenseSettings{Evaluation: &zeroValue} + c.GetEvaluation() + c = &ConfigSettingsLicenseSettings{} + c.GetEvaluation() + c = nil + c.GetEvaluation() +} + +func TestConfigSettingsLicenseSettings_GetExpireAt(tt *testing.T) { + tt.Parallel() + var zeroValue Timestamp + c := &ConfigSettingsLicenseSettings{ExpireAt: &zeroValue} + c.GetExpireAt() + c = &ConfigSettingsLicenseSettings{} + c.GetExpireAt() + c = nil + c.GetExpireAt() +} + +func TestConfigSettingsLicenseSettings_GetPerpetual(tt *testing.T) { + tt.Parallel() + var zeroValue bool + c := &ConfigSettingsLicenseSettings{Perpetual: &zeroValue} + c.GetPerpetual() + c = &ConfigSettingsLicenseSettings{} + c.GetPerpetual() + c = nil + c.GetPerpetual() +} + +func TestConfigSettingsLicenseSettings_GetSeats(tt *testing.T) { + tt.Parallel() + var zeroValue int64 + c := &ConfigSettingsLicenseSettings{Seats: &zeroValue} + c.GetSeats() + c = &ConfigSettingsLicenseSettings{} + c.GetSeats() + c = nil + c.GetSeats() +} + +func TestConfigSettingsLicenseSettings_GetSSHAllowed(tt *testing.T) { + tt.Parallel() + var zeroValue bool + c := &ConfigSettingsLicenseSettings{SSHAllowed: &zeroValue} + c.GetSSHAllowed() + c = &ConfigSettingsLicenseSettings{} + c.GetSSHAllowed() + c = nil + c.GetSSHAllowed() +} + +func TestConfigSettingsLicenseSettings_GetSupportKey(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsLicenseSettings{SupportKey: &zeroValue} + c.GetSupportKey() + c = &ConfigSettingsLicenseSettings{} + c.GetSupportKey() + c = nil + c.GetSupportKey() +} + +func TestConfigSettingsLicenseSettings_GetUnlimitedSeating(tt *testing.T) { + tt.Parallel() + var zeroValue bool + c := &ConfigSettingsLicenseSettings{UnlimitedSeating: &zeroValue} + c.GetUnlimitedSeating() + c = &ConfigSettingsLicenseSettings{} + c.GetUnlimitedSeating() + c = nil + c.GetUnlimitedSeating() +} + +func TestConfigSettingsMapping_GetBasemap(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsMapping{Basemap: &zeroValue} + c.GetBasemap() + c = &ConfigSettingsMapping{} + c.GetBasemap() + c = nil + c.GetBasemap() +} + +func TestConfigSettingsMapping_GetEnabled(tt *testing.T) { + tt.Parallel() + var zeroValue bool + c := &ConfigSettingsMapping{Enabled: &zeroValue} + c.GetEnabled() + c = &ConfigSettingsMapping{} + c.GetEnabled() + c = nil + c.GetEnabled() +} + +func TestConfigSettingsMapping_GetTileserver(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsMapping{Tileserver: &zeroValue} + c.GetTileserver() + c = &ConfigSettingsMapping{} + c.GetTileserver() + c = nil + c.GetTileserver() +} + +func TestConfigSettingsMapping_GetToken(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsMapping{Token: &zeroValue} + c.GetToken() + c = &ConfigSettingsMapping{} + c.GetToken() + c = nil + c.GetToken() +} + +func TestConfigSettingsNTP_GetPrimaryServer(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsNTP{PrimaryServer: &zeroValue} + c.GetPrimaryServer() + c = &ConfigSettingsNTP{} + c.GetPrimaryServer() + c = nil + c.GetPrimaryServer() +} + +func TestConfigSettingsNTP_GetSecondaryServer(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsNTP{SecondaryServer: &zeroValue} + c.GetSecondaryServer() + c = &ConfigSettingsNTP{} + c.GetSecondaryServer() + c = nil + c.GetSecondaryServer() +} + +func TestConfigSettingsPagesSettings_GetEnabled(tt *testing.T) { + tt.Parallel() + var zeroValue bool + c := &ConfigSettingsPagesSettings{Enabled: &zeroValue} + c.GetEnabled() + c = &ConfigSettingsPagesSettings{} + c.GetEnabled() + c = nil + c.GetEnabled() +} + +func TestConfigSettingsSAML_GetCertificate(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsSAML{Certificate: &zeroValue} + c.GetCertificate() + c = &ConfigSettingsSAML{} + c.GetCertificate() + c = nil + c.GetCertificate() +} + +func TestConfigSettingsSAML_GetCertificatePath(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsSAML{CertificatePath: &zeroValue} + c.GetCertificatePath() + c = &ConfigSettingsSAML{} + c.GetCertificatePath() + c = nil + c.GetCertificatePath() +} + +func TestConfigSettingsSAML_GetDisableAdminDemote(tt *testing.T) { + tt.Parallel() + var zeroValue bool + c := &ConfigSettingsSAML{DisableAdminDemote: &zeroValue} + c.GetDisableAdminDemote() + c = &ConfigSettingsSAML{} + c.GetDisableAdminDemote() + c = nil + c.GetDisableAdminDemote() +} + +func TestConfigSettingsSAML_GetIDPInitiatedSSO(tt *testing.T) { + tt.Parallel() + var zeroValue bool + c := &ConfigSettingsSAML{IDPInitiatedSSO: &zeroValue} + c.GetIDPInitiatedSSO() + c = &ConfigSettingsSAML{} + c.GetIDPInitiatedSSO() + c = nil + c.GetIDPInitiatedSSO() +} + +func TestConfigSettingsSAML_GetIssuer(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsSAML{Issuer: &zeroValue} + c.GetIssuer() + c = &ConfigSettingsSAML{} + c.GetIssuer() + c = nil + c.GetIssuer() +} + +func TestConfigSettingsSAML_GetSSOURL(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsSAML{SSOURL: &zeroValue} + c.GetSSOURL() + c = &ConfigSettingsSAML{} + c.GetSSOURL() + c = nil + c.GetSSOURL() +} + +func TestConfigSettingsSMTP_GetAddress(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsSMTP{Address: &zeroValue} + c.GetAddress() + c = &ConfigSettingsSMTP{} + c.GetAddress() + c = nil + c.GetAddress() +} + +func TestConfigSettingsSMTP_GetAuthentication(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsSMTP{Authentication: &zeroValue} + c.GetAuthentication() + c = &ConfigSettingsSMTP{} + c.GetAuthentication() + c = nil + c.GetAuthentication() +} + +func TestConfigSettingsSMTP_GetDiscardToNoreplyAddress(tt *testing.T) { + tt.Parallel() + var zeroValue bool + c := &ConfigSettingsSMTP{DiscardToNoreplyAddress: &zeroValue} + c.GetDiscardToNoreplyAddress() + c = &ConfigSettingsSMTP{} + c.GetDiscardToNoreplyAddress() + c = nil + c.GetDiscardToNoreplyAddress() +} + +func TestConfigSettingsSMTP_GetDomain(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsSMTP{Domain: &zeroValue} + c.GetDomain() + c = &ConfigSettingsSMTP{} + c.GetDomain() + c = nil + c.GetDomain() +} + +func TestConfigSettingsSMTP_GetEnabled(tt *testing.T) { + tt.Parallel() + var zeroValue bool + c := &ConfigSettingsSMTP{Enabled: &zeroValue} + c.GetEnabled() + c = &ConfigSettingsSMTP{} + c.GetEnabled() + c = nil + c.GetEnabled() +} + +func TestConfigSettingsSMTP_GetEnableStarttlsAuto(tt *testing.T) { + tt.Parallel() + var zeroValue bool + c := &ConfigSettingsSMTP{EnableStarttlsAuto: &zeroValue} + c.GetEnableStarttlsAuto() + c = &ConfigSettingsSMTP{} + c.GetEnableStarttlsAuto() + c = nil + c.GetEnableStarttlsAuto() +} + +func TestConfigSettingsSMTP_GetNoreplyAddress(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsSMTP{NoreplyAddress: &zeroValue} + c.GetNoreplyAddress() + c = &ConfigSettingsSMTP{} + c.GetNoreplyAddress() + c = nil + c.GetNoreplyAddress() +} + +func TestConfigSettingsSMTP_GetPassword(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsSMTP{Password: &zeroValue} + c.GetPassword() + c = &ConfigSettingsSMTP{} + c.GetPassword() + c = nil + c.GetPassword() +} + +func TestConfigSettingsSMTP_GetPort(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsSMTP{Port: &zeroValue} + c.GetPort() + c = &ConfigSettingsSMTP{} + c.GetPort() + c = nil + c.GetPort() +} + +func TestConfigSettingsSMTP_GetSupportAddress(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsSMTP{SupportAddress: &zeroValue} + c.GetSupportAddress() + c = &ConfigSettingsSMTP{} + c.GetSupportAddress() + c = nil + c.GetSupportAddress() +} + +func TestConfigSettingsSMTP_GetSupportAddressType(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsSMTP{SupportAddressType: &zeroValue} + c.GetSupportAddressType() + c = &ConfigSettingsSMTP{} + c.GetSupportAddressType() + c = nil + c.GetSupportAddressType() +} + +func TestConfigSettingsSMTP_GetUsername(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsSMTP{Username: &zeroValue} + c.GetUsername() + c = &ConfigSettingsSMTP{} + c.GetUsername() + c = nil + c.GetUsername() +} + +func TestConfigSettingsSMTP_GetUserName(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsSMTP{UserName: &zeroValue} + c.GetUserName() + c = &ConfigSettingsSMTP{} + c.GetUserName() + c = nil + c.GetUserName() +} + +func TestConfigSettingsSNMP_GetCommunity(tt *testing.T) { + tt.Parallel() + var zeroValue string + c := &ConfigSettingsSNMP{Community: &zeroValue} + c.GetCommunity() + c = &ConfigSettingsSNMP{} + c.GetCommunity() + c = nil + c.GetCommunity() +} + +func TestConfigSettingsSNMP_GetEnabled(tt *testing.T) { + tt.Parallel() + var zeroValue bool + c := &ConfigSettingsSNMP{Enabled: &zeroValue} + c.GetEnabled() + c = &ConfigSettingsSNMP{} + c.GetEnabled() + c = nil + c.GetEnabled() +} + +func TestConfigSettingsSyslog_GetEnabled(tt *testing.T) { + tt.Parallel() + var zeroValue bool + c := &ConfigSettingsSyslog{Enabled: &zeroValue} + c.GetEnabled() + c = &ConfigSettingsSyslog{} + c.GetEnabled() + c = nil + c.GetEnabled() } -func TestConfigSettings_GetSyslog(tt *testing.T) { +func TestConfigSettingsSyslog_GetProtocolName(tt *testing.T) { tt.Parallel() - c := &ConfigSettings{} - c.GetSyslog() + var zeroValue string + c := &ConfigSettingsSyslog{ProtocolName: &zeroValue} + c.GetProtocolName() + c = &ConfigSettingsSyslog{} + c.GetProtocolName() c = nil - c.GetSyslog() + c.GetProtocolName() } -func TestConfigSettings_GetTimezone(tt *testing.T) { +func TestConfigSettingsSyslog_GetServer(tt *testing.T) { tt.Parallel() var zeroValue string - c := &ConfigSettings{Timezone: &zeroValue} - c.GetTimezone() - c = &ConfigSettings{} - c.GetTimezone() + c := &ConfigSettingsSyslog{Server: &zeroValue} + c.GetServer() + c = &ConfigSettingsSyslog{} + c.GetServer() c = nil - c.GetTimezone() + c.GetServer() } func TestConnectionServiceItem_GetName(tt *testing.T) { @@ -7314,61 +8133,6 @@ func TestCustomDeploymentProtectionRuleRequest_GetIntegrationID(tt *testing.T) { c.GetIntegrationID() } -func TestCustomer_GetEmail(tt *testing.T) { - tt.Parallel() - var zeroValue string - c := &Customer{Email: &zeroValue} - c.GetEmail() - c = &Customer{} - c.GetEmail() - c = nil - c.GetEmail() -} - -func TestCustomer_GetName(tt *testing.T) { - tt.Parallel() - var zeroValue string - c := &Customer{Name: &zeroValue} - c.GetName() - c = &Customer{} - c.GetName() - c = nil - c.GetName() -} - -func TestCustomer_GetPublicKeyData(tt *testing.T) { - tt.Parallel() - var zeroValue string - c := &Customer{PublicKeyData: &zeroValue} - c.GetPublicKeyData() - c = &Customer{} - c.GetPublicKeyData() - c = nil - c.GetPublicKeyData() -} - -func TestCustomer_GetSecretKeyData(tt *testing.T) { - tt.Parallel() - var zeroValue string - c := &Customer{SecretKeyData: &zeroValue} - c.GetSecretKeyData() - c = &Customer{} - c.GetSecretKeyData() - c = nil - c.GetSecretKeyData() -} - -func TestCustomer_GetUUID(tt *testing.T) { - tt.Parallel() - var zeroValue string - c := &Customer{UUID: &zeroValue} - c.GetUUID() - c = &Customer{} - c.GetUUID() - c = nil - c.GetUUID() -} - func TestCustomOrgRoles_GetBaseRole(tt *testing.T) { tt.Parallel() var zeroValue string @@ -11589,83 +12353,6 @@ func TestGitHubAppAuthorizationEvent_GetSender(tt *testing.T) { g.GetSender() } -func TestGitHubOAuth_GetClientID(tt *testing.T) { - tt.Parallel() - var zeroValue string - g := &GitHubOAuth{ClientID: &zeroValue} - g.GetClientID() - g = &GitHubOAuth{} - g.GetClientID() - g = nil - g.GetClientID() -} - -func TestGitHubOAuth_GetClientSecret(tt *testing.T) { - tt.Parallel() - var zeroValue string - g := &GitHubOAuth{ClientSecret: &zeroValue} - g.GetClientSecret() - g = &GitHubOAuth{} - g.GetClientSecret() - g = nil - g.GetClientSecret() -} - -func TestGitHubOAuth_GetOrganizationName(tt *testing.T) { - tt.Parallel() - var zeroValue string - g := &GitHubOAuth{OrganizationName: &zeroValue} - g.GetOrganizationName() - g = &GitHubOAuth{} - g.GetOrganizationName() - g = nil - g.GetOrganizationName() -} - -func TestGitHubOAuth_GetOrganizationTeam(tt *testing.T) { - tt.Parallel() - var zeroValue string - g := &GitHubOAuth{OrganizationTeam: &zeroValue} - g.GetOrganizationTeam() - g = &GitHubOAuth{} - g.GetOrganizationTeam() - g = nil - g.GetOrganizationTeam() -} - -func TestGitHubSSL_GetCert(tt *testing.T) { - tt.Parallel() - var zeroValue string - g := &GitHubSSL{Cert: &zeroValue} - g.GetCert() - g = &GitHubSSL{} - g.GetCert() - g = nil - g.GetCert() -} - -func TestGitHubSSL_GetEnabled(tt *testing.T) { - tt.Parallel() - var zeroValue bool - g := &GitHubSSL{Enabled: &zeroValue} - g.GetEnabled() - g = &GitHubSSL{} - g.GetEnabled() - g = nil - g.GetEnabled() -} - -func TestGitHubSSL_GetKey(tt *testing.T) { - tt.Parallel() - var zeroValue string - g := &GitHubSSL{Key: &zeroValue} - g.GetKey() - g = &GitHubSSL{} - g.GetKey() - g = nil - g.GetKey() -} - func TestGitignore_GetName(tt *testing.T) { tt.Parallel() var zeroValue string @@ -15751,198 +16438,6 @@ func TestLargeFile_GetSize(tt *testing.T) { l.GetSize() } -func TestLDAP_GetAdminGroup(tt *testing.T) { - tt.Parallel() - var zeroValue string - l := &LDAP{AdminGroup: &zeroValue} - l.GetAdminGroup() - l = &LDAP{} - l.GetAdminGroup() - l = nil - l.GetAdminGroup() -} - -func TestLDAP_GetBindDN(tt *testing.T) { - tt.Parallel() - var zeroValue string - l := &LDAP{BindDN: &zeroValue} - l.GetBindDN() - l = &LDAP{} - l.GetBindDN() - l = nil - l.GetBindDN() -} - -func TestLDAP_GetHost(tt *testing.T) { - tt.Parallel() - var zeroValue string - l := &LDAP{Host: &zeroValue} - l.GetHost() - l = &LDAP{} - l.GetHost() - l = nil - l.GetHost() -} - -func TestLDAP_GetMethod(tt *testing.T) { - tt.Parallel() - var zeroValue string - l := &LDAP{Method: &zeroValue} - l.GetMethod() - l = &LDAP{} - l.GetMethod() - l = nil - l.GetMethod() -} - -func TestLDAP_GetPassword(tt *testing.T) { - tt.Parallel() - var zeroValue string - l := &LDAP{Password: &zeroValue} - l.GetPassword() - l = &LDAP{} - l.GetPassword() - l = nil - l.GetPassword() -} - -func TestLDAP_GetPort(tt *testing.T) { - tt.Parallel() - var zeroValue int - l := &LDAP{Port: &zeroValue} - l.GetPort() - l = &LDAP{} - l.GetPort() - l = nil - l.GetPort() -} - -func TestLDAP_GetPosixSupport(tt *testing.T) { - tt.Parallel() - var zeroValue bool - l := &LDAP{PosixSupport: &zeroValue} - l.GetPosixSupport() - l = &LDAP{} - l.GetPosixSupport() - l = nil - l.GetPosixSupport() -} - -func TestLDAP_GetProfile(tt *testing.T) { - tt.Parallel() - l := &LDAP{} - l.GetProfile() - l = nil - l.GetProfile() -} - -func TestLDAP_GetReconciliation(tt *testing.T) { - tt.Parallel() - l := &LDAP{} - l.GetReconciliation() - l = nil - l.GetReconciliation() -} - -func TestLDAP_GetRecursiveGroupSearch(tt *testing.T) { - tt.Parallel() - var zeroValue bool - l := &LDAP{RecursiveGroupSearch: &zeroValue} - l.GetRecursiveGroupSearch() - l = &LDAP{} - l.GetRecursiveGroupSearch() - l = nil - l.GetRecursiveGroupSearch() -} - -func TestLDAP_GetSearchStrategy(tt *testing.T) { - tt.Parallel() - var zeroValue string - l := &LDAP{SearchStrategy: &zeroValue} - l.GetSearchStrategy() - l = &LDAP{} - l.GetSearchStrategy() - l = nil - l.GetSearchStrategy() -} - -func TestLDAP_GetSyncEnabled(tt *testing.T) { - tt.Parallel() - var zeroValue bool - l := &LDAP{SyncEnabled: &zeroValue} - l.GetSyncEnabled() - l = &LDAP{} - l.GetSyncEnabled() - l = nil - l.GetSyncEnabled() -} - -func TestLDAP_GetTeamSyncInterval(tt *testing.T) { - tt.Parallel() - var zeroValue int - l := &LDAP{TeamSyncInterval: &zeroValue} - l.GetTeamSyncInterval() - l = &LDAP{} - l.GetTeamSyncInterval() - l = nil - l.GetTeamSyncInterval() -} - -func TestLDAP_GetUID(tt *testing.T) { - tt.Parallel() - var zeroValue string - l := &LDAP{UID: &zeroValue} - l.GetUID() - l = &LDAP{} - l.GetUID() - l = nil - l.GetUID() -} - -func TestLDAP_GetUserSyncEmails(tt *testing.T) { - tt.Parallel() - var zeroValue bool - l := &LDAP{UserSyncEmails: &zeroValue} - l.GetUserSyncEmails() - l = &LDAP{} - l.GetUserSyncEmails() - l = nil - l.GetUserSyncEmails() -} - -func TestLDAP_GetUserSyncInterval(tt *testing.T) { - tt.Parallel() - var zeroValue int - l := &LDAP{UserSyncInterval: &zeroValue} - l.GetUserSyncInterval() - l = &LDAP{} - l.GetUserSyncInterval() - l = nil - l.GetUserSyncInterval() -} - -func TestLDAP_GetUserSyncKeys(tt *testing.T) { - tt.Parallel() - var zeroValue bool - l := &LDAP{UserSyncKeys: &zeroValue} - l.GetUserSyncKeys() - l = &LDAP{} - l.GetUserSyncKeys() - l = nil - l.GetUserSyncKeys() -} - -func TestLDAP_GetVirtualAttributeEnabled(tt *testing.T) { - tt.Parallel() - var zeroValue bool - l := &LDAP{VirtualAttributeEnabled: &zeroValue} - l.GetVirtualAttributeEnabled() - l = &LDAP{} - l.GetVirtualAttributeEnabled() - l = nil - l.GetVirtualAttributeEnabled() -} - func TestLicense_GetBody(tt *testing.T) { tt.Parallel() var zeroValue string @@ -16039,139 +16534,51 @@ func TestLicense_GetName(tt *testing.T) { l = &License{} l.GetName() l = nil - l.GetName() -} - -func TestLicense_GetPermissions(tt *testing.T) { - tt.Parallel() - var zeroValue []string - l := &License{Permissions: &zeroValue} - l.GetPermissions() - l = &License{} - l.GetPermissions() - l = nil - l.GetPermissions() -} - -func TestLicense_GetSPDXID(tt *testing.T) { - tt.Parallel() - var zeroValue string - l := &License{SPDXID: &zeroValue} - l.GetSPDXID() - l = &License{} - l.GetSPDXID() - l = nil - l.GetSPDXID() -} - -func TestLicense_GetURL(tt *testing.T) { - tt.Parallel() - var zeroValue string - l := &License{URL: &zeroValue} - l.GetURL() - l = &License{} - l.GetURL() - l = nil - l.GetURL() -} - -func TestLicenseCheck_GetStatus(tt *testing.T) { - tt.Parallel() - var zeroValue string - l := &LicenseCheck{Status: &zeroValue} - l.GetStatus() - l = &LicenseCheck{} - l.GetStatus() - l = nil - l.GetStatus() -} - -func TestLicenseSettings_GetClusterSupport(tt *testing.T) { - tt.Parallel() - var zeroValue bool - l := &LicenseSettings{ClusterSupport: &zeroValue} - l.GetClusterSupport() - l = &LicenseSettings{} - l.GetClusterSupport() - l = nil - l.GetClusterSupport() -} - -func TestLicenseSettings_GetEvaluation(tt *testing.T) { - tt.Parallel() - var zeroValue bool - l := &LicenseSettings{Evaluation: &zeroValue} - l.GetEvaluation() - l = &LicenseSettings{} - l.GetEvaluation() - l = nil - l.GetEvaluation() -} - -func TestLicenseSettings_GetExpireAt(tt *testing.T) { - tt.Parallel() - var zeroValue Timestamp - l := &LicenseSettings{ExpireAt: &zeroValue} - l.GetExpireAt() - l = &LicenseSettings{} - l.GetExpireAt() - l = nil - l.GetExpireAt() -} - -func TestLicenseSettings_GetPerpetual(tt *testing.T) { - tt.Parallel() - var zeroValue bool - l := &LicenseSettings{Perpetual: &zeroValue} - l.GetPerpetual() - l = &LicenseSettings{} - l.GetPerpetual() - l = nil - l.GetPerpetual() + l.GetName() } -func TestLicenseSettings_GetSeats(tt *testing.T) { +func TestLicense_GetPermissions(tt *testing.T) { tt.Parallel() - var zeroValue int - l := &LicenseSettings{Seats: &zeroValue} - l.GetSeats() - l = &LicenseSettings{} - l.GetSeats() + var zeroValue []string + l := &License{Permissions: &zeroValue} + l.GetPermissions() + l = &License{} + l.GetPermissions() l = nil - l.GetSeats() + l.GetPermissions() } -func TestLicenseSettings_GetSSHAllowed(tt *testing.T) { +func TestLicense_GetSPDXID(tt *testing.T) { tt.Parallel() - var zeroValue bool - l := &LicenseSettings{SSHAllowed: &zeroValue} - l.GetSSHAllowed() - l = &LicenseSettings{} - l.GetSSHAllowed() + var zeroValue string + l := &License{SPDXID: &zeroValue} + l.GetSPDXID() + l = &License{} + l.GetSPDXID() l = nil - l.GetSSHAllowed() + l.GetSPDXID() } -func TestLicenseSettings_GetSupportKey(tt *testing.T) { +func TestLicense_GetURL(tt *testing.T) { tt.Parallel() var zeroValue string - l := &LicenseSettings{SupportKey: &zeroValue} - l.GetSupportKey() - l = &LicenseSettings{} - l.GetSupportKey() + l := &License{URL: &zeroValue} + l.GetURL() + l = &License{} + l.GetURL() l = nil - l.GetSupportKey() + l.GetURL() } -func TestLicenseSettings_GetUnlimitedSeating(tt *testing.T) { +func TestLicenseCheck_GetStatus(tt *testing.T) { tt.Parallel() - var zeroValue bool - l := &LicenseSettings{UnlimitedSeating: &zeroValue} - l.GetUnlimitedSeating() - l = &LicenseSettings{} - l.GetUnlimitedSeating() + var zeroValue string + l := &LicenseCheck{Status: &zeroValue} + l.GetStatus() + l = &LicenseCheck{} + l.GetStatus() l = nil - l.GetUnlimitedSeating() + l.GetStatus() } func TestLicenseStatus_GetAdvancedSecurityEnabled(tt *testing.T) { @@ -16187,7 +16594,7 @@ func TestLicenseStatus_GetAdvancedSecurityEnabled(tt *testing.T) { func TestLicenseStatus_GetAdvancedSecuritySeats(tt *testing.T) { tt.Parallel() - var zeroValue int + var zeroValue int64 l := &LicenseStatus{AdvancedSecuritySeats: &zeroValue} l.GetAdvancedSecuritySeats() l = &LicenseStatus{} @@ -16297,7 +16704,7 @@ func TestLicenseStatus_GetLearningLabEvaluationExpires(tt *testing.T) { func TestLicenseStatus_GetLearningLabSeats(tt *testing.T) { tt.Parallel() - var zeroValue int + var zeroValue int64 l := &LicenseStatus{LearningLabSeats: &zeroValue} l.GetLearningLabSeats() l = &LicenseStatus{} @@ -16330,7 +16737,7 @@ func TestLicenseStatus_GetReferenceNumber(tt *testing.T) { func TestLicenseStatus_GetSeats(tt *testing.T) { tt.Parallel() - var zeroValue int + var zeroValue int64 l := &LicenseStatus{Seats: &zeroValue} l.GetSeats() l = &LicenseStatus{} @@ -16977,50 +17384,6 @@ func TestMaintenanceStatus_GetUUID(tt *testing.T) { m.GetUUID() } -func TestMapping_GetBasemap(tt *testing.T) { - tt.Parallel() - var zeroValue string - m := &Mapping{Basemap: &zeroValue} - m.GetBasemap() - m = &Mapping{} - m.GetBasemap() - m = nil - m.GetBasemap() -} - -func TestMapping_GetEnabled(tt *testing.T) { - tt.Parallel() - var zeroValue bool - m := &Mapping{Enabled: &zeroValue} - m.GetEnabled() - m = &Mapping{} - m.GetEnabled() - m = nil - m.GetEnabled() -} - -func TestMapping_GetTileserver(tt *testing.T) { - tt.Parallel() - var zeroValue string - m := &Mapping{Tileserver: &zeroValue} - m.GetTileserver() - m = &Mapping{} - m.GetTileserver() - m = nil - m.GetTileserver() -} - -func TestMapping_GetToken(tt *testing.T) { - tt.Parallel() - var zeroValue string - m := &Mapping{Token: &zeroValue} - m.GetToken() - m = &Mapping{} - m.GetToken() - m = nil - m.GetToken() -} - func TestMarketplacePendingChange_GetEffectiveDate(tt *testing.T) { tt.Parallel() var zeroValue Timestamp @@ -18791,28 +19154,6 @@ func TestNotificationSubject_GetURL(tt *testing.T) { n.GetURL() } -func TestNTP_GetPrimaryServer(tt *testing.T) { - tt.Parallel() - var zeroValue string - n := &NTP{PrimaryServer: &zeroValue} - n.GetPrimaryServer() - n = &NTP{} - n.GetPrimaryServer() - n = nil - n.GetPrimaryServer() -} - -func TestNTP_GetSecondaryServer(tt *testing.T) { - tt.Parallel() - var zeroValue string - n := &NTP{SecondaryServer: &zeroValue} - n.GetSecondaryServer() - n = &NTP{} - n.GetSecondaryServer() - n = nil - n.GetSecondaryServer() -} - func TestOAuthAPP_GetClientID(tt *testing.T) { tt.Parallel() var zeroValue string @@ -21204,17 +21545,6 @@ func TestPagesHTTPSCertificate_GetState(tt *testing.T) { p.GetState() } -func TestPagesSettings_GetEnabled(tt *testing.T) { - tt.Parallel() - var zeroValue bool - p := &PagesSettings{Enabled: &zeroValue} - p.GetEnabled() - p = &PagesSettings{} - p.GetEnabled() - p = nil - p.GetEnabled() -} - func TestPagesSource_GetBranch(tt *testing.T) { tt.Parallel() var zeroValue string @@ -21951,50 +22281,6 @@ func TestPRLinks_GetStatuses(tt *testing.T) { p.GetStatuses() } -func TestProfile_GetKey(tt *testing.T) { - tt.Parallel() - var zeroValue string - p := &Profile{Key: &zeroValue} - p.GetKey() - p = &Profile{} - p.GetKey() - p = nil - p.GetKey() -} - -func TestProfile_GetMail(tt *testing.T) { - tt.Parallel() - var zeroValue string - p := &Profile{Mail: &zeroValue} - p.GetMail() - p = &Profile{} - p.GetMail() - p = nil - p.GetMail() -} - -func TestProfile_GetName(tt *testing.T) { - tt.Parallel() - var zeroValue string - p := &Profile{Name: &zeroValue} - p.GetName() - p = &Profile{} - p.GetName() - p = nil - p.GetName() -} - -func TestProfile_GetUID(tt *testing.T) { - tt.Parallel() - var zeroValue string - p := &Profile{UID: &zeroValue} - p.GetUID() - p = &Profile{} - p.GetUID() - p = nil - p.GetUID() -} - func TestProjectBody_GetFrom(tt *testing.T) { tt.Parallel() var zeroValue string @@ -25570,28 +25856,6 @@ func TestReactions_GetURL(tt *testing.T) { r.GetURL() } -func TestReconciliation_GetOrg(tt *testing.T) { - tt.Parallel() - var zeroValue string - r := &Reconciliation{Org: &zeroValue} - r.GetOrg() - r = &Reconciliation{} - r.GetOrg() - r = nil - r.GetOrg() -} - -func TestReconciliation_GetUser(tt *testing.T) { - tt.Parallel() - var zeroValue string - r := &Reconciliation{User: &zeroValue} - r.GetUser() - r = &Reconciliation{} - r.GetUser() - r = nil - r.GetUser() -} - func TestReference_GetNodeID(tt *testing.T) { tt.Parallel() var zeroValue string @@ -30256,72 +30520,6 @@ func TestRunnerLabels_GetType(tt *testing.T) { r.GetType() } -func TestSAML_GetCertificate(tt *testing.T) { - tt.Parallel() - var zeroValue string - s := &SAML{Certificate: &zeroValue} - s.GetCertificate() - s = &SAML{} - s.GetCertificate() - s = nil - s.GetCertificate() -} - -func TestSAML_GetCertificatePath(tt *testing.T) { - tt.Parallel() - var zeroValue string - s := &SAML{CertificatePath: &zeroValue} - s.GetCertificatePath() - s = &SAML{} - s.GetCertificatePath() - s = nil - s.GetCertificatePath() -} - -func TestSAML_GetDisableAdminDemote(tt *testing.T) { - tt.Parallel() - var zeroValue bool - s := &SAML{DisableAdminDemote: &zeroValue} - s.GetDisableAdminDemote() - s = &SAML{} - s.GetDisableAdminDemote() - s = nil - s.GetDisableAdminDemote() -} - -func TestSAML_GetIDPInitiatedSSO(tt *testing.T) { - tt.Parallel() - var zeroValue bool - s := &SAML{IDPInitiatedSSO: &zeroValue} - s.GetIDPInitiatedSSO() - s = &SAML{} - s.GetIDPInitiatedSSO() - s = nil - s.GetIDPInitiatedSSO() -} - -func TestSAML_GetIssuer(tt *testing.T) { - tt.Parallel() - var zeroValue string - s := &SAML{Issuer: &zeroValue} - s.GetIssuer() - s = &SAML{} - s.GetIssuer() - s = nil - s.GetIssuer() -} - -func TestSAML_GetSSOURL(tt *testing.T) { - tt.Parallel() - var zeroValue string - s := &SAML{SSOURL: &zeroValue} - s.GetSSOURL() - s = &SAML{} - s.GetSSOURL() - s = nil - s.GetSSOURL() -} - func TestSarifAnalysis_GetCheckoutURI(tt *testing.T) { tt.Parallel() var zeroValue string @@ -31763,171 +31961,6 @@ func TestSignatureVerification_GetVerified(tt *testing.T) { s.GetVerified() } -func TestSMTP_GetAddress(tt *testing.T) { - tt.Parallel() - var zeroValue string - s := &SMTP{Address: &zeroValue} - s.GetAddress() - s = &SMTP{} - s.GetAddress() - s = nil - s.GetAddress() -} - -func TestSMTP_GetAuthentication(tt *testing.T) { - tt.Parallel() - var zeroValue string - s := &SMTP{Authentication: &zeroValue} - s.GetAuthentication() - s = &SMTP{} - s.GetAuthentication() - s = nil - s.GetAuthentication() -} - -func TestSMTP_GetDiscardToNoreplyAddress(tt *testing.T) { - tt.Parallel() - var zeroValue bool - s := &SMTP{DiscardToNoreplyAddress: &zeroValue} - s.GetDiscardToNoreplyAddress() - s = &SMTP{} - s.GetDiscardToNoreplyAddress() - s = nil - s.GetDiscardToNoreplyAddress() -} - -func TestSMTP_GetDomain(tt *testing.T) { - tt.Parallel() - var zeroValue string - s := &SMTP{Domain: &zeroValue} - s.GetDomain() - s = &SMTP{} - s.GetDomain() - s = nil - s.GetDomain() -} - -func TestSMTP_GetEnabled(tt *testing.T) { - tt.Parallel() - var zeroValue bool - s := &SMTP{Enabled: &zeroValue} - s.GetEnabled() - s = &SMTP{} - s.GetEnabled() - s = nil - s.GetEnabled() -} - -func TestSMTP_GetEnableStarttlsAuto(tt *testing.T) { - tt.Parallel() - var zeroValue bool - s := &SMTP{EnableStarttlsAuto: &zeroValue} - s.GetEnableStarttlsAuto() - s = &SMTP{} - s.GetEnableStarttlsAuto() - s = nil - s.GetEnableStarttlsAuto() -} - -func TestSMTP_GetNoreplyAddress(tt *testing.T) { - tt.Parallel() - var zeroValue string - s := &SMTP{NoreplyAddress: &zeroValue} - s.GetNoreplyAddress() - s = &SMTP{} - s.GetNoreplyAddress() - s = nil - s.GetNoreplyAddress() -} - -func TestSMTP_GetPassword(tt *testing.T) { - tt.Parallel() - var zeroValue string - s := &SMTP{Password: &zeroValue} - s.GetPassword() - s = &SMTP{} - s.GetPassword() - s = nil - s.GetPassword() -} - -func TestSMTP_GetPort(tt *testing.T) { - tt.Parallel() - var zeroValue string - s := &SMTP{Port: &zeroValue} - s.GetPort() - s = &SMTP{} - s.GetPort() - s = nil - s.GetPort() -} - -func TestSMTP_GetSupportAddress(tt *testing.T) { - tt.Parallel() - var zeroValue string - s := &SMTP{SupportAddress: &zeroValue} - s.GetSupportAddress() - s = &SMTP{} - s.GetSupportAddress() - s = nil - s.GetSupportAddress() -} - -func TestSMTP_GetSupportAddressType(tt *testing.T) { - tt.Parallel() - var zeroValue string - s := &SMTP{SupportAddressType: &zeroValue} - s.GetSupportAddressType() - s = &SMTP{} - s.GetSupportAddressType() - s = nil - s.GetSupportAddressType() -} - -func TestSMTP_GetUsername(tt *testing.T) { - tt.Parallel() - var zeroValue string - s := &SMTP{Username: &zeroValue} - s.GetUsername() - s = &SMTP{} - s.GetUsername() - s = nil - s.GetUsername() -} - -func TestSMTP_GetUserName(tt *testing.T) { - tt.Parallel() - var zeroValue string - s := &SMTP{UserName: &zeroValue} - s.GetUserName() - s = &SMTP{} - s.GetUserName() - s = nil - s.GetUserName() -} - -func TestSNMP_GetCommunity(tt *testing.T) { - tt.Parallel() - var zeroValue string - s := &SNMP{Community: &zeroValue} - s.GetCommunity() - s = &SNMP{} - s.GetCommunity() - s = nil - s.GetCommunity() -} - -func TestSNMP_GetEnabled(tt *testing.T) { - tt.Parallel() - var zeroValue bool - s := &SNMP{Enabled: &zeroValue} - s.GetEnabled() - s = &SNMP{} - s.GetEnabled() - s = nil - s.GetEnabled() -} - func TestSource_GetActor(tt *testing.T) { tt.Parallel() s := &Source{} @@ -32542,39 +32575,6 @@ func TestSubscription_GetURL(tt *testing.T) { s.GetURL() } -func TestSyslog_GetEnabled(tt *testing.T) { - tt.Parallel() - var zeroValue bool - s := &Syslog{Enabled: &zeroValue} - s.GetEnabled() - s = &Syslog{} - s.GetEnabled() - s = nil - s.GetEnabled() -} - -func TestSyslog_GetProtocolName(tt *testing.T) { - tt.Parallel() - var zeroValue string - s := &Syslog{ProtocolName: &zeroValue} - s.GetProtocolName() - s = &Syslog{} - s.GetProtocolName() - s = nil - s.GetProtocolName() -} - -func TestSyslog_GetServer(tt *testing.T) { - tt.Parallel() - var zeroValue string - s := &Syslog{Server: &zeroValue} - s.GetServer() - s = &Syslog{} - s.GetServer() - s = nil - s.GetServer() -} - func TestSystemRequirements_GetStatus(tt *testing.T) { tt.Parallel() var zeroValue string From 9be9a4cd272d7440ff59de55cf94cc293a6b13d5 Mon Sep 17 00:00:00 2001 From: Banhidy Krisztian Date: Mon, 20 Jan 2025 23:32:01 +0300 Subject: [PATCH 20/21] Revert int64 changes for non ID fields --- github/enterprise_manage_ghes_config.go | 20 ++++++++++---------- github/enterprise_manage_ghes_config_test.go | 20 ++++++++++---------- github/github-accessors.go | 20 ++++++++++---------- github/github-accessors_test.go | 20 ++++++++++---------- 4 files changed, 40 insertions(+), 40 deletions(-) diff --git a/github/enterprise_manage_ghes_config.go b/github/enterprise_manage_ghes_config.go index 7108e93bc9f..636c63c1393 100644 --- a/github/enterprise_manage_ghes_config.go +++ b/github/enterprise_manage_ghes_config.go @@ -60,7 +60,7 @@ type ConfigApplyEventsNodeEvent struct { TraceID *string `json:"trace_id,omitempty"` SpanID *string `json:"span_id,omitempty"` SpanParentID *int64 `json:"span_parent_id,omitempty"` - SpanDepth *int64 `json:"span_depth,omitempty"` + SpanDepth *int `json:"span_depth,omitempty"` } // InitialConfigOptions is a struct to hold the options for the InitialConfig API. @@ -72,7 +72,7 @@ type InitialConfigOptions struct { // LicenseStatus is a struct to hold the response from the License API. type LicenseStatus struct { AdvancedSecurityEnabled *bool `json:"advancedSecurityEnabled,omitempty"` - AdvancedSecuritySeats *int64 `json:"advancedSecuritySeats,omitempty"` + AdvancedSecuritySeats *int `json:"advancedSecuritySeats,omitempty"` ClusterSupport *bool `json:"clusterSupport,omitempty"` Company *string `json:"company,omitempty"` CroquetSupport *bool `json:"croquetSupport,omitempty"` @@ -82,10 +82,10 @@ type LicenseStatus struct { InsightsEnabled *bool `json:"insightsEnabled,omitempty"` InsightsExpireAt *Timestamp `json:"insightsExpireAt,omitempty"` LearningLabEvaluationExpires *Timestamp `json:"learningLabEvaluationExpires,omitempty"` - LearningLabSeats *int64 `json:"learningLabSeats,omitempty"` + LearningLabSeats *int `json:"learningLabSeats,omitempty"` Perpetual *bool `json:"perpetual,omitempty"` ReferenceNumber *string `json:"referenceNumber,omitempty"` - Seats *int64 `json:"seats,omitempty"` + Seats *int `json:"seats,omitempty"` SSHAllowed *bool `json:"sshAllowed,omitempty"` SupportKey *string `json:"supportKey,omitempty"` UnlimitedSeating *bool `json:"unlimitedSeating,omitempty"` @@ -115,7 +115,7 @@ type ConfigSettings struct { ExpireSessions *bool `json:"expire_sessions,omitempty"` AdminPassword *string `json:"admin_password,omitempty"` ConfigurationID *int64 `json:"configuration_id,omitempty"` - ConfigurationRunCount *int64 `json:"configuration_run_count,omitempty"` + ConfigurationRunCount *int `json:"configuration_run_count,omitempty"` Avatar *ConfigSettingsAvatar `json:"avatar,omitempty"` Customer *ConfigSettingsCustomer `json:"customer,omitempty"` License *ConfigSettingsLicenseSettings `json:"license,omitempty"` @@ -153,7 +153,7 @@ type ConfigSettingsCustomer struct { // ConfigSettingsLicenseSettings is a struct to hold the response from the Settings API. type ConfigSettingsLicenseSettings struct { - Seats *int64 `json:"seats,omitempty"` + Seats *int `json:"seats,omitempty"` Evaluation *bool `json:"evaluation,omitempty"` Perpetual *bool `json:"perpetual,omitempty"` UnlimitedSeating *bool `json:"unlimited_seating,omitempty"` @@ -173,7 +173,7 @@ type ConfigSettingsGithubSSL struct { // ConfigSettingsLDAP is a struct to hold the response from the Settings API. type ConfigSettingsLDAP struct { Host *string `json:"host,omitempty"` - Port *int64 `json:"port,omitempty"` + Port *int `json:"port,omitempty"` Base []*string `json:"base,omitempty"` UID *string `json:"uid,omitempty"` BindDN *string `json:"bind_dn,omitempty"` @@ -187,8 +187,8 @@ type ConfigSettingsLDAP struct { PosixSupport *bool `json:"posix_support,omitempty"` UserSyncEmails *bool `json:"user_sync_emails,omitempty"` UserSyncKeys *bool `json:"user_sync_keys,omitempty"` - UserSyncInterval *int64 `json:"user_sync_interval,omitempty"` - TeamSyncInterval *int64 `json:"team_sync_interval,omitempty"` + UserSyncInterval *int `json:"user_sync_interval,omitempty"` + TeamSyncInterval *int `json:"team_sync_interval,omitempty"` SyncEnabled *bool `json:"sync_enabled,omitempty"` Reconciliation *ConfigSettingsLDAPReconciliation `json:"reconciliation,omitempty"` Profile *ConfigSettingsLDAPProfile `json:"profile,omitempty"` @@ -276,7 +276,7 @@ type ConfigSettingsPagesSettings struct { type ConfigSettingsCollectd struct { Enabled *bool `json:"enabled,omitempty"` Server *string `json:"server,omitempty"` - Port *int64 `json:"port,omitempty"` + Port *int `json:"port,omitempty"` Encryption *string `json:"encryption,omitempty"` Username *string `json:"username,omitempty"` Password *string `json:"password,omitempty"` diff --git a/github/enterprise_manage_ghes_config_test.go b/github/enterprise_manage_ghes_config_test.go index 291df1a5831..85f0d872fbb 100644 --- a/github/enterprise_manage_ghes_config_test.go +++ b/github/enterprise_manage_ghes_config_test.go @@ -177,7 +177,7 @@ func TestEnterpriseService_Settings(t *testing.T) { ExpireSessions: Ptr(false), AdminPassword: nil, ConfigurationID: Ptr(int64(1401777404)), - ConfigurationRunCount: Ptr(int64(4)), + ConfigurationRunCount: Ptr(4), Avatar: &ConfigSettingsAvatar{ Enabled: Ptr(false), URI: Ptr(""), @@ -190,7 +190,7 @@ func TestEnterpriseService_Settings(t *testing.T) { PublicKeyData: Ptr("-"), }, License: &ConfigSettingsLicenseSettings{ - Seats: Ptr(int64(0)), + Seats: Ptr(0), Evaluation: Ptr(false), Perpetual: Ptr(false), UnlimitedSeating: Ptr(true), @@ -206,7 +206,7 @@ func TestEnterpriseService_Settings(t *testing.T) { }, LDAP: &ConfigSettingsLDAP{ Host: nil, - Port: Ptr(int64(0)), + Port: Ptr(0), Base: []*string{}, UID: nil, BindDN: nil, @@ -220,8 +220,8 @@ func TestEnterpriseService_Settings(t *testing.T) { PosixSupport: Ptr(true), UserSyncEmails: Ptr(false), UserSyncKeys: Ptr(false), - UserSyncInterval: Ptr(int64(4)), - TeamSyncInterval: Ptr(int64(4)), + UserSyncInterval: Ptr(4), + TeamSyncInterval: Ptr(4), SyncEnabled: Ptr(false), Reconciliation: &ConfigSettingsLDAPReconciliation{ User: nil, @@ -287,7 +287,7 @@ func TestEnterpriseService_Settings(t *testing.T) { Collectd: &ConfigSettingsCollectd{ Enabled: Ptr(false), Server: nil, - Port: Ptr(int64(0)), + Port: Ptr(0), Encryption: nil, Username: nil, Password: nil, @@ -439,7 +439,7 @@ func TestEnterpriseService_License(t *testing.T) { want := []*LicenseStatus{{ AdvancedSecurityEnabled: Ptr(true), - AdvancedSecuritySeats: Ptr(int64(0)), + AdvancedSecuritySeats: Ptr(0), ClusterSupport: Ptr(false), Company: Ptr("GitHub"), CroquetSupport: Ptr(true), @@ -449,10 +449,10 @@ func TestEnterpriseService_License(t *testing.T) { InsightsEnabled: Ptr(true), InsightsExpireAt: &Timestamp{time.Date(2018, time.January, 1, 0, 0, 0, 0, time.UTC)}, LearningLabEvaluationExpires: &Timestamp{time.Date(2018, time.January, 1, 0, 0, 0, 0, time.UTC)}, - LearningLabSeats: Ptr(int64(100)), + LearningLabSeats: Ptr(100), Perpetual: Ptr(false), ReferenceNumber: Ptr("32a145"), - Seats: Ptr(int64(0)), + Seats: Ptr(0), SSHAllowed: Ptr(true), SupportKey: Ptr(""), UnlimitedSeating: Ptr(true), @@ -522,7 +522,7 @@ func TestEnterpriseService_ConfigApplyEvents(t *testing.T) { TraceID: Ptr("387cd628c06d606700e79be368e5e574"), SpanID: Ptr("0cde553750689c76"), SpanParentID: Ptr(int64(0)), - SpanDepth: Ptr(int64(0)), + SpanDepth: Ptr(0), }}, }}, } diff --git a/github/github-accessors.go b/github/github-accessors.go index 3707dfee7ca..f497c1afd5d 100644 --- a/github/github-accessors.go +++ b/github/github-accessors.go @@ -4159,7 +4159,7 @@ func (c *ConfigApplyEventsNodeEvent) GetSeverityText() string { } // GetSpanDepth returns the SpanDepth field if it's non-nil, zero value otherwise. -func (c *ConfigApplyEventsNodeEvent) GetSpanDepth() int64 { +func (c *ConfigApplyEventsNodeEvent) GetSpanDepth() int { if c == nil || c.SpanDepth == nil { return 0 } @@ -4327,7 +4327,7 @@ func (c *ConfigSettings) GetConfigurationID() int64 { } // GetConfigurationRunCount returns the ConfigurationRunCount field if it's non-nil, zero value otherwise. -func (c *ConfigSettings) GetConfigurationRunCount() int64 { +func (c *ConfigSettings) GetConfigurationRunCount() int { if c == nil || c.ConfigurationRunCount == nil { return 0 } @@ -4559,7 +4559,7 @@ func (c *ConfigSettingsCollectd) GetPassword() string { } // GetPort returns the Port field if it's non-nil, zero value otherwise. -func (c *ConfigSettingsCollectd) GetPort() int64 { +func (c *ConfigSettingsCollectd) GetPort() int { if c == nil || c.Port == nil { return 0 } @@ -4719,7 +4719,7 @@ func (c *ConfigSettingsLDAP) GetPassword() string { } // GetPort returns the Port field if it's non-nil, zero value otherwise. -func (c *ConfigSettingsLDAP) GetPort() int64 { +func (c *ConfigSettingsLDAP) GetPort() int { if c == nil || c.Port == nil { return 0 } @@ -4775,7 +4775,7 @@ func (c *ConfigSettingsLDAP) GetSyncEnabled() bool { } // GetTeamSyncInterval returns the TeamSyncInterval field if it's non-nil, zero value otherwise. -func (c *ConfigSettingsLDAP) GetTeamSyncInterval() int64 { +func (c *ConfigSettingsLDAP) GetTeamSyncInterval() int { if c == nil || c.TeamSyncInterval == nil { return 0 } @@ -4799,7 +4799,7 @@ func (c *ConfigSettingsLDAP) GetUserSyncEmails() bool { } // GetUserSyncInterval returns the UserSyncInterval field if it's non-nil, zero value otherwise. -func (c *ConfigSettingsLDAP) GetUserSyncInterval() int64 { +func (c *ConfigSettingsLDAP) GetUserSyncInterval() int { if c == nil || c.UserSyncInterval == nil { return 0 } @@ -4903,7 +4903,7 @@ func (c *ConfigSettingsLicenseSettings) GetPerpetual() bool { } // GetSeats returns the Seats field if it's non-nil, zero value otherwise. -func (c *ConfigSettingsLicenseSettings) GetSeats() int64 { +func (c *ConfigSettingsLicenseSettings) GetSeats() int { if c == nil || c.Seats == nil { return 0 } @@ -12815,7 +12815,7 @@ func (l *LicenseStatus) GetAdvancedSecurityEnabled() bool { } // GetAdvancedSecuritySeats returns the AdvancedSecuritySeats field if it's non-nil, zero value otherwise. -func (l *LicenseStatus) GetAdvancedSecuritySeats() int64 { +func (l *LicenseStatus) GetAdvancedSecuritySeats() int { if l == nil || l.AdvancedSecuritySeats == nil { return 0 } @@ -12895,7 +12895,7 @@ func (l *LicenseStatus) GetLearningLabEvaluationExpires() Timestamp { } // GetLearningLabSeats returns the LearningLabSeats field if it's non-nil, zero value otherwise. -func (l *LicenseStatus) GetLearningLabSeats() int64 { +func (l *LicenseStatus) GetLearningLabSeats() int { if l == nil || l.LearningLabSeats == nil { return 0 } @@ -12919,7 +12919,7 @@ func (l *LicenseStatus) GetReferenceNumber() string { } // GetSeats returns the Seats field if it's non-nil, zero value otherwise. -func (l *LicenseStatus) GetSeats() int64 { +func (l *LicenseStatus) GetSeats() int { if l == nil || l.Seats == nil { return 0 } diff --git a/github/github-accessors_test.go b/github/github-accessors_test.go index d2818dbf9cc..870c4df7e4a 100644 --- a/github/github-accessors_test.go +++ b/github/github-accessors_test.go @@ -5397,7 +5397,7 @@ func TestConfigApplyEventsNodeEvent_GetSeverityText(tt *testing.T) { func TestConfigApplyEventsNodeEvent_GetSpanDepth(tt *testing.T) { tt.Parallel() - var zeroValue int64 + var zeroValue int c := &ConfigApplyEventsNodeEvent{SpanDepth: &zeroValue} c.GetSpanDepth() c = &ConfigApplyEventsNodeEvent{} @@ -5619,7 +5619,7 @@ func TestConfigSettings_GetConfigurationID(tt *testing.T) { func TestConfigSettings_GetConfigurationRunCount(tt *testing.T) { tt.Parallel() - var zeroValue int64 + var zeroValue int c := &ConfigSettings{ConfigurationRunCount: &zeroValue} c.GetConfigurationRunCount() c = &ConfigSettings{} @@ -5902,7 +5902,7 @@ func TestConfigSettingsCollectd_GetPassword(tt *testing.T) { func TestConfigSettingsCollectd_GetPort(tt *testing.T) { tt.Parallel() - var zeroValue int64 + var zeroValue int c := &ConfigSettingsCollectd{Port: &zeroValue} c.GetPort() c = &ConfigSettingsCollectd{} @@ -6122,7 +6122,7 @@ func TestConfigSettingsLDAP_GetPassword(tt *testing.T) { func TestConfigSettingsLDAP_GetPort(tt *testing.T) { tt.Parallel() - var zeroValue int64 + var zeroValue int c := &ConfigSettingsLDAP{Port: &zeroValue} c.GetPort() c = &ConfigSettingsLDAP{} @@ -6193,7 +6193,7 @@ func TestConfigSettingsLDAP_GetSyncEnabled(tt *testing.T) { func TestConfigSettingsLDAP_GetTeamSyncInterval(tt *testing.T) { tt.Parallel() - var zeroValue int64 + var zeroValue int c := &ConfigSettingsLDAP{TeamSyncInterval: &zeroValue} c.GetTeamSyncInterval() c = &ConfigSettingsLDAP{} @@ -6226,7 +6226,7 @@ func TestConfigSettingsLDAP_GetUserSyncEmails(tt *testing.T) { func TestConfigSettingsLDAP_GetUserSyncInterval(tt *testing.T) { tt.Parallel() - var zeroValue int64 + var zeroValue int c := &ConfigSettingsLDAP{UserSyncInterval: &zeroValue} c.GetUserSyncInterval() c = &ConfigSettingsLDAP{} @@ -6369,7 +6369,7 @@ func TestConfigSettingsLicenseSettings_GetPerpetual(tt *testing.T) { func TestConfigSettingsLicenseSettings_GetSeats(tt *testing.T) { tt.Parallel() - var zeroValue int64 + var zeroValue int c := &ConfigSettingsLicenseSettings{Seats: &zeroValue} c.GetSeats() c = &ConfigSettingsLicenseSettings{} @@ -16594,7 +16594,7 @@ func TestLicenseStatus_GetAdvancedSecurityEnabled(tt *testing.T) { func TestLicenseStatus_GetAdvancedSecuritySeats(tt *testing.T) { tt.Parallel() - var zeroValue int64 + var zeroValue int l := &LicenseStatus{AdvancedSecuritySeats: &zeroValue} l.GetAdvancedSecuritySeats() l = &LicenseStatus{} @@ -16704,7 +16704,7 @@ func TestLicenseStatus_GetLearningLabEvaluationExpires(tt *testing.T) { func TestLicenseStatus_GetLearningLabSeats(tt *testing.T) { tt.Parallel() - var zeroValue int64 + var zeroValue int l := &LicenseStatus{LearningLabSeats: &zeroValue} l.GetLearningLabSeats() l = &LicenseStatus{} @@ -16737,7 +16737,7 @@ func TestLicenseStatus_GetReferenceNumber(tt *testing.T) { func TestLicenseStatus_GetSeats(tt *testing.T) { tt.Parallel() - var zeroValue int64 + var zeroValue int l := &LicenseStatus{Seats: &zeroValue} l.GetSeats() l = &LicenseStatus{} From b07fc10f708a0c9de0c9b57ba7e3a6e9a97af363 Mon Sep 17 00:00:00 2001 From: Banhidy Krisztian Date: Tue, 21 Jan 2025 17:27:06 +0300 Subject: [PATCH 21/21] Fix for review findings --- github/enterprise_manage_ghes.go | 10 ++--- github/enterprise_manage_ghes_config.go | 44 +++++++++---------- github/enterprise_manage_ghes_config_test.go | 10 ++--- github/enterprise_manage_ghes_maintenance.go | 18 ++++---- ...enterprise_manage_ghes_maintenance_test.go | 6 +-- github/github-accessors.go | 8 ++-- github/github-accessors_test.go | 10 ++--- 7 files changed, 53 insertions(+), 53 deletions(-) diff --git a/github/enterprise_manage_ghes.go b/github/enterprise_manage_ghes.go index c18cc424276..e14836eb02e 100644 --- a/github/enterprise_manage_ghes.go +++ b/github/enterprise_manage_ghes.go @@ -19,7 +19,7 @@ type NodeQueryOptions struct { ClusterRoles *string `url:"cluster_roles,omitempty"` } -// ClusterStatus represents a response from the GetClusterStatus and GetReplicationStatus methods. +// ClusterStatus represents a response from the ClusterStatus and ReplicationStatus methods. type ClusterStatus struct { Status *string `json:"status,omitempty"` Nodes []*ClusterStatusNode `json:"nodes"` @@ -39,7 +39,7 @@ type ClusterStatusNodeServiceItem struct { Details *string `json:"details,omitempty"` } -// SystemRequirements represents a response from the GetCheckSystemRequirements method. +// SystemRequirements represents a response from the CheckSystemRequirements method. type SystemRequirements struct { Status *string `json:"status,omitempty"` Nodes []*SystemRequirementsNode `json:"nodes"` @@ -129,13 +129,13 @@ func (s *EnterpriseService) ReplicationStatus(ctx context.Context, opts *NodeQue return nil, nil, err } - replicationStatus := new(ClusterStatus) - resp, err := s.client.Do(ctx, req, replicationStatus) + status := new(ClusterStatus) + resp, err := s.client.Do(ctx, req, status) if err != nil { return nil, resp, err } - return replicationStatus, resp, nil + return status, resp, nil } // GetNodeReleaseVersions gets the version information deployed to each node. diff --git a/github/enterprise_manage_ghes_config.go b/github/enterprise_manage_ghes_config.go index 636c63c1393..10fb8590e4f 100644 --- a/github/enterprise_manage_ghes_config.go +++ b/github/enterprise_manage_ghes_config.go @@ -147,7 +147,7 @@ type ConfigSettingsCustomer struct { Name *string `json:"name,omitempty"` Email *string `json:"email,omitempty"` UUID *string `json:"uuid,omitempty"` - SecretKeyData *string `json:"secret,omitempty"` + Secret *string `json:"secret,omitempty"` PublicKeyData *string `json:"public_key_data,omitempty"` } @@ -174,13 +174,13 @@ type ConfigSettingsGithubSSL struct { type ConfigSettingsLDAP struct { Host *string `json:"host,omitempty"` Port *int `json:"port,omitempty"` - Base []*string `json:"base,omitempty"` + Base []string `json:"base,omitempty"` UID *string `json:"uid,omitempty"` BindDN *string `json:"bind_dn,omitempty"` Password *string `json:"password,omitempty"` Method *string `json:"method,omitempty"` SearchStrategy *string `json:"search_strategy,omitempty"` - UserGroups []*string `json:"user_groups,omitempty"` + UserGroups []string `json:"user_groups,omitempty"` AdminGroup *string `json:"admin_group,omitempty"` VirtualAttributeEnabled *bool `json:"virtual_attribute_enabled,omitempty"` RecursiveGroupSearch *bool `json:"recursive_group_search,omitempty"` @@ -194,13 +194,13 @@ type ConfigSettingsLDAP struct { Profile *ConfigSettingsLDAPProfile `json:"profile,omitempty"` } -// ConfigSettingsLDAPReconciliation is part of the LDAP struct. +// ConfigSettingsLDAPReconciliation is part of the ConfigSettingsLDAP struct. type ConfigSettingsLDAPReconciliation struct { User *string `json:"user,omitempty"` Org *string `json:"org,omitempty"` } -// ConfigSettingsLDAPProfile is part of the LDAP struct. +// ConfigSettingsLDAPProfile is part of the ConfigSettingsLDAP struct. type ConfigSettingsLDAPProfile struct { UID *string `json:"uid,omitempty"` Name *string `json:"name,omitempty"` @@ -298,12 +298,12 @@ type NodeMetadataStatus struct { // NodeDetails is a struct to hold the response from the NodeMetadata API. type NodeDetails struct { - Hostname *string `json:"hostname,omitempty"` - UUID *string `json:"uuid,omitempty"` - ClusterRoles []*string `json:"cluster_roles,omitempty"` + Hostname *string `json:"hostname,omitempty"` + UUID *string `json:"uuid,omitempty"` + ClusterRoles []string `json:"cluster_roles,omitempty"` } -// ConfigApplyEvents gets events from the command ghe-config-apply +// ConfigApplyEvents gets events from the command ghe-config-apply. // // GitHub API docs: https://docs.github.com/enterprise-server@3.15/rest/enterprise-admin/manage-ghes#list-events-from-ghe-config-apply // @@ -333,7 +333,7 @@ func (s *EnterpriseService) ConfigApplyEvents(ctx context.Context, opts *ConfigA // GitHub API docs: https://docs.github.com/enterprise-server@3.15/rest/enterprise-admin/manage-ghes#initialize-instance-configuration-with-license-and-password // //meta:operation POST /manage/v1/config/init -func (s *EnterpriseService) InitialConfig(ctx context.Context, license string, password string) (*Response, error) { +func (s *EnterpriseService) InitialConfig(ctx context.Context, license, password string) (*Response, error) { u := "manage/v1/config/init" opts := &InitialConfigOptions{ @@ -400,13 +400,13 @@ func (s *EnterpriseService) LicenseStatus(ctx context.Context) ([]*LicenseCheck, return nil, nil, err } - var licenseStatus []*LicenseCheck - resp, err := s.client.Do(ctx, req, &licenseStatus) + var checks []*LicenseCheck + resp, err := s.client.Do(ctx, req, &checks) if err != nil { return nil, resp, err } - return licenseStatus, resp, nil + return checks, resp, nil } // NodeMetadata gets the metadata for all nodes in the GitHub Enterprise instance. @@ -425,13 +425,13 @@ func (s *EnterpriseService) NodeMetadata(ctx context.Context, opts *NodeQueryOpt return nil, nil, err } - configNodes := new(NodeMetadataStatus) - resp, err := s.client.Do(ctx, req, configNodes) + status := new(NodeMetadataStatus) + resp, err := s.client.Do(ctx, req, status) if err != nil { return nil, resp, err } - return configNodes, resp, nil + return status, resp, nil } // Settings gets the current configuration settings for the GitHub Enterprise instance. @@ -486,12 +486,12 @@ func (s *EnterpriseService) ConfigApply(ctx context.Context, opts *ConfigApplyOp return nil, nil, err } - configApplyStatus := new(ConfigApplyOptions) - resp, err := s.client.Do(ctx, req, configApplyStatus) + configApplyOptions := new(ConfigApplyOptions) + resp, err := s.client.Do(ctx, req, configApplyOptions) if err != nil { return nil, resp, err } - return configApplyStatus, resp, nil + return configApplyOptions, resp, nil } // ConfigApplyStatus gets the status of a ghe-config-apply run on the GitHub Enterprise instance. @@ -507,10 +507,10 @@ func (s *EnterpriseService) ConfigApplyStatus(ctx context.Context, opts *ConfigA return nil, nil, err } - configApplyRun := new(ConfigApplyStatus) - resp, err := s.client.Do(ctx, req, configApplyRun) + status := new(ConfigApplyStatus) + resp, err := s.client.Do(ctx, req, status) if err != nil { return nil, resp, err } - return configApplyRun, resp, nil + return status, resp, nil } diff --git a/github/enterprise_manage_ghes_config_test.go b/github/enterprise_manage_ghes_config_test.go index 85f0d872fbb..6fb0f526a25 100644 --- a/github/enterprise_manage_ghes_config_test.go +++ b/github/enterprise_manage_ghes_config_test.go @@ -186,7 +186,7 @@ func TestEnterpriseService_Settings(t *testing.T) { Name: Ptr("GitHub"), Email: Ptr("stannis"), UUID: Ptr("af6cac80-e4e1-012e-d822-1231380e52e9"), - SecretKeyData: nil, + Secret: nil, PublicKeyData: Ptr("-"), }, License: &ConfigSettingsLicenseSettings{ @@ -207,13 +207,13 @@ func TestEnterpriseService_Settings(t *testing.T) { LDAP: &ConfigSettingsLDAP{ Host: nil, Port: Ptr(0), - Base: []*string{}, + Base: []string{}, UID: nil, BindDN: nil, Password: nil, Method: Ptr("Plain"), SearchStrategy: Ptr("detect"), - UserGroups: []*string{}, + UserGroups: []string{}, AdminGroup: nil, VirtualAttributeEnabled: Ptr(false), RecursiveGroupSearch: Ptr(false), @@ -350,8 +350,8 @@ func TestEnterpriseService_NodeMetadata(t *testing.T) { Nodes: []*NodeDetails{{ Hostname: Ptr("data1"), UUID: Ptr("1b6cf518-f97c-11ed-8544-061d81f7eedb"), - ClusterRoles: []*string{ - Ptr("ConsulServer"), + ClusterRoles: []string{ + "ConsulServer", }, }}, } diff --git a/github/enterprise_manage_ghes_maintenance.go b/github/enterprise_manage_ghes_maintenance.go index cca82c73207..3b1de92df13 100644 --- a/github/enterprise_manage_ghes_maintenance.go +++ b/github/enterprise_manage_ghes_maintenance.go @@ -22,9 +22,9 @@ type MaintenanceStatus struct { UUID *string `json:"uuid,omitempty"` Status *string `json:"status,omitempty"` ScheduledTime *Timestamp `json:"scheduled_time,omitempty"` - ConnectionServices []*ConnectionServiceItem `json:"connection_services"` + ConnectionServices []*ConnectionServiceItem `json:"connection_services,omitempty"` CanUnsetMaintenance *bool `json:"can_unset_maintenance,omitempty"` - IPExceptionList []*string `json:"ip_exception_list,omitempty"` + IPExceptionList []string `json:"ip_exception_list,omitempty"` MaintenanceModeMessage *string `json:"maintenance_mode_message,omitempty"` } @@ -35,13 +35,13 @@ type ConnectionServiceItem struct { } // MaintenanceOptions represents the options for setting the maintenance mode for the instance. -// When can be a string, so we cant use a Timestamp type. +// When can be a string, so we can't use a Timestamp type. type MaintenanceOptions struct { - Enabled bool `json:"enabled"` - UUID *string `json:"uuid,omitempty"` - When *string `json:"when,omitempty"` - IPExceptionList []*string `json:"ip_exception_list,omitempty"` - MaintenanceModeMessage *string `json:"maintenance_mode_message,omitempty"` + Enabled bool `json:"enabled"` + UUID *string `json:"uuid,omitempty"` + When *string `json:"when,omitempty"` + IPExceptionList []string `json:"ip_exception_list,omitempty"` + MaintenanceModeMessage *string `json:"maintenance_mode_message,omitempty"` } // GetMaintenanceStatus gets the status of maintenance mode for all nodes. @@ -69,7 +69,7 @@ func (s *EnterpriseService) GetMaintenanceStatus(ctx context.Context, opts *Node } // CreateMaintenance sets the maintenance mode for the instance. -// With the enable parameter we can control to put instance into maintenance mode or not. With False we can disable the maintenance mode. +// With the enable parameter we can control to put instance into maintenance mode or not. With false we can disable the maintenance mode. // // GitHub API docs: https://docs.github.com/enterprise-server@3.15/rest/enterprise-admin/manage-ghes#set-the-status-of-maintenance-mode // diff --git a/github/enterprise_manage_ghes_maintenance_test.go b/github/enterprise_manage_ghes_maintenance_test.go index a5b1ced677b..dabbfd45099 100644 --- a/github/enterprise_manage_ghes_maintenance_test.go +++ b/github/enterprise_manage_ghes_maintenance_test.go @@ -64,7 +64,7 @@ func TestEnterpriseService_GetMaintenanceStatus(t *testing.T) { Number: Ptr(15), }}, CanUnsetMaintenance: Ptr(true), - IPExceptionList: []*string{Ptr("1.1.1.1")}, + IPExceptionList: []string{"1.1.1.1"}, MaintenanceModeMessage: Ptr("Scheduled maintenance for upgrading."), }} if !cmp.Equal(maintenanceStatus, want) { @@ -89,8 +89,8 @@ func TestEnterpriseService_CreateMaintenance(t *testing.T) { Enabled: true, UUID: Ptr("1234-1234"), When: Ptr("now"), - IPExceptionList: []*string{ - Ptr("1.1.1.1"), + IPExceptionList: []string{ + "1.1.1.1", }, MaintenanceModeMessage: Ptr("Scheduled maintenance for upgrading."), } diff --git a/github/github-accessors.go b/github/github-accessors.go index f497c1afd5d..601c0a52612 100644 --- a/github/github-accessors.go +++ b/github/github-accessors.go @@ -4606,12 +4606,12 @@ func (c *ConfigSettingsCustomer) GetPublicKeyData() string { return *c.PublicKeyData } -// GetSecretKeyData returns the SecretKeyData field if it's non-nil, zero value otherwise. -func (c *ConfigSettingsCustomer) GetSecretKeyData() string { - if c == nil || c.SecretKeyData == nil { +// GetSecret returns the Secret field if it's non-nil, zero value otherwise. +func (c *ConfigSettingsCustomer) GetSecret() string { + if c == nil || c.Secret == nil { return "" } - return *c.SecretKeyData + return *c.Secret } // GetUUID returns the UUID field if it's non-nil, zero value otherwise. diff --git a/github/github-accessors_test.go b/github/github-accessors_test.go index 870c4df7e4a..1f02d7cff34 100644 --- a/github/github-accessors_test.go +++ b/github/github-accessors_test.go @@ -5966,15 +5966,15 @@ func TestConfigSettingsCustomer_GetPublicKeyData(tt *testing.T) { c.GetPublicKeyData() } -func TestConfigSettingsCustomer_GetSecretKeyData(tt *testing.T) { +func TestConfigSettingsCustomer_GetSecret(tt *testing.T) { tt.Parallel() var zeroValue string - c := &ConfigSettingsCustomer{SecretKeyData: &zeroValue} - c.GetSecretKeyData() + c := &ConfigSettingsCustomer{Secret: &zeroValue} + c.GetSecret() c = &ConfigSettingsCustomer{} - c.GetSecretKeyData() + c.GetSecret() c = nil - c.GetSecretKeyData() + c.GetSecret() } func TestConfigSettingsCustomer_GetUUID(tt *testing.T) {